@norio-office/rich-text 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/dist/components/RichTextEditor.vue.d.ts +0 -4
- package/dist/components/TextSelectionMenu.vue.d.ts +29 -1
- package/dist/index.js +3971 -4239
- package/dist/index.umd.cjs +24 -26
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
255
255
|
<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M800.768 477.184c-14.336 0-30.72 2.048-45.056 4.096 18.432-51.2 77.824-188.416 237.568-315.392 36.864-28.672-20.48-86.016-59.392-57.344-155.648 116.736-356.352 317.44-356.352 573.44v20.48c0 122.88 100.352 223.232 223.232 223.232S1024 825.344 1024 702.464c0-124.928-100.352-225.28-223.232-225.28zM223.232 477.184c-14.336 0-30.72 2.048-45.056 4.096 18.432-51.2 77.824-188.416 237.568-315.392 36.864-28.672-20.48-86.016-59.392-57.344C200.704 225.28 0 425.984 0 681.984v20.48c0 122.88 100.352 223.232 223.232 223.232s223.232-100.352 223.232-223.232c0-124.928-100.352-225.28-223.232-225.28z" fill="#336DF4" /></svg>`,Yt=`<?xml version="1.0" standalone="no"?>
|
|
256
256
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
257
|
-
<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M338.432 76.8h604.5184a56.832 56.832 0 0 1 0 113.664H338.432a56.832 56.832 0 0 1 0-113.664z m0 384h604.5184a56.832 56.832 0 0 1 0 113.664H338.432a56.832 56.832 0 1 1 0-113.664z m0 384h604.5184a56.832 56.832 0 0 1 0 113.664H338.432a56.832 56.832 0 1 1 0-113.664zM166.6048 51.2v204.8H109.9776V121.8048a172.032 172.032 0 0 1-26.5728 16.896A207.616 207.616 0 0 1 51.2 151.04v-45.8752c19.0464-6.144 33.792-13.4656 44.3904-22.1184 10.496-8.6016 18.7392-19.2 24.6784-31.8464h46.336z m52.4288 563.2H51.2c1.9456-16.5888 7.7824-32.1536 17.5104-46.7456 9.728-14.6432 28.0576-31.8464 54.8864-51.712 16.384-12.1856 26.88-21.504 31.4368-27.7504a31.0784 31.0784 0 0 0 6.8608-18.0224 20.992 20.992 0 0 0-6.7584-15.7184 23.7056 23.7056 0 0 0-17.1008-6.5536 23.8592 23.8592 0 0 0-17.5616 6.7584c-4.5056 4.5056-7.5776 12.3904-9.1136 23.7568L55.296 473.9072c2.2016-15.7696 6.2464-28.0576 12.1344-36.864 5.8368-8.8576 14.08-15.6672 24.7808-20.3776 10.6496-4.7104 25.4464-7.0656 44.288-7.0656 19.712 0 35.0208 2.2528 45.9264 6.7072 10.9568 4.5056 19.5584 11.4176 25.856 20.6848 6.2464 9.3184 9.4208 19.712 9.4208 31.232 0 12.288-3.584 24.064-10.8032 35.1744-7.168 11.2128-20.2752 23.4496-39.2192 36.864a414.72 414.72 0 0 0-22.5792 16.3328c-3.84 3.072-8.2944 7.168-13.4144 12.1856h87.3472V614.4z m-112.8448 239.872l-52.0192-9.3184c4.3008-16.5888 12.6464-29.2864 24.9344-38.0928 12.288-8.8576 29.696-13.2608 52.224-13.2608 25.8048 0 44.544 4.8128 56.064 14.4384a45.4144 45.4144 0 0 1 17.2544 36.352 40.6016 40.6016 0 0 1-7.0144 23.2448c-4.6592 6.912-11.776 13.0048-21.1968 18.2272 7.68 1.8944 13.5168 4.096 17.5616 6.656 6.5536 4.0448 11.6736 9.3696 15.36 15.9744 3.584 6.656 5.4272 14.5408 5.4272 23.7056 0 11.52-3.0208 22.5792-9.0624 33.1776a60.6208 60.6208 0 0 1-26.0608 24.4224c-11.3152 5.7344-26.2656 8.6016-44.6976 8.6016-18.0224 0-32.256-2.0992-42.6496-6.3488a63.6416 63.6416 0 0 1-25.6-18.5856 85.3504 85.3504 0 0 1-15.5136-30.72l54.9888-7.3216c2.1504 11.1104 5.5296 18.7904 10.0352 23.04a24.32 24.32 0 0 0 17.408 6.4512 23.8592 23.8592 0 0 0 18.432-8.1408 30.9248 30.9248 0 0 0 7.3216-21.6064c0-9.216-2.3552-16.2816-7.0656-21.3504a25.088 25.088 0 0 0-19.2512-7.5264c-4.3008 0-10.24 1.024-17.8176 3.2256l2.816-39.3216c3.072 0.4608 5.4272 0.6656 7.168 0.6656a25.088 25.088 0 0 0 18.0224-6.8608 21.8112 21.8112 0 0 0 7.2192-16.384 19.5584 19.5584 0 0 0-5.376-14.4384 20.0704 20.0704 0 0 0-14.848-5.376 21.8112 21.8112 0 0 0-15.872 5.8368c-3.9936 3.9424-6.7584 10.8032-8.192 20.6336z" fill="#5B65F5" /></svg>`,Xt=Object.assign({"./assets/icons/mono/To-do.svg":le,"./assets/icons/mono/add-circle.svg":ue,"./assets/icons/mono/add.svg":de,"./assets/icons/mono/attachment.svg":fe,"./assets/icons/mono/back.svg":pe,"./assets/icons/mono/beijingse.svg":me,"./assets/icons/mono/charutupian.svg":he,"./assets/icons/mono/close.svg":ge,"./assets/icons/mono/code.svg":_e,"./assets/icons/mono/codeblock.svg":ve,"./assets/icons/mono/comment.svg":ye,"./assets/icons/mono/cut.svg":be,"./assets/icons/mono/dagang.svg":xe,"./assets/icons/mono/days.svg":Se,"./assets/icons/mono/delete.svg":Ce,"./assets/icons/mono/drag.svg":we,"./assets/icons/mono/edit.svg":Te,"./assets/icons/mono/fangdayulan.svg":Ee,"./assets/icons/mono/folder.svg":De,"./assets/icons/mono/gaoliangkuai.svg":Oe,"./assets/icons/mono/h1.svg":ke,"./assets/icons/mono/h2.svg":Ae,"./assets/icons/mono/h3.svg":je,"./assets/icons/mono/h4.svg":Me,"./assets/icons/mono/h5.svg":Ne,"./assets/icons/mono/h6.svg":Pe,"./assets/icons/mono/huanyuan.svg":Fe,"./assets/icons/mono/image.svg":Ie,"./assets/icons/mono/jiacu.svg":Le,"./assets/icons/mono/jianshao.svg":Re,"./assets/icons/mono/juzhongduiqi.svg":ze,"./assets/icons/mono/kapianyulan.svg":Be,"./assets/icons/mono/link.svg":Ve,"./assets/icons/mono/mark.svg":He,"./assets/icons/mono/merge.svg":Ue,"./assets/icons/mono/quanpingzuidahua.svg":We,"./assets/icons/mono/redo.svg":Ge,"./assets/icons/mono/rubber.svg":Ke,"./assets/icons/mono/save.svg":qe,"./assets/icons/mono/shangbiao.svg":Je,"./assets/icons/mono/shangfangtianjia.svg":Ye,"./assets/icons/mono/shezhi.svg":Xe,"./assets/icons/mono/shixinxiangyou.svg":Ze,"./assets/icons/mono/smile.svg":Qe,"./assets/icons/mono/split.svg":$e,"./assets/icons/mono/switch.svg":et,"./assets/icons/mono/text-color.svg":tt,"./assets/icons/mono/text.svg":nt,"./assets/icons/mono/wenziyulan.svg":rt,"./assets/icons/mono/wuxuliebiao.svg":it,"./assets/icons/mono/xiabiao.svg":at,"./assets/icons/mono/xiafangtianjia.svg":ot,"./assets/icons/mono/xiahuaxian.svg":st,"./assets/icons/mono/xiangshangcharu.svg":ct,"./assets/icons/mono/xiangxiacharujilu-copy.svg":lt,"./assets/icons/mono/xiangxiajiantou.svg":ut,"./assets/icons/mono/xiangyoucharu.svg":dt,"./assets/icons/mono/xiangzuocharu.svg":ft,"./assets/icons/mono/xieti.svg":pt,"./assets/icons/mono/xuanzhuan.svg":mt,"./assets/icons/mono/yanse.svg":ht,"./assets/icons/mono/yanshi.svg":gt,"./assets/icons/mono/yinyong.svg":_t,"./assets/icons/mono/youduiqi.svg":vt,"./assets/icons/mono/youjiantou.svg":yt,"./assets/icons/mono/yousuojin.svg":bt,"./assets/icons/mono/youxuliebiao.svg":xt,"./assets/icons/mono/yulan.svg":St,"./assets/icons/mono/zhuti.svg":Ct,"./assets/icons/mono/zuoduiqi.svg":wt,"./assets/icons/mono/zuojiantou.svg":Tt,"./assets/icons/mono/zuosuojin.svg":Et}),Zt=Object.assign({"./assets/icons/color/biaoge.svg":Dt,"./assets/icons/color/daimakuai.svg":Ot,"./assets/icons/color/daojishi.svg":kt,"./assets/icons/color/dayin.svg":At,"./assets/icons/color/duihao.svg":jt,"./assets/icons/color/fengexian.svg":Mt,"./assets/icons/color/fenlan.svg":Nt,"./assets/icons/color/file.svg":Pt,"./assets/icons/color/gaoliangkuai1.svg":Ft,"./assets/icons/color/jisuangongshi.svg":It,"./assets/icons/color/markdown.svg":Lt,"./assets/icons/color/pdfdaochu.svg":Rt,"./assets/icons/color/renwu.svg":zt,"./assets/icons/color/riqi.svg":Bt,"./assets/icons/color/shipin.svg":Vt,"./assets/icons/color/tupian.svg":Ht,"./assets/icons/color/tupiandaochu.svg":Ut,"./assets/icons/color/wangye.svg":Wt,"./assets/icons/color/wenjianjia.svg":Gt,"./assets/icons/color/wuxuliebiao.svg":Kt,"./assets/icons/color/xiazai.svg":qt,"./assets/icons/color/yinyong.svg":Jt,"./assets/icons/color/youxuliebiao.svg":Yt});function Qt(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.split(`/`).pop()?.replace(/\.svg$/i,``)??e,String(t)]))}var $t=Qt(Xt),en=Qt(Zt),tn=Object.keys($t).sort(),nn=Object.keys(en).sort(),rn=[`data-name`,`title`,`innerHTML`],an=(0,t.defineComponent)({__name:`OfficeColorIcon`,props:{name:{},size:{default:22},backgroundColor:{default:`#ffffff`}},setup(e){let n=e,r=(0,t.computed)(()=>en[n.name]??``),i=(0,t.computed)(()=>typeof n.size==`number`?`${n.size}px`:n.size),a=(0,t.computed)(()=>({width:i.value,height:i.value,backgroundColor:n.backgroundColor}));return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)([`norio-office-rich-icon`,{"norio-office-rich-icon--missing":!r.value}]),style:(0,t.normalizeStyle)(a.value),"data-name":e.name,title:r.value?void 0:`Unknown icon: ${e.name}`,innerHTML:r.value},null,14,rn))}}),on=[`data-name`,`title`,`innerHTML`],k=(0,t.defineComponent)({__name:`OfficeIcon`,props:{name:{},size:{default:22},color:{default:`currentColor`},backgroundColor:{default:`#ffffff`}},setup(e){let n=e,r=(0,t.computed)(()=>$t[n.name]??``),i=(0,t.computed)(()=>typeof n.size==`number`?`${n.size}px`:n.size),a=(0,t.computed)(()=>({width:i.value,height:i.value,color:n.color,backgroundColor:n.backgroundColor}));return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)([`norio-office-rich-icon`,{"norio-office-rich-icon--missing":!r.value}]),style:(0,t.normalizeStyle)(a.value),"data-name":e.name,title:r.value?void 0:`Unknown icon: ${e.name}`,innerHTML:r.value},null,14,on))}}),sn=[[`#FFFFFF`,`#16181D`,`#4C5563`,`#2F6BFF`,`#1DA1F2`,`#19B36B`,`#F2573F`,`#FF8B24`,`#F7C200`,`#9333EA`],[`#F4F5F7`,`#D9DEE7`,`#C2C9D6`,`#DDE9FF`,`#D6EFFB`,`#D8F4E5`,`#FDE1DD`,`#FFE9D2`,`#FFF3C4`,`#F1D8FF`],[`#E6E8EC`,`#BFC6D4`,`#A8B1C4`,`#BED3FF`,`#B9E5F8`,`#B8ECD2`,`#F9C3BC`,`#FFD6AC`,`#FFE58C`,`#E4BCFF`],[`#D1D5DB`,`#9CA3AF`,`#6B7280`,`#8BB2FF`,`#86D3F3`,`#7DDEAB`,`#F69B8F`,`#FFBB79`,`#F9D45C`,`#CE97FF`],[`#9AA4B2`,`#4B5563`,`#374151`,`#4C7DFF`,`#2BAFE3`,`#22C55E`,`#EF6B59`,`#F59E0B`,`#D4A500`,`#A855F7`],[`#6B7280`,`#111827`,`#1F2937`,`#1D4ED8`,`#1473C5`,`#15803D`,`#DC2626`,`#C56A06`,`#A16207`,`#6B21A8`]],cn=[`#F04438`,`#FF8B24`,`#F7C200`,`#95D13C`,`#19B36B`,`#1DA1F2`,`#1677C8`,`#152A6A`,`#5A2CA0`],ln={class:`norio-office-rich-color-menu__section`},un={class:`norio-office-rich-color-menu__section`},dn={class:`norio-office-rich-color-menu__grid`},fn=[`aria-label`,`aria-pressed`,`title`,`onClick`],pn={class:`norio-office-rich-color-menu__section`},mn={class:`norio-office-rich-color-menu__row`},hn=[`aria-label`,`aria-pressed`,`title`,`onClick`],gn={class:`norio-office-rich-color-menu__section`},_n={class:`norio-office-rich-color-menu__row`},vn=[`aria-label`,`aria-pressed`,`title`,`onClick`],yn={class:`norio-office-rich-color-menu__footer`},bn=[`value`],xn=(0,t.defineComponent)({__name:`ColorPalettePanel`,props:{color:{},defaultColor:{},recentColors:{}},emits:[`change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null);function o(e){return r.color.toLowerCase()===e.toLowerCase()}function s(e){let t=e.target.value;t&&i(`change`,t)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`norio-office-rich-color-palette`,onMousedown:r[2]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createElementVNode)(`div`,ln,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current`,onClick:r[0]||=t=>i(`change`,e.defaultColor)},`默认`)]),(0,t.createElementVNode)(`div`,un,[(0,t.createElementVNode)(`div`,dn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(sn).flat(),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch`,{"norio-office-rich-color-menu__swatch--active":o(e)}]),style:(0,t.normalizeStyle)({backgroundColor:e}),"aria-label":e,"aria-pressed":o(e),title:e,onClick:t=>i(`change`,e)},null,14,fn))),128))])]),(0,t.createElementVNode)(`div`,pn,[r[3]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`标准色`,-1),(0,t.createElementVNode)(`div`,mn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(cn),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--compact`,{"norio-office-rich-color-menu__swatch--active":o(e)}]),style:(0,t.normalizeStyle)({backgroundColor:e}),"aria-label":`标准色 ${e}`,"aria-pressed":o(e),title:e,onClick:t=>i(`change`,e)},null,14,hn))),128))])]),(0,t.createElementVNode)(`div`,gn,[r[4]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`最近使用`,-1),(0,t.createElementVNode)(`div`,_n,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.recentColors.slice(0,10),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--recent`,{"norio-office-rich-color-menu__swatch--active":o(e)}]),style:(0,t.normalizeStyle)({backgroundColor:e}),"aria-label":`最近使用 ${e}`,"aria-pressed":o(e),title:e,onClick:t=>i(`change`,e)},null,14,vn))),128)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Math.max(0,10-e.recentColors.length),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e,class:`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--empty`}))),128))])]),(0,t.createElementVNode)(`div`,yn,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__more`,onClick:r[1]||=e=>a.value?.click()},[r[5]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-color-menu__rainbow`},null,-1),r[6]||=(0,t.createElementVNode)(`span`,null,`更多颜色`,-1),(0,t.createVNode)(k,{name:`shixinxiangyou`,size:10,color:`#9ca3af`,"background-color":`transparent`,class:`norio-office-rich-color-menu__arrow`})]),(0,t.createElementVNode)(`input`,{ref_key:`pickerRef`,ref:a,type:`color`,class:`norio-office-rich-color-menu__picker`,"aria-label":`更多颜色取色器`,value:e.color===`transparent`?e.defaultColor:e.color,onInput:s},null,40,bn)])],32))}}),Sn={class:`norio-office-rich-block-colors__label`},Cn={class:`norio-office-rich-block-colors__grid`},wn=[`aria-label`,`title`,`aria-pressed`,`onClick`],Tn={key:0},En=[`aria-label`,`aria-expanded`,`onMouseenter`,`onClick`],Dn=(0,t.defineComponent)({__name:`BlockColorPanel`,props:{textColor:{},backgroundColor:{},color:{},kind:{},label:{},presetColors:{},customKind:{},hoverEnabled:{type:Boolean}},emits:[`change`,`custom`,`reset`],setup(e,{emit:n}){let r=e,i=n,a=[null,`#9CA3AF`,`#DC2626`,`#F97316`,`#D4A500`,`#15803D`,`#2F6BFF`,`#9333EA`],o=[null,`#F4F5F7`,`#FDE1DD`,`#FFE9D2`,`#FFF3C4`,`#D8F4E5`,`#DDE9FF`,`#F1D8FF`,`#E6E8EC`,`#D9DEE7`,`#F9C3BC`,`#FFD6AC`,`#FFE58C`,`#B8ECD2`,`#BED3FF`,`#E4BCFF`],s=(0,t.computed)(()=>r.kind?[{key:r.kind,label:r.label||(r.kind===`border`?`边框颜色`:`填充颜色`),colors:r.presetColors?[null,...r.presetColors]:o}]:[{key:`text`,label:`字体颜色`,colors:a},{key:`background`,label:`背景颜色`,colors:o}]);function c(e){return r.kind&&r.label?`自定义${r.label}`:{text:`自定义文字颜色`,background:`自定义背景颜色`,border:`自定义边框颜色`,fill:`自定义填充颜色`}[e]}function l(e,t){return t||(e===`border`||e===`fill`?`无颜色`:`默认`)}function u(e,t){let n=e===`text`?r.textColor:e===`background`?r.backgroundColor:r.color;return(n===`transparent`?``:n??``).toLowerCase()===(t??``).toLowerCase()}function d(e,t){t.currentTarget instanceof HTMLElement&&i(`custom`,e,t.currentTarget)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`norio-office-rich-block-colors`,onMousedown:r[1]||=(0,t.withModifiers)(()=>{},[`prevent`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{key:n.key,class:`norio-office-rich-block-colors__section`},[(0,t.createElementVNode)(`div`,Sn,(0,t.toDisplayString)(n.label),1),(0,t.createElementVNode)(`div`,Cn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.colors,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e||`default`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-colors__swatch`,{"norio-office-rich-block-colors__swatch--active":u(n.key,e),"norio-office-rich-block-colors__swatch--clear":n.key!==`text`&&!e}]),style:(0,t.normalizeStyle)(n.key===`text`?{color:e||`#273142`}:{backgroundColor:e||`#ffffff`}),"aria-label":`${n.label} ${l(n.key,e)}`,title:`${n.label} ${l(n.key,e)}`,"aria-pressed":u(n.key,e),onClick:t=>i(`change`,n.key,e)},[n.key===`text`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Tn,`A`)):(0,t.createCommentVNode)(``,!0)],14,wn))),128))]),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-colors__custom`,{"norio-office-rich-block-side-menu__item--active":e.customKind===n.key}]),"aria-label":c(n.key),"aria-expanded":e.customKind===n.key,onMouseenter:t=>e.hoverEnabled&&d(n.key,t),onClick:e=>d(n.key,e)},[(0,t.createVNode)(k,{name:`yanse`,size:16,color:`currentColor`,"background-color":`transparent`}),r[2]||=(0,t.createElementVNode)(`span`,null,`自定义颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:12,color:`#9aa4b2`,"background-color":`transparent`})],42,En)]))),128)),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current norio-office-rich-block-colors__reset`,onClick:r[0]||=e=>i(`reset`)},`恢复默认`)],32))}}),On={class:`norio-office-rich-text-bubble__toolbar`,role:`toolbar`,"aria-label":`文字格式`},kn=[`disabled`,`title`,`aria-label`,`aria-pressed`,`aria-expanded`,`onClick`],An={key:0,class:`norio-office-rich-toolbar__color-trigger`},jn={key:1},Mn=[`aria-label`],Nn=[`disabled`,`aria-label`,`aria-pressed`,`aria-expanded`,`onMouseenter`,`onClick`],Pn={key:1,class:`norio-office-rich-text-bubble__option-symbol`},Fn={class:`norio-office-rich-text-bubble__option-label`},In=[`aria-label`],Ln=[`disabled`,`aria-label`,`aria-pressed`,`onClick`],Rn={class:`norio-office-rich-text-bubble__option-symbol`},zn={class:`norio-office-rich-text-bubble__option-label`},Bn=(0,t.defineComponent)({__name:`TextSelectionMenu`,props:{editor:{},actions:{},enabled:{type:Boolean}},setup(e){let n=e,i=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(null),c=(0,t.ref)(null),l=(0,t.ref)(null),u=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.ref)(!1),p=(0,t.ref)({}),m=(0,t.ref)({}),h=(0,t.computed)(()=>n.actions.find(e=>e.key===u.value)),g=(0,t.computed)(()=>h.value?.options?.find(e=>e.key===d.value)),_=null,v=null,y=null,b=n.editor.state.selection;function x(){let e=l.value?.getBoundingClientRect(),t=o.value;if(!e||!t)return;let n=Math.min(h.value?.setColor?264:232,window.innerWidth-16),r=Math.min(t.scrollHeight,window.innerHeight-16),i=e.bottom+8+r<=window.innerHeight-8?e.bottom+8:Math.max(8,e.top-r-8);p.value={position:`fixed`,width:`${n}px`,left:`${Math.max(8,Math.min(e.left,window.innerWidth-n-8))}px`,top:`${i}px`,maxHeight:`${window.innerHeight-16}px`},S()}function S(){let e=c.value?.getBoundingClientRect(),t=s.value;if(!e||!t)return;let n=Math.min(184,window.innerWidth-16),r=Math.min(t.scrollHeight,window.innerHeight-16),i=e.right+4+n<=window.innerWidth-8,a=e.left-n-4>=8,o=i?e.right+4:a?e.left-n-4:Math.max(8,Math.min(e.left,window.innerWidth-n-8)),l=i||a?e.top:e.bottom+4+r<=window.innerHeight-8?e.bottom+4:e.top-r-4,u=Math.max(8,Math.min(l,window.innerHeight-r-8));m.value={position:`fixed`,width:`${n}px`,left:`${o}px`,top:`${u}px`,maxHeight:`${window.innerHeight-16}px`}}function C(){!n.editor.isDestroyed&&!n.editor.state.selection.empty&&!f.value&&i.value?.isConnected&&n.editor.view.dispatch(n.editor.state.tr.setMeta(`textSelectionBubbleMenu`,`updatePosition`)),x()}function w({view:e,state:t,element:r}){return t.selection.eq(b)||(f.value=!1),n.enabled&&!f.value&&n.editor.isEditable&&t.selection instanceof a.TextSelection&&!t.selection.empty&&!!t.doc.textBetween(t.selection.from,t.selection.to).length&&(e.hasFocus()||r.contains(document.activeElement))}function T(e,t){e.disabled||(e.options||e.setColor?(l.value=t.currentTarget,u.value=u.value===e.key?null:e.key):(u.value=null,e.run?.()))}function E(e){e.disabled||(e.run?.(),u.value!==`alignment`&&(u.value=null))}function ee(e,t){d.value=!e.disabled&&e.options?e.key:null,c.value=d.value?t.currentTarget:null}function te(e,t){e.options?ee(e,t):E(e)}function D(){let e=n.editor.state.selection;e.eq(b)||(f.value=!1,u.value=null),b=e}function ne(e){e.target instanceof Node&&!i.value?.contains(e.target)&&(u.value=null,f.value=!0)}function re(e){e.key!==`Escape`||!i.value?.isConnected||(e.preventDefault(),d.value?d.value=null:u.value?u.value=null:f.value=!0,n.editor.commands.focus())}(0,t.watch)(o,e=>{_?.disconnect(),_=null,e&&(x(),_=new ResizeObserver(x),_.observe(e))},{flush:`post`}),(0,t.watch)(i,e=>{y?.disconnect(),y=null,e&&(y=new ResizeObserver(C),y.observe(e))},{flush:`post`}),(0,t.watch)(s,e=>{v?.disconnect(),v=null,e&&(S(),v=new ResizeObserver(S),v.observe(e))},{flush:`post`}),(0,t.watch)(d,()=>void(0,t.nextTick)(S)),(0,t.watch)(u,()=>{d.value=null,(0,t.nextTick)(x)}),(0,t.watch)(()=>n.enabled,e=>{u.value=null,f.value=!e}),(0,t.onMounted)(()=>{n.editor.on(`selectionUpdate`,D),document.addEventListener(`mousedown`,ne,!0),document.addEventListener(`keydown`,re),window.addEventListener(`resize`,C),window.addEventListener(`scroll`,C,!0)}),(0,t.onBeforeUnmount)(()=>{_?.disconnect(),v?.disconnect(),y?.disconnect(),n.editor.off(`selectionUpdate`,D),document.removeEventListener(`mousedown`,ne,!0),document.removeEventListener(`keydown`,re),window.removeEventListener(`resize`,C),window.removeEventListener(`scroll`,C,!0)});let ie=()=>document.body,O={strategy:`fixed`,placement:`top`,offset:8,flip:{padding:8},shift:{padding:8,crossAxis:!0},onHide:()=>{u.value=null},onUpdate:x};return(n,a)=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.BubbleMenu),{class:`norio-office-rich-text-bubble`,"plugin-key":`textSelectionBubbleMenu`,editor:e.editor,"should-show":w,"append-to":ie,options:O,"update-delay":0},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{ref_key:`menuRef`,ref:i,class:`norio-office-rich-text-bubble__content`},[(0,t.createElementVNode)(`div`,On,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.actions,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-text-bubble__button`,{"norio-office-rich-text-bubble__button--active":e.active||u.value===e.key,"norio-office-rich-text-bubble__button--select":e.options||e.setColor}]),disabled:e.disabled,title:e.label,"aria-label":e.label,"aria-pressed":e.options||e.setColor?void 0:!!e.active,"aria-expanded":e.options||e.setColor?u.value===e.key:void 0,onMousedown:a[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>T(e,t)},[e.setColor?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,An,[e.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.icon,size:16,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,jn,`A`)),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:e.color})},null,4)])):e.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:e.icon,size:16,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:(0,t.normalizeClass)({"norio-office-rich-toolbar__text-icon--strike":e.key===`strike`})},(0,t.toDisplayString)(e.text),3)),e.options||e.setColor?((0,t.openBlock)(),(0,t.createBlock)(k,{key:3,name:`xiangxiajiantou`,size:10,color:`#9aa4b2`,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],42,kn))),128))]),h.value&&(h.value.options||h.value.setColor)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`panelRef`,ref:o,class:`norio-office-rich-text-bubble__panel`,style:(0,t.normalizeStyle)(p.value),role:`dialog`,"aria-label":h.value.label,onMousedown:a[2]||=(0,t.withModifiers)(()=>{},[`stop`])},[h.value.setColor?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:0,color:h.value.color||h.value.defaultColor,"default-color":h.value.defaultColor,"recent-colors":h.value.recentColors||[],onChange:h.value.setColor},null,8,[`color`,`default-color`,`recent-colors`,`onChange`])):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(h.value.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-text-bubble__option`,{"norio-office-rich-text-bubble__option--active":e.active,"norio-office-rich-text-bubble__option--divider":e.divider}]),disabled:e.disabled,"aria-label":e.label,"aria-pressed":!!e.active,"aria-expanded":e.options?d.value===e.key:void 0,style:(0,t.normalizeStyle)(e.fontFamily?{fontFamily:e.fontFamily}:void 0),onMousedown:a[1]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:t=>ee(e,t),onClick:t=>te(e,t)},[e.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.icon,size:16,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Pn,(0,t.toDisplayString)(e.text),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,Fn,(0,t.toDisplayString)(e.label),1),e.options?((0,t.openBlock)(),(0,t.createBlock)(k,{key:2,class:`norio-office-rich-text-bubble__option-arrow`,name:`youjiantou`,size:12,color:`currentColor`,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0),e.active?((0,t.openBlock)(),(0,t.createBlock)(an,{key:3,name:`duihao`,size:14,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],46,Nn))),128))],44,Mn)):(0,t.createCommentVNode)(``,!0),g.value?.options?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`nestedPanelRef`,ref:s,class:`norio-office-rich-text-bubble__panel norio-office-rich-text-bubble__panel--nested`,style:(0,t.normalizeStyle)(m.value),role:`dialog`,"aria-label":g.value.label,onMousedown:a[4]||=(0,t.withModifiers)(()=>{},[`stop`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(g.value.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-text-bubble__option`,{"norio-office-rich-text-bubble__option--active":e.active}]),disabled:e.disabled,"aria-label":e.label,"aria-pressed":!!e.active,onMousedown:a[3]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>E(e)},[(0,t.createElementVNode)(`span`,Rn,(0,t.toDisplayString)(e.text),1),(0,t.createElementVNode)(`span`,zn,(0,t.toDisplayString)(e.label),1),e.active?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:14,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],42,Ln))),128))],44,In)):(0,t.createCommentVNode)(``,!0)],512)]),_:1},8,[`editor`])),[[t.vShow,e.enabled&&!f.value]])}}),Vn=(0,t.defineComponent)({__name:`ScrollArea`,props:{maxHeight:{default:``},className:{default:``}},setup(e){let n=e;return(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`norio-office-rich-scroll-area`,e.className]),style:(0,t.normalizeStyle)(n.maxHeight?{maxHeight:n.maxHeight}:void 0)},[(0,t.renderSlot)(r.$slots,`default`)],6))}}),Hn=[{id:`recent`,icon:`🕘`,label:`最近`},{id:`smileys`,icon:`😀`,label:`表情`},{id:`people`,icon:`🙌`,label:`人物`},{id:`animals`,icon:`🐻`,label:`动物`},{id:`food`,icon:`🍎`,label:`食物`},{id:`travel`,icon:`🌍`,label:`出行`},{id:`objects`,icon:`💡`,label:`物品`},{id:`symbols`,icon:`✅`,label:`符号`}],Un=Object.entries({smileys:[[`😀`,`开心`,[`happy`,`smile`]],[`😃`,`大笑`,[`happy`,`joy`]],[`😄`,`咧嘴笑`,[`grin`,`joy`]],[`😁`,`露齿笑`,[`teeth`,`smile`]],[`😆`,`眯眼笑`,[`laugh`]],[`😅`,`汗笑`,[`relief`]],[`😂`,`笑哭`,[`lol`,`cry`]],[`🤣`,`打滚笑`,[`lol`,`laugh`]],[`😊`,`微笑`,[`blush`]],[`😇`,`天使笑`,[`angel`]],[`🙂`,`轻笑`,[`smile`]],[`🙃`,`倒脸`,[`flip`]],[`😉`,`眨眼`,[`wink`]],[`😌`,`放松`,[`calm`]],[`😍`,`爱心眼`,[`love`]],[`🥰`,`喜爱`,[`hearts`]],[`😘`,`飞吻`,[`kiss`]],[`😗`,`亲亲`,[`kiss`]],[`😋`,`馋`,[`yummy`]],[`😎`,`酷`,[`cool`]],[`🤩`,`崇拜`,[`star`]],[`🥳`,`庆祝`,[`party`]],[`😏`,`得意`,[`smirk`]],[`😴`,`困`,[`sleep`]],[`😪`,`想睡`,[`sleepy`]],[`🤤`,`流口水`,[`drool`]],[`😭`,`大哭`,[`cry`,`sad`]],[`😤`,`生气`,[`angry`]],[`😡`,`愤怒`,[`mad`]],[`😱`,`震惊`,[`shock`]],[`🥶`,`冷`,[`cold`]],[`🥵`,`热`,[`hot`]],[`🤔`,`思考`,[`think`]],[`🫡`,`致意`,[`salute`]],[`🤗`,`拥抱`,[`hug`]],[`🤭`,`偷笑`,[`giggle`]],[`🤫`,`嘘`,[`quiet`]],[`🤥`,`说谎`,[`lie`]],[`😷`,`口罩`,[`sick`]],[`🤒`,`发烧`,[`sick`]]],people:[[`👍`,`点赞`,[`ok`,`thumb`]],[`👎`,`点踩`,[`thumb`]],[`👌`,`好`,[`ok`]],[`👋`,`挥手`,[`hello`]],[`👏`,`鼓掌`,[`clap`]],[`🙌`,`举手`,[`hooray`]],[`👐`,`展开双手`,[`open`]],[`🤝`,`握手`,[`deal`]],[`🙏`,`祈祷`,[`thanks`]],[`💪`,`力量`,[`strong`]],[`✍️`,`书写`,[`write`]],[`🫶`,`比心`,[`love`]],[`🤟`,`爱你手势`,[`love`]],[`🤘`,`摇滚`,[`rock`]],[`🤞`,`交叉手指`,[`luck`]],[`🫰`,`捏手`,[`snap`]],[`🫵`,`指向你`,[`point`]],[`👀`,`眼睛`,[`look`]],[`🧠`,`大脑`,[`brain`]],[`💅`,`美甲`,[`nail`]],[`🧑💻`,`开发者`,[`coder`]],[`👨💻`,`男程序员`,[`coder`]],[`👩💻`,`女程序员`,[`coder`]],[`🧑🏫`,`老师`,[`teacher`]],[`🧑⚕️`,`医生`,[`doctor`]],[`🧑🚀`,`宇航员`,[`space`]],[`🧑🎨`,`艺术家`,[`art`]],[`🧑🍳`,`厨师`,[`cook`]],[`🕺`,`跳舞`,[`dance`]],[`💃`,`舞者`,[`dance`]],[`🧘`,`冥想`,[`meditate`]],[`🏃`,`跑步`,[`run`]],[`🚶`,`步行`,[`walk`]],[`🙋`,`举手提问`,[`question`]],[`🙇`,`鞠躬`,[`bow`]],[`🤦`,`捂脸`,[`facepalm`]],[`🤷`,`耸肩`,[`shrug`]],[`🙅`,`拒绝`,[`no`]],[`🙆`,`同意`,[`ok`]],[`💁`,`提示`,[`guide`]]],animals:[[`🐶`,`小狗`,[`dog`]],[`🐱`,`小猫`,[`cat`]],[`🐭`,`老鼠`,[`mouse`]],[`🐹`,`仓鼠`,[`hamster`]],[`🐰`,`兔子`,[`rabbit`]],[`🦊`,`狐狸`,[`fox`]],[`🐻`,`熊`,[`bear`]],[`🐼`,`熊猫`,[`panda`]],[`🐨`,`考拉`,[`koala`]],[`🐯`,`老虎`,[`tiger`]],[`🦁`,`狮子`,[`lion`]],[`🐮`,`奶牛`,[`cow`]],[`🐷`,`猪`,[`pig`]],[`🐸`,`青蛙`,[`frog`]],[`🐵`,`猴子`,[`monkey`]],[`🐔`,`小鸡`,[`chicken`]],[`🐧`,`企鹅`,[`penguin`]],[`🐦`,`小鸟`,[`bird`]],[`🦄`,`独角兽`,[`unicorn`]],[`🐝`,`蜜蜂`,[`bee`]],[`🦋`,`蝴蝶`,[`butterfly`]],[`🐢`,`乌龟`,[`turtle`]],[`🐬`,`海豚`,[`dolphin`]],[`🐳`,`鲸鱼`,[`whale`]],[`🐙`,`章鱼`,[`octopus`]],[`🦖`,`恐龙`,[`dinosaur`]],[`🌸`,`樱花`,[`flower`]],[`🌼`,`小花`,[`flower`]],[`🌻`,`向日葵`,[`flower`]],[`🌷`,`郁金香`,[`flower`]],[`🌵`,`仙人掌`,[`plant`]],[`🌲`,`松树`,[`tree`]],[`🌳`,`大树`,[`tree`]],[`🍀`,`四叶草`,[`lucky`]],[`🌴`,`棕榈树`,[`tree`]],[`🌈`,`彩虹`,[`rainbow`]],[`☀️`,`太阳`,[`sun`]],[`🌙`,`月亮`,[`moon`]],[`⭐`,`星星`,[`star`]],[`⛄`,`雪人`,[`snow`]]],food:[[`🍎`,`苹果`,[`apple`]],[`🍐`,`梨`,[`pear`]],[`🍊`,`橘子`,[`orange`]],[`🍋`,`柠檬`,[`lemon`]],[`🍌`,`香蕉`,[`banana`]],[`🍉`,`西瓜`,[`watermelon`]],[`🍇`,`葡萄`,[`grape`]],[`🍓`,`草莓`,[`strawberry`]],[`🫐`,`蓝莓`,[`berry`]],[`🍒`,`樱桃`,[`cherry`]],[`🍑`,`桃子`,[`peach`]],[`🥭`,`芒果`,[`mango`]],[`🍍`,`菠萝`,[`pineapple`]],[`🥥`,`椰子`,[`coconut`]],[`🥝`,`猕猴桃`,[`kiwi`]],[`🍅`,`番茄`,[`tomato`]],[`🥑`,`牛油果`,[`avocado`]],[`🥦`,`西兰花`,[`broccoli`]],[`🥕`,`胡萝卜`,[`carrot`]],[`🌽`,`玉米`,[`corn`]],[`🍞`,`面包`,[`bread`]],[`🥐`,`牛角包`,[`croissant`]],[`🥨`,`椒盐卷饼`,[`pretzel`]],[`🧀`,`奶酪`,[`cheese`]],[`🍳`,`煎蛋`,[`egg`]],[`🥞`,`松饼`,[`pancake`]],[`🍔`,`汉堡`,[`burger`]],[`🍟`,`薯条`,[`fries`]],[`🍕`,`披萨`,[`pizza`]],[`🌭`,`热狗`,[`hotdog`]],[`🍿`,`爆米花`,[`popcorn`]],[`🍣`,`寿司`,[`sushi`]],[`🍜`,`拉面`,[`noodle`]],[`🍩`,`甜甜圈`,[`donut`]],[`🍪`,`曲奇`,[`cookie`]],[`🎂`,`蛋糕`,[`cake`]],[`🍰`,`切块蛋糕`,[`cake`]],[`🍫`,`巧克力`,[`chocolate`]],[`🍭`,`棒棒糖`,[`candy`]],[`☕`,`咖啡`,[`coffee`]]],travel:[[`🚗`,`汽车`,[`car`]],[`🚕`,`出租车`,[`taxi`]],[`🚌`,`公交车`,[`bus`]],[`🚎`,`无轨电车`,[`bus`]],[`🏎️`,`赛车`,[`car`]],[`🚓`,`警车`,[`police`]],[`🚑`,`救护车`,[`ambulance`]],[`🚒`,`消防车`,[`fire`]],[`🚚`,`货车`,[`truck`]],[`🚲`,`自行车`,[`bike`]],[`🛵`,`小踏板`,[`scooter`]],[`✈️`,`飞机`,[`plane`]],[`🚀`,`火箭`,[`rocket`]],[`🚁`,`直升机`,[`helicopter`]],[`⛵`,`帆船`,[`boat`]],[`🚤`,`快艇`,[`boat`]],[`🚢`,`轮船`,[`ship`]],[`🚆`,`火车`,[`train`]],[`🚄`,`高铁`,[`train`]],[`🚇`,`地铁`,[`metro`]],[`🏠`,`房子`,[`home`]],[`🏢`,`办公楼`,[`office`]],[`🏫`,`学校`,[`school`]],[`🏥`,`医院`,[`hospital`]],[`🏨`,`酒店`,[`hotel`]],[`🏖️`,`海滩`,[`beach`]],[`🏝️`,`岛屿`,[`island`]],[`🗽`,`自由女神`,[`usa`]],[`🗼`,`铁塔`,[`tower`]],[`⛩️`,`鸟居`,[`japan`]],[`🏞️`,`国家公园`,[`park`]],[`🌋`,`火山`,[`volcano`]],[`🗺️`,`地图`,[`map`]],[`🌍`,`地球`,[`world`]],[`🌤️`,`晴天`,[`weather`]],[`🌧️`,`下雨`,[`rain`]],[`⛈️`,`雷暴`,[`storm`]],[`🌊`,`海浪`,[`wave`]],[`🌌`,`星空`,[`night`]],[`🧭`,`指南针`,[`compass`]]],objects:[[`💡`,`灯泡`,[`idea`]],[`🔦`,`手电筒`,[`light`]],[`🕯️`,`蜡烛`,[`candle`]],[`📌`,`图钉`,[`pin`]],[`📎`,`回形针`,[`paperclip`]],[`✂️`,`剪刀`,[`scissors`]],[`🖊️`,`圆珠笔`,[`pen`]],[`🖋️`,`钢笔`,[`pen`]],[`✏️`,`铅笔`,[`pencil`]],[`📝`,`笔记`,[`note`]],[`📚`,`书籍`,[`books`]],[`📖`,`打开的书`,[`book`]],[`💻`,`电脑`,[`computer`]],[`⌨️`,`键盘`,[`keyboard`]],[`🖥️`,`显示器`,[`screen`]],[`🖨️`,`打印机`,[`printer`]],[`📱`,`手机`,[`phone`]],[`☎️`,`电话`,[`phone`]],[`📷`,`相机`,[`camera`]],[`🎥`,`摄影机`,[`video`]],[`🎧`,`耳机`,[`music`]],[`🎤`,`麦克风`,[`music`]],[`⌚`,`手表`,[`watch`]],[`⏰`,`闹钟`,[`alarm`]],[`🔋`,`电池`,[`battery`]],[`🔌`,`插头`,[`plug`]],[`🧲`,`磁铁`,[`magnet`]],[`🔑`,`钥匙`,[`key`]],[`🧰`,`工具箱`,[`tool`]],[`💎`,`钻石`,[`gem`]],[`🎁`,`礼物`,[`gift`]],[`🛒`,`购物车`,[`shop`]],[`🪑`,`椅子`,[`chair`]],[`🛏️`,`床`,[`bed`]],[`🚪`,`门`,[`door`]],[`🪞`,`镜子`,[`mirror`]],[`🧸`,`玩具熊`,[`toy`]],[`🪄`,`魔法棒`,[`magic`]],[`🏆`,`奖杯`,[`trophy`]],[`📦`,`箱子`,[`box`]]],symbols:[[`❤️`,`红心`,[`heart`]],[`🧡`,`橙心`,[`heart`]],[`💛`,`黄心`,[`heart`]],[`💚`,`绿心`,[`heart`]],[`💙`,`蓝心`,[`heart`]],[`💜`,`紫心`,[`heart`]],[`🖤`,`黑心`,[`heart`]],[`🤍`,`白心`,[`heart`]],[`🤎`,`棕心`,[`heart`]],[`💔`,`心碎`,[`heart`]],[`❣️`,`爱心感叹号`,[`heart`]],[`💕`,`双心`,[`love`]],[`💞`,`旋转爱心`,[`love`]],[`💯`,`一百分`,[`score`]],[`✅`,`完成`,[`done`]],[`☑️`,`已勾选`,[`check`]],[`✔️`,`对勾`,[`check`]],[`❌`,`叉号`,[`close`]],[`⭕`,`圆圈`,[`circle`]],[`⚠️`,`警告`,[`warning`]],[`🚫`,`禁止`,[`forbid`]],[`❓`,`问号`,[`question`]],[`❗`,`感叹号`,[`important`]],[`💢`,`爆炸怒气`,[`angry`]],[`♻️`,`循环`,[`recycle`]],[`🔔`,`铃铛`,[`bell`]],[`🎵`,`音符`,[`music`]],[`🎶`,`双音符`,[`music`]],[`➕`,`加号`,[`plus`]],[`➖`,`减号`,[`minus`]],[`✖️`,`乘号`,[`times`]],[`➗`,`除号`,[`divide`]],[`™️`,`商标`,[`tm`]],[`©️`,`版权`,[`copyright`]],[`®️`,`注册`,[`register`]],[`🔞`,`18禁`,[`adult`]],[`♾️`,`无限`,[`infinity`]],[`🈲`,`禁止`,[`cn`]],[`🈵`,`满`,[`cn`]],[`🉑`,`可`,[`cn`]]]}).flatMap(([e,t])=>t.map(([t,n,r=[]])=>({emoji:t,label:n,keywords:r,category:e}))),Wn={class:`norio-office-rich-emoji-picker-panel`},Gn={class:`norio-office-rich-emoji-picker-panel__section-title`},Kn=[`title`,`onClick`],qn={key:1,class:`norio-office-rich-emoji-picker-panel__empty`},Jn={class:`norio-office-rich-emoji-picker-panel__footer`},Yn=[`title`,`onClick`],Xn={class:`norio-office-rich-emoji-picker-panel__tab-icon`,"aria-hidden":`true`},Zn=`office-word:recent-emojis`,Qn=10,$n=(0,t.defineComponent)({__name:`EmojiPickerPanel`,props:{selectedEmoji:{default:null}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(``),o=(0,t.ref)(`recent`),s=(0,t.ref)([]),c=new Map(Hn.map(e=>[e.id,e.label])),l=Hn.filter(e=>e.id!==`recent`),u=(0,t.computed)(()=>a.value.trim().length>0),d=(0,t.computed)(()=>s.value.map(e=>Un.find(t=>t.emoji===e)).filter(e=>!!e).slice(0,Qn)),f=(0,t.computed)(()=>{let e=a.value.trim().toLowerCase();return e?Un.filter(t=>[t.label,t.emoji,...t.keywords].join(` `).toLowerCase().includes(e)):[]}),p=(0,t.computed)(()=>{if(u.value)return[{key:`search`,title:`搜索结果`,items:f.value}];if(o.value===`recent`){let e=[];d.value.length&&e.push({key:`recent-top`,title:`最近`,items:d.value});for(let t of l){let n=Un.filter(e=>e.category===t.id);n.length&&e.push({key:String(t.id),title:t.label,items:n})}return e}return[{key:String(o.value),title:c.get(o.value)??`表情`,items:Un.filter(e=>e.category===o.value)}]});function m(){if(!(typeof window>`u`))try{let e=window.localStorage.getItem(Zn);if(!e)return;let t=JSON.parse(e);Array.isArray(t)&&(s.value=t.filter(e=>typeof e==`string`).slice(0,Qn))}catch{s.value=[]}}function h(e){typeof window>`u`||window.localStorage.setItem(Zn,JSON.stringify(e))}function g(e){let t=[e,...s.value.filter(t=>t!==e)].slice(0,Qn);s.value=t,h(t)}function _(e){g(e),i(`select`,e)}function v(e){o.value=e}return(0,t.onMounted)(()=>{m()}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wn,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-emoji-picker-panel__body`},{default:(0,t.withCtx)(()=>[p.value.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(p.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{key:e.key,class:`norio-office-rich-emoji-picker-panel__section`},[(0,t.createElementVNode)(`div`,Gn,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`norio-office-rich-emoji-picker-panel__grid`,{"norio-office-rich-emoji-picker-panel__grid--recent":e.key===`recent-top`}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`${e.key}-${n.emoji}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-emoji-picker-panel__item`,{"norio-office-rich-emoji-picker-panel__item--active":r.selectedEmoji===n.emoji}]),title:n.label,onClick:e=>_(n.emoji)},(0,t.toDisplayString)(n.emoji),11,Kn))),128))],2)]))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qn,`没有找到匹配的表情`))]),_:1}),(0,t.createElementVNode)(`div`,Jn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Hn),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.id,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-emoji-picker-panel__tab`,{"norio-office-rich-emoji-picker-panel__tab--active":o.value===e.id}]),title:e.label,onClick:t=>v(e.id)},[(0,t.createElementVNode)(`span`,Xn,(0,t.toDisplayString)(e.icon),1)],10,Yn))),128))])]))}}),er=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},tr=er($n,[[`__scopeId`,`data-v-c9e9c49a`]]),A=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},nr=/([A-Z])/g,rr=e=>e.replace(nr,`-$1`).toLowerCase(),ir={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},ar=/[&><"']/g,or=e=>String(e).replace(ar,e=>ir[e]),sr=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?sr(e.body[0]):e:e.type===`font`?sr(e.body):e,cr=new Set([`mathord`,`textord`,`atom`]),lr=e=>cr.has(sr(e).type),ur=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},dr={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function fr(e){if(`default`in e)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return n.enum[0];switch(n){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{}}}var pr=class{constructor(e){e===void 0&&(e={}),e||={};for(var t of Object.keys(dr)){var n=dr[t],r=e[t];this[t]=r===void 0?fr(n):n.processor?n.processor(r):r}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new A(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ur(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},mr=class{constructor(e,t,n){this.id=e,this.size=t,this.cramped=n}sup(){return Cr[wr[this.id]]}sub(){return Cr[j[this.id]]}fracNum(){return Cr[Tr[this.id]]}fracDen(){return Cr[Er[this.id]]}cramp(){return Cr[Dr[this.id]]}text(){return Cr[Or[this.id]]}isTight(){return this.size>=2}},hr=0,gr=1,_r=2,vr=3,yr=4,br=5,xr=6,Sr=7,Cr=[new mr(hr,0,!1),new mr(gr,0,!0),new mr(_r,1,!1),new mr(vr,1,!0),new mr(yr,2,!1),new mr(br,2,!0),new mr(xr,3,!1),new mr(Sr,3,!0)],wr=[yr,br,yr,br,xr,Sr,xr,Sr],j=[br,br,br,br,Sr,Sr,Sr,Sr],Tr=[_r,vr,yr,br,xr,Sr,xr,Sr],Er=[vr,vr,br,br,Sr,Sr,Sr,Sr],Dr=[gr,gr,vr,vr,br,br,Sr,Sr],Or=[hr,gr,_r,vr,_r,vr,_r,vr],M={DISPLAY:Cr[hr],TEXT:Cr[_r],SCRIPT:Cr[yr],SCRIPTSCRIPT:Cr[xr]},kr=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Ar(e){for(var t=0;t<kr.length;t++)for(var n=kr[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var jr=[];kr.forEach(e=>e.blocks.forEach(e=>jr.push(...e)));function Mr(e){for(var t=0;t<jr.length;t+=2)if(e>=jr[t]&&e<=jr[t+1])return!0;return!1}var Nr=80,Pr=function(e,t){return`M95,`+(622+e+t)+`
|
|
257
|
+
<svg class="icon" style="width: 1em;height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M338.432 76.8h604.5184a56.832 56.832 0 0 1 0 113.664H338.432a56.832 56.832 0 0 1 0-113.664z m0 384h604.5184a56.832 56.832 0 0 1 0 113.664H338.432a56.832 56.832 0 1 1 0-113.664z m0 384h604.5184a56.832 56.832 0 0 1 0 113.664H338.432a56.832 56.832 0 1 1 0-113.664zM166.6048 51.2v204.8H109.9776V121.8048a172.032 172.032 0 0 1-26.5728 16.896A207.616 207.616 0 0 1 51.2 151.04v-45.8752c19.0464-6.144 33.792-13.4656 44.3904-22.1184 10.496-8.6016 18.7392-19.2 24.6784-31.8464h46.336z m52.4288 563.2H51.2c1.9456-16.5888 7.7824-32.1536 17.5104-46.7456 9.728-14.6432 28.0576-31.8464 54.8864-51.712 16.384-12.1856 26.88-21.504 31.4368-27.7504a31.0784 31.0784 0 0 0 6.8608-18.0224 20.992 20.992 0 0 0-6.7584-15.7184 23.7056 23.7056 0 0 0-17.1008-6.5536 23.8592 23.8592 0 0 0-17.5616 6.7584c-4.5056 4.5056-7.5776 12.3904-9.1136 23.7568L55.296 473.9072c2.2016-15.7696 6.2464-28.0576 12.1344-36.864 5.8368-8.8576 14.08-15.6672 24.7808-20.3776 10.6496-4.7104 25.4464-7.0656 44.288-7.0656 19.712 0 35.0208 2.2528 45.9264 6.7072 10.9568 4.5056 19.5584 11.4176 25.856 20.6848 6.2464 9.3184 9.4208 19.712 9.4208 31.232 0 12.288-3.584 24.064-10.8032 35.1744-7.168 11.2128-20.2752 23.4496-39.2192 36.864a414.72 414.72 0 0 0-22.5792 16.3328c-3.84 3.072-8.2944 7.168-13.4144 12.1856h87.3472V614.4z m-112.8448 239.872l-52.0192-9.3184c4.3008-16.5888 12.6464-29.2864 24.9344-38.0928 12.288-8.8576 29.696-13.2608 52.224-13.2608 25.8048 0 44.544 4.8128 56.064 14.4384a45.4144 45.4144 0 0 1 17.2544 36.352 40.6016 40.6016 0 0 1-7.0144 23.2448c-4.6592 6.912-11.776 13.0048-21.1968 18.2272 7.68 1.8944 13.5168 4.096 17.5616 6.656 6.5536 4.0448 11.6736 9.3696 15.36 15.9744 3.584 6.656 5.4272 14.5408 5.4272 23.7056 0 11.52-3.0208 22.5792-9.0624 33.1776a60.6208 60.6208 0 0 1-26.0608 24.4224c-11.3152 5.7344-26.2656 8.6016-44.6976 8.6016-18.0224 0-32.256-2.0992-42.6496-6.3488a63.6416 63.6416 0 0 1-25.6-18.5856 85.3504 85.3504 0 0 1-15.5136-30.72l54.9888-7.3216c2.1504 11.1104 5.5296 18.7904 10.0352 23.04a24.32 24.32 0 0 0 17.408 6.4512 23.8592 23.8592 0 0 0 18.432-8.1408 30.9248 30.9248 0 0 0 7.3216-21.6064c0-9.216-2.3552-16.2816-7.0656-21.3504a25.088 25.088 0 0 0-19.2512-7.5264c-4.3008 0-10.24 1.024-17.8176 3.2256l2.816-39.3216c3.072 0.4608 5.4272 0.6656 7.168 0.6656a25.088 25.088 0 0 0 18.0224-6.8608 21.8112 21.8112 0 0 0 7.2192-16.384 19.5584 19.5584 0 0 0-5.376-14.4384 20.0704 20.0704 0 0 0-14.848-5.376 21.8112 21.8112 0 0 0-15.872 5.8368c-3.9936 3.9424-6.7584 10.8032-8.192 20.6336z" fill="#5B65F5" /></svg>`,Xt=Object.assign({"./assets/icons/mono/To-do.svg":le,"./assets/icons/mono/add-circle.svg":ue,"./assets/icons/mono/add.svg":de,"./assets/icons/mono/attachment.svg":fe,"./assets/icons/mono/back.svg":pe,"./assets/icons/mono/beijingse.svg":me,"./assets/icons/mono/charutupian.svg":he,"./assets/icons/mono/close.svg":ge,"./assets/icons/mono/code.svg":_e,"./assets/icons/mono/codeblock.svg":ve,"./assets/icons/mono/comment.svg":ye,"./assets/icons/mono/cut.svg":be,"./assets/icons/mono/dagang.svg":xe,"./assets/icons/mono/days.svg":Se,"./assets/icons/mono/delete.svg":Ce,"./assets/icons/mono/drag.svg":we,"./assets/icons/mono/edit.svg":Te,"./assets/icons/mono/fangdayulan.svg":Ee,"./assets/icons/mono/folder.svg":De,"./assets/icons/mono/gaoliangkuai.svg":Oe,"./assets/icons/mono/h1.svg":ke,"./assets/icons/mono/h2.svg":Ae,"./assets/icons/mono/h3.svg":je,"./assets/icons/mono/h4.svg":Me,"./assets/icons/mono/h5.svg":Ne,"./assets/icons/mono/h6.svg":Pe,"./assets/icons/mono/huanyuan.svg":Fe,"./assets/icons/mono/image.svg":Ie,"./assets/icons/mono/jiacu.svg":Le,"./assets/icons/mono/jianshao.svg":Re,"./assets/icons/mono/juzhongduiqi.svg":ze,"./assets/icons/mono/kapianyulan.svg":Be,"./assets/icons/mono/link.svg":Ve,"./assets/icons/mono/mark.svg":He,"./assets/icons/mono/merge.svg":Ue,"./assets/icons/mono/quanpingzuidahua.svg":We,"./assets/icons/mono/redo.svg":Ge,"./assets/icons/mono/rubber.svg":Ke,"./assets/icons/mono/save.svg":qe,"./assets/icons/mono/shangbiao.svg":Je,"./assets/icons/mono/shangfangtianjia.svg":Ye,"./assets/icons/mono/shezhi.svg":Xe,"./assets/icons/mono/shixinxiangyou.svg":Ze,"./assets/icons/mono/smile.svg":Qe,"./assets/icons/mono/split.svg":$e,"./assets/icons/mono/switch.svg":et,"./assets/icons/mono/text-color.svg":tt,"./assets/icons/mono/text.svg":nt,"./assets/icons/mono/wenziyulan.svg":rt,"./assets/icons/mono/wuxuliebiao.svg":it,"./assets/icons/mono/xiabiao.svg":at,"./assets/icons/mono/xiafangtianjia.svg":ot,"./assets/icons/mono/xiahuaxian.svg":st,"./assets/icons/mono/xiangshangcharu.svg":ct,"./assets/icons/mono/xiangxiacharujilu-copy.svg":lt,"./assets/icons/mono/xiangxiajiantou.svg":ut,"./assets/icons/mono/xiangyoucharu.svg":dt,"./assets/icons/mono/xiangzuocharu.svg":ft,"./assets/icons/mono/xieti.svg":pt,"./assets/icons/mono/xuanzhuan.svg":mt,"./assets/icons/mono/yanse.svg":ht,"./assets/icons/mono/yanshi.svg":gt,"./assets/icons/mono/yinyong.svg":_t,"./assets/icons/mono/youduiqi.svg":vt,"./assets/icons/mono/youjiantou.svg":yt,"./assets/icons/mono/yousuojin.svg":bt,"./assets/icons/mono/youxuliebiao.svg":xt,"./assets/icons/mono/yulan.svg":St,"./assets/icons/mono/zhuti.svg":Ct,"./assets/icons/mono/zuoduiqi.svg":wt,"./assets/icons/mono/zuojiantou.svg":Tt,"./assets/icons/mono/zuosuojin.svg":Et}),Zt=Object.assign({"./assets/icons/color/biaoge.svg":Dt,"./assets/icons/color/daimakuai.svg":Ot,"./assets/icons/color/daojishi.svg":kt,"./assets/icons/color/dayin.svg":At,"./assets/icons/color/duihao.svg":jt,"./assets/icons/color/fengexian.svg":Mt,"./assets/icons/color/fenlan.svg":Nt,"./assets/icons/color/file.svg":Pt,"./assets/icons/color/gaoliangkuai1.svg":Ft,"./assets/icons/color/jisuangongshi.svg":It,"./assets/icons/color/markdown.svg":Lt,"./assets/icons/color/pdfdaochu.svg":Rt,"./assets/icons/color/renwu.svg":zt,"./assets/icons/color/riqi.svg":Bt,"./assets/icons/color/shipin.svg":Vt,"./assets/icons/color/tupian.svg":Ht,"./assets/icons/color/tupiandaochu.svg":Ut,"./assets/icons/color/wangye.svg":Wt,"./assets/icons/color/wenjianjia.svg":Gt,"./assets/icons/color/wuxuliebiao.svg":Kt,"./assets/icons/color/xiazai.svg":qt,"./assets/icons/color/yinyong.svg":Jt,"./assets/icons/color/youxuliebiao.svg":Yt});function Qt(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.split(`/`).pop()?.replace(/\.svg$/i,``)??e,String(t)]))}var $t=Qt(Xt),en=Qt(Zt),tn=Object.keys($t).sort(),nn=Object.keys(en).sort(),rn=[`data-name`,`title`,`innerHTML`],an=(0,t.defineComponent)({__name:`OfficeColorIcon`,props:{name:{},size:{default:22},backgroundColor:{default:`#ffffff`}},setup(e){let n=e,r=(0,t.computed)(()=>en[n.name]??``),i=(0,t.computed)(()=>typeof n.size==`number`?`${n.size}px`:n.size),a=(0,t.computed)(()=>({width:i.value,height:i.value,backgroundColor:n.backgroundColor}));return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)([`norio-office-rich-icon`,{"norio-office-rich-icon--missing":!r.value}]),style:(0,t.normalizeStyle)(a.value),"data-name":e.name,title:r.value?void 0:`Unknown icon: ${e.name}`,innerHTML:r.value},null,14,rn))}}),on=[`data-name`,`title`,`innerHTML`],k=(0,t.defineComponent)({__name:`OfficeIcon`,props:{name:{},size:{default:22},color:{default:`currentColor`},backgroundColor:{default:`#ffffff`}},setup(e){let n=e,r=(0,t.computed)(()=>$t[n.name]??``),i=(0,t.computed)(()=>typeof n.size==`number`?`${n.size}px`:n.size),a=(0,t.computed)(()=>({width:i.value,height:i.value,color:n.color,backgroundColor:n.backgroundColor}));return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{class:(0,t.normalizeClass)([`norio-office-rich-icon`,{"norio-office-rich-icon--missing":!r.value}]),style:(0,t.normalizeStyle)(a.value),"data-name":e.name,title:r.value?void 0:`Unknown icon: ${e.name}`,innerHTML:r.value},null,14,on))}}),sn=[[`#FFFFFF`,`#16181D`,`#4C5563`,`#2F6BFF`,`#1DA1F2`,`#19B36B`,`#F2573F`,`#FF8B24`,`#F7C200`,`#9333EA`],[`#F4F5F7`,`#D9DEE7`,`#C2C9D6`,`#DDE9FF`,`#D6EFFB`,`#D8F4E5`,`#FDE1DD`,`#FFE9D2`,`#FFF3C4`,`#F1D8FF`],[`#E6E8EC`,`#BFC6D4`,`#A8B1C4`,`#BED3FF`,`#B9E5F8`,`#B8ECD2`,`#F9C3BC`,`#FFD6AC`,`#FFE58C`,`#E4BCFF`],[`#D1D5DB`,`#9CA3AF`,`#6B7280`,`#8BB2FF`,`#86D3F3`,`#7DDEAB`,`#F69B8F`,`#FFBB79`,`#F9D45C`,`#CE97FF`],[`#9AA4B2`,`#4B5563`,`#374151`,`#4C7DFF`,`#2BAFE3`,`#22C55E`,`#EF6B59`,`#F59E0B`,`#D4A500`,`#A855F7`],[`#6B7280`,`#111827`,`#1F2937`,`#1D4ED8`,`#1473C5`,`#15803D`,`#DC2626`,`#C56A06`,`#A16207`,`#6B21A8`]],cn=[`#F04438`,`#FF8B24`,`#F7C200`,`#95D13C`,`#19B36B`,`#1DA1F2`,`#1677C8`,`#152A6A`,`#5A2CA0`],ln={class:`norio-office-rich-color-menu__section`},un={class:`norio-office-rich-color-menu__section`},dn={class:`norio-office-rich-color-menu__grid`},fn=[`aria-label`,`aria-pressed`,`title`,`onClick`],pn={class:`norio-office-rich-color-menu__section`},mn={class:`norio-office-rich-color-menu__row`},hn=[`aria-label`,`aria-pressed`,`title`,`onClick`],gn={class:`norio-office-rich-color-menu__section`},_n={class:`norio-office-rich-color-menu__row`},vn=[`aria-label`,`aria-pressed`,`title`,`onClick`],yn={class:`norio-office-rich-color-menu__footer`},bn=[`value`],xn=(0,t.defineComponent)({__name:`ColorPalettePanel`,props:{color:{},defaultColor:{},recentColors:{}},emits:[`change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null);function o(e){return r.color.toLowerCase()===e.toLowerCase()}function s(e){let t=e.target.value;t&&i(`change`,t)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`norio-office-rich-color-palette`,onMousedown:r[2]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createElementVNode)(`div`,ln,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current`,onClick:r[0]||=t=>i(`change`,e.defaultColor)},`默认`)]),(0,t.createElementVNode)(`div`,un,[(0,t.createElementVNode)(`div`,dn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(sn).flat(),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch`,{"norio-office-rich-color-menu__swatch--active":o(e)}]),style:(0,t.normalizeStyle)({backgroundColor:e}),"aria-label":e,"aria-pressed":o(e),title:e,onClick:t=>i(`change`,e)},null,14,fn))),128))])]),(0,t.createElementVNode)(`div`,pn,[r[3]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`标准色`,-1),(0,t.createElementVNode)(`div`,mn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(cn),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--compact`,{"norio-office-rich-color-menu__swatch--active":o(e)}]),style:(0,t.normalizeStyle)({backgroundColor:e}),"aria-label":`标准色 ${e}`,"aria-pressed":o(e),title:e,onClick:t=>i(`change`,e)},null,14,hn))),128))])]),(0,t.createElementVNode)(`div`,gn,[r[4]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`最近使用`,-1),(0,t.createElementVNode)(`div`,_n,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.recentColors.slice(0,10),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--recent`,{"norio-office-rich-color-menu__swatch--active":o(e)}]),style:(0,t.normalizeStyle)({backgroundColor:e}),"aria-label":`最近使用 ${e}`,"aria-pressed":o(e),title:e,onClick:t=>i(`change`,e)},null,14,vn))),128)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Math.max(0,10-e.recentColors.length),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e,class:`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--empty`}))),128))])]),(0,t.createElementVNode)(`div`,yn,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__more`,onClick:r[1]||=e=>a.value?.click()},[r[5]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-color-menu__rainbow`},null,-1),r[6]||=(0,t.createElementVNode)(`span`,null,`更多颜色`,-1),(0,t.createVNode)(k,{name:`shixinxiangyou`,size:10,color:`#9ca3af`,"background-color":`transparent`,class:`norio-office-rich-color-menu__arrow`})]),(0,t.createElementVNode)(`input`,{ref_key:`pickerRef`,ref:a,type:`color`,class:`norio-office-rich-color-menu__picker`,"aria-label":`更多颜色取色器`,value:e.color===`transparent`?e.defaultColor:e.color,onInput:s},null,40,bn)])],32))}}),Sn={class:`norio-office-rich-block-colors__label`},Cn={class:`norio-office-rich-block-colors__grid`},wn=[`aria-label`,`title`,`aria-pressed`,`onClick`],Tn={key:0},En=[`aria-label`,`aria-expanded`,`onMouseenter`,`onClick`],Dn=(0,t.defineComponent)({__name:`BlockColorPanel`,props:{textColor:{},backgroundColor:{},color:{},kind:{},label:{},presetColors:{},customKind:{},hoverEnabled:{type:Boolean}},emits:[`change`,`custom`,`reset`],setup(e,{emit:n}){let r=e,i=n,a=[null,`#9CA3AF`,`#DC2626`,`#F97316`,`#D4A500`,`#15803D`,`#2F6BFF`,`#9333EA`],o=[null,`#F4F5F7`,`#FDE1DD`,`#FFE9D2`,`#FFF3C4`,`#D8F4E5`,`#DDE9FF`,`#F1D8FF`,`#E6E8EC`,`#D9DEE7`,`#F9C3BC`,`#FFD6AC`,`#FFE58C`,`#B8ECD2`,`#BED3FF`,`#E4BCFF`],s=(0,t.computed)(()=>r.kind?[{key:r.kind,label:r.label||(r.kind===`border`?`边框颜色`:`填充颜色`),colors:r.presetColors?[null,...r.presetColors]:o}]:[{key:`text`,label:`字体颜色`,colors:a},{key:`background`,label:`背景颜色`,colors:o}]);function c(e){return r.kind&&r.label?`自定义${r.label}`:{text:`自定义文字颜色`,background:`自定义背景颜色`,border:`自定义边框颜色`,fill:`自定义填充颜色`}[e]}function l(e,t){return t||(e===`border`||e===`fill`?`无颜色`:`默认`)}function u(e,t){let n=e===`text`?r.textColor:e===`background`?r.backgroundColor:r.color;return(n===`transparent`?``:n??``).toLowerCase()===(t??``).toLowerCase()}function d(e,t){t.currentTarget instanceof HTMLElement&&i(`custom`,e,t.currentTarget)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`norio-office-rich-block-colors`,onMousedown:r[1]||=(0,t.withModifiers)(()=>{},[`prevent`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.value,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{key:n.key,class:`norio-office-rich-block-colors__section`},[(0,t.createElementVNode)(`div`,Sn,(0,t.toDisplayString)(n.label),1),(0,t.createElementVNode)(`div`,Cn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.colors,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e||`default`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-colors__swatch`,{"norio-office-rich-block-colors__swatch--active":u(n.key,e),"norio-office-rich-block-colors__swatch--clear":n.key!==`text`&&!e}]),style:(0,t.normalizeStyle)(n.key===`text`?{color:e||`#273142`}:{backgroundColor:e||`#ffffff`}),"aria-label":`${n.label} ${l(n.key,e)}`,title:`${n.label} ${l(n.key,e)}`,"aria-pressed":u(n.key,e),onClick:t=>i(`change`,n.key,e)},[n.key===`text`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Tn,`A`)):(0,t.createCommentVNode)(``,!0)],14,wn))),128))]),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-colors__custom`,{"norio-office-rich-block-side-menu__item--active":e.customKind===n.key}]),"aria-label":c(n.key),"aria-expanded":e.customKind===n.key,onMouseenter:t=>e.hoverEnabled&&d(n.key,t),onClick:e=>d(n.key,e)},[(0,t.createVNode)(k,{name:`yanse`,size:16,color:`currentColor`,"background-color":`transparent`}),r[2]||=(0,t.createElementVNode)(`span`,null,`自定义颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:12,color:`#9aa4b2`,"background-color":`transparent`})],42,En)]))),128)),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current norio-office-rich-block-colors__reset`,onClick:r[0]||=e=>i(`reset`)},`恢复默认`)],32))}}),On={class:`norio-office-rich-text-bubble__toolbar`,role:`toolbar`,"aria-label":`文字格式`},kn=[`disabled`,`title`,`aria-label`,`aria-pressed`,`aria-expanded`,`onClick`],An={key:0,class:`norio-office-rich-toolbar__color-trigger`},jn={key:1},Mn=[`aria-label`],Nn=[`disabled`,`aria-label`,`aria-pressed`,`aria-expanded`,`onMouseenter`,`onClick`],Pn={key:1,class:`norio-office-rich-text-bubble__option-symbol`},Fn={class:`norio-office-rich-text-bubble__option-label`},In=[`aria-label`],Ln=[`disabled`,`aria-label`,`aria-pressed`,`onClick`],Rn={class:`norio-office-rich-text-bubble__option-symbol`},zn={class:`norio-office-rich-text-bubble__option-label`},Bn=(0,t.defineComponent)({__name:`TextSelectionMenu`,props:{editor:{},actions:{},enabled:{type:Boolean},scope:{},getReferencedVirtualElement:{type:Function}},emits:[`visibility-change`],setup(e,{emit:n}){let i=e,o=i.scope===`table`?`tableBubbleMenu`:`textSelectionBubbleMenu`,c=n,l=(0,t.ref)(null),u=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.ref)(null),p=(0,t.ref)(null),m=(0,t.ref)(null),h=(0,t.ref)(null),g=(0,t.ref)(!1),_=(0,t.ref)(!1),v=(0,t.ref)(!1),y=(0,t.ref)(!1),b=(0,t.computed)(()=>_.value||v.value),x=(0,t.computed)(()=>i.enabled&&!g.value&&!b.value&&y.value),S=(0,t.ref)({}),C=(0,t.ref)({}),w=(0,t.computed)(()=>i.actions.find(e=>e.key===m.value)),T=(0,t.computed)(()=>w.value?.options?.find(e=>e.key===h.value)),E=null,ee=null,te=null,D=i.editor.state.selection;function ne(){let e=p.value?.getBoundingClientRect(),t=u.value;if(!e||!t)return;let n=Math.min(w.value?.setColor?264:232,window.innerWidth-16),r=Math.min(t.scrollHeight,window.innerHeight-16),i=e.bottom+8+r<=window.innerHeight-8?e.bottom+8:Math.max(8,e.top-r-8);S.value={position:`fixed`,width:`${n}px`,left:`${Math.max(8,Math.min(e.left,window.innerWidth-n-8))}px`,top:`${i}px`,maxHeight:`${window.innerHeight-16}px`},re()}function re(){let e=f.value?.getBoundingClientRect(),t=d.value;if(!e||!t)return;let n=Math.min(184,window.innerWidth-16),r=Math.min(t.scrollHeight,window.innerHeight-16),i=e.right+4+n<=window.innerWidth-8,a=e.left-n-4>=8,o=i?e.right+4:a?e.left-n-4:Math.max(8,Math.min(e.left,window.innerWidth-n-8)),s=i||a?e.top:e.bottom+4+r<=window.innerHeight-8?e.bottom+4:e.top-r-4,c=Math.max(8,Math.min(s,window.innerHeight-r-8));C.value={position:`fixed`,width:`${n}px`,left:`${o}px`,top:`${c}px`,maxHeight:`${window.innerHeight-16}px`}}function ie(){!i.editor.isDestroyed&&!i.editor.state.selection.empty&&!g.value&&l.value?.isConnected&&i.editor.view.dispatch(i.editor.state.tr.setMeta(o,`updatePosition`)),ne()}function O({view:e,state:t,element:n}){t.selection.eq(D)||(g.value=!1);let{$from:r,$to:o}=t.selection,c=t.selection instanceof s.CellSelection||t.selection instanceof a.NodeSelection&&t.selection.node.type.name===`table`||t.selection instanceof a.TextSelection&&Array.from({length:r.depth},(e,t)=>t+1).some(e=>r.node(e).type.name===`table`&&o.depth>=e&&r.start(e)===o.start(e)),l=t.selection instanceof a.TextSelection&&!t.selection.empty&&!!t.doc.textBetween(t.selection.from,t.selection.to).length,u=i.scope===`table`?c&&!t.selection.empty:l&&!c;return i.enabled&&!g.value&&i.editor.isEditable&&u&&(e.hasFocus()||n.contains(document.activeElement))}function ae(e,t){e.disabled||(e.options||e.setColor?(p.value=t.currentTarget,m.value=m.value===e.key?null:e.key):(m.value=null,e.run?.()))}function oe(e){e.disabled||(e.run?.(),m.value!==`alignment`&&(m.value=null))}function se(e,t){h.value=!e.disabled&&e.options?e.key:null,f.value=h.value?t.currentTarget:null}function ce(e,t){e.options?se(e,t):oe(e)}function le(){let e=i.editor.state.selection;e.eq(D)||(g.value=!1,m.value=null),D=e}function ue(e){e.target instanceof Node&&!l.value?.contains(e.target)&&(m.value=null,g.value=!0,e.button===0&&i.editor.view.dom.contains(e.target)&&(_.value=!0))}function de(){_.value=!1}function fe(e){(!e.shiftKey||e.key===`Shift`)&&(v.value=!1)}function pe(){_.value=!1,v.value=!1}function me(e){e.target instanceof Node&&i.editor.view.dom.contains(e.target)&&(e.shiftKey&&[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`].includes(e.key)||(e.ctrlKey||e.metaKey)&&e.key.toLowerCase()===`a`)&&(v.value=!0),!(e.key!==`Escape`||!x.value||!l.value?.isConnected)&&(e.preventDefault(),h.value?h.value=null:m.value?m.value=null:g.value=!0,i.editor.commands.focus())}(0,t.watch)(u,e=>{E?.disconnect(),E=null,e&&(ne(),E=new ResizeObserver(ne),E.observe(e))},{flush:`post`}),(0,t.watch)(l,e=>{te?.disconnect(),te=null,e&&(te=new ResizeObserver(ie),te.observe(e))},{flush:`post`}),(0,t.watch)(d,e=>{ee?.disconnect(),ee=null,e&&(re(),ee=new ResizeObserver(re),ee.observe(e))},{flush:`post`}),(0,t.watch)(h,()=>void(0,t.nextTick)(re)),(0,t.watch)(m,()=>{h.value=null,(0,t.nextTick)(ne)}),(0,t.watch)(()=>i.enabled,e=>{m.value=null,g.value=!e}),(0,t.watch)(x,e=>c(`visibility-change`,e),{flush:`sync`}),(0,t.watch)(b,e=>{e||(0,t.nextTick)(ie)}),(0,t.onMounted)(()=>{i.editor.on(`selectionUpdate`,le),document.addEventListener(`pointerdown`,ue,!0),document.addEventListener(`pointerup`,de,!0),document.addEventListener(`pointercancel`,de,!0),document.addEventListener(`keydown`,me,!0),document.addEventListener(`keyup`,fe,!0),window.addEventListener(`blur`,pe),window.addEventListener(`resize`,ie),window.addEventListener(`scroll`,ie,!0)}),(0,t.onBeforeUnmount)(()=>{c(`visibility-change`,!1),E?.disconnect(),ee?.disconnect(),te?.disconnect(),i.editor.off(`selectionUpdate`,le),document.removeEventListener(`pointerdown`,ue,!0),document.removeEventListener(`pointerup`,de,!0),document.removeEventListener(`pointercancel`,de,!0),document.removeEventListener(`keydown`,me,!0),document.removeEventListener(`keyup`,fe,!0),window.removeEventListener(`blur`,pe),window.removeEventListener(`resize`,ie),window.removeEventListener(`scroll`,ie,!0)});let he=()=>document.body,ge={strategy:`fixed`,placement:`top`,offset:8,flip:{padding:8},shift:{padding:8,crossAxis:!0},onShow:()=>{y.value=!0},onHide:()=>{m.value=null,y.value=!1},onUpdate:ne};return(n,i)=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.BubbleMenu),{class:(0,t.normalizeClass)(e.scope===`table`?`norio-office-rich-table-bubble-menu`:`norio-office-rich-text-bubble`),"plugin-key":(0,t.unref)(o),editor:e.editor,"should-show":O,"append-to":he,options:ge,"update-delay":0,"get-referenced-virtual-element":e.getReferencedVirtualElement},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{ref_key:`menuRef`,ref:l,class:`norio-office-rich-text-bubble__content`},[(0,t.createElementVNode)(`div`,On,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.actions,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-text-bubble__button`,{"norio-office-rich-text-bubble__button--active":e.active||m.value===e.key,"norio-office-rich-text-bubble__button--select":e.options||e.setColor}]),disabled:e.disabled,title:e.label,"aria-label":e.label,"aria-pressed":e.options||e.setColor?void 0:!!e.active,"aria-expanded":e.options||e.setColor?m.value===e.key:void 0,onMousedown:i[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>ae(e,t)},[e.setColor?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,An,[e.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.icon,size:16,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,jn,`A`)),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:e.color})},null,4)])):e.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:e.icon,size:16,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:(0,t.normalizeClass)({"norio-office-rich-toolbar__text-icon--strike":e.key===`strike`})},(0,t.toDisplayString)(e.text),3)),e.options||e.setColor?((0,t.openBlock)(),(0,t.createBlock)(k,{key:3,name:`xiangxiajiantou`,size:10,color:`#9aa4b2`,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],42,kn))),128))]),(0,t.renderSlot)(n.$slots,`default`),w.value&&(w.value.options||w.value.setColor)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`panelRef`,ref:u,class:`norio-office-rich-text-bubble__panel`,style:(0,t.normalizeStyle)(S.value),role:`dialog`,"aria-label":w.value.label,onMousedown:i[2]||=(0,t.withModifiers)(()=>{},[`stop`])},[w.value.setColor?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:0,color:w.value.color||w.value.defaultColor,"default-color":w.value.defaultColor,"recent-colors":w.value.recentColors||[],onChange:w.value.setColor},null,8,[`color`,`default-color`,`recent-colors`,`onChange`])):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(w.value.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-text-bubble__option`,{"norio-office-rich-text-bubble__option--active":e.active,"norio-office-rich-text-bubble__option--divider":e.divider}]),disabled:e.disabled,"aria-label":e.label,"aria-pressed":!!e.active,"aria-expanded":e.options?h.value===e.key:void 0,style:(0,t.normalizeStyle)(e.fontFamily?{fontFamily:e.fontFamily}:void 0),onMousedown:i[1]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:t=>se(e,t),onClick:t=>ce(e,t)},[e.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.icon,size:16,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):e.text?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Pn,(0,t.toDisplayString)(e.text),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,Fn,(0,t.toDisplayString)(e.label),1),e.options?((0,t.openBlock)(),(0,t.createBlock)(k,{key:2,class:`norio-office-rich-text-bubble__option-arrow`,name:`youjiantou`,size:12,color:`currentColor`,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0),e.active?((0,t.openBlock)(),(0,t.createBlock)(an,{key:3,name:`duihao`,size:14,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],46,Nn))),128))],44,Mn)):(0,t.createCommentVNode)(``,!0),T.value?.options?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`nestedPanelRef`,ref:d,class:`norio-office-rich-text-bubble__panel norio-office-rich-text-bubble__panel--nested`,style:(0,t.normalizeStyle)(C.value),role:`dialog`,"aria-label":T.value.label,onMousedown:i[4]||=(0,t.withModifiers)(()=>{},[`stop`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(T.value.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-text-bubble__option`,{"norio-office-rich-text-bubble__option--active":e.active}]),disabled:e.disabled,"aria-label":e.label,"aria-pressed":!!e.active,onMousedown:i[3]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>oe(e)},[(0,t.createElementVNode)(`span`,Rn,(0,t.toDisplayString)(e.text),1),(0,t.createElementVNode)(`span`,zn,(0,t.toDisplayString)(e.label),1),e.active?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:14,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],42,Ln))),128))],44,In)):(0,t.createCommentVNode)(``,!0)],512)]),_:3},8,[`class`,`plugin-key`,`editor`,`get-referenced-virtual-element`])),[[t.vShow,e.enabled&&!g.value&&!b.value]])}}),Vn=(0,t.defineComponent)({__name:`ScrollArea`,props:{maxHeight:{default:``},className:{default:``}},setup(e){let n=e;return(r,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`norio-office-rich-scroll-area`,e.className]),style:(0,t.normalizeStyle)(n.maxHeight?{maxHeight:n.maxHeight}:void 0)},[(0,t.renderSlot)(r.$slots,`default`)],6))}}),Hn=[{id:`recent`,icon:`🕘`,label:`最近`},{id:`smileys`,icon:`😀`,label:`表情`},{id:`people`,icon:`🙌`,label:`人物`},{id:`animals`,icon:`🐻`,label:`动物`},{id:`food`,icon:`🍎`,label:`食物`},{id:`travel`,icon:`🌍`,label:`出行`},{id:`objects`,icon:`💡`,label:`物品`},{id:`symbols`,icon:`✅`,label:`符号`}],Un=Object.entries({smileys:[[`😀`,`开心`,[`happy`,`smile`]],[`😃`,`大笑`,[`happy`,`joy`]],[`😄`,`咧嘴笑`,[`grin`,`joy`]],[`😁`,`露齿笑`,[`teeth`,`smile`]],[`😆`,`眯眼笑`,[`laugh`]],[`😅`,`汗笑`,[`relief`]],[`😂`,`笑哭`,[`lol`,`cry`]],[`🤣`,`打滚笑`,[`lol`,`laugh`]],[`😊`,`微笑`,[`blush`]],[`😇`,`天使笑`,[`angel`]],[`🙂`,`轻笑`,[`smile`]],[`🙃`,`倒脸`,[`flip`]],[`😉`,`眨眼`,[`wink`]],[`😌`,`放松`,[`calm`]],[`😍`,`爱心眼`,[`love`]],[`🥰`,`喜爱`,[`hearts`]],[`😘`,`飞吻`,[`kiss`]],[`😗`,`亲亲`,[`kiss`]],[`😋`,`馋`,[`yummy`]],[`😎`,`酷`,[`cool`]],[`🤩`,`崇拜`,[`star`]],[`🥳`,`庆祝`,[`party`]],[`😏`,`得意`,[`smirk`]],[`😴`,`困`,[`sleep`]],[`😪`,`想睡`,[`sleepy`]],[`🤤`,`流口水`,[`drool`]],[`😭`,`大哭`,[`cry`,`sad`]],[`😤`,`生气`,[`angry`]],[`😡`,`愤怒`,[`mad`]],[`😱`,`震惊`,[`shock`]],[`🥶`,`冷`,[`cold`]],[`🥵`,`热`,[`hot`]],[`🤔`,`思考`,[`think`]],[`🫡`,`致意`,[`salute`]],[`🤗`,`拥抱`,[`hug`]],[`🤭`,`偷笑`,[`giggle`]],[`🤫`,`嘘`,[`quiet`]],[`🤥`,`说谎`,[`lie`]],[`😷`,`口罩`,[`sick`]],[`🤒`,`发烧`,[`sick`]]],people:[[`👍`,`点赞`,[`ok`,`thumb`]],[`👎`,`点踩`,[`thumb`]],[`👌`,`好`,[`ok`]],[`👋`,`挥手`,[`hello`]],[`👏`,`鼓掌`,[`clap`]],[`🙌`,`举手`,[`hooray`]],[`👐`,`展开双手`,[`open`]],[`🤝`,`握手`,[`deal`]],[`🙏`,`祈祷`,[`thanks`]],[`💪`,`力量`,[`strong`]],[`✍️`,`书写`,[`write`]],[`🫶`,`比心`,[`love`]],[`🤟`,`爱你手势`,[`love`]],[`🤘`,`摇滚`,[`rock`]],[`🤞`,`交叉手指`,[`luck`]],[`🫰`,`捏手`,[`snap`]],[`🫵`,`指向你`,[`point`]],[`👀`,`眼睛`,[`look`]],[`🧠`,`大脑`,[`brain`]],[`💅`,`美甲`,[`nail`]],[`🧑💻`,`开发者`,[`coder`]],[`👨💻`,`男程序员`,[`coder`]],[`👩💻`,`女程序员`,[`coder`]],[`🧑🏫`,`老师`,[`teacher`]],[`🧑⚕️`,`医生`,[`doctor`]],[`🧑🚀`,`宇航员`,[`space`]],[`🧑🎨`,`艺术家`,[`art`]],[`🧑🍳`,`厨师`,[`cook`]],[`🕺`,`跳舞`,[`dance`]],[`💃`,`舞者`,[`dance`]],[`🧘`,`冥想`,[`meditate`]],[`🏃`,`跑步`,[`run`]],[`🚶`,`步行`,[`walk`]],[`🙋`,`举手提问`,[`question`]],[`🙇`,`鞠躬`,[`bow`]],[`🤦`,`捂脸`,[`facepalm`]],[`🤷`,`耸肩`,[`shrug`]],[`🙅`,`拒绝`,[`no`]],[`🙆`,`同意`,[`ok`]],[`💁`,`提示`,[`guide`]]],animals:[[`🐶`,`小狗`,[`dog`]],[`🐱`,`小猫`,[`cat`]],[`🐭`,`老鼠`,[`mouse`]],[`🐹`,`仓鼠`,[`hamster`]],[`🐰`,`兔子`,[`rabbit`]],[`🦊`,`狐狸`,[`fox`]],[`🐻`,`熊`,[`bear`]],[`🐼`,`熊猫`,[`panda`]],[`🐨`,`考拉`,[`koala`]],[`🐯`,`老虎`,[`tiger`]],[`🦁`,`狮子`,[`lion`]],[`🐮`,`奶牛`,[`cow`]],[`🐷`,`猪`,[`pig`]],[`🐸`,`青蛙`,[`frog`]],[`🐵`,`猴子`,[`monkey`]],[`🐔`,`小鸡`,[`chicken`]],[`🐧`,`企鹅`,[`penguin`]],[`🐦`,`小鸟`,[`bird`]],[`🦄`,`独角兽`,[`unicorn`]],[`🐝`,`蜜蜂`,[`bee`]],[`🦋`,`蝴蝶`,[`butterfly`]],[`🐢`,`乌龟`,[`turtle`]],[`🐬`,`海豚`,[`dolphin`]],[`🐳`,`鲸鱼`,[`whale`]],[`🐙`,`章鱼`,[`octopus`]],[`🦖`,`恐龙`,[`dinosaur`]],[`🌸`,`樱花`,[`flower`]],[`🌼`,`小花`,[`flower`]],[`🌻`,`向日葵`,[`flower`]],[`🌷`,`郁金香`,[`flower`]],[`🌵`,`仙人掌`,[`plant`]],[`🌲`,`松树`,[`tree`]],[`🌳`,`大树`,[`tree`]],[`🍀`,`四叶草`,[`lucky`]],[`🌴`,`棕榈树`,[`tree`]],[`🌈`,`彩虹`,[`rainbow`]],[`☀️`,`太阳`,[`sun`]],[`🌙`,`月亮`,[`moon`]],[`⭐`,`星星`,[`star`]],[`⛄`,`雪人`,[`snow`]]],food:[[`🍎`,`苹果`,[`apple`]],[`🍐`,`梨`,[`pear`]],[`🍊`,`橘子`,[`orange`]],[`🍋`,`柠檬`,[`lemon`]],[`🍌`,`香蕉`,[`banana`]],[`🍉`,`西瓜`,[`watermelon`]],[`🍇`,`葡萄`,[`grape`]],[`🍓`,`草莓`,[`strawberry`]],[`🫐`,`蓝莓`,[`berry`]],[`🍒`,`樱桃`,[`cherry`]],[`🍑`,`桃子`,[`peach`]],[`🥭`,`芒果`,[`mango`]],[`🍍`,`菠萝`,[`pineapple`]],[`🥥`,`椰子`,[`coconut`]],[`🥝`,`猕猴桃`,[`kiwi`]],[`🍅`,`番茄`,[`tomato`]],[`🥑`,`牛油果`,[`avocado`]],[`🥦`,`西兰花`,[`broccoli`]],[`🥕`,`胡萝卜`,[`carrot`]],[`🌽`,`玉米`,[`corn`]],[`🍞`,`面包`,[`bread`]],[`🥐`,`牛角包`,[`croissant`]],[`🥨`,`椒盐卷饼`,[`pretzel`]],[`🧀`,`奶酪`,[`cheese`]],[`🍳`,`煎蛋`,[`egg`]],[`🥞`,`松饼`,[`pancake`]],[`🍔`,`汉堡`,[`burger`]],[`🍟`,`薯条`,[`fries`]],[`🍕`,`披萨`,[`pizza`]],[`🌭`,`热狗`,[`hotdog`]],[`🍿`,`爆米花`,[`popcorn`]],[`🍣`,`寿司`,[`sushi`]],[`🍜`,`拉面`,[`noodle`]],[`🍩`,`甜甜圈`,[`donut`]],[`🍪`,`曲奇`,[`cookie`]],[`🎂`,`蛋糕`,[`cake`]],[`🍰`,`切块蛋糕`,[`cake`]],[`🍫`,`巧克力`,[`chocolate`]],[`🍭`,`棒棒糖`,[`candy`]],[`☕`,`咖啡`,[`coffee`]]],travel:[[`🚗`,`汽车`,[`car`]],[`🚕`,`出租车`,[`taxi`]],[`🚌`,`公交车`,[`bus`]],[`🚎`,`无轨电车`,[`bus`]],[`🏎️`,`赛车`,[`car`]],[`🚓`,`警车`,[`police`]],[`🚑`,`救护车`,[`ambulance`]],[`🚒`,`消防车`,[`fire`]],[`🚚`,`货车`,[`truck`]],[`🚲`,`自行车`,[`bike`]],[`🛵`,`小踏板`,[`scooter`]],[`✈️`,`飞机`,[`plane`]],[`🚀`,`火箭`,[`rocket`]],[`🚁`,`直升机`,[`helicopter`]],[`⛵`,`帆船`,[`boat`]],[`🚤`,`快艇`,[`boat`]],[`🚢`,`轮船`,[`ship`]],[`🚆`,`火车`,[`train`]],[`🚄`,`高铁`,[`train`]],[`🚇`,`地铁`,[`metro`]],[`🏠`,`房子`,[`home`]],[`🏢`,`办公楼`,[`office`]],[`🏫`,`学校`,[`school`]],[`🏥`,`医院`,[`hospital`]],[`🏨`,`酒店`,[`hotel`]],[`🏖️`,`海滩`,[`beach`]],[`🏝️`,`岛屿`,[`island`]],[`🗽`,`自由女神`,[`usa`]],[`🗼`,`铁塔`,[`tower`]],[`⛩️`,`鸟居`,[`japan`]],[`🏞️`,`国家公园`,[`park`]],[`🌋`,`火山`,[`volcano`]],[`🗺️`,`地图`,[`map`]],[`🌍`,`地球`,[`world`]],[`🌤️`,`晴天`,[`weather`]],[`🌧️`,`下雨`,[`rain`]],[`⛈️`,`雷暴`,[`storm`]],[`🌊`,`海浪`,[`wave`]],[`🌌`,`星空`,[`night`]],[`🧭`,`指南针`,[`compass`]]],objects:[[`💡`,`灯泡`,[`idea`]],[`🔦`,`手电筒`,[`light`]],[`🕯️`,`蜡烛`,[`candle`]],[`📌`,`图钉`,[`pin`]],[`📎`,`回形针`,[`paperclip`]],[`✂️`,`剪刀`,[`scissors`]],[`🖊️`,`圆珠笔`,[`pen`]],[`🖋️`,`钢笔`,[`pen`]],[`✏️`,`铅笔`,[`pencil`]],[`📝`,`笔记`,[`note`]],[`📚`,`书籍`,[`books`]],[`📖`,`打开的书`,[`book`]],[`💻`,`电脑`,[`computer`]],[`⌨️`,`键盘`,[`keyboard`]],[`🖥️`,`显示器`,[`screen`]],[`🖨️`,`打印机`,[`printer`]],[`📱`,`手机`,[`phone`]],[`☎️`,`电话`,[`phone`]],[`📷`,`相机`,[`camera`]],[`🎥`,`摄影机`,[`video`]],[`🎧`,`耳机`,[`music`]],[`🎤`,`麦克风`,[`music`]],[`⌚`,`手表`,[`watch`]],[`⏰`,`闹钟`,[`alarm`]],[`🔋`,`电池`,[`battery`]],[`🔌`,`插头`,[`plug`]],[`🧲`,`磁铁`,[`magnet`]],[`🔑`,`钥匙`,[`key`]],[`🧰`,`工具箱`,[`tool`]],[`💎`,`钻石`,[`gem`]],[`🎁`,`礼物`,[`gift`]],[`🛒`,`购物车`,[`shop`]],[`🪑`,`椅子`,[`chair`]],[`🛏️`,`床`,[`bed`]],[`🚪`,`门`,[`door`]],[`🪞`,`镜子`,[`mirror`]],[`🧸`,`玩具熊`,[`toy`]],[`🪄`,`魔法棒`,[`magic`]],[`🏆`,`奖杯`,[`trophy`]],[`📦`,`箱子`,[`box`]]],symbols:[[`❤️`,`红心`,[`heart`]],[`🧡`,`橙心`,[`heart`]],[`💛`,`黄心`,[`heart`]],[`💚`,`绿心`,[`heart`]],[`💙`,`蓝心`,[`heart`]],[`💜`,`紫心`,[`heart`]],[`🖤`,`黑心`,[`heart`]],[`🤍`,`白心`,[`heart`]],[`🤎`,`棕心`,[`heart`]],[`💔`,`心碎`,[`heart`]],[`❣️`,`爱心感叹号`,[`heart`]],[`💕`,`双心`,[`love`]],[`💞`,`旋转爱心`,[`love`]],[`💯`,`一百分`,[`score`]],[`✅`,`完成`,[`done`]],[`☑️`,`已勾选`,[`check`]],[`✔️`,`对勾`,[`check`]],[`❌`,`叉号`,[`close`]],[`⭕`,`圆圈`,[`circle`]],[`⚠️`,`警告`,[`warning`]],[`🚫`,`禁止`,[`forbid`]],[`❓`,`问号`,[`question`]],[`❗`,`感叹号`,[`important`]],[`💢`,`爆炸怒气`,[`angry`]],[`♻️`,`循环`,[`recycle`]],[`🔔`,`铃铛`,[`bell`]],[`🎵`,`音符`,[`music`]],[`🎶`,`双音符`,[`music`]],[`➕`,`加号`,[`plus`]],[`➖`,`减号`,[`minus`]],[`✖️`,`乘号`,[`times`]],[`➗`,`除号`,[`divide`]],[`™️`,`商标`,[`tm`]],[`©️`,`版权`,[`copyright`]],[`®️`,`注册`,[`register`]],[`🔞`,`18禁`,[`adult`]],[`♾️`,`无限`,[`infinity`]],[`🈲`,`禁止`,[`cn`]],[`🈵`,`满`,[`cn`]],[`🉑`,`可`,[`cn`]]]}).flatMap(([e,t])=>t.map(([t,n,r=[]])=>({emoji:t,label:n,keywords:r,category:e}))),Wn={class:`norio-office-rich-emoji-picker-panel`},Gn={class:`norio-office-rich-emoji-picker-panel__section-title`},Kn=[`title`,`onClick`],qn={key:1,class:`norio-office-rich-emoji-picker-panel__empty`},Jn={class:`norio-office-rich-emoji-picker-panel__footer`},Yn=[`title`,`onClick`],Xn={class:`norio-office-rich-emoji-picker-panel__tab-icon`,"aria-hidden":`true`},Zn=`office-word:recent-emojis`,Qn=10,$n=(0,t.defineComponent)({__name:`EmojiPickerPanel`,props:{selectedEmoji:{default:null}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(``),o=(0,t.ref)(`recent`),s=(0,t.ref)([]),c=new Map(Hn.map(e=>[e.id,e.label])),l=Hn.filter(e=>e.id!==`recent`),u=(0,t.computed)(()=>a.value.trim().length>0),d=(0,t.computed)(()=>s.value.map(e=>Un.find(t=>t.emoji===e)).filter(e=>!!e).slice(0,Qn)),f=(0,t.computed)(()=>{let e=a.value.trim().toLowerCase();return e?Un.filter(t=>[t.label,t.emoji,...t.keywords].join(` `).toLowerCase().includes(e)):[]}),p=(0,t.computed)(()=>{if(u.value)return[{key:`search`,title:`搜索结果`,items:f.value}];if(o.value===`recent`){let e=[];d.value.length&&e.push({key:`recent-top`,title:`最近`,items:d.value});for(let t of l){let n=Un.filter(e=>e.category===t.id);n.length&&e.push({key:String(t.id),title:t.label,items:n})}return e}return[{key:String(o.value),title:c.get(o.value)??`表情`,items:Un.filter(e=>e.category===o.value)}]});function m(){if(!(typeof window>`u`))try{let e=window.localStorage.getItem(Zn);if(!e)return;let t=JSON.parse(e);Array.isArray(t)&&(s.value=t.filter(e=>typeof e==`string`).slice(0,Qn))}catch{s.value=[]}}function h(e){typeof window>`u`||window.localStorage.setItem(Zn,JSON.stringify(e))}function g(e){let t=[e,...s.value.filter(t=>t!==e)].slice(0,Qn);s.value=t,h(t)}function _(e){g(e),i(`select`,e)}function v(e){o.value=e}return(0,t.onMounted)(()=>{m()}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Wn,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-emoji-picker-panel__body`},{default:(0,t.withCtx)(()=>[p.value.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(p.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,{key:e.key,class:`norio-office-rich-emoji-picker-panel__section`},[(0,t.createElementVNode)(`div`,Gn,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`norio-office-rich-emoji-picker-panel__grid`,{"norio-office-rich-emoji-picker-panel__grid--recent":e.key===`recent-top`}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`${e.key}-${n.emoji}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-emoji-picker-panel__item`,{"norio-office-rich-emoji-picker-panel__item--active":r.selectedEmoji===n.emoji}]),title:n.label,onClick:e=>_(n.emoji)},(0,t.toDisplayString)(n.emoji),11,Kn))),128))],2)]))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qn,`没有找到匹配的表情`))]),_:1}),(0,t.createElementVNode)(`div`,Jn,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(Hn),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.id,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-emoji-picker-panel__tab`,{"norio-office-rich-emoji-picker-panel__tab--active":o.value===e.id}]),title:e.label,onClick:t=>v(e.id)},[(0,t.createElementVNode)(`span`,Xn,(0,t.toDisplayString)(e.icon),1)],10,Yn))),128))])]))}}),er=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},tr=er($n,[[`__scopeId`,`data-v-c9e9c49a`]]),A=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},nr=/([A-Z])/g,rr=e=>e.replace(nr,`-$1`).toLowerCase(),ir={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},ar=/[&><"']/g,or=e=>String(e).replace(ar,e=>ir[e]),sr=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?sr(e.body[0]):e:e.type===`font`?sr(e.body):e,cr=new Set([`mathord`,`textord`,`atom`]),lr=e=>cr.has(sr(e).type),ur=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},dr={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function fr(e){if(`default`in e)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!=`string`)return n.enum[0];switch(n){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{}}}var pr=class{constructor(e){e===void 0&&(e={}),e||={};for(var t of Object.keys(dr)){var n=dr[t],r=e[t];this[t]=r===void 0?fr(n):n.processor?n.processor(r):r}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),!(!r||r===`ignore`)){if(r===!0||r===`error`)throw new A(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ur(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},mr=class{constructor(e,t,n){this.id=e,this.size=t,this.cramped=n}sup(){return j[Cr[this.id]]}sub(){return j[wr[this.id]]}fracNum(){return j[Tr[this.id]]}fracDen(){return j[Er[this.id]]}cramp(){return j[Dr[this.id]]}text(){return j[Or[this.id]]}isTight(){return this.size>=2}},hr=0,gr=1,_r=2,vr=3,yr=4,br=5,xr=6,Sr=7,j=[new mr(hr,0,!1),new mr(gr,0,!0),new mr(_r,1,!1),new mr(vr,1,!0),new mr(yr,2,!1),new mr(br,2,!0),new mr(xr,3,!1),new mr(Sr,3,!0)],Cr=[yr,br,yr,br,xr,Sr,xr,Sr],wr=[br,br,br,br,Sr,Sr,Sr,Sr],Tr=[_r,vr,yr,br,xr,Sr,xr,Sr],Er=[vr,vr,br,br,Sr,Sr,Sr,Sr],Dr=[gr,gr,vr,vr,br,br,Sr,Sr],Or=[hr,gr,_r,vr,_r,vr,_r,vr],M={DISPLAY:j[hr],TEXT:j[_r],SCRIPT:j[yr],SCRIPTSCRIPT:j[xr]},kr=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function Ar(e){for(var t=0;t<kr.length;t++)for(var n=kr[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var jr=[];kr.forEach(e=>e.blocks.forEach(e=>jr.push(...e)));function Mr(e){for(var t=0;t<jr.length;t+=2)if(e>=jr[t]&&e<=jr[t+1])return!0;return!1}var Nr=80,Pr=function(e,t){return`M95,`+(622+e+t)+`
|
|
258
258
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
259
259
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
260
260
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -512,7 +512,7 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
|
|
|
512
512
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
513
513
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
514
514
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
515
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},Gr=class{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join(``)}},Kr={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},qr={ex:!0,em:!0,mu:!0},Jr=function(e){return typeof e!=`string`&&(e=e.unit),e in Kr||e in qr||e===`ex`},Yr=function(e,t){var n;if(e.unit in Kr)n=Kr[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new A(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},N=function(e){return+e.toFixed(4)+`em`},Xr=function(e){return e.filter(e=>e).join(` `)},Zr=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Qr=function(e){var t=document.createElement(e);t.className=Xr(this.classes);for(var n of Object.keys(this.style))t.style[n]=this.style[n];for(var r of Object.keys(this.attributes))t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},$r=/[\s"'>/=\x00-\x1f]/,ei=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+or(Xr(this.classes))+`"`);var n=``;for(var r of Object.keys(this.style))n+=rr(r)+`:`+this.style[r]+`;`;n&&(t+=` style="`+or(n)+`"`);for(var i of Object.keys(this.attributes)){if($r.test(i))throw new A(`Invalid attribute name '`+i+`'`);t+=` `+i+`="`+or(this.attributes[i])+`"`}t+=`>`;for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+=`</`+e+`>`,t},ti=class{constructor(e,t,n,r){Zr.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qr.call(this,`span`)}toMarkup(){return ei.call(this,`span`)}},ni=class{constructor(e,t,n,r){Zr.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qr.call(this,`a`)}toMarkup(){return ei.call(this,`a`)}},ri=class{constructor(e,t,n){this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);e.src=this.src,e.alt=this.alt,e.className=`mord`;for(var t of Object.keys(this.style))e.style[t]=this.style[t];return e}toMarkup(){var e=`<img src="`+or(this.src)+`"`+(` alt="`+or(this.alt)+`"`),t=``;for(var n of Object.keys(this.style))t+=rr(n)+`:`+this.style[n]+`;`;return t&&(e+=` style="`+or(t)+`"`),e+=`'/>`,e}},ii={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},ai=class{constructor(e,t,n,r,i,a,o,s){this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Ar(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=ii[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=N(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Xr(this.classes));for(var n of Object.keys(this.style))t||=document.createElement(`span`),t.style[n]=this.style[n];return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=or(Xr(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+N(this.italic)+`;`);for(var r of Object.keys(this.style))n+=rr(r)+`:`+this.style[r]+`;`;n&&(e=!0,t+=` style="`+or(n)+`"`);var i=or(this.text);return e?(t+=`>`,t+=i,t+=`</span>`,t):i}},oi=class{constructor(e,t){this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+or(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},si=class{constructor(e,t){this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,Ur[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+or(this.alternate)+`"/>`:`<path d="`+or(Ur[this.pathName])+`"/>`}},ci=class{constructor(e){this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+or(this.attributes[t])+`"`;return e+=`/>`,e}};function li(e){if(e instanceof ai)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function ui(e){if(e instanceof ti)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var di=e=>e instanceof ti||e instanceof ni||e instanceof Gr,fi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},pi={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},mi={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function hi(e,t){fi[e]=t}function gi(e,t,n){if(!fi[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=fi[t][r];if(!i&&e[0]in mi&&(r=mi[e[0]].charCodeAt(0),i=fi[t][r]),!i&&n===`text`&&Mr(r)&&(i=fi[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var _i={};function vi(e){var t=e>=5?0:e>=3?1:2;if(!_i[t]){var n=_i[t]={cssEmPerMu:pi.quad[t]/18};for(var r in pi)pi.hasOwnProperty(r)&&(n[r]=pi[r][t])}return _i[t]}var yi={bin:1,close:1,inner:1,open:1,punct:1,rel:1},bi={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},xi={math:{},text:{}};function P(e,t,n,r,i,a){xi[e][i]={font:t,group:n,replace:r},a&&r&&(xi[e][r]=xi[e][i])}var F=`math`,I=`text`,L=`main`,R=`ams`,Si=`accent-token`,z=`bin`,Ci=`close`,wi=`inner`,B=`mathord`,Ti=`op-token`,Ei=`open`,V=`punct`,H=`rel`,Di=`spacing`,U=`textord`;P(F,L,H,`≡`,`\\equiv`,!0),P(F,L,H,`≺`,`\\prec`,!0),P(F,L,H,`≻`,`\\succ`,!0),P(F,L,H,`∼`,`\\sim`,!0),P(F,L,H,`⊥`,`\\perp`),P(F,L,H,`⪯`,`\\preceq`,!0),P(F,L,H,`⪰`,`\\succeq`,!0),P(F,L,H,`≃`,`\\simeq`,!0),P(F,L,H,`∣`,`\\mid`,!0),P(F,L,H,`≪`,`\\ll`,!0),P(F,L,H,`≫`,`\\gg`,!0),P(F,L,H,`≍`,`\\asymp`,!0),P(F,L,H,`∥`,`\\parallel`),P(F,L,H,`⋈`,`\\bowtie`,!0),P(F,L,H,`⌣`,`\\smile`,!0),P(F,L,H,`⊑`,`\\sqsubseteq`,!0),P(F,L,H,`⊒`,`\\sqsupseteq`,!0),P(F,L,H,`≐`,`\\doteq`,!0),P(F,L,H,`⌢`,`\\frown`,!0),P(F,L,H,`∋`,`\\ni`,!0),P(F,L,H,`∝`,`\\propto`,!0),P(F,L,H,`⊢`,`\\vdash`,!0),P(F,L,H,`⊣`,`\\dashv`,!0),P(F,L,H,`∋`,`\\owns`),P(F,L,V,`.`,`\\ldotp`),P(F,L,V,`⋅`,`\\cdotp`),P(F,L,V,`⋅`,`·`),P(I,L,U,`⋅`,`·`),P(F,L,U,`#`,`\\#`),P(I,L,U,`#`,`\\#`),P(F,L,U,`&`,`\\&`),P(I,L,U,`&`,`\\&`),P(F,L,U,`ℵ`,`\\aleph`,!0),P(F,L,U,`∀`,`\\forall`,!0),P(F,L,U,`ℏ`,`\\hbar`,!0),P(F,L,U,`∃`,`\\exists`,!0),P(F,L,U,`∇`,`\\nabla`,!0),P(F,L,U,`♭`,`\\flat`,!0),P(F,L,U,`ℓ`,`\\ell`,!0),P(F,L,U,`♮`,`\\natural`,!0),P(F,L,U,`♣`,`\\clubsuit`,!0),P(F,L,U,`℘`,`\\wp`,!0),P(F,L,U,`♯`,`\\sharp`,!0),P(F,L,U,`♢`,`\\diamondsuit`,!0),P(F,L,U,`ℜ`,`\\Re`,!0),P(F,L,U,`♡`,`\\heartsuit`,!0),P(F,L,U,`ℑ`,`\\Im`,!0),P(F,L,U,`♠`,`\\spadesuit`,!0),P(F,L,U,`§`,`\\S`,!0),P(I,L,U,`§`,`\\S`),P(F,L,U,`¶`,`\\P`,!0),P(I,L,U,`¶`,`\\P`),P(F,L,U,`†`,`\\dag`),P(I,L,U,`†`,`\\dag`),P(I,L,U,`†`,`\\textdagger`),P(F,L,U,`‡`,`\\ddag`),P(I,L,U,`‡`,`\\ddag`),P(I,L,U,`‡`,`\\textdaggerdbl`),P(F,L,Ci,`⎱`,`\\rmoustache`,!0),P(F,L,Ei,`⎰`,`\\lmoustache`,!0),P(F,L,Ci,`⟯`,`\\rgroup`,!0),P(F,L,Ei,`⟮`,`\\lgroup`,!0),P(F,L,z,`∓`,`\\mp`,!0),P(F,L,z,`⊖`,`\\ominus`,!0),P(F,L,z,`⊎`,`\\uplus`,!0),P(F,L,z,`⊓`,`\\sqcap`,!0),P(F,L,z,`∗`,`\\ast`),P(F,L,z,`⊔`,`\\sqcup`,!0),P(F,L,z,`◯`,`\\bigcirc`,!0),P(F,L,z,`∙`,`\\bullet`,!0),P(F,L,z,`‡`,`\\ddagger`),P(F,L,z,`≀`,`\\wr`,!0),P(F,L,z,`⨿`,`\\amalg`),P(F,L,z,`&`,`\\And`),P(F,L,H,`⟵`,`\\longleftarrow`,!0),P(F,L,H,`⇐`,`\\Leftarrow`,!0),P(F,L,H,`⟸`,`\\Longleftarrow`,!0),P(F,L,H,`⟶`,`\\longrightarrow`,!0),P(F,L,H,`⇒`,`\\Rightarrow`,!0),P(F,L,H,`⟹`,`\\Longrightarrow`,!0),P(F,L,H,`↔`,`\\leftrightarrow`,!0),P(F,L,H,`⟷`,`\\longleftrightarrow`,!0),P(F,L,H,`⇔`,`\\Leftrightarrow`,!0),P(F,L,H,`⟺`,`\\Longleftrightarrow`,!0),P(F,L,H,`↦`,`\\mapsto`,!0),P(F,L,H,`⟼`,`\\longmapsto`,!0),P(F,L,H,`↗`,`\\nearrow`,!0),P(F,L,H,`↩`,`\\hookleftarrow`,!0),P(F,L,H,`↪`,`\\hookrightarrow`,!0),P(F,L,H,`↘`,`\\searrow`,!0),P(F,L,H,`↼`,`\\leftharpoonup`,!0),P(F,L,H,`⇀`,`\\rightharpoonup`,!0),P(F,L,H,`↙`,`\\swarrow`,!0),P(F,L,H,`↽`,`\\leftharpoondown`,!0),P(F,L,H,`⇁`,`\\rightharpoondown`,!0),P(F,L,H,`↖`,`\\nwarrow`,!0),P(F,L,H,`⇌`,`\\rightleftharpoons`,!0),P(F,R,H,`≮`,`\\nless`,!0),P(F,R,H,``,`\\@nleqslant`),P(F,R,H,``,`\\@nleqq`),P(F,R,H,`⪇`,`\\lneq`,!0),P(F,R,H,`≨`,`\\lneqq`,!0),P(F,R,H,``,`\\@lvertneqq`),P(F,R,H,`⋦`,`\\lnsim`,!0),P(F,R,H,`⪉`,`\\lnapprox`,!0),P(F,R,H,`⊀`,`\\nprec`,!0),P(F,R,H,`⋠`,`\\npreceq`,!0),P(F,R,H,`⋨`,`\\precnsim`,!0),P(F,R,H,`⪹`,`\\precnapprox`,!0),P(F,R,H,`≁`,`\\nsim`,!0),P(F,R,H,``,`\\@nshortmid`),P(F,R,H,`∤`,`\\nmid`,!0),P(F,R,H,`⊬`,`\\nvdash`,!0),P(F,R,H,`⊭`,`\\nvDash`,!0),P(F,R,H,`⋪`,`\\ntriangleleft`),P(F,R,H,`⋬`,`\\ntrianglelefteq`,!0),P(F,R,H,`⊊`,`\\subsetneq`,!0),P(F,R,H,``,`\\@varsubsetneq`),P(F,R,H,`⫋`,`\\subsetneqq`,!0),P(F,R,H,``,`\\@varsubsetneqq`),P(F,R,H,`≯`,`\\ngtr`,!0),P(F,R,H,``,`\\@ngeqslant`),P(F,R,H,``,`\\@ngeqq`),P(F,R,H,`⪈`,`\\gneq`,!0),P(F,R,H,`≩`,`\\gneqq`,!0),P(F,R,H,``,`\\@gvertneqq`),P(F,R,H,`⋧`,`\\gnsim`,!0),P(F,R,H,`⪊`,`\\gnapprox`,!0),P(F,R,H,`⊁`,`\\nsucc`,!0),P(F,R,H,`⋡`,`\\nsucceq`,!0),P(F,R,H,`⋩`,`\\succnsim`,!0),P(F,R,H,`⪺`,`\\succnapprox`,!0),P(F,R,H,`≆`,`\\ncong`,!0),P(F,R,H,``,`\\@nshortparallel`),P(F,R,H,`∦`,`\\nparallel`,!0),P(F,R,H,`⊯`,`\\nVDash`,!0),P(F,R,H,`⋫`,`\\ntriangleright`),P(F,R,H,`⋭`,`\\ntrianglerighteq`,!0),P(F,R,H,``,`\\@nsupseteqq`),P(F,R,H,`⊋`,`\\supsetneq`,!0),P(F,R,H,``,`\\@varsupsetneq`),P(F,R,H,`⫌`,`\\supsetneqq`,!0),P(F,R,H,``,`\\@varsupsetneqq`),P(F,R,H,`⊮`,`\\nVdash`,!0),P(F,R,H,`⪵`,`\\precneqq`,!0),P(F,R,H,`⪶`,`\\succneqq`,!0),P(F,R,H,``,`\\@nsubseteqq`),P(F,R,z,`⊴`,`\\unlhd`),P(F,R,z,`⊵`,`\\unrhd`),P(F,R,H,`↚`,`\\nleftarrow`,!0),P(F,R,H,`↛`,`\\nrightarrow`,!0),P(F,R,H,`⇍`,`\\nLeftarrow`,!0),P(F,R,H,`⇏`,`\\nRightarrow`,!0),P(F,R,H,`↮`,`\\nleftrightarrow`,!0),P(F,R,H,`⇎`,`\\nLeftrightarrow`,!0),P(F,R,H,`△`,`\\vartriangle`),P(F,R,U,`ℏ`,`\\hslash`),P(F,R,U,`▽`,`\\triangledown`),P(F,R,U,`◊`,`\\lozenge`),P(F,R,U,`Ⓢ`,`\\circledS`),P(F,R,U,`®`,`\\circledR`),P(I,R,U,`®`,`\\circledR`),P(F,R,U,`∡`,`\\measuredangle`,!0),P(F,R,U,`∄`,`\\nexists`),P(F,R,U,`℧`,`\\mho`),P(F,R,U,`Ⅎ`,`\\Finv`,!0),P(F,R,U,`⅁`,`\\Game`,!0),P(F,R,U,`‵`,`\\backprime`),P(F,R,U,`▲`,`\\blacktriangle`),P(F,R,U,`▼`,`\\blacktriangledown`),P(F,R,U,`■`,`\\blacksquare`),P(F,R,U,`⧫`,`\\blacklozenge`),P(F,R,U,`★`,`\\bigstar`),P(F,R,U,`∢`,`\\sphericalangle`,!0),P(F,R,U,`∁`,`\\complement`,!0),P(F,R,U,`ð`,`\\eth`,!0),P(I,L,U,`ð`,`ð`),P(F,R,U,`╱`,`\\diagup`),P(F,R,U,`╲`,`\\diagdown`),P(F,R,U,`□`,`\\square`),P(F,R,U,`□`,`\\Box`),P(F,R,U,`◊`,`\\Diamond`),P(F,R,U,`¥`,`\\yen`,!0),P(I,R,U,`¥`,`\\yen`,!0),P(F,R,U,`✓`,`\\checkmark`,!0),P(I,R,U,`✓`,`\\checkmark`),P(F,R,U,`ℶ`,`\\beth`,!0),P(F,R,U,`ℸ`,`\\daleth`,!0),P(F,R,U,`ℷ`,`\\gimel`,!0),P(F,R,U,`ϝ`,`\\digamma`,!0),P(F,R,U,`ϰ`,`\\varkappa`),P(F,R,Ei,`┌`,`\\@ulcorner`,!0),P(F,R,Ci,`┐`,`\\@urcorner`,!0),P(F,R,Ei,`└`,`\\@llcorner`,!0),P(F,R,Ci,`┘`,`\\@lrcorner`,!0),P(F,R,H,`≦`,`\\leqq`,!0),P(F,R,H,`⩽`,`\\leqslant`,!0),P(F,R,H,`⪕`,`\\eqslantless`,!0),P(F,R,H,`≲`,`\\lesssim`,!0),P(F,R,H,`⪅`,`\\lessapprox`,!0),P(F,R,H,`≊`,`\\approxeq`,!0),P(F,R,z,`⋖`,`\\lessdot`),P(F,R,H,`⋘`,`\\lll`,!0),P(F,R,H,`≶`,`\\lessgtr`,!0),P(F,R,H,`⋚`,`\\lesseqgtr`,!0),P(F,R,H,`⪋`,`\\lesseqqgtr`,!0),P(F,R,H,`≑`,`\\doteqdot`),P(F,R,H,`≓`,`\\risingdotseq`,!0),P(F,R,H,`≒`,`\\fallingdotseq`,!0),P(F,R,H,`∽`,`\\backsim`,!0),P(F,R,H,`⋍`,`\\backsimeq`,!0),P(F,R,H,`⫅`,`\\subseteqq`,!0),P(F,R,H,`⋐`,`\\Subset`,!0),P(F,R,H,`⊏`,`\\sqsubset`,!0),P(F,R,H,`≼`,`\\preccurlyeq`,!0),P(F,R,H,`⋞`,`\\curlyeqprec`,!0),P(F,R,H,`≾`,`\\precsim`,!0),P(F,R,H,`⪷`,`\\precapprox`,!0),P(F,R,H,`⊲`,`\\vartriangleleft`),P(F,R,H,`⊴`,`\\trianglelefteq`),P(F,R,H,`⊨`,`\\vDash`,!0),P(F,R,H,`⊪`,`\\Vvdash`,!0),P(F,R,H,`⌣`,`\\smallsmile`),P(F,R,H,`⌢`,`\\smallfrown`),P(F,R,H,`≏`,`\\bumpeq`,!0),P(F,R,H,`≎`,`\\Bumpeq`,!0),P(F,R,H,`≧`,`\\geqq`,!0),P(F,R,H,`⩾`,`\\geqslant`,!0),P(F,R,H,`⪖`,`\\eqslantgtr`,!0),P(F,R,H,`≳`,`\\gtrsim`,!0),P(F,R,H,`⪆`,`\\gtrapprox`,!0),P(F,R,z,`⋗`,`\\gtrdot`),P(F,R,H,`⋙`,`\\ggg`,!0),P(F,R,H,`≷`,`\\gtrless`,!0),P(F,R,H,`⋛`,`\\gtreqless`,!0),P(F,R,H,`⪌`,`\\gtreqqless`,!0),P(F,R,H,`≖`,`\\eqcirc`,!0),P(F,R,H,`≗`,`\\circeq`,!0),P(F,R,H,`≜`,`\\triangleq`,!0),P(F,R,H,`∼`,`\\thicksim`),P(F,R,H,`≈`,`\\thickapprox`),P(F,R,H,`⫆`,`\\supseteqq`,!0),P(F,R,H,`⋑`,`\\Supset`,!0),P(F,R,H,`⊐`,`\\sqsupset`,!0),P(F,R,H,`≽`,`\\succcurlyeq`,!0),P(F,R,H,`⋟`,`\\curlyeqsucc`,!0),P(F,R,H,`≿`,`\\succsim`,!0),P(F,R,H,`⪸`,`\\succapprox`,!0),P(F,R,H,`⊳`,`\\vartriangleright`),P(F,R,H,`⊵`,`\\trianglerighteq`),P(F,R,H,`⊩`,`\\Vdash`,!0),P(F,R,H,`∣`,`\\shortmid`),P(F,R,H,`∥`,`\\shortparallel`),P(F,R,H,`≬`,`\\between`,!0),P(F,R,H,`⋔`,`\\pitchfork`,!0),P(F,R,H,`∝`,`\\varpropto`),P(F,R,H,`◀`,`\\blacktriangleleft`),P(F,R,H,`∴`,`\\therefore`,!0),P(F,R,H,`∍`,`\\backepsilon`),P(F,R,H,`▶`,`\\blacktriangleright`),P(F,R,H,`∵`,`\\because`,!0),P(F,R,H,`⋘`,`\\llless`),P(F,R,H,`⋙`,`\\gggtr`),P(F,R,z,`⊲`,`\\lhd`),P(F,R,z,`⊳`,`\\rhd`),P(F,R,H,`≂`,`\\eqsim`,!0),P(F,L,H,`⋈`,`\\Join`),P(F,R,H,`≑`,`\\Doteq`,!0),P(F,R,z,`∔`,`\\dotplus`,!0),P(F,R,z,`∖`,`\\smallsetminus`),P(F,R,z,`⋒`,`\\Cap`,!0),P(F,R,z,`⋓`,`\\Cup`,!0),P(F,R,z,`⩞`,`\\doublebarwedge`,!0),P(F,R,z,`⊟`,`\\boxminus`,!0),P(F,R,z,`⊞`,`\\boxplus`,!0),P(F,R,z,`⋇`,`\\divideontimes`,!0),P(F,R,z,`⋉`,`\\ltimes`,!0),P(F,R,z,`⋊`,`\\rtimes`,!0),P(F,R,z,`⋋`,`\\leftthreetimes`,!0),P(F,R,z,`⋌`,`\\rightthreetimes`,!0),P(F,R,z,`⋏`,`\\curlywedge`,!0),P(F,R,z,`⋎`,`\\curlyvee`,!0),P(F,R,z,`⊝`,`\\circleddash`,!0),P(F,R,z,`⊛`,`\\circledast`,!0),P(F,R,z,`⋅`,`\\centerdot`),P(F,R,z,`⊺`,`\\intercal`,!0),P(F,R,z,`⋒`,`\\doublecap`),P(F,R,z,`⋓`,`\\doublecup`),P(F,R,z,`⊠`,`\\boxtimes`,!0),P(F,R,H,`⇢`,`\\dashrightarrow`,!0),P(F,R,H,`⇠`,`\\dashleftarrow`,!0),P(F,R,H,`⇇`,`\\leftleftarrows`,!0),P(F,R,H,`⇆`,`\\leftrightarrows`,!0),P(F,R,H,`⇚`,`\\Lleftarrow`,!0),P(F,R,H,`↞`,`\\twoheadleftarrow`,!0),P(F,R,H,`↢`,`\\leftarrowtail`,!0),P(F,R,H,`↫`,`\\looparrowleft`,!0),P(F,R,H,`⇋`,`\\leftrightharpoons`,!0),P(F,R,H,`↶`,`\\curvearrowleft`,!0),P(F,R,H,`↺`,`\\circlearrowleft`,!0),P(F,R,H,`↰`,`\\Lsh`,!0),P(F,R,H,`⇈`,`\\upuparrows`,!0),P(F,R,H,`↿`,`\\upharpoonleft`,!0),P(F,R,H,`⇃`,`\\downharpoonleft`,!0),P(F,L,H,`⊶`,`\\origof`,!0),P(F,L,H,`⊷`,`\\imageof`,!0),P(F,R,H,`⊸`,`\\multimap`,!0),P(F,R,H,`↭`,`\\leftrightsquigarrow`,!0),P(F,R,H,`⇉`,`\\rightrightarrows`,!0),P(F,R,H,`⇄`,`\\rightleftarrows`,!0),P(F,R,H,`↠`,`\\twoheadrightarrow`,!0),P(F,R,H,`↣`,`\\rightarrowtail`,!0),P(F,R,H,`↬`,`\\looparrowright`,!0),P(F,R,H,`↷`,`\\curvearrowright`,!0),P(F,R,H,`↻`,`\\circlearrowright`,!0),P(F,R,H,`↱`,`\\Rsh`,!0),P(F,R,H,`⇊`,`\\downdownarrows`,!0),P(F,R,H,`↾`,`\\upharpoonright`,!0),P(F,R,H,`⇂`,`\\downharpoonright`,!0),P(F,R,H,`⇝`,`\\rightsquigarrow`,!0),P(F,R,H,`⇝`,`\\leadsto`),P(F,R,H,`⇛`,`\\Rrightarrow`,!0),P(F,R,H,`↾`,`\\restriction`),P(F,L,U,`‘`,"`"),P(F,L,U,`$`,`\\$`),P(I,L,U,`$`,`\\$`),P(I,L,U,`$`,`\\textdollar`),P(F,L,U,`%`,`\\%`),P(I,L,U,`%`,`\\%`),P(F,L,U,`_`,`\\_`),P(I,L,U,`_`,`\\_`),P(I,L,U,`_`,`\\textunderscore`),P(F,L,U,`∠`,`\\angle`,!0),P(F,L,U,`∞`,`\\infty`,!0),P(F,L,U,`′`,`\\prime`),P(F,L,U,`△`,`\\triangle`),P(F,L,U,`Γ`,`\\Gamma`,!0),P(F,L,U,`Δ`,`\\Delta`,!0),P(F,L,U,`Θ`,`\\Theta`,!0),P(F,L,U,`Λ`,`\\Lambda`,!0),P(F,L,U,`Ξ`,`\\Xi`,!0),P(F,L,U,`Π`,`\\Pi`,!0),P(F,L,U,`Σ`,`\\Sigma`,!0),P(F,L,U,`Υ`,`\\Upsilon`,!0),P(F,L,U,`Φ`,`\\Phi`,!0),P(F,L,U,`Ψ`,`\\Psi`,!0),P(F,L,U,`Ω`,`\\Omega`,!0),P(F,L,U,`A`,`Α`),P(F,L,U,`B`,`Β`),P(F,L,U,`E`,`Ε`),P(F,L,U,`Z`,`Ζ`),P(F,L,U,`H`,`Η`),P(F,L,U,`I`,`Ι`),P(F,L,U,`K`,`Κ`),P(F,L,U,`M`,`Μ`),P(F,L,U,`N`,`Ν`),P(F,L,U,`O`,`Ο`),P(F,L,U,`P`,`Ρ`),P(F,L,U,`T`,`Τ`),P(F,L,U,`X`,`Χ`),P(F,L,U,`¬`,`\\neg`,!0),P(F,L,U,`¬`,`\\lnot`),P(F,L,U,`⊤`,`\\top`),P(F,L,U,`⊥`,`\\bot`),P(F,L,U,`∅`,`\\emptyset`),P(F,R,U,`∅`,`\\varnothing`),P(F,L,B,`α`,`\\alpha`,!0),P(F,L,B,`β`,`\\beta`,!0),P(F,L,B,`γ`,`\\gamma`,!0),P(F,L,B,`δ`,`\\delta`,!0),P(F,L,B,`ϵ`,`\\epsilon`,!0),P(F,L,B,`ζ`,`\\zeta`,!0),P(F,L,B,`η`,`\\eta`,!0),P(F,L,B,`θ`,`\\theta`,!0),P(F,L,B,`ι`,`\\iota`,!0),P(F,L,B,`κ`,`\\kappa`,!0),P(F,L,B,`λ`,`\\lambda`,!0),P(F,L,B,`μ`,`\\mu`,!0),P(F,L,B,`ν`,`\\nu`,!0),P(F,L,B,`ξ`,`\\xi`,!0),P(F,L,B,`ο`,`\\omicron`,!0),P(F,L,B,`π`,`\\pi`,!0),P(F,L,B,`ρ`,`\\rho`,!0),P(F,L,B,`σ`,`\\sigma`,!0),P(F,L,B,`τ`,`\\tau`,!0),P(F,L,B,`υ`,`\\upsilon`,!0),P(F,L,B,`ϕ`,`\\phi`,!0),P(F,L,B,`χ`,`\\chi`,!0),P(F,L,B,`ψ`,`\\psi`,!0),P(F,L,B,`ω`,`\\omega`,!0),P(F,L,B,`ε`,`\\varepsilon`,!0),P(F,L,B,`ϑ`,`\\vartheta`,!0),P(F,L,B,`ϖ`,`\\varpi`,!0),P(F,L,B,`ϱ`,`\\varrho`,!0),P(F,L,B,`ς`,`\\varsigma`,!0),P(F,L,B,`φ`,`\\varphi`,!0),P(F,L,z,`∗`,`*`,!0),P(F,L,z,`+`,`+`),P(F,L,z,`−`,`-`,!0),P(F,L,z,`⋅`,`\\cdot`,!0),P(F,L,z,`∘`,`\\circ`,!0),P(F,L,z,`÷`,`\\div`,!0),P(F,L,z,`±`,`\\pm`,!0),P(F,L,z,`×`,`\\times`,!0),P(F,L,z,`∩`,`\\cap`,!0),P(F,L,z,`∪`,`\\cup`,!0),P(F,L,z,`∖`,`\\setminus`,!0),P(F,L,z,`∧`,`\\land`),P(F,L,z,`∨`,`\\lor`),P(F,L,z,`∧`,`\\wedge`,!0),P(F,L,z,`∨`,`\\vee`,!0),P(F,L,U,`√`,`\\surd`),P(F,L,Ei,`⟨`,`\\langle`,!0),P(F,L,Ei,`∣`,`\\lvert`),P(F,L,Ei,`∥`,`\\lVert`),P(F,L,Ci,`?`,`?`),P(F,L,Ci,`!`,`!`),P(F,L,Ci,`⟩`,`\\rangle`,!0),P(F,L,Ci,`∣`,`\\rvert`),P(F,L,Ci,`∥`,`\\rVert`),P(F,L,H,`=`,`=`),P(F,L,H,`:`,`:`),P(F,L,H,`≈`,`\\approx`,!0),P(F,L,H,`≅`,`\\cong`,!0),P(F,L,H,`≥`,`\\ge`),P(F,L,H,`≥`,`\\geq`,!0),P(F,L,H,`←`,`\\gets`),P(F,L,H,`>`,`\\gt`,!0),P(F,L,H,`∈`,`\\in`,!0),P(F,L,H,``,`\\@not`),P(F,L,H,`⊂`,`\\subset`,!0),P(F,L,H,`⊃`,`\\supset`,!0),P(F,L,H,`⊆`,`\\subseteq`,!0),P(F,L,H,`⊇`,`\\supseteq`,!0),P(F,R,H,`⊈`,`\\nsubseteq`,!0),P(F,R,H,`⊉`,`\\nsupseteq`,!0),P(F,L,H,`⊨`,`\\models`),P(F,L,H,`←`,`\\leftarrow`,!0),P(F,L,H,`≤`,`\\le`),P(F,L,H,`≤`,`\\leq`,!0),P(F,L,H,`<`,`\\lt`,!0),P(F,L,H,`→`,`\\rightarrow`,!0),P(F,L,H,`→`,`\\to`),P(F,R,H,`≱`,`\\ngeq`,!0),P(F,R,H,`≰`,`\\nleq`,!0),P(F,L,Di,`\xA0`,`\\ `),P(F,L,Di,`\xA0`,`\\space`),P(F,L,Di,`\xA0`,`\\nobreakspace`),P(I,L,Di,`\xA0`,`\\ `),P(I,L,Di,`\xA0`,` `),P(I,L,Di,`\xA0`,`\\space`),P(I,L,Di,`\xA0`,`\\nobreakspace`),P(F,L,Di,null,`\\nobreak`),P(F,L,Di,null,`\\allowbreak`),P(F,L,V,`,`,`,`),P(F,L,V,`;`,`;`),P(F,R,z,`⊼`,`\\barwedge`,!0),P(F,R,z,`⊻`,`\\veebar`,!0),P(F,L,z,`⊙`,`\\odot`,!0),P(F,L,z,`⊕`,`\\oplus`,!0),P(F,L,z,`⊗`,`\\otimes`,!0),P(F,L,U,`∂`,`\\partial`,!0),P(F,L,z,`⊘`,`\\oslash`,!0),P(F,R,z,`⊚`,`\\circledcirc`,!0),P(F,R,z,`⊡`,`\\boxdot`,!0),P(F,L,z,`△`,`\\bigtriangleup`),P(F,L,z,`▽`,`\\bigtriangledown`),P(F,L,z,`†`,`\\dagger`),P(F,L,z,`⋄`,`\\diamond`),P(F,L,z,`⋆`,`\\star`),P(F,L,z,`◃`,`\\triangleleft`),P(F,L,z,`▹`,`\\triangleright`),P(F,L,Ei,`{`,`\\{`),P(I,L,U,`{`,`\\{`),P(I,L,U,`{`,`\\textbraceleft`),P(F,L,Ci,`}`,`\\}`),P(I,L,U,`}`,`\\}`),P(I,L,U,`}`,`\\textbraceright`),P(F,L,Ei,`{`,`\\lbrace`),P(F,L,Ci,`}`,`\\rbrace`),P(F,L,Ei,`[`,`\\lbrack`,!0),P(I,L,U,`[`,`\\lbrack`,!0),P(F,L,Ci,`]`,`\\rbrack`,!0),P(I,L,U,`]`,`\\rbrack`,!0),P(F,L,Ei,`(`,`\\lparen`,!0),P(F,L,Ci,`)`,`\\rparen`,!0),P(I,L,U,`<`,`\\textless`,!0),P(I,L,U,`>`,`\\textgreater`,!0),P(F,L,Ei,`⌊`,`\\lfloor`,!0),P(F,L,Ci,`⌋`,`\\rfloor`,!0),P(F,L,Ei,`⌈`,`\\lceil`,!0),P(F,L,Ci,`⌉`,`\\rceil`,!0),P(F,L,U,`\\`,`\\backslash`),P(F,L,U,`∣`,`|`),P(F,L,U,`∣`,`\\vert`),P(I,L,U,`|`,`\\textbar`,!0),P(F,L,U,`∥`,`\\|`),P(F,L,U,`∥`,`\\Vert`),P(I,L,U,`∥`,`\\textbardbl`),P(I,L,U,`~`,`\\textasciitilde`),P(I,L,U,`\\`,`\\textbackslash`),P(I,L,U,`^`,`\\textasciicircum`),P(F,L,H,`↑`,`\\uparrow`,!0),P(F,L,H,`⇑`,`\\Uparrow`,!0),P(F,L,H,`↓`,`\\downarrow`,!0),P(F,L,H,`⇓`,`\\Downarrow`,!0),P(F,L,H,`↕`,`\\updownarrow`,!0),P(F,L,H,`⇕`,`\\Updownarrow`,!0),P(F,L,Ti,`∐`,`\\coprod`),P(F,L,Ti,`⋁`,`\\bigvee`),P(F,L,Ti,`⋀`,`\\bigwedge`),P(F,L,Ti,`⨄`,`\\biguplus`),P(F,L,Ti,`⋂`,`\\bigcap`),P(F,L,Ti,`⋃`,`\\bigcup`),P(F,L,Ti,`∫`,`\\int`),P(F,L,Ti,`∫`,`\\intop`),P(F,L,Ti,`∬`,`\\iint`),P(F,L,Ti,`∭`,`\\iiint`),P(F,L,Ti,`∏`,`\\prod`),P(F,L,Ti,`∑`,`\\sum`),P(F,L,Ti,`⨂`,`\\bigotimes`),P(F,L,Ti,`⨁`,`\\bigoplus`),P(F,L,Ti,`⨀`,`\\bigodot`),P(F,L,Ti,`∮`,`\\oint`),P(F,L,Ti,`∯`,`\\oiint`),P(F,L,Ti,`∰`,`\\oiiint`),P(F,L,Ti,`⨆`,`\\bigsqcup`),P(F,L,Ti,`∫`,`\\smallint`),P(I,L,wi,`…`,`\\textellipsis`),P(F,L,wi,`…`,`\\mathellipsis`),P(I,L,wi,`…`,`\\ldots`,!0),P(F,L,wi,`…`,`\\ldots`,!0),P(F,L,wi,`⋯`,`\\@cdots`,!0),P(F,L,wi,`⋱`,`\\ddots`,!0),P(F,L,U,`⋮`,`\\varvdots`),P(I,L,U,`⋮`,`\\varvdots`),P(F,L,Si,`ˊ`,`\\acute`),P(F,L,Si,`ˋ`,`\\grave`),P(F,L,Si,`¨`,`\\ddot`),P(F,L,Si,`~`,`\\tilde`),P(F,L,Si,`ˉ`,`\\bar`),P(F,L,Si,`˘`,`\\breve`),P(F,L,Si,`ˇ`,`\\check`),P(F,L,Si,`^`,`\\hat`),P(F,L,Si,`⃗`,`\\vec`),P(F,L,Si,`˙`,`\\dot`),P(F,L,Si,`˚`,`\\mathring`),P(F,L,B,``,`\\@imath`),P(F,L,B,``,`\\@jmath`),P(F,L,U,`ı`,`ı`),P(F,L,U,`ȷ`,`ȷ`),P(I,L,U,`ı`,`\\i`,!0),P(I,L,U,`ȷ`,`\\j`,!0),P(I,L,U,`ß`,`\\ss`,!0),P(I,L,U,`æ`,`\\ae`,!0),P(I,L,U,`œ`,`\\oe`,!0),P(I,L,U,`ø`,`\\o`,!0),P(I,L,U,`Æ`,`\\AE`,!0),P(I,L,U,`Œ`,`\\OE`,!0),P(I,L,U,`Ø`,`\\O`,!0),P(I,L,Si,`ˊ`,`\\'`),P(I,L,Si,`ˋ`,"\\`"),P(I,L,Si,`ˆ`,`\\^`),P(I,L,Si,`˜`,`\\~`),P(I,L,Si,`ˉ`,`\\=`),P(I,L,Si,`˘`,`\\u`),P(I,L,Si,`˙`,`\\.`),P(I,L,Si,`¸`,`\\c`),P(I,L,Si,`˚`,`\\r`),P(I,L,Si,`ˇ`,`\\v`),P(I,L,Si,`¨`,`\\"`),P(I,L,Si,`˝`,`\\H`),P(I,L,Si,`◯`,`\\textcircled`);var Oi={"--":!0,"---":!0,"``":!0,"''":!0};P(I,L,U,`–`,`--`,!0),P(I,L,U,`–`,`\\textendash`),P(I,L,U,`—`,`---`,!0),P(I,L,U,`—`,`\\textemdash`),P(I,L,U,`‘`,"`",!0),P(I,L,U,`‘`,`\\textquoteleft`),P(I,L,U,`’`,`'`,!0),P(I,L,U,`’`,`\\textquoteright`),P(I,L,U,`“`,"``",!0),P(I,L,U,`“`,`\\textquotedblleft`),P(I,L,U,`”`,`''`,!0),P(I,L,U,`”`,`\\textquotedblright`),P(F,L,U,`°`,`\\degree`,!0),P(I,L,U,`°`,`\\degree`),P(I,L,U,`°`,`\\textdegree`,!0),P(F,L,U,`£`,`\\pounds`),P(F,L,U,`£`,`\\mathsterling`,!0),P(I,L,U,`£`,`\\pounds`),P(I,L,U,`£`,`\\textsterling`,!0),P(F,R,U,`✠`,`\\maltese`),P(I,R,U,`✠`,`\\maltese`);for(var ki=`0123456789/@."`,Ai=0;Ai<ki.length;Ai++){var ji=ki.charAt(Ai);P(F,L,U,ji,ji)}for(var Mi=`0123456789!@*()-=+";:?/.,`,Ni=0;Ni<Mi.length;Ni++){var Pi=Mi.charAt(Ni);P(I,L,U,Pi,Pi)}for(var Fi=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Ii=0;Ii<Fi.length;Ii++){var Li=Fi.charAt(Ii);P(F,L,B,Li,Li),P(I,L,U,Li,Li)}P(F,R,U,`C`,`ℂ`),P(I,R,U,`C`,`ℂ`),P(F,R,U,`H`,`ℍ`),P(I,R,U,`H`,`ℍ`),P(F,R,U,`N`,`ℕ`),P(I,R,U,`N`,`ℕ`),P(F,R,U,`P`,`ℙ`),P(I,R,U,`P`,`ℙ`),P(F,R,U,`Q`,`ℚ`),P(I,R,U,`Q`,`ℚ`),P(F,R,U,`R`,`ℝ`),P(I,R,U,`R`,`ℝ`),P(F,R,U,`Z`,`ℤ`),P(I,R,U,`Z`,`ℤ`),P(F,L,B,`h`,`ℎ`),P(I,L,B,`h`,`ℎ`);for(var W=``,Ri=0;Ri<Fi.length;Ri++){var zi=Fi.charAt(Ri);W=String.fromCharCode(55349,56320+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56372+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56424+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56580+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56684+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56736+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56788+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56840+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56944+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),Ri<26&&(W=String.fromCharCode(55349,56632+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56476+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W))}W=String.fromCharCode(55349,56668),P(F,L,B,`k`,W),P(I,L,U,`k`,W);for(var Bi=0;Bi<10;Bi++){var Vi=Bi.toString();W=String.fromCharCode(55349,57294+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W),W=String.fromCharCode(55349,57314+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W),W=String.fromCharCode(55349,57324+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W),W=String.fromCharCode(55349,57334+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W)}for(var Hi=`ÐÞþ`,Ui=0;Ui<Hi.length;Ui++){var Wi=Hi.charAt(Ui);P(F,L,B,Wi,Wi),P(I,L,U,Wi,Wi)}var Gi=[[`mathbf`,`textbf`,`Main-Bold`],[`mathbf`,`textbf`,`Main-Bold`],[`mathnormal`,`textit`,`Math-Italic`],[`mathnormal`,`textit`,`Math-Italic`],[`boldsymbol`,`boldsymbol`,`Main-BoldItalic`],[`boldsymbol`,`boldsymbol`,`Main-BoldItalic`],[`mathscr`,`textscr`,`Script-Regular`],[``,``,``],[``,``,``],[``,``,``],[`mathfrak`,`textfrak`,`Fraktur-Regular`],[`mathfrak`,`textfrak`,`Fraktur-Regular`],[`mathbb`,`textbb`,`AMS-Regular`],[`mathbb`,`textbb`,`AMS-Regular`],[`mathboldfrak`,`textboldfrak`,`Fraktur-Regular`],[`mathboldfrak`,`textboldfrak`,`Fraktur-Regular`],[`mathsf`,`textsf`,`SansSerif-Regular`],[`mathsf`,`textsf`,`SansSerif-Regular`],[`mathboldsf`,`textboldsf`,`SansSerif-Bold`],[`mathboldsf`,`textboldsf`,`SansSerif-Bold`],[`mathitsf`,`textitsf`,`SansSerif-Italic`],[`mathitsf`,`textitsf`,`SansSerif-Italic`],[``,``,``],[``,``,``],[`mathtt`,`texttt`,`Typewriter-Regular`],[`mathtt`,`texttt`,`Typewriter-Regular`]],Ki=[[`mathbf`,`textbf`,`Main-Bold`],[``,``,``],[`mathsf`,`textsf`,`SansSerif-Regular`],[`mathboldsf`,`textboldsf`,`SansSerif-Bold`],[`mathtt`,`texttt`,`Typewriter-Regular`]],qi=(e,t)=>{var n=e.charCodeAt(0),r=e.charCodeAt(1),i=(n-55296)*1024+(r-56320)+65536,a=t===`math`?0:1;if(119808<=i&&i<120484){var o=Math.floor((i-119808)/26);return[Gi[o][2],Gi[o][a]]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return[Ki[s][2],Ki[s][a]]}else if(i===120485||i===120486)return[Gi[0][2],Gi[0][a]];else if(120486<i&&i<120782)return[``,``];else throw new A(`Unsupported character: `+e)},Ji=function(e,t,n){if(xi[n][e]){var r=xi[n][e].replace;r&&(e=r)}return{value:e,metrics:gi(e,t,n)}},Yi=function(e,t,n,r,i){var a=Ji(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new ai(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new ai(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},Xi=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Ji(e,`Main-Bold`,t).metrics?Yi(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||xi[t][e].font===`main`?Yi(e,`Main-Regular`,t,n,r):Yi(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Zi=function(e,t,n,r,i){return i!==`textord`&&Ji(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Qi=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],o=r===`math`||r===`text`&&t.font,s=o?t.font:t.fontFamily,c=``,l=``;if(i.charCodeAt(0)===55349&&([c,l]=qi(i,r)),c.length>0)return Yi(i,c,r,t,a.concat(l));if(s){var u,d;if(s===`boldsymbol`){var f=Zi(i,r,t,a,n);u=f.fontName,d=[f.fontClass]}else o?(u=da[s].fontName,d=[s]):(u=ua(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(Ji(i,u,r).metrics)return Yi(i,u,r,t,a.concat(d));if(Oi.hasOwnProperty(i)&&u.slice(0,10)===`Typewriter`){for(var p=[],m=0;m<i.length;m++)p.push(Yi(i[m],u,r,t,a.concat(d)));return aa(p)}}if(n===`mathord`)return Yi(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var h=xi[r][i]&&xi[r][i].font;if(h===`ams`)return Yi(i,ua(`amsrm`,t.fontWeight,t.fontShape),r,t,a.concat(`amsrm`,t.fontWeight,t.fontShape));if(h===`main`||!h)return Yi(i,ua(`textrm`,t.fontWeight,t.fontShape),r,t,a.concat(t.fontWeight,t.fontShape));var g=ua(h,t.fontWeight,t.fontShape);return Yi(i,g,r,t,a.concat(g,t.fontWeight,t.fontShape))}else throw Error(`unexpected type: `+n+` in makeOrd`)},$i=(e,t)=>{if(Xr(e.classes)!==Xr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},ea=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof ai&&r instanceof ai&&$i(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},ta=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},G=function(e,t,n,r){var i=new ti(e,t,n,r);return ta(i),i},na=(e,t,n,r)=>new ti(e,t,n,r),ra=function(e,t,n){var r=G([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=N(r.height),r.maxFontSize=1,r},ia=function(e,t,n,r){var i=new ni(e,t,n,r);return ta(i),i},aa=function(e){var t=new Gr(e);return ta(t),t},oa=function(e,t){return e instanceof Gr?G([],[e],t):e},sa=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},ca=function(e,t){for(var{children:n,depth:r}=sa(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=G([`pstrut`],[]);c.style.height=N(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=G(g,[c,h],void 0,_);v.style.top=N(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=G([`vlist`],l);y.style.height=N(d);var b;if(u<0){var x=G([`vlist`],[G([],[])]);x.style.height=N(-u),b=[G([`vlist-r`],[y,G([`vlist-s`],[new ai(``)])]),G([`vlist-r`],[x])]}else b=[G([`vlist-r`],[y])];var S=G([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},la=(e,t)=>{var n=G([`mspace`],[],t),r=Yr(e,t);return n.style.marginRight=N(r),n},ua=function(e,t,n){var r=``;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}var i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:t===`textit`?`Italic`:`Regular`;return r+`-`+i},da={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},fa={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},pa=function(e,t){var[n,r,i]=fa[e],a=na([`overlay`],[new oi([new si(n)],{width:N(r),height:N(i),style:`width:`+N(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=N(i),a.style.width=N(r),a},ma={number:3,unit:`mu`},ha={number:4,unit:`mu`},ga={number:5,unit:`mu`},_a={mord:{mop:ma,mbin:ha,mrel:ga,minner:ma},mop:{mord:ma,mop:ma,mrel:ga,minner:ma},mbin:{mord:ha,mop:ha,mopen:ha,minner:ha},mrel:{mord:ga,mop:ga,mopen:ga,minner:ga},mopen:{},mclose:{mop:ma,mbin:ha,mrel:ga,minner:ma},mpunct:{mord:ma,mop:ma,mrel:ga,mopen:ma,mclose:ma,mpunct:ma,minner:ma},minner:{mord:ma,mop:ma,mbin:ha,mrel:ga,mopen:ma,mpunct:ma,minner:ma}},va={mord:{mop:ma},mop:{mord:ma,mop:ma},mbin:{},mrel:{},mopen:{},mclose:{mop:ma},mpunct:{},minner:{mop:ma}},ya={},ba={},xa={};function K(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)ya[n[c]]=s;t&&(a&&(ba[t]=a),o&&(xa[t]=o))}function Sa(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;K({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var Ca=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},wa=function(e){return e.type===`ordgroup`?e.body:[e]},Ta=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Ea=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Da={display:M.DISPLAY,text:M.TEXT,script:M.SCRIPT,scriptscript:M.SCRIPTSCRIPT},Oa={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},ka=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Pa(e[a],t);if(o instanceof Gr){var s=o.children;i.push(...s)}else i.push(o)}if(ea(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(Da[l.style]))}var u=G([r[0]||`leftmost`],[],t),d=G([r[1]||`rightmost`],[],t),f=n===`root`;return q(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Ea.has(r)?t.classes[0]=`mord`:r===`mbin`&&Ta.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),q(i,(e,t)=>{var n=Ma(t),r=Ma(e),i=n&&r?e.hasClass(`mtight`)?va[n]?.[r]:_a[n]?.[r]:null;if(i)return la(i,c)},{node:u},d,f),i},q=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Aa(o);if(s){q(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=G([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Aa=function(e){return e instanceof Gr||e instanceof ni||e instanceof ti&&e.hasClass(`enclosing`)?e:null},ja=function(e,t){var n=Aa(e);if(n){var r=n.children;if(r.length){if(t===`right`)return ja(r[r.length-1],`right`);if(t===`left`)return ja(r[0],`left`)}}return e},Ma=function(e,t){return e?(t&&(e=ja(e,t)),Oa[e.classes[0]]||null):null},Na=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return G(t.concat(n))},Pa=function(e,t,n){if(!e)return G();if(ba[e.type]){var r=ba[e.type](e,t);if(n&&t.size!==n.size){r=G(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new A(`Got group of unknown type: '`+e.type+`'`)};function Fa(e,t){var n=G([`base`],e,t),r=G([`strut`]);return r.style.height=N(n.height+n.depth),n.depth&&(r.style.verticalAlign=N(-n.depth)),n.children.unshift(r),n}function Ia(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=ka(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(Fa(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Fa(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Fa(o,t));var l;n?(l=Fa(ka(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=G([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=N(u.height+u.depth),u.depth&&(d.style.verticalAlign=N(-u.depth))}return u}function La(e){return new Gr(e)}var J=class{constructor(e,t,n){this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Xr(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Ra&&this.children[n+1]instanceof Ra){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Ra;)r+=this.children[++n].toText();e.appendChild(new Ra(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=or(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+or(Xr(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Ra=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return or(this.toText())}toText(){return this.text}},za=class{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,N(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+N(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Ba=new Set([`\\imath`,`\\jmath`]),Va=new Set([`mrow`,`mtable`]),Ha=function(e,t,n){return xi[t][e]&&xi[t][e].replace&&e.charCodeAt(0)!==55349&&!(Oi.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=xi[t][e].replace),new Ra(e)},Ua=function(e){return e.length===1?e[0]:new J(`mrow`,e)},Wa=function(e,t){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`;var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode;if(n===`mathit`)return`italic`;if(n===`boldsymbol`)return e.type===`textord`?`bold`:`bold-italic`;if(n===`mathbf`)return`bold`;if(n===`mathbb`)return`double-struck`;if(n===`mathsfit`)return`sans-serif-italic`;if(n===`mathfrak`)return`fraktur`;if(n===`mathscr`||n===`mathcal`)return`script`;if(n===`mathsf`)return`sans-serif`;if(n===`mathtt`)return`monospace`;var i=e.text;if(Ba.has(i))return null;if(xi[r][i]){var a=xi[r][i].replace;a&&(i=a)}var o=da[n].fontName;return gi(i,o,r)?da[n].variant:null};function Ga(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Ra&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Ra&&n.text===`,`}else return!1}var Ka=function(e,t,n){if(e.length===1){var r=Ja(e[0],t);return n&&r instanceof J&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Ja(e[o],t);if(s instanceof J&&a instanceof J){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(Ga(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&Ga(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Ga(a))){var c=s.children[0];c instanceof J&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof Ra&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Ra&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},qa=function(e,t,n){return Ua(Ka(e,t,n))},Ja=function(e,t){if(!e)return new J(`mrow`);if(xa[e.type])return xa[e.type](e,t);throw new A(`Got group of unknown type: '`+e.type+`'`)};function Ya(e,t,n,r,i){var a=Ka(e,n),o=a.length===1&&a[0]instanceof J&&Va.has(a[0].type)?a[0]:new J(`mrow`,a),s=new J(`annotation`,[new Ra(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new J(`math`,[new J(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),G([i?`katex`:`katex-mathml`],[c])}var Xa=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Za=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qa=function(e,t){return t.size<2?e:Xa[e-1][t.size-1]},$a=class e{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=Za[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Qa(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Za[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Qa(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=vi(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};$a.BASESIZE=6;var eo=function(e){return new $a({style:e.displayMode?M.DISPLAY:M.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},to=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=G(n,[e])}return e},no=function(e,t,n){var r=eo(n),i;return n.output===`mathml`?Ya(e,t,r,n.displayMode,!0):(i=n.output===`html`?G([`katex`],[Ia(e,r)]):G([`katex`],[Ya(e,t,r,n.displayMode,!1),Ia(e,r)]),to(i,n))},ro=function(e,t,n){return to(G([`katex`],[Ia(e,eo(n))]),n)},io={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},ao=function(e){var t=new J(`mo`,[new Ra(io[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},oo={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},so=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),co=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(so.has(r)){var i=e,a=i.base.type===`ordgroup`?i.base.body.length:1,o,s,c;if(a>5)r===`widehat`||r===`widecheck`?(o=420,n=2364,c=.42,s=r+`4`):(o=312,n=2340,c=.34,s=`tilde4`);else{var l=[1,1,2,2,3,3][a];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],c=[0,.24,.3,.3,.36,.42][l],s=r+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],c=[0,.26,.286,.3,.306,.34][l],s=`tilde`+l)}return{span:na([],[new oi([new si(s)],{width:`100%`,height:N(c),viewBox:`0 0 `+n+` `+o,preserveAspectRatio:`none`})],t),minWidth:0,height:c}}else{var u=[],d=oo[r],[f,p,m]=d,h=m/1e3,g=f.length,_,v;if(g===1){var y=d[3];_=[`hide-tail`],v=[y]}else if(g===2)_=[`halfarrow-left`,`halfarrow-right`],v=[`xMinYMin`,`xMaxYMin`];else if(g===3)_=[`brace-left`,`brace-center`,`brace-right`],v=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
515
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}},Gr=class{constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join(``)}},Kr={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},qr={ex:!0,em:!0,mu:!0},Jr=function(e){return typeof e!=`string`&&(e=e.unit),e in Kr||e in qr||e===`ex`},Yr=function(e,t){var n;if(e.unit in Kr)n=Kr[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new A(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},N=function(e){return+e.toFixed(4)+`em`},Xr=function(e){return e.filter(e=>e).join(` `)},Zr=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},Qr=function(e){var t=document.createElement(e);t.className=Xr(this.classes);for(var n of Object.keys(this.style))t.style[n]=this.style[n];for(var r of Object.keys(this.attributes))t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},$r=/[\s"'>/=\x00-\x1f]/,ei=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+or(Xr(this.classes))+`"`);var n=``;for(var r of Object.keys(this.style))n+=rr(r)+`:`+this.style[r]+`;`;n&&(t+=` style="`+or(n)+`"`);for(var i of Object.keys(this.attributes)){if($r.test(i))throw new A(`Invalid attribute name '`+i+`'`);t+=` `+i+`="`+or(this.attributes[i])+`"`}t+=`>`;for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+=`</`+e+`>`,t},ti=class{constructor(e,t,n,r){Zr.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qr.call(this,`span`)}toMarkup(){return ei.call(this,`span`)}},ni=class{constructor(e,t,n,r){Zr.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qr.call(this,`a`)}toMarkup(){return ei.call(this,`a`)}},ri=class{constructor(e,t,n){this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);e.src=this.src,e.alt=this.alt,e.className=`mord`;for(var t of Object.keys(this.style))e.style[t]=this.style[t];return e}toMarkup(){var e=`<img src="`+or(this.src)+`"`+(` alt="`+or(this.alt)+`"`),t=``;for(var n of Object.keys(this.style))t+=rr(n)+`:`+this.style[n]+`;`;return t&&(e+=` style="`+or(t)+`"`),e+=`'/>`,e}},ii={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},ai=class{constructor(e,t,n,r,i,a,o,s){this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=Ar(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=ii[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=N(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=Xr(this.classes));for(var n of Object.keys(this.style))t||=document.createElement(`span`),t.style[n]=this.style[n];return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=or(Xr(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+N(this.italic)+`;`);for(var r of Object.keys(this.style))n+=rr(r)+`:`+this.style[r]+`;`;n&&(e=!0,t+=` style="`+or(n)+`"`);var i=or(this.text);return e?(t+=`>`,t+=i,t+=`</span>`,t):i}},oi=class{constructor(e,t){this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+or(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},si=class{constructor(e,t){this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,Ur[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+or(this.alternate)+`"/>`:`<path d="`+or(Ur[this.pathName])+`"/>`}},ci=class{constructor(e){this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+or(this.attributes[t])+`"`;return e+=`/>`,e}};function li(e){if(e instanceof ai)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function ui(e){if(e instanceof ti)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var di=e=>e instanceof ti||e instanceof ni||e instanceof Gr,fi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},pi={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},mi={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function hi(e,t){fi[e]=t}function gi(e,t,n){if(!fi[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=fi[t][r];if(!i&&e[0]in mi&&(r=mi[e[0]].charCodeAt(0),i=fi[t][r]),!i&&n===`text`&&Mr(r)&&(i=fi[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var _i={};function vi(e){var t=e>=5?0:e>=3?1:2;if(!_i[t]){var n=_i[t]={cssEmPerMu:pi.quad[t]/18};for(var r in pi)pi.hasOwnProperty(r)&&(n[r]=pi[r][t])}return _i[t]}var yi={bin:1,close:1,inner:1,open:1,punct:1,rel:1},bi={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},xi={math:{},text:{}};function P(e,t,n,r,i,a){xi[e][i]={font:t,group:n,replace:r},a&&r&&(xi[e][r]=xi[e][i])}var F=`math`,I=`text`,L=`main`,R=`ams`,Si=`accent-token`,z=`bin`,Ci=`close`,wi=`inner`,B=`mathord`,V=`op-token`,Ti=`open`,Ei=`punct`,H=`rel`,Di=`spacing`,U=`textord`;P(F,L,H,`≡`,`\\equiv`,!0),P(F,L,H,`≺`,`\\prec`,!0),P(F,L,H,`≻`,`\\succ`,!0),P(F,L,H,`∼`,`\\sim`,!0),P(F,L,H,`⊥`,`\\perp`),P(F,L,H,`⪯`,`\\preceq`,!0),P(F,L,H,`⪰`,`\\succeq`,!0),P(F,L,H,`≃`,`\\simeq`,!0),P(F,L,H,`∣`,`\\mid`,!0),P(F,L,H,`≪`,`\\ll`,!0),P(F,L,H,`≫`,`\\gg`,!0),P(F,L,H,`≍`,`\\asymp`,!0),P(F,L,H,`∥`,`\\parallel`),P(F,L,H,`⋈`,`\\bowtie`,!0),P(F,L,H,`⌣`,`\\smile`,!0),P(F,L,H,`⊑`,`\\sqsubseteq`,!0),P(F,L,H,`⊒`,`\\sqsupseteq`,!0),P(F,L,H,`≐`,`\\doteq`,!0),P(F,L,H,`⌢`,`\\frown`,!0),P(F,L,H,`∋`,`\\ni`,!0),P(F,L,H,`∝`,`\\propto`,!0),P(F,L,H,`⊢`,`\\vdash`,!0),P(F,L,H,`⊣`,`\\dashv`,!0),P(F,L,H,`∋`,`\\owns`),P(F,L,Ei,`.`,`\\ldotp`),P(F,L,Ei,`⋅`,`\\cdotp`),P(F,L,Ei,`⋅`,`·`),P(I,L,U,`⋅`,`·`),P(F,L,U,`#`,`\\#`),P(I,L,U,`#`,`\\#`),P(F,L,U,`&`,`\\&`),P(I,L,U,`&`,`\\&`),P(F,L,U,`ℵ`,`\\aleph`,!0),P(F,L,U,`∀`,`\\forall`,!0),P(F,L,U,`ℏ`,`\\hbar`,!0),P(F,L,U,`∃`,`\\exists`,!0),P(F,L,U,`∇`,`\\nabla`,!0),P(F,L,U,`♭`,`\\flat`,!0),P(F,L,U,`ℓ`,`\\ell`,!0),P(F,L,U,`♮`,`\\natural`,!0),P(F,L,U,`♣`,`\\clubsuit`,!0),P(F,L,U,`℘`,`\\wp`,!0),P(F,L,U,`♯`,`\\sharp`,!0),P(F,L,U,`♢`,`\\diamondsuit`,!0),P(F,L,U,`ℜ`,`\\Re`,!0),P(F,L,U,`♡`,`\\heartsuit`,!0),P(F,L,U,`ℑ`,`\\Im`,!0),P(F,L,U,`♠`,`\\spadesuit`,!0),P(F,L,U,`§`,`\\S`,!0),P(I,L,U,`§`,`\\S`),P(F,L,U,`¶`,`\\P`,!0),P(I,L,U,`¶`,`\\P`),P(F,L,U,`†`,`\\dag`),P(I,L,U,`†`,`\\dag`),P(I,L,U,`†`,`\\textdagger`),P(F,L,U,`‡`,`\\ddag`),P(I,L,U,`‡`,`\\ddag`),P(I,L,U,`‡`,`\\textdaggerdbl`),P(F,L,Ci,`⎱`,`\\rmoustache`,!0),P(F,L,Ti,`⎰`,`\\lmoustache`,!0),P(F,L,Ci,`⟯`,`\\rgroup`,!0),P(F,L,Ti,`⟮`,`\\lgroup`,!0),P(F,L,z,`∓`,`\\mp`,!0),P(F,L,z,`⊖`,`\\ominus`,!0),P(F,L,z,`⊎`,`\\uplus`,!0),P(F,L,z,`⊓`,`\\sqcap`,!0),P(F,L,z,`∗`,`\\ast`),P(F,L,z,`⊔`,`\\sqcup`,!0),P(F,L,z,`◯`,`\\bigcirc`,!0),P(F,L,z,`∙`,`\\bullet`,!0),P(F,L,z,`‡`,`\\ddagger`),P(F,L,z,`≀`,`\\wr`,!0),P(F,L,z,`⨿`,`\\amalg`),P(F,L,z,`&`,`\\And`),P(F,L,H,`⟵`,`\\longleftarrow`,!0),P(F,L,H,`⇐`,`\\Leftarrow`,!0),P(F,L,H,`⟸`,`\\Longleftarrow`,!0),P(F,L,H,`⟶`,`\\longrightarrow`,!0),P(F,L,H,`⇒`,`\\Rightarrow`,!0),P(F,L,H,`⟹`,`\\Longrightarrow`,!0),P(F,L,H,`↔`,`\\leftrightarrow`,!0),P(F,L,H,`⟷`,`\\longleftrightarrow`,!0),P(F,L,H,`⇔`,`\\Leftrightarrow`,!0),P(F,L,H,`⟺`,`\\Longleftrightarrow`,!0),P(F,L,H,`↦`,`\\mapsto`,!0),P(F,L,H,`⟼`,`\\longmapsto`,!0),P(F,L,H,`↗`,`\\nearrow`,!0),P(F,L,H,`↩`,`\\hookleftarrow`,!0),P(F,L,H,`↪`,`\\hookrightarrow`,!0),P(F,L,H,`↘`,`\\searrow`,!0),P(F,L,H,`↼`,`\\leftharpoonup`,!0),P(F,L,H,`⇀`,`\\rightharpoonup`,!0),P(F,L,H,`↙`,`\\swarrow`,!0),P(F,L,H,`↽`,`\\leftharpoondown`,!0),P(F,L,H,`⇁`,`\\rightharpoondown`,!0),P(F,L,H,`↖`,`\\nwarrow`,!0),P(F,L,H,`⇌`,`\\rightleftharpoons`,!0),P(F,R,H,`≮`,`\\nless`,!0),P(F,R,H,``,`\\@nleqslant`),P(F,R,H,``,`\\@nleqq`),P(F,R,H,`⪇`,`\\lneq`,!0),P(F,R,H,`≨`,`\\lneqq`,!0),P(F,R,H,``,`\\@lvertneqq`),P(F,R,H,`⋦`,`\\lnsim`,!0),P(F,R,H,`⪉`,`\\lnapprox`,!0),P(F,R,H,`⊀`,`\\nprec`,!0),P(F,R,H,`⋠`,`\\npreceq`,!0),P(F,R,H,`⋨`,`\\precnsim`,!0),P(F,R,H,`⪹`,`\\precnapprox`,!0),P(F,R,H,`≁`,`\\nsim`,!0),P(F,R,H,``,`\\@nshortmid`),P(F,R,H,`∤`,`\\nmid`,!0),P(F,R,H,`⊬`,`\\nvdash`,!0),P(F,R,H,`⊭`,`\\nvDash`,!0),P(F,R,H,`⋪`,`\\ntriangleleft`),P(F,R,H,`⋬`,`\\ntrianglelefteq`,!0),P(F,R,H,`⊊`,`\\subsetneq`,!0),P(F,R,H,``,`\\@varsubsetneq`),P(F,R,H,`⫋`,`\\subsetneqq`,!0),P(F,R,H,``,`\\@varsubsetneqq`),P(F,R,H,`≯`,`\\ngtr`,!0),P(F,R,H,``,`\\@ngeqslant`),P(F,R,H,``,`\\@ngeqq`),P(F,R,H,`⪈`,`\\gneq`,!0),P(F,R,H,`≩`,`\\gneqq`,!0),P(F,R,H,``,`\\@gvertneqq`),P(F,R,H,`⋧`,`\\gnsim`,!0),P(F,R,H,`⪊`,`\\gnapprox`,!0),P(F,R,H,`⊁`,`\\nsucc`,!0),P(F,R,H,`⋡`,`\\nsucceq`,!0),P(F,R,H,`⋩`,`\\succnsim`,!0),P(F,R,H,`⪺`,`\\succnapprox`,!0),P(F,R,H,`≆`,`\\ncong`,!0),P(F,R,H,``,`\\@nshortparallel`),P(F,R,H,`∦`,`\\nparallel`,!0),P(F,R,H,`⊯`,`\\nVDash`,!0),P(F,R,H,`⋫`,`\\ntriangleright`),P(F,R,H,`⋭`,`\\ntrianglerighteq`,!0),P(F,R,H,``,`\\@nsupseteqq`),P(F,R,H,`⊋`,`\\supsetneq`,!0),P(F,R,H,``,`\\@varsupsetneq`),P(F,R,H,`⫌`,`\\supsetneqq`,!0),P(F,R,H,``,`\\@varsupsetneqq`),P(F,R,H,`⊮`,`\\nVdash`,!0),P(F,R,H,`⪵`,`\\precneqq`,!0),P(F,R,H,`⪶`,`\\succneqq`,!0),P(F,R,H,``,`\\@nsubseteqq`),P(F,R,z,`⊴`,`\\unlhd`),P(F,R,z,`⊵`,`\\unrhd`),P(F,R,H,`↚`,`\\nleftarrow`,!0),P(F,R,H,`↛`,`\\nrightarrow`,!0),P(F,R,H,`⇍`,`\\nLeftarrow`,!0),P(F,R,H,`⇏`,`\\nRightarrow`,!0),P(F,R,H,`↮`,`\\nleftrightarrow`,!0),P(F,R,H,`⇎`,`\\nLeftrightarrow`,!0),P(F,R,H,`△`,`\\vartriangle`),P(F,R,U,`ℏ`,`\\hslash`),P(F,R,U,`▽`,`\\triangledown`),P(F,R,U,`◊`,`\\lozenge`),P(F,R,U,`Ⓢ`,`\\circledS`),P(F,R,U,`®`,`\\circledR`),P(I,R,U,`®`,`\\circledR`),P(F,R,U,`∡`,`\\measuredangle`,!0),P(F,R,U,`∄`,`\\nexists`),P(F,R,U,`℧`,`\\mho`),P(F,R,U,`Ⅎ`,`\\Finv`,!0),P(F,R,U,`⅁`,`\\Game`,!0),P(F,R,U,`‵`,`\\backprime`),P(F,R,U,`▲`,`\\blacktriangle`),P(F,R,U,`▼`,`\\blacktriangledown`),P(F,R,U,`■`,`\\blacksquare`),P(F,R,U,`⧫`,`\\blacklozenge`),P(F,R,U,`★`,`\\bigstar`),P(F,R,U,`∢`,`\\sphericalangle`,!0),P(F,R,U,`∁`,`\\complement`,!0),P(F,R,U,`ð`,`\\eth`,!0),P(I,L,U,`ð`,`ð`),P(F,R,U,`╱`,`\\diagup`),P(F,R,U,`╲`,`\\diagdown`),P(F,R,U,`□`,`\\square`),P(F,R,U,`□`,`\\Box`),P(F,R,U,`◊`,`\\Diamond`),P(F,R,U,`¥`,`\\yen`,!0),P(I,R,U,`¥`,`\\yen`,!0),P(F,R,U,`✓`,`\\checkmark`,!0),P(I,R,U,`✓`,`\\checkmark`),P(F,R,U,`ℶ`,`\\beth`,!0),P(F,R,U,`ℸ`,`\\daleth`,!0),P(F,R,U,`ℷ`,`\\gimel`,!0),P(F,R,U,`ϝ`,`\\digamma`,!0),P(F,R,U,`ϰ`,`\\varkappa`),P(F,R,Ti,`┌`,`\\@ulcorner`,!0),P(F,R,Ci,`┐`,`\\@urcorner`,!0),P(F,R,Ti,`└`,`\\@llcorner`,!0),P(F,R,Ci,`┘`,`\\@lrcorner`,!0),P(F,R,H,`≦`,`\\leqq`,!0),P(F,R,H,`⩽`,`\\leqslant`,!0),P(F,R,H,`⪕`,`\\eqslantless`,!0),P(F,R,H,`≲`,`\\lesssim`,!0),P(F,R,H,`⪅`,`\\lessapprox`,!0),P(F,R,H,`≊`,`\\approxeq`,!0),P(F,R,z,`⋖`,`\\lessdot`),P(F,R,H,`⋘`,`\\lll`,!0),P(F,R,H,`≶`,`\\lessgtr`,!0),P(F,R,H,`⋚`,`\\lesseqgtr`,!0),P(F,R,H,`⪋`,`\\lesseqqgtr`,!0),P(F,R,H,`≑`,`\\doteqdot`),P(F,R,H,`≓`,`\\risingdotseq`,!0),P(F,R,H,`≒`,`\\fallingdotseq`,!0),P(F,R,H,`∽`,`\\backsim`,!0),P(F,R,H,`⋍`,`\\backsimeq`,!0),P(F,R,H,`⫅`,`\\subseteqq`,!0),P(F,R,H,`⋐`,`\\Subset`,!0),P(F,R,H,`⊏`,`\\sqsubset`,!0),P(F,R,H,`≼`,`\\preccurlyeq`,!0),P(F,R,H,`⋞`,`\\curlyeqprec`,!0),P(F,R,H,`≾`,`\\precsim`,!0),P(F,R,H,`⪷`,`\\precapprox`,!0),P(F,R,H,`⊲`,`\\vartriangleleft`),P(F,R,H,`⊴`,`\\trianglelefteq`),P(F,R,H,`⊨`,`\\vDash`,!0),P(F,R,H,`⊪`,`\\Vvdash`,!0),P(F,R,H,`⌣`,`\\smallsmile`),P(F,R,H,`⌢`,`\\smallfrown`),P(F,R,H,`≏`,`\\bumpeq`,!0),P(F,R,H,`≎`,`\\Bumpeq`,!0),P(F,R,H,`≧`,`\\geqq`,!0),P(F,R,H,`⩾`,`\\geqslant`,!0),P(F,R,H,`⪖`,`\\eqslantgtr`,!0),P(F,R,H,`≳`,`\\gtrsim`,!0),P(F,R,H,`⪆`,`\\gtrapprox`,!0),P(F,R,z,`⋗`,`\\gtrdot`),P(F,R,H,`⋙`,`\\ggg`,!0),P(F,R,H,`≷`,`\\gtrless`,!0),P(F,R,H,`⋛`,`\\gtreqless`,!0),P(F,R,H,`⪌`,`\\gtreqqless`,!0),P(F,R,H,`≖`,`\\eqcirc`,!0),P(F,R,H,`≗`,`\\circeq`,!0),P(F,R,H,`≜`,`\\triangleq`,!0),P(F,R,H,`∼`,`\\thicksim`),P(F,R,H,`≈`,`\\thickapprox`),P(F,R,H,`⫆`,`\\supseteqq`,!0),P(F,R,H,`⋑`,`\\Supset`,!0),P(F,R,H,`⊐`,`\\sqsupset`,!0),P(F,R,H,`≽`,`\\succcurlyeq`,!0),P(F,R,H,`⋟`,`\\curlyeqsucc`,!0),P(F,R,H,`≿`,`\\succsim`,!0),P(F,R,H,`⪸`,`\\succapprox`,!0),P(F,R,H,`⊳`,`\\vartriangleright`),P(F,R,H,`⊵`,`\\trianglerighteq`),P(F,R,H,`⊩`,`\\Vdash`,!0),P(F,R,H,`∣`,`\\shortmid`),P(F,R,H,`∥`,`\\shortparallel`),P(F,R,H,`≬`,`\\between`,!0),P(F,R,H,`⋔`,`\\pitchfork`,!0),P(F,R,H,`∝`,`\\varpropto`),P(F,R,H,`◀`,`\\blacktriangleleft`),P(F,R,H,`∴`,`\\therefore`,!0),P(F,R,H,`∍`,`\\backepsilon`),P(F,R,H,`▶`,`\\blacktriangleright`),P(F,R,H,`∵`,`\\because`,!0),P(F,R,H,`⋘`,`\\llless`),P(F,R,H,`⋙`,`\\gggtr`),P(F,R,z,`⊲`,`\\lhd`),P(F,R,z,`⊳`,`\\rhd`),P(F,R,H,`≂`,`\\eqsim`,!0),P(F,L,H,`⋈`,`\\Join`),P(F,R,H,`≑`,`\\Doteq`,!0),P(F,R,z,`∔`,`\\dotplus`,!0),P(F,R,z,`∖`,`\\smallsetminus`),P(F,R,z,`⋒`,`\\Cap`,!0),P(F,R,z,`⋓`,`\\Cup`,!0),P(F,R,z,`⩞`,`\\doublebarwedge`,!0),P(F,R,z,`⊟`,`\\boxminus`,!0),P(F,R,z,`⊞`,`\\boxplus`,!0),P(F,R,z,`⋇`,`\\divideontimes`,!0),P(F,R,z,`⋉`,`\\ltimes`,!0),P(F,R,z,`⋊`,`\\rtimes`,!0),P(F,R,z,`⋋`,`\\leftthreetimes`,!0),P(F,R,z,`⋌`,`\\rightthreetimes`,!0),P(F,R,z,`⋏`,`\\curlywedge`,!0),P(F,R,z,`⋎`,`\\curlyvee`,!0),P(F,R,z,`⊝`,`\\circleddash`,!0),P(F,R,z,`⊛`,`\\circledast`,!0),P(F,R,z,`⋅`,`\\centerdot`),P(F,R,z,`⊺`,`\\intercal`,!0),P(F,R,z,`⋒`,`\\doublecap`),P(F,R,z,`⋓`,`\\doublecup`),P(F,R,z,`⊠`,`\\boxtimes`,!0),P(F,R,H,`⇢`,`\\dashrightarrow`,!0),P(F,R,H,`⇠`,`\\dashleftarrow`,!0),P(F,R,H,`⇇`,`\\leftleftarrows`,!0),P(F,R,H,`⇆`,`\\leftrightarrows`,!0),P(F,R,H,`⇚`,`\\Lleftarrow`,!0),P(F,R,H,`↞`,`\\twoheadleftarrow`,!0),P(F,R,H,`↢`,`\\leftarrowtail`,!0),P(F,R,H,`↫`,`\\looparrowleft`,!0),P(F,R,H,`⇋`,`\\leftrightharpoons`,!0),P(F,R,H,`↶`,`\\curvearrowleft`,!0),P(F,R,H,`↺`,`\\circlearrowleft`,!0),P(F,R,H,`↰`,`\\Lsh`,!0),P(F,R,H,`⇈`,`\\upuparrows`,!0),P(F,R,H,`↿`,`\\upharpoonleft`,!0),P(F,R,H,`⇃`,`\\downharpoonleft`,!0),P(F,L,H,`⊶`,`\\origof`,!0),P(F,L,H,`⊷`,`\\imageof`,!0),P(F,R,H,`⊸`,`\\multimap`,!0),P(F,R,H,`↭`,`\\leftrightsquigarrow`,!0),P(F,R,H,`⇉`,`\\rightrightarrows`,!0),P(F,R,H,`⇄`,`\\rightleftarrows`,!0),P(F,R,H,`↠`,`\\twoheadrightarrow`,!0),P(F,R,H,`↣`,`\\rightarrowtail`,!0),P(F,R,H,`↬`,`\\looparrowright`,!0),P(F,R,H,`↷`,`\\curvearrowright`,!0),P(F,R,H,`↻`,`\\circlearrowright`,!0),P(F,R,H,`↱`,`\\Rsh`,!0),P(F,R,H,`⇊`,`\\downdownarrows`,!0),P(F,R,H,`↾`,`\\upharpoonright`,!0),P(F,R,H,`⇂`,`\\downharpoonright`,!0),P(F,R,H,`⇝`,`\\rightsquigarrow`,!0),P(F,R,H,`⇝`,`\\leadsto`),P(F,R,H,`⇛`,`\\Rrightarrow`,!0),P(F,R,H,`↾`,`\\restriction`),P(F,L,U,`‘`,"`"),P(F,L,U,`$`,`\\$`),P(I,L,U,`$`,`\\$`),P(I,L,U,`$`,`\\textdollar`),P(F,L,U,`%`,`\\%`),P(I,L,U,`%`,`\\%`),P(F,L,U,`_`,`\\_`),P(I,L,U,`_`,`\\_`),P(I,L,U,`_`,`\\textunderscore`),P(F,L,U,`∠`,`\\angle`,!0),P(F,L,U,`∞`,`\\infty`,!0),P(F,L,U,`′`,`\\prime`),P(F,L,U,`△`,`\\triangle`),P(F,L,U,`Γ`,`\\Gamma`,!0),P(F,L,U,`Δ`,`\\Delta`,!0),P(F,L,U,`Θ`,`\\Theta`,!0),P(F,L,U,`Λ`,`\\Lambda`,!0),P(F,L,U,`Ξ`,`\\Xi`,!0),P(F,L,U,`Π`,`\\Pi`,!0),P(F,L,U,`Σ`,`\\Sigma`,!0),P(F,L,U,`Υ`,`\\Upsilon`,!0),P(F,L,U,`Φ`,`\\Phi`,!0),P(F,L,U,`Ψ`,`\\Psi`,!0),P(F,L,U,`Ω`,`\\Omega`,!0),P(F,L,U,`A`,`Α`),P(F,L,U,`B`,`Β`),P(F,L,U,`E`,`Ε`),P(F,L,U,`Z`,`Ζ`),P(F,L,U,`H`,`Η`),P(F,L,U,`I`,`Ι`),P(F,L,U,`K`,`Κ`),P(F,L,U,`M`,`Μ`),P(F,L,U,`N`,`Ν`),P(F,L,U,`O`,`Ο`),P(F,L,U,`P`,`Ρ`),P(F,L,U,`T`,`Τ`),P(F,L,U,`X`,`Χ`),P(F,L,U,`¬`,`\\neg`,!0),P(F,L,U,`¬`,`\\lnot`),P(F,L,U,`⊤`,`\\top`),P(F,L,U,`⊥`,`\\bot`),P(F,L,U,`∅`,`\\emptyset`),P(F,R,U,`∅`,`\\varnothing`),P(F,L,B,`α`,`\\alpha`,!0),P(F,L,B,`β`,`\\beta`,!0),P(F,L,B,`γ`,`\\gamma`,!0),P(F,L,B,`δ`,`\\delta`,!0),P(F,L,B,`ϵ`,`\\epsilon`,!0),P(F,L,B,`ζ`,`\\zeta`,!0),P(F,L,B,`η`,`\\eta`,!0),P(F,L,B,`θ`,`\\theta`,!0),P(F,L,B,`ι`,`\\iota`,!0),P(F,L,B,`κ`,`\\kappa`,!0),P(F,L,B,`λ`,`\\lambda`,!0),P(F,L,B,`μ`,`\\mu`,!0),P(F,L,B,`ν`,`\\nu`,!0),P(F,L,B,`ξ`,`\\xi`,!0),P(F,L,B,`ο`,`\\omicron`,!0),P(F,L,B,`π`,`\\pi`,!0),P(F,L,B,`ρ`,`\\rho`,!0),P(F,L,B,`σ`,`\\sigma`,!0),P(F,L,B,`τ`,`\\tau`,!0),P(F,L,B,`υ`,`\\upsilon`,!0),P(F,L,B,`ϕ`,`\\phi`,!0),P(F,L,B,`χ`,`\\chi`,!0),P(F,L,B,`ψ`,`\\psi`,!0),P(F,L,B,`ω`,`\\omega`,!0),P(F,L,B,`ε`,`\\varepsilon`,!0),P(F,L,B,`ϑ`,`\\vartheta`,!0),P(F,L,B,`ϖ`,`\\varpi`,!0),P(F,L,B,`ϱ`,`\\varrho`,!0),P(F,L,B,`ς`,`\\varsigma`,!0),P(F,L,B,`φ`,`\\varphi`,!0),P(F,L,z,`∗`,`*`,!0),P(F,L,z,`+`,`+`),P(F,L,z,`−`,`-`,!0),P(F,L,z,`⋅`,`\\cdot`,!0),P(F,L,z,`∘`,`\\circ`,!0),P(F,L,z,`÷`,`\\div`,!0),P(F,L,z,`±`,`\\pm`,!0),P(F,L,z,`×`,`\\times`,!0),P(F,L,z,`∩`,`\\cap`,!0),P(F,L,z,`∪`,`\\cup`,!0),P(F,L,z,`∖`,`\\setminus`,!0),P(F,L,z,`∧`,`\\land`),P(F,L,z,`∨`,`\\lor`),P(F,L,z,`∧`,`\\wedge`,!0),P(F,L,z,`∨`,`\\vee`,!0),P(F,L,U,`√`,`\\surd`),P(F,L,Ti,`⟨`,`\\langle`,!0),P(F,L,Ti,`∣`,`\\lvert`),P(F,L,Ti,`∥`,`\\lVert`),P(F,L,Ci,`?`,`?`),P(F,L,Ci,`!`,`!`),P(F,L,Ci,`⟩`,`\\rangle`,!0),P(F,L,Ci,`∣`,`\\rvert`),P(F,L,Ci,`∥`,`\\rVert`),P(F,L,H,`=`,`=`),P(F,L,H,`:`,`:`),P(F,L,H,`≈`,`\\approx`,!0),P(F,L,H,`≅`,`\\cong`,!0),P(F,L,H,`≥`,`\\ge`),P(F,L,H,`≥`,`\\geq`,!0),P(F,L,H,`←`,`\\gets`),P(F,L,H,`>`,`\\gt`,!0),P(F,L,H,`∈`,`\\in`,!0),P(F,L,H,``,`\\@not`),P(F,L,H,`⊂`,`\\subset`,!0),P(F,L,H,`⊃`,`\\supset`,!0),P(F,L,H,`⊆`,`\\subseteq`,!0),P(F,L,H,`⊇`,`\\supseteq`,!0),P(F,R,H,`⊈`,`\\nsubseteq`,!0),P(F,R,H,`⊉`,`\\nsupseteq`,!0),P(F,L,H,`⊨`,`\\models`),P(F,L,H,`←`,`\\leftarrow`,!0),P(F,L,H,`≤`,`\\le`),P(F,L,H,`≤`,`\\leq`,!0),P(F,L,H,`<`,`\\lt`,!0),P(F,L,H,`→`,`\\rightarrow`,!0),P(F,L,H,`→`,`\\to`),P(F,R,H,`≱`,`\\ngeq`,!0),P(F,R,H,`≰`,`\\nleq`,!0),P(F,L,Di,`\xA0`,`\\ `),P(F,L,Di,`\xA0`,`\\space`),P(F,L,Di,`\xA0`,`\\nobreakspace`),P(I,L,Di,`\xA0`,`\\ `),P(I,L,Di,`\xA0`,` `),P(I,L,Di,`\xA0`,`\\space`),P(I,L,Di,`\xA0`,`\\nobreakspace`),P(F,L,Di,null,`\\nobreak`),P(F,L,Di,null,`\\allowbreak`),P(F,L,Ei,`,`,`,`),P(F,L,Ei,`;`,`;`),P(F,R,z,`⊼`,`\\barwedge`,!0),P(F,R,z,`⊻`,`\\veebar`,!0),P(F,L,z,`⊙`,`\\odot`,!0),P(F,L,z,`⊕`,`\\oplus`,!0),P(F,L,z,`⊗`,`\\otimes`,!0),P(F,L,U,`∂`,`\\partial`,!0),P(F,L,z,`⊘`,`\\oslash`,!0),P(F,R,z,`⊚`,`\\circledcirc`,!0),P(F,R,z,`⊡`,`\\boxdot`,!0),P(F,L,z,`△`,`\\bigtriangleup`),P(F,L,z,`▽`,`\\bigtriangledown`),P(F,L,z,`†`,`\\dagger`),P(F,L,z,`⋄`,`\\diamond`),P(F,L,z,`⋆`,`\\star`),P(F,L,z,`◃`,`\\triangleleft`),P(F,L,z,`▹`,`\\triangleright`),P(F,L,Ti,`{`,`\\{`),P(I,L,U,`{`,`\\{`),P(I,L,U,`{`,`\\textbraceleft`),P(F,L,Ci,`}`,`\\}`),P(I,L,U,`}`,`\\}`),P(I,L,U,`}`,`\\textbraceright`),P(F,L,Ti,`{`,`\\lbrace`),P(F,L,Ci,`}`,`\\rbrace`),P(F,L,Ti,`[`,`\\lbrack`,!0),P(I,L,U,`[`,`\\lbrack`,!0),P(F,L,Ci,`]`,`\\rbrack`,!0),P(I,L,U,`]`,`\\rbrack`,!0),P(F,L,Ti,`(`,`\\lparen`,!0),P(F,L,Ci,`)`,`\\rparen`,!0),P(I,L,U,`<`,`\\textless`,!0),P(I,L,U,`>`,`\\textgreater`,!0),P(F,L,Ti,`⌊`,`\\lfloor`,!0),P(F,L,Ci,`⌋`,`\\rfloor`,!0),P(F,L,Ti,`⌈`,`\\lceil`,!0),P(F,L,Ci,`⌉`,`\\rceil`,!0),P(F,L,U,`\\`,`\\backslash`),P(F,L,U,`∣`,`|`),P(F,L,U,`∣`,`\\vert`),P(I,L,U,`|`,`\\textbar`,!0),P(F,L,U,`∥`,`\\|`),P(F,L,U,`∥`,`\\Vert`),P(I,L,U,`∥`,`\\textbardbl`),P(I,L,U,`~`,`\\textasciitilde`),P(I,L,U,`\\`,`\\textbackslash`),P(I,L,U,`^`,`\\textasciicircum`),P(F,L,H,`↑`,`\\uparrow`,!0),P(F,L,H,`⇑`,`\\Uparrow`,!0),P(F,L,H,`↓`,`\\downarrow`,!0),P(F,L,H,`⇓`,`\\Downarrow`,!0),P(F,L,H,`↕`,`\\updownarrow`,!0),P(F,L,H,`⇕`,`\\Updownarrow`,!0),P(F,L,V,`∐`,`\\coprod`),P(F,L,V,`⋁`,`\\bigvee`),P(F,L,V,`⋀`,`\\bigwedge`),P(F,L,V,`⨄`,`\\biguplus`),P(F,L,V,`⋂`,`\\bigcap`),P(F,L,V,`⋃`,`\\bigcup`),P(F,L,V,`∫`,`\\int`),P(F,L,V,`∫`,`\\intop`),P(F,L,V,`∬`,`\\iint`),P(F,L,V,`∭`,`\\iiint`),P(F,L,V,`∏`,`\\prod`),P(F,L,V,`∑`,`\\sum`),P(F,L,V,`⨂`,`\\bigotimes`),P(F,L,V,`⨁`,`\\bigoplus`),P(F,L,V,`⨀`,`\\bigodot`),P(F,L,V,`∮`,`\\oint`),P(F,L,V,`∯`,`\\oiint`),P(F,L,V,`∰`,`\\oiiint`),P(F,L,V,`⨆`,`\\bigsqcup`),P(F,L,V,`∫`,`\\smallint`),P(I,L,wi,`…`,`\\textellipsis`),P(F,L,wi,`…`,`\\mathellipsis`),P(I,L,wi,`…`,`\\ldots`,!0),P(F,L,wi,`…`,`\\ldots`,!0),P(F,L,wi,`⋯`,`\\@cdots`,!0),P(F,L,wi,`⋱`,`\\ddots`,!0),P(F,L,U,`⋮`,`\\varvdots`),P(I,L,U,`⋮`,`\\varvdots`),P(F,L,Si,`ˊ`,`\\acute`),P(F,L,Si,`ˋ`,`\\grave`),P(F,L,Si,`¨`,`\\ddot`),P(F,L,Si,`~`,`\\tilde`),P(F,L,Si,`ˉ`,`\\bar`),P(F,L,Si,`˘`,`\\breve`),P(F,L,Si,`ˇ`,`\\check`),P(F,L,Si,`^`,`\\hat`),P(F,L,Si,`⃗`,`\\vec`),P(F,L,Si,`˙`,`\\dot`),P(F,L,Si,`˚`,`\\mathring`),P(F,L,B,``,`\\@imath`),P(F,L,B,``,`\\@jmath`),P(F,L,U,`ı`,`ı`),P(F,L,U,`ȷ`,`ȷ`),P(I,L,U,`ı`,`\\i`,!0),P(I,L,U,`ȷ`,`\\j`,!0),P(I,L,U,`ß`,`\\ss`,!0),P(I,L,U,`æ`,`\\ae`,!0),P(I,L,U,`œ`,`\\oe`,!0),P(I,L,U,`ø`,`\\o`,!0),P(I,L,U,`Æ`,`\\AE`,!0),P(I,L,U,`Œ`,`\\OE`,!0),P(I,L,U,`Ø`,`\\O`,!0),P(I,L,Si,`ˊ`,`\\'`),P(I,L,Si,`ˋ`,"\\`"),P(I,L,Si,`ˆ`,`\\^`),P(I,L,Si,`˜`,`\\~`),P(I,L,Si,`ˉ`,`\\=`),P(I,L,Si,`˘`,`\\u`),P(I,L,Si,`˙`,`\\.`),P(I,L,Si,`¸`,`\\c`),P(I,L,Si,`˚`,`\\r`),P(I,L,Si,`ˇ`,`\\v`),P(I,L,Si,`¨`,`\\"`),P(I,L,Si,`˝`,`\\H`),P(I,L,Si,`◯`,`\\textcircled`);var Oi={"--":!0,"---":!0,"``":!0,"''":!0};P(I,L,U,`–`,`--`,!0),P(I,L,U,`–`,`\\textendash`),P(I,L,U,`—`,`---`,!0),P(I,L,U,`—`,`\\textemdash`),P(I,L,U,`‘`,"`",!0),P(I,L,U,`‘`,`\\textquoteleft`),P(I,L,U,`’`,`'`,!0),P(I,L,U,`’`,`\\textquoteright`),P(I,L,U,`“`,"``",!0),P(I,L,U,`“`,`\\textquotedblleft`),P(I,L,U,`”`,`''`,!0),P(I,L,U,`”`,`\\textquotedblright`),P(F,L,U,`°`,`\\degree`,!0),P(I,L,U,`°`,`\\degree`),P(I,L,U,`°`,`\\textdegree`,!0),P(F,L,U,`£`,`\\pounds`),P(F,L,U,`£`,`\\mathsterling`,!0),P(I,L,U,`£`,`\\pounds`),P(I,L,U,`£`,`\\textsterling`,!0),P(F,R,U,`✠`,`\\maltese`),P(I,R,U,`✠`,`\\maltese`);for(var ki=`0123456789/@."`,Ai=0;Ai<ki.length;Ai++){var ji=ki.charAt(Ai);P(F,L,U,ji,ji)}for(var Mi=`0123456789!@*()-=+";:?/.,`,Ni=0;Ni<Mi.length;Ni++){var Pi=Mi.charAt(Ni);P(I,L,U,Pi,Pi)}for(var Fi=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Ii=0;Ii<Fi.length;Ii++){var Li=Fi.charAt(Ii);P(F,L,B,Li,Li),P(I,L,U,Li,Li)}P(F,R,U,`C`,`ℂ`),P(I,R,U,`C`,`ℂ`),P(F,R,U,`H`,`ℍ`),P(I,R,U,`H`,`ℍ`),P(F,R,U,`N`,`ℕ`),P(I,R,U,`N`,`ℕ`),P(F,R,U,`P`,`ℙ`),P(I,R,U,`P`,`ℙ`),P(F,R,U,`Q`,`ℚ`),P(I,R,U,`Q`,`ℚ`),P(F,R,U,`R`,`ℝ`),P(I,R,U,`R`,`ℝ`),P(F,R,U,`Z`,`ℤ`),P(I,R,U,`Z`,`ℤ`),P(F,L,B,`h`,`ℎ`),P(I,L,B,`h`,`ℎ`);for(var W=``,Ri=0;Ri<Fi.length;Ri++){var zi=Fi.charAt(Ri);W=String.fromCharCode(55349,56320+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56372+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56424+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56580+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56684+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56736+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56788+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56840+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56944+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),Ri<26&&(W=String.fromCharCode(55349,56632+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W),W=String.fromCharCode(55349,56476+Ri),P(F,L,B,zi,W),P(I,L,U,zi,W))}W=String.fromCharCode(55349,56668),P(F,L,B,`k`,W),P(I,L,U,`k`,W);for(var Bi=0;Bi<10;Bi++){var Vi=Bi.toString();W=String.fromCharCode(55349,57294+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W),W=String.fromCharCode(55349,57314+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W),W=String.fromCharCode(55349,57324+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W),W=String.fromCharCode(55349,57334+Bi),P(F,L,B,Vi,W),P(I,L,U,Vi,W)}for(var Hi=`ÐÞþ`,Ui=0;Ui<Hi.length;Ui++){var Wi=Hi.charAt(Ui);P(F,L,B,Wi,Wi),P(I,L,U,Wi,Wi)}var Gi=[[`mathbf`,`textbf`,`Main-Bold`],[`mathbf`,`textbf`,`Main-Bold`],[`mathnormal`,`textit`,`Math-Italic`],[`mathnormal`,`textit`,`Math-Italic`],[`boldsymbol`,`boldsymbol`,`Main-BoldItalic`],[`boldsymbol`,`boldsymbol`,`Main-BoldItalic`],[`mathscr`,`textscr`,`Script-Regular`],[``,``,``],[``,``,``],[``,``,``],[`mathfrak`,`textfrak`,`Fraktur-Regular`],[`mathfrak`,`textfrak`,`Fraktur-Regular`],[`mathbb`,`textbb`,`AMS-Regular`],[`mathbb`,`textbb`,`AMS-Regular`],[`mathboldfrak`,`textboldfrak`,`Fraktur-Regular`],[`mathboldfrak`,`textboldfrak`,`Fraktur-Regular`],[`mathsf`,`textsf`,`SansSerif-Regular`],[`mathsf`,`textsf`,`SansSerif-Regular`],[`mathboldsf`,`textboldsf`,`SansSerif-Bold`],[`mathboldsf`,`textboldsf`,`SansSerif-Bold`],[`mathitsf`,`textitsf`,`SansSerif-Italic`],[`mathitsf`,`textitsf`,`SansSerif-Italic`],[``,``,``],[``,``,``],[`mathtt`,`texttt`,`Typewriter-Regular`],[`mathtt`,`texttt`,`Typewriter-Regular`]],Ki=[[`mathbf`,`textbf`,`Main-Bold`],[``,``,``],[`mathsf`,`textsf`,`SansSerif-Regular`],[`mathboldsf`,`textboldsf`,`SansSerif-Bold`],[`mathtt`,`texttt`,`Typewriter-Regular`]],qi=(e,t)=>{var n=e.charCodeAt(0),r=e.charCodeAt(1),i=(n-55296)*1024+(r-56320)+65536,a=t===`math`?0:1;if(119808<=i&&i<120484){var o=Math.floor((i-119808)/26);return[Gi[o][2],Gi[o][a]]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return[Ki[s][2],Ki[s][a]]}else if(i===120485||i===120486)return[Gi[0][2],Gi[0][a]];else if(120486<i&&i<120782)return[``,``];else throw new A(`Unsupported character: `+e)},Ji=function(e,t,n){if(xi[n][e]){var r=xi[n][e].replace;r&&(e=r)}return{value:e,metrics:gi(e,t,n)}},Yi=function(e,t,n,r,i){var a=Ji(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new ai(e,o.height,o.depth,c,o.skew,o.width,i)}else typeof console<`u`&&console.warn(`No character metrics `+(`for '`+e+`' in style '`+t+`' and mode '`+n+`'`)),s=new ai(e,0,0,0,0,0,i);if(r){s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();l&&(s.style.color=l)}return s},Xi=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&Ji(e,`Main-Bold`,t).metrics?Yi(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||xi[t][e].font===`main`?Yi(e,`Main-Regular`,t,n,r):Yi(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},Zi=function(e,t,n,r,i){return i!==`textord`&&Ji(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},Qi=function(e,t,n){var r=e.mode,i=e.text,a=[`mord`],o=r===`math`||r===`text`&&t.font,s=o?t.font:t.fontFamily,c=``,l=``;if(i.charCodeAt(0)===55349&&([c,l]=qi(i,r)),c.length>0)return Yi(i,c,r,t,a.concat(l));if(s){var u,d;if(s===`boldsymbol`){var f=Zi(i,r,t,a,n);u=f.fontName,d=[f.fontClass]}else o?(u=da[s].fontName,d=[s]):(u=ua(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(Ji(i,u,r).metrics)return Yi(i,u,r,t,a.concat(d));if(Oi.hasOwnProperty(i)&&u.slice(0,10)===`Typewriter`){for(var p=[],m=0;m<i.length;m++)p.push(Yi(i[m],u,r,t,a.concat(d)));return aa(p)}}if(n===`mathord`)return Yi(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var h=xi[r][i]&&xi[r][i].font;if(h===`ams`)return Yi(i,ua(`amsrm`,t.fontWeight,t.fontShape),r,t,a.concat(`amsrm`,t.fontWeight,t.fontShape));if(h===`main`||!h)return Yi(i,ua(`textrm`,t.fontWeight,t.fontShape),r,t,a.concat(t.fontWeight,t.fontShape));var g=ua(h,t.fontWeight,t.fontShape);return Yi(i,g,r,t,a.concat(g,t.fontWeight,t.fontShape))}else throw Error(`unexpected type: `+n+` in makeOrd`)},$i=(e,t)=>{if(Xr(e.classes)!==Xr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},ea=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof ai&&r instanceof ai&&$i(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},ta=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},G=function(e,t,n,r){var i=new ti(e,t,n,r);return ta(i),i},na=(e,t,n,r)=>new ti(e,t,n,r),ra=function(e,t,n){var r=G([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=N(r.height),r.maxFontSize=1,r},ia=function(e,t,n,r){var i=new ni(e,t,n,r);return ta(i),i},aa=function(e){var t=new Gr(e);return ta(t),t},oa=function(e,t){return e instanceof Gr?G([],[e],t):e},sa=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},ca=function(e,t){for(var{children:n,depth:r}=sa(e),i=0,a=0;a<n.length;a++){var o=n[a];if(o.type===`elem`){var s=o.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var c=G([`pstrut`],[]);c.style.height=N(i);for(var l=[],u=r,d=r,f=r,p=0;p<n.length;p++){var m=n[p];if(m.type===`kern`)f+=m.size;else{var h=m.elem,g=m.wrapperClasses||[],_=m.wrapperStyle||{},v=G(g,[c,h],void 0,_);v.style.top=N(-i-f-h.depth),m.marginLeft&&(v.style.marginLeft=m.marginLeft),m.marginRight&&(v.style.marginRight=m.marginRight),l.push(v),f+=h.height+h.depth}u=Math.min(u,f),d=Math.max(d,f)}var y=G([`vlist`],l);y.style.height=N(d);var b;if(u<0){var x=G([`vlist`],[G([],[])]);x.style.height=N(-u),b=[G([`vlist-r`],[y,G([`vlist-s`],[new ai(``)])]),G([`vlist-r`],[x])]}else b=[G([`vlist-r`],[y])];var S=G([`vlist-t`],b);return b.length===2&&S.classes.push(`vlist-t2`),S.height=d,S.depth=-u,S},la=(e,t)=>{var n=G([`mspace`],[],t),r=Yr(e,t);return n.style.marginRight=N(r),n},ua=function(e,t,n){var r=``;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}var i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:t===`textit`?`Italic`:`Regular`;return r+`-`+i},da={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},fa={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},pa=function(e,t){var[n,r,i]=fa[e],a=na([`overlay`],[new oi([new si(n)],{width:N(r),height:N(i),style:`width:`+N(r),viewBox:`0 0 `+1e3*r+` `+1e3*i,preserveAspectRatio:`xMinYMin`})],t);return a.height=i,a.style.height=N(i),a.style.width=N(r),a},ma={number:3,unit:`mu`},ha={number:4,unit:`mu`},ga={number:5,unit:`mu`},_a={mord:{mop:ma,mbin:ha,mrel:ga,minner:ma},mop:{mord:ma,mop:ma,mrel:ga,minner:ma},mbin:{mord:ha,mop:ha,mopen:ha,minner:ha},mrel:{mord:ga,mop:ga,mopen:ga,minner:ga},mopen:{},mclose:{mop:ma,mbin:ha,mrel:ga,minner:ma},mpunct:{mord:ma,mop:ma,mrel:ga,mopen:ma,mclose:ma,mpunct:ma,minner:ma},minner:{mord:ma,mop:ma,mbin:ha,mrel:ga,mopen:ma,mpunct:ma,minner:ma}},va={mord:{mop:ma},mop:{mord:ma,mop:ma},mbin:{},mrel:{},mopen:{},mclose:{mop:ma},mpunct:{},minner:{mop:ma}},ya={},ba={},xa={};function K(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},c=0;c<n.length;++c)ya[n[c]]=s;t&&(a&&(ba[t]=a),o&&(xa[t]=o))}function Sa(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;K({type:t,names:[],props:{numArgs:0},handler(){throw Error(`Should never be called.`)},htmlBuilder:n,mathmlBuilder:r})}var Ca=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},wa=function(e){return e.type===`ordgroup`?e.body:[e]},Ta=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Ea=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Da={display:M.DISPLAY,text:M.TEXT,script:M.SCRIPT,scriptscript:M.SCRIPTSCRIPT},Oa={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},ka=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Pa(e[a],t);if(o instanceof Gr){var s=o.children;i.push(...s)}else i.push(o)}if(ea(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(Da[l.style]))}var u=G([r[0]||`leftmost`],[],t),d=G([r[1]||`rightmost`],[],t),f=n===`root`;return q(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Ea.has(r)?t.classes[0]=`mord`:r===`mbin`&&Ta.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),q(i,(e,t)=>{var n=Ma(t),r=Ma(e),i=n&&r?e.hasClass(`mtight`)?va[n]?.[r]:_a[n]?.[r]:null;if(i)return la(i,c)},{node:u},d,f),i},q=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=Aa(o);if(s){q(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`newline`)&&(n.node=G([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},Aa=function(e){return e instanceof Gr||e instanceof ni||e instanceof ti&&e.hasClass(`enclosing`)?e:null},ja=function(e,t){var n=Aa(e);if(n){var r=n.children;if(r.length){if(t===`right`)return ja(r[r.length-1],`right`);if(t===`left`)return ja(r[0],`left`)}}return e},Ma=function(e,t){return e?(t&&(e=ja(e,t)),Oa[e.classes[0]]||null):null},Na=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return G(t.concat(n))},Pa=function(e,t,n){if(!e)return G();if(ba[e.type]){var r=ba[e.type](e,t);if(n&&t.size!==n.size){r=G(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new A(`Got group of unknown type: '`+e.type+`'`)};function Fa(e,t){var n=G([`base`],e,t),r=G([`strut`]);return r.style.height=N(n.height+n.depth),n.depth&&(r.style.verticalAlign=N(-n.depth)),n.children.unshift(r),n}function Ia(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=ka(e,t,`root`),i;r.length===2&&r[1].hasClass(`tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(Fa(o,t)),o=[])}else r[s].hasClass(`newline`)&&(o.pop(),o.length>0&&(a.push(Fa(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(Fa(o,t));var l;n?(l=Fa(ka(n,t,!0),t),l.classes=[`tag`],a.push(l)):i&&a.push(i);var u=G([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=N(u.height+u.depth),u.depth&&(d.style.verticalAlign=N(-u.depth))}return u}function La(e){return new Gr(e)}var J=class{constructor(e,t,n){this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Xr(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Ra&&this.children[n+1]instanceof Ra){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Ra;)r+=this.children[++n].toText();e.appendChild(new Ra(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=` `+t+`="`,e+=or(this.attributes[t]),e+=`"`);this.classes.length>0&&(e+=` class ="`+or(Xr(this.classes))+`"`),e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},Ra=class{constructor(e){this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return or(this.toText())}toText(){return this.text}},za=class{constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,N(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+N(this.width)+`"/>`}toText(){return this.character?this.character:` `}},Ba=new Set([`\\imath`,`\\jmath`]),Va=new Set([`mrow`,`mtable`]),Ha=function(e,t,n){return xi[t][e]&&xi[t][e].replace&&e.charCodeAt(0)!==55349&&!(Oi.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)===`tt`||n.font&&n.font.slice(4,6)===`tt`))&&(e=xi[t][e].replace),new Ra(e)},Ua=function(e){return e.length===1?e[0]:new J(`mrow`,e)},Wa=function(e,t){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`;var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode;if(n===`mathit`)return`italic`;if(n===`boldsymbol`)return e.type===`textord`?`bold`:`bold-italic`;if(n===`mathbf`)return`bold`;if(n===`mathbb`)return`double-struck`;if(n===`mathsfit`)return`sans-serif-italic`;if(n===`mathfrak`)return`fraktur`;if(n===`mathscr`||n===`mathcal`)return`script`;if(n===`mathsf`)return`sans-serif`;if(n===`mathtt`)return`monospace`;var i=e.text;if(Ba.has(i))return null;if(xi[r][i]){var a=xi[r][i].replace;a&&(i=a)}var o=da[n].fontName;return gi(i,o,r)?da[n].variant:null};function Ga(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof Ra&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof Ra&&n.text===`,`}else return!1}var Ka=function(e,t,n){if(e.length===1){var r=Ja(e[0],t);return n&&r instanceof J&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Ja(e[o],t);if(s instanceof J&&a instanceof J){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(Ga(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&Ga(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||Ga(a))){var c=s.children[0];c instanceof J&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof Ra&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof Ra&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},qa=function(e,t,n){return Ua(Ka(e,t,n))},Ja=function(e,t){if(!e)return new J(`mrow`);if(xa[e.type])return xa[e.type](e,t);throw new A(`Got group of unknown type: '`+e.type+`'`)};function Ya(e,t,n,r,i){var a=Ka(e,n),o=a.length===1&&a[0]instanceof J&&Va.has(a[0].type)?a[0]:new J(`mrow`,a),s=new J(`annotation`,[new Ra(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new J(`math`,[new J(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),G([i?`katex`:`katex-mathml`],[c])}var Xa=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Za=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qa=function(e,t){return t.size<2?e:Xa[e-1][t.size-1]},$a=class e{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=Za[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Qa(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Za[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=Qa(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=vi(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};$a.BASESIZE=6;var eo=function(e){return new $a({style:e.displayMode?M.DISPLAY:M.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},to=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=G(n,[e])}return e},no=function(e,t,n){var r=eo(n),i;return n.output===`mathml`?Ya(e,t,r,n.displayMode,!0):(i=n.output===`html`?G([`katex`],[Ia(e,r)]):G([`katex`],[Ya(e,t,r,n.displayMode,!1),Ia(e,r)]),to(i,n))},ro=function(e,t,n){return to(G([`katex`],[Ia(e,eo(n))]),n)},io={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},ao=function(e){var t=new J(`mo`,[new Ra(io[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},oo={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},so=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),co=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(so.has(r)){var i=e,a=i.base.type===`ordgroup`?i.base.body.length:1,o,s,c;if(a>5)r===`widehat`||r===`widecheck`?(o=420,n=2364,c=.42,s=r+`4`):(o=312,n=2340,c=.34,s=`tilde4`);else{var l=[1,1,2,2,3,3][a];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],c=[0,.24,.3,.3,.36,.42][l],s=r+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],c=[0,.26,.286,.3,.306,.34][l],s=`tilde`+l)}return{span:na([],[new oi([new si(s)],{width:`100%`,height:N(c),viewBox:`0 0 `+n+` `+o,preserveAspectRatio:`none`})],t),minWidth:0,height:c}}else{var u=[],d=oo[r],[f,p,m]=d,h=m/1e3,g=f.length,_,v;if(g===1){var y=d[3];_=[`hide-tail`],v=[y]}else if(g===2)_=[`halfarrow-left`,`halfarrow-right`],v=[`xMinYMin`,`xMaxYMin`];else if(g===3)_=[`brace-left`,`brace-center`,`brace-right`],v=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
516
516
|
`+g+` children.`);for(var b=0;b<g;b++){var x=new oi([new si(f[b])],{width:`400em`,height:N(h),viewBox:`0 0 `+n+` `+m,preserveAspectRatio:v[b]+` slice`}),S=na([_[b]],[x],t);if(g===1)return{span:S,minWidth:p,height:h};S.style.height=N(h),u.push(S)}return{span:G([`stretchy`],u,t),minWidth:p,height:h}}}var{span:r,minWidth:i,height:a}=n();return r.height=a,r.style.height=N(a),i>0&&(r.style.minWidth=N(i)),r},lo=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=G([`stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new ci({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new ci({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=na([],[new oi(c,{width:`100%`,height:N(o)})],i)}return a.height=o,a.style.height=N(o),a};function uo(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function fo(e){var t=po(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function po(e){return e&&(e.type===`atom`||bi.hasOwnProperty(e.type))?e:null}var mo=e=>{if(e instanceof ai)return e;if(di(e)&&e.children.length===1)return mo(e.children[0])},ho=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=uo(e.base,`accent`),n=r.base,e.base=n,i=ui(Pa(e,t)),e.base=r):(r=uo(e,`accent`),n=r.base);var a=Pa(n,t.havingCrampedStyle()),o=r.isShifty&&lr(n),s=0;o&&(s=mo(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=co(r,t),u=ca({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+N(2*s)+`)`,marginLeft:N(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=pa(`vec`,t),f=fa.vec[1]):(d=Qi({type:`textord`,mode:r.mode,text:r.label},t,`textord`),d=li(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=G([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=N(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=ca({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=G([`mord`,`accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},go=(e,t)=>{var n=e.isStretchy?ao(e.label):new J(`mo`,[Ha(e.label,e.mode)]),r=new J(`mover`,[Ja(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},_o=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));K({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],props:{numArgs:1},handler:(e,t)=>{var n=Ca(t[0]),r=!_o.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:ho,mathmlBuilder:go}),K({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(e.parser.settings.reportNonstrict(`mathVsTextAccents`,`LaTeX's accent `+e.funcName+` works only in text mode`),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:ho,mathmlBuilder:go}),K({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Pa(e.base,t),r=co(e,t),i=e.label===`\\utilde`?.12:0;return G([`mord`,`accentunder`],[ca({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=ao(e.label),r=new J(`munder`,[Ja(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var vo=e=>{var t=new J(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};K({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=oa(Pa(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=oa(Pa(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=co(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=ca({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c},{type:`elem`,elem:o,shift:d}]})}else u=ca({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c}]});return u.children[0].children[0].children[1].classes.push(`svg-align`),G([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=ao(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=vo(Ja(e.body,t));r=e.below?new J(`munderover`,[n,vo(Ja(e.below,t)),i]):new J(`mover`,[n,i])}else e.below?r=new J(`munder`,[n,vo(Ja(e.below,t))]):(r=vo(),r=new J(`mover`,[n,r]));return r}});function yo(e,t){var n=ka(e.body,t,!0);return G([e.mclass],n,t)}function bo(e,t){var n,r=Ka(e.body,t);return e.mclass===`minner`?n=new J(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new J(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new J(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):e.mclass===`mopen`||e.mclass===`mclose`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`):e.mclass===`minner`&&(n.attributes.lspace=`0.0556em`,n.attributes.width=`+0.1111em`)),n}K({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:wa(i),isCharacterBox:lr(i)}},htmlBuilder:yo,mathmlBuilder:bo});var xo=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};K({type:`mclass`,names:[`\\@binrel`],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:`mclass`,mode:n.mode,mclass:xo(t[0]),body:wa(t[1]),isCharacterBox:lr(t[1])}}}),K({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:xo(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:wa(i)},c={type:`supsub`,mode:a.mode,base:s,sup:r===`\\underset`?null:a,sub:r===`\\underset`?a:null};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:lr(c)}},htmlBuilder:yo,mathmlBuilder:bo}),K({type:`pmb`,names:[`\\pmb`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`pmb`,mode:n.mode,mclass:xo(t[0]),body:wa(t[0])}},htmlBuilder(e,t){var n=ka(e.body,t,!0),r=G([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new J(`mstyle`,Ka(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var So={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Co=()=>({type:`styling`,body:[],mode:`math`,style:`display`}),wo=e=>e.type===`textord`&&e.text===`@`,To=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function Eo(e,t,n){var r=So[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function Do(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new A(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Co(),c=0;c<o.length;c++)if(!wo(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=fo(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(To(o[p],l)){f=!1,c=p;break}if(wo(o[p]))throw new A(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new A(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new A(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[Eo(l,u,e)],mode:`math`,style:`display`};r.push(m),s=Co()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}K({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=oa(Pa(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=N(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new J(`mrow`,[Ja(e.label,t)]);return n=new J(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new J(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),K({type:`cdlabelparent`,names:[`\\\\cdparent`],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:`cdlabelparent`,mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=oa(Pa(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new J(`mrow`,[Ja(e.fragment,t)])}}),K({type:`textord`,names:[`\\@char`],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=uo(t[0],`ordgroup`).body,i=``,a=0;a<r.length;a++){var o=uo(r[a],`textord`);i+=o.text}var s=parseInt(i),c;if(isNaN(s))throw new A(`\\@char has non-numeric argument `+i);if(s<0||s>=1114111)throw new A(`\\@char with invalid code point `+i);return s<=65535?c=String.fromCharCode(s):(s-=65536,c=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:`textord`,mode:n.mode,text:c}}});var Oo=(e,t)=>aa(ka(e.body,t.withColor(e.color),!1)),ko=(e,t)=>{var n=new J(`mstyle`,Ka(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n};K({type:`color`,names:[`\\textcolor`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`original`]},handler(e,t){var{parser:n}=e,r=uo(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:wa(i)}},htmlBuilder:Oo,mathmlBuilder:ko}),K({type:`color`,names:[`\\color`],props:{numArgs:1,allowedInText:!0,argTypes:[`color`]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=uo(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}},htmlBuilder:Oo,mathmlBuilder:ko}),K({type:`cr`,names:[`\\\\`],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text===`[`?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior(`newLineInDisplayMode`,`In LaTeX, \\\\ or \\newline does nothing in display mode`);return{type:`cr`,mode:r.mode,newLine:a,size:i&&uo(i,`size`).value}},htmlBuilder(e,t){var n=G([`mspace`],[],t);return e.newLine&&(n.classes.push(`newline`),e.size&&(n.style.marginTop=N(Yr(e.size,t)))),n},mathmlBuilder(e,t){var n=new J(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,N(Yr(e.size,t)))),n}});var Ao={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},jo=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new A(`Expected a control sequence`,e);return t},Mo=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},No=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};K({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Ao[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=Ao[r.text]),uo(t.parseFunction(),`internal`);throw new A(`Invalid token after macro prefix`,r)}}),K({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new A(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new A(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new A(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new A(`Expected a macro definition`);else s[a].push(r.text);var{tokens:c}=t.gullet.consumeArg();return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===Ao[n]),{type:`internal`,mode:t.mode}}}),K({type:`internal`,names:[`\\let`,`\\\\globallet`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=jo(t.gullet.popToken());return t.gullet.consumeSpaces(),No(t,r,Mo(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),K({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=jo(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return No(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var Po=function(e,t,n){var r=gi(xi.math[e]&&xi.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},Fo=function(e,t,n,r){var i=n.havingBaseStyle(t),a=G(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},Io=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=N(i),e.height-=i,e.depth+=i},Lo=function(e,t,n,r,i,a){var o=Fo(Yi(e,`Main-Regular`,i,r),t,r,a);return n&&Io(o,r,t),o},Ro=function(e,t,n,r){return Yi(e,`Size`+t+`-Regular`,n,r)},zo=function(e,t,n,r,i,a){var o=Ro(e,t,i,r),s=Fo(G([`delimsizing`,`size`+t],[o],r),M.TEXT,r,a);return n&&Io(s,r,M.TEXT),s},Bo=function(e,t,n){return{type:`elem`,elem:G([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[G([],[Yi(e,t,n)])])}},Vo=function(e,t,n){var r=fi[`Size4-Regular`][e.charCodeAt(0)]?fi[`Size4-Regular`][e.charCodeAt(0)][4]:fi[`Size1-Regular`][e.charCodeAt(0)][4],i=na([],[new oi([new si(`inner`,Hr(e,Math.round(1e3*t)))],{width:N(r),height:N(t),style:`width:`+N(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=N(t),i.style.width=N(r),{type:`elem`,elem:i}},Ho=.008,Uo={type:`kern`,size:-1*Ho},Wo=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),Go=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),Ko=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):Wo.has(e)?(c=`∣`,u=`vert`,d=333):Go.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=Po(o,f,i),m=p.height+p.depth,h=Po(c,f,i),g=h.height+h.depth,_=Po(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=Po(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,w=r.fontMetrics().axisHeight;n&&(w*=r.sizeMultiplier);var T=C/2-w,E=[];if(u.length>0){var ee=C-m-v,te=Math.round(C*1e3),D=Wr(u,Math.round(ee*1e3)),ne=new si(u,D),re=N(d/1e3),ie=N(te/1e3),O=na([],[new oi([ne],{width:re,height:ie,viewBox:`0 0 `+d+` `+te})],r);O.height=te/1e3,O.style.width=re,O.style.height=ie,E.push({type:`elem`,elem:O})}else{if(E.push(Bo(l,f,i)),E.push(Uo),s===null){var ae=C-m-v+2*Ho;E.push(Vo(c,ae,r))}else{var oe=(C-m-v-y)/2+2*Ho;E.push(Vo(c,oe,r)),E.push(Uo),E.push(Bo(s,f,i)),E.push(Uo),E.push(Vo(c,oe,r))}E.push(Uo),E.push(Bo(o,f,i))}var se=r.havingBaseStyle(M.TEXT);return Fo(G([`delimsizing`,`mult`],[ca({positionType:`bottom`,positionData:T,children:E})],se),M.TEXT,r,a)},qo=80,Jo=.08,Yo=function(e,t,n,r,i){return na([`hide-tail`],[new oi([new si(e,Vr(e,r,n))],{width:`400em`,height:N(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},Xo=function(e,t){var n=t.havingBaseSizing(),r=os(`\\surd`,e*n.sizeMultiplier,is,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s=0,c=0,l=0,u;return r.type===`small`?(l=1e3+1e3*a+qo,e<1?i=1:e<1.4&&(i=.7),s=(1+a+Jo)/i,c=(1+a)/i,o=Yo(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+qo)*es[r.size],c=(es[r.size]+a)/i,s=(es[r.size]+a+Jo)/i,o=Yo(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+Jo,c=e+a,l=Math.floor(1e3*e+a)+qo,o=Yo(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=N(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},Zo=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Qo=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),$o=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),es=[0,1.2,1.8,2.4,3],ts=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),Zo.has(e)||$o.has(e))return zo(e,t,!1,n,r,i);if(Qo.has(e))return Ko(e,es[t],!1,n,r,i);throw new A(`Illegal delimiter: '`+e+`'`)},ns=[{type:`small`,style:M.SCRIPTSCRIPT},{type:`small`,style:M.SCRIPT},{type:`small`,style:M.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],rs=[{type:`small`,style:M.SCRIPTSCRIPT},{type:`small`,style:M.SCRIPT},{type:`small`,style:M.TEXT},{type:`stack`}],is=[{type:`small`,style:M.SCRIPTSCRIPT},{type:`small`,style:M.SCRIPT},{type:`small`,style:M.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],as=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},os=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=Po(e,as(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},ss=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=$o.has(e)?ns:Zo.has(e)?is:rs,s=os(e,t,o,r);return s.type===`small`?Lo(e,s.style,n,r,i,a):s.type===`large`?zo(e,s.size,n,r,i,a):Ko(e,t,n,r,i,a)},cs=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return ss(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},ls={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},us=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function ds(e,t){var n=po(e);if(n&&us.has(n.text))return n;throw n?new A(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new A(`Invalid delimiter type '`+e.type+`'`,e)}K({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],props:{numArgs:1,argTypes:[`primitive`]},handler:(e,t)=>{var n=ds(t[0],e);return{type:`delimsizing`,mode:e.parser.mode,size:ls[e.funcName].size,mclass:ls[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?G([e.mclass]):ts(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(Ha(e.delim,e.mode));var n=new J(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=N(es[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function fs(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}K({type:`leftright-right`,names:[`\\right`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new A(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:ds(t[0],e).text,color:n}}}),K({type:`leftright`,names:[`\\left`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=ds(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=uo(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{fs(e);for(var n=ka(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++)n[o].isMiddle?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i));r*=t.sizeMultiplier,i*=t.sizeMultiplier;var s=e.left===`.`?Na(t,[`mopen`]):cs(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(s),a)for(var c=1;c<n.length;c++){var l=n[c].isMiddle;l&&(n[c]=cs(l.delim,r,i,l.options,e.mode,[]))}var u;if(e.right===`.`)u=Na(t,[`mclose`]);else{var d=e.rightColor?t.withColor(e.rightColor):t;u=cs(e.right,r,i,d,e.mode,[`mclose`])}return n.push(u),G([`minner`],n,t)},mathmlBuilder:(e,t)=>{fs(e);var n=Ka(e.body,t);if(e.left!==`.`){var r=new J(`mo`,[Ha(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new J(`mo`,[Ha(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return Ua(n)}}),K({type:`middle`,names:[`\\middle`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=ds(t[0],e);if(!e.parser.leftrightDepth)throw new A(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===`.`)n=Na(t,[]);else{n=ts(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=new J(`mo`,[e.delim===`\\vert`||e.delim===`|`?Ha(`|`,`text`):Ha(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}});var ps=(e,t)=>{var n=oa(Pa(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o=0,s=lr(e.body);if(r===`sout`)a=G([`stretchy`,`sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=Yr({number:.6,unit:`pt`},t),l=Yr({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=N(d/2+c);var f=Math.floor(1e3*d*i);a=na([`hide-tail`],[new oi([new si(`phase`,zr(f))],{width:`400em`,height:N(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=N(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p=0,m=0,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=lo(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=N(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=N(h),a.style.borderRightWidth=N(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=ca({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=ca({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?G([`mord`,`cancel-lap`],[g],t):G([`mord`],[g],t)},ms=(e,t)=>{var n=0,r=new J(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Ja(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+N(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r};K({type:`enclose`,names:[`\\colorbox`],props:{numArgs:2,allowedInText:!0,argTypes:[`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=uo(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:ps,mathmlBuilder:ms}),K({type:`enclose`,names:[`\\fcolorbox`],props:{numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`text`]},handler(e,t,n){var{parser:r,funcName:i}=e,a=uo(t[0],`color-token`).color,o=uo(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:ps,mathmlBuilder:ms}),K({type:`enclose`,names:[`\\fbox`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\fbox`,body:t[0]}}}),K({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:ps,mathmlBuilder:ms}),K({type:`enclose`,names:[`\\sout`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;n.mode===`math`&&n.settings.reportNonstrict(`mathVsSout`,`LaTeX's \\sout works only in text mode`);var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}},htmlBuilder:ps,mathmlBuilder:ms}),K({type:`enclose`,names:[`\\angl`],props:{numArgs:1,argTypes:[`hbox`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`enclose`,mode:n.mode,label:`\\angl`,body:t[0]}}});var hs={};function gs(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)hs[n[c]]=s;a&&(ba[t]=a),o&&(xa[t]=o)}var _s={};function Y(e,t){_s[e]=t}var vs=class e{constructor(e,t,n){this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},ys=class e{constructor(e,t){this.text=e,this.loc=t}range(t,n){return new e(n,vs.range(this,t))}};function bs(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var xs=e=>{if(!e.parser.settings.displayMode)throw new A(`{`+e.envName+`} can be used only in display mode.`)},Ss=new Set([`gather`,`gather*`]);function Cs(e){if(!e.includes(`ed`))return!e.includes(`*`)}function ws(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:c,singleRow:l,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new A(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new ys(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(bs(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new A(`Too many tab characters: &`,e.nextToken);e.settings.reportNonstrict(`textEnv`,`Too few columns specified in the {array} column argument.`)}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var w=void 0;e.gullet.future().text!==` `&&(w=e.parseSizeGroup(!0)),g.push(w?w.value:null),b(),_.push(bs(e)),m=[],h.push(m),y()}else throw new A(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Ts(e){return e.slice(0,1)===`d`?`display`:`text`}var Es=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(M.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?Yr({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S=Array(y.length);for(r=0;r<y.length;++r){var C=Pa(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S[r]=C}var w=e.rowGaps[n],T=0;w&&(T=Yr(w,t),T>0&&(T+=g,x<T&&(x=T),T=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+T,s[n]=S,v(a[n+1])}var E=_/2+t.fontMetrics().axisHeight,ee=e.cols||[],te=[],D,ne,re=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var ie=s[n],O=ie.pos-E,ae=e.tags[n],oe=void 0;oe=ae===!0?G([`eqn-num`],[],t):ae===!1?G([],[],t):G([],ka(ae,t,!0),t),oe.depth=ie.depth,oe.height=ie.height,re.push({type:`elem`,elem:oe,shift:O})}for(r=0,ne=0;r<o||ne<ee.length;++r,++ne){for(var se=ee[ne],ce=!0;(le=se)?.type===`separator`;){var le;if(ce||(D=G([`arraycolsep`],[]),D.style.width=N(t.fontMetrics().doubleRuleSep),te.push(D)),se.separator===`|`||se.separator===`:`){var ue=se.separator===`|`?`solid`:`dashed`,de=G([`vertical-separator`],[],t);de.style.height=N(_),de.style.borderRightWidth=N(l),de.style.borderRightStyle=ue,de.style.margin=`0 `+N(-l/2);var fe=_-E;fe&&(de.style.verticalAlign=N(-fe)),te.push(de)}else throw new A(`Invalid separator type: `+se.separator);ne++,se=ee[ne],ce=!1}if(!(r>=o)){var pe=void 0;(r>0||e.hskipBeforeAndAfter)&&(pe=se?.pregap??d,pe!==0&&(D=G([`arraycolsep`],[]),D.style.width=N(pe),te.push(D)));var me=[];for(n=0;n<i;++n){var he=s[n],ge=he[r];if(ge){var _e=he.pos-E;ge.depth=he.depth,ge.height=he.height,me.push({type:`elem`,elem:ge,shift:_e})}}var ve=ca({positionType:`individualShift`,children:me}),ye=G([`col-align-`+(se?.align||`c`)],[ve]);te.push(ye),(r<o-1||e.hskipBeforeAndAfter)&&(pe=se?.postgap??d,pe!==0&&(D=G([`arraycolsep`],[]),D.style.width=N(pe),te.push(D)))}}var be=G([`mtable`],te);if(c.length>0){for(var xe=ra(`hline`,t,l),Se=ra(`hdashline`,t,l),Ce=[{type:`elem`,elem:be,shift:0}];c.length>0;){var we=c.pop(),Te=we.pos-E;we.isDashed?Ce.push({type:`elem`,elem:Se,shift:Te}):Ce.push({type:`elem`,elem:xe,shift:Te})}be=ca({positionType:`individualShift`,children:Ce})}if(re.length===0)return G([`mord`],[be],t);var Ee=G([`tag`],[ca({positionType:`individualShift`,children:re})],t);return aa([be,Ee])},Ds={c:`center `,l:`left `,r:`right `},Os=function(e,t){for(var n=[],r=new J(`mtd`,[],[`mtr-glue`]),i=new J(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new J(`mtd`,[Ja(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new J(`mtr`,s))}var l=new J(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,N(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=Ds[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,w=e.hLinesBeforeRow;d+=w[0].length>0?`left `:``,d+=w[w.length-1].length>0?`right `:``;for(var T=1;T<w.length-1;T++)C+=w[T].length===0?`none `:w[T][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new J(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new J(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},ks=function(e,t){e.envName.includes(`ed`)||xs(e);var n=[],r=e.envName.includes(`at`)?`alignat`:`align`,i=e.envName===`split`,a=ws(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Cs(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},`display`),o=0,s=0,c={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){for(var l=``,u=0;u<t[0].body.length;u++){var d=uo(t[0].body[u],`textord`);l+=d.text}o=Number(l),s=o*2}var f=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2)uo(uo(e[t],`styling`).body[0],`ordgroup`).body.unshift(c);if(f)s<e.length&&(s=e.length);else{var n=e.length/2;if(o<n)throw new A(`Too many math in a row: `+(`expected `+o+`, but got `+n),e[0])}});for(var p=0;p<s;++p){var m=`r`,h=0;p%2==1?m=`l`:p>0&&f&&(h=1),n[p]={type:`align`,align:m,pregap:h,postgap:0}}return a.colSeparationType=f?`align`:`alignat`,a};gs({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(po(t[0])?[t[0]]:uo(t[0],`ordgroup`).body).map(function(e){var t=fo(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new A(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return ws(e.parser,r,Ts(e.envName))},htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new A(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=ws(e.parser,r,Ts(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=ws(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(po(t[0])?[t[0]]:uo(t[0],`ordgroup`).body).map(function(e){var t=fo(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new A(`Unknown column alignment: `+t,e)});if(n.length>1)throw new A(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=ws(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new A(`{subarray} can contain only one column`);return i},htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=ws(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Ts(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:ks,htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Ss.has(e.envName)&&xs(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Cs(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ws(e.parser,t,`display`)},htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:ks,htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){xs(e);var t={autoTag:Cs(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ws(e.parser,t,`display`)},htmlBuilder:Es,mathmlBuilder:Os}),gs({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return xs(e),Do(e.parser)},htmlBuilder:Es,mathmlBuilder:Os}),Y(`\\nonumber`,`\\gdef\\@eqnsw{0}`),Y(`\\notag`,`\\nonumber`),K({type:`text`,names:[`\\hline`,`\\hdashline`],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new A(e.funcName+` valid only within array environment`)}});var As=hs;K({type:`environment`,names:[`\\begin`,`\\end`],props:{numArgs:1,argTypes:[`text`]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!==`ordgroup`)throw new A(`Invalid environment name`,i);for(var a=``,o=0;o<i.body.length;++o)a+=uo(i.body[o],`textord`).text;if(r===`\\begin`){if(!As.hasOwnProperty(a))throw new A(`No such environment: `+a,i);var s=As[a],{args:c,optArgs:l}=n.parseArguments(`\\begin{`+a+`}`,s),u={mode:n.mode,envName:a,parser:n},d=s.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=uo(n.parseFunction(),`environment`);if(p.name!==a)throw new A(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var js=(e,t)=>{var n=e.font,r=t.withFont(n);return Pa(e.body,r)},Ms=(e,t)=>{var n=e.font,r=t.withFont(n);return Ja(e.body,r)},Ns={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`,"\\bm":`\\boldsymbol`};K({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=Ca(t[0]),a=r;return a in Ns&&(a=Ns[a]),{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:js,mathmlBuilder:Ms}),K({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`mclass`,mode:n.mode,mclass:xo(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:lr(r)}}}),K({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}},htmlBuilder:js,mathmlBuilder:Ms});var Ps=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Pa(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Pa(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=Yr(e.barSize,t),u=ra(`frac-line`,t,d)):u=ra(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===M.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=ca({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=ca({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===M.DISPLAY.size?t.fontMetrics().delim1:n.size===M.SCRIPTSCRIPT.size?t.havingStyle(M.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?Na(t,[`mopen`]):ss(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?G([]):e.rightDelim==null?Na(t,[`mclose`]):ss(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return G([`mord`].concat(a.sizingClasses(t)),[x,G([`mfrac`],[g]),S],t)},Fs=(e,t)=>{var n=new J(`mfrac`,[Ja(e.numer,t),Ja(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=Yr(e.barSize,t);n.setAttribute(`linethickness`,N(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new J(`mo`,[new Ra(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new J(`mo`,[new Ra(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return Ua(i)}return n},Is=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;K({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),Is({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:Ps,mathmlBuilder:Fs}),K({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var Ls=[`display`,`text`,`script`,`scriptscript`],Rs=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};K({type:`genfrac`,names:[`\\genfrac`],props:{numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=Ca(t[0]),o=a.type===`atom`&&a.family===`open`?Rs(a.text):null,s=Ca(t[1]),c=s.type===`atom`&&s.family===`close`?Rs(s.text):null,l=uo(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=uo(p.body[0],`textord`);f=Ls[Number(m.text)]}}else p=uo(p,`textord`),f=Ls[Number(p.text)];return Is({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),K({type:`infix`,names:[`\\above`],props:{numArgs:1,argTypes:[`size`],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:uo(t[0],`size`).value,token:i}}}),K({type:`genfrac`,names:[`\\\\abovefrac`],props:{numArgs:3,argTypes:[`math`,`size`,`math`]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=uo(t[1],`infix`).size;if(!a)throw Error(`\\\\abovefrac expected size, but got `+String(a));var o=t[2],s=a.number>0;return{type:`genfrac`,mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var zs=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Pa(e.sup,t.havingStyle(n.sup()),t):Pa(e.sub,t.havingStyle(n.sub()),t),i=uo(e.base,`horizBrace`)):i=uo(e,`horizBrace`);var a=Pa(i.base,t.havingBaseStyle(M.DISPLAY)),o=co(i,t),s;if(i.isOver?(s=ca({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o}]}),s.children[0].children[0].children[1].classes.push(`svg-align`)):(s=ca({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o},{type:`kern`,size:.1},{type:`elem`,elem:a}]}),s.children[0].children[0].children[0].classes.push(`svg-align`)),r){var c=G([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?ca({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):ca({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return G([`minner`,i.isOver?`mover`:`munder`],[s],t)};K({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:zs,mathmlBuilder:(e,t)=>{var n=ao(e.label);return new J(e.isOver?`mover`:`munder`,[Ja(e.base,t),n])}}),K({type:`href`,names:[`\\href`],props:{numArgs:2,argTypes:[`url`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=uo(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:wa(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=ka(e.body,t,!1);return ia(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=qa(e.body,t);return n instanceof J||(n=new J(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),K({type:`href`,names:[`\\url`],props:{numArgs:1,argTypes:[`url`],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=uo(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:wa(s)}}}),K({type:`hbox`,names:[`\\hbox`],props:{numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:`hbox`,mode:n.mode,body:wa(t[0])}},htmlBuilder(e,t){return aa(ka(e.body,t,!1))},mathmlBuilder(e,t){return new J(`mrow`,Ka(e.body,t))}}),K({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],props:{numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,token:i}=e,a=uo(t[0],`raw`).string,o=t[1];n.settings.strict&&n.settings.reportNonstrict(`htmlExtension`,`HTML extension is disabled on strict mode`);var s,c={};switch(r){case`\\htmlClass`:c.class=a,s={command:`\\htmlClass`,class:a};break;case`\\htmlId`:c.id=a,s={command:`\\htmlId`,id:a};break;case`\\htmlStyle`:c.style=a,s={command:`\\htmlStyle`,style:a};break;case`\\htmlData`:for(var l=a.split(`,`),u=0;u<l.length;u++){var d=l[u],f=d.indexOf(`=`);if(f<0)throw new A(`\\htmlData key/value '`+d+`' missing equals sign`);var p=d.slice(0,f),m=d.slice(f+1);c[`data-`+p.trim()]=m}s={command:`\\htmlData`,attributes:c};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(s)?{type:`html`,mode:n.mode,attributes:c,body:wa(o)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=ka(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=G(r,n,t);for(var a in e.attributes)a!==`class`&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>qa(e.body,t)}),K({type:`htmlmathml`,names:[`\\html@mathml`],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`htmlmathml`,mode:n.mode,html:wa(t[0]),mathml:wa(t[1])}},htmlBuilder:(e,t)=>aa(ka(e.html,t,!1)),mathmlBuilder:(e,t)=>qa(e.mathml,t)});var Bs=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new A(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!Jr(n))throw new A(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};K({type:`includegraphics`,names:[`\\includegraphics`],props:{numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=uo(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=Bs(d);break;case`height`:a=Bs(d);break;case`totalheight`:o=Bs(d);break;default:throw new A(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=uo(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=Yr(e.height,t),r=0;e.totalheight.number>0&&(r=Yr(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=Yr(e.width,t));var a={height:N(n+r)};i>0&&(a.width=N(i)),r>0&&(a.verticalAlign=N(-r));var o=new ri(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new J(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=Yr(e.height,t),i=0;if(e.totalheight.number>0&&(i=Yr(e.totalheight,t)-r,n.setAttribute(`valign`,N(-i))),n.setAttribute(`height`,N(r+i)),e.width.number>0){var a=Yr(e.width,t);n.setAttribute(`width`,N(a))}return n.setAttribute(`src`,e.src),n}}),K({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],props:{numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=uo(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`)),n.mode!==`math`&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` works only in math mode`)):o&&n.settings.reportNonstrict(`mathVsTextUnits`,`LaTeX's `+r+` doesn't support mu units`)}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return la(e.dimension,t)},mathmlBuilder(e,t){return new za(Yr(e.dimension,t))}}),K({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=G([],[Pa(e.body,t)]),n=G([`inner`],[n],t)):n=G([`inner`],[Pa(e.body,t)]);var r=G([`fix`],[]),i=G([e.alignment],[n,r],t),a=G([`strut`]);return a.style.height=N(i.height+i.depth),i.depth&&(a.style.verticalAlign=N(-i.depth)),i.children.unshift(a),i=G([`thinbox`],[i],t),G([`mord`,`vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new J(`mpadded`,[Ja(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),K({type:`styling`,names:[`\\(`,`$`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,body:o}}}),K({type:`text`,names:[`\\)`,`\\]`],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new A(`Mismatched `+e.funcName)}});var Vs=(e,t)=>{switch(t.style.size){case M.DISPLAY.size:return e.display;case M.TEXT.size:return e.text;case M.SCRIPT.size:return e.script;case M.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};K({type:`mathchoice`,names:[`\\mathchoice`],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:`mathchoice`,mode:n.mode,display:wa(t[0]),text:wa(t[1]),script:wa(t[2]),scriptscript:wa(t[3])}},htmlBuilder:(e,t)=>aa(ka(Vs(e,t),t,!1)),mathmlBuilder:(e,t)=>qa(Vs(e,t),t)});var Hs=(e,t,n,r,i,a,o)=>{e=G([],[e]);var s=n&&lr(n),c,l;if(t){var u=Pa(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Pa(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=ca({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:N(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:N(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=ca({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:N(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=ca({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:N(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=G([`mspace`],[],r);m.style.marginRight=N(a),p.unshift(m)}return G([`mop`,`op-limits`],p,r)},Us=new Set([`\\smallint`]),Ws=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=uo(e.base,`op`),i=!0):a=uo(e,`op`);var o=t.style,s=!1;o.size===M.DISPLAY.size&&a.symbol&&!Us.has(a.name)&&(s=!0);var c;if(a.symbol){var l=s?`Size2-Regular`:`Size1-Regular`,u=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(u=a.name.slice(1),a.name=u===`oiint`?`\\iint`:`\\iiint`),c=Yi(a.name,l,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),u.length>0){var d=c.italic,f=pa(u+`Size`+(s?`2`:`1`),t);c=ca({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+u,c.classes.unshift(`mop`),c.italic=d}}else if(a.body){var p=ka(a.body,t,!0);p.length===1&&p[0]instanceof ai?(c=p[0],c.classes[0]=`mop`):c=G([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(Xi(a.name[h],a.mode,t));c=G([`mop`],m,t)}var g=0,_=0;return(c instanceof ai||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic||0),i?Hs(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=N(g)),c)},Gs=(e,t)=>{var n;if(e.symbol)n=new J(`mo`,[Ha(e.name,e.mode)]),Us.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new J(`mo`,Ka(e.body,t));else{n=new J(`mi`,[new Ra(e.name.slice(1))]);var r=new J(`mo`,[Ha(``,`text`)]);n=e.parentIsSupSub?new J(`mrow`,[n,r]):La([n,r])}return n},Ks={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};K({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Ks[i]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ws,mathmlBuilder:Gs}),K({type:`op`,names:[`\\mathop`],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:wa(r)}},htmlBuilder:Ws,mathmlBuilder:Gs});var qs={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};K({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ws,mathmlBuilder:Gs}),K({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ws,mathmlBuilder:Gs}),K({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=qs[r]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Ws,mathmlBuilder:Gs});var Js=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=uo(e.base,`operatorname`),i=!0):a=uo(e,`operatorname`);var o;if(a.body.length>0){for(var s=ka(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof ai&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=G([`mop`],s,t)}else o=G([`mop`],[],t);return i?Hs(o,n,r,t,t.style,0,0):o};K({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:`operatorname`,mode:n.mode,body:wa(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:Js,mathmlBuilder:(e,t)=>{for(var n=Ka(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof za))if(a instanceof J)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof Ra?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new Ra(n.map(e=>e.toText()).join(``))]);var s=new J(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new J(`mo`,[Ha(``,`text`)]);return e.parentIsSupSub?new J(`mrow`,[s,c]):La([s,c])}}),Y(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Sa({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?aa(ka(e.body,t,!1)):G([`mord`],ka(e.body,t,!0),t)},mathmlBuilder(e,t){return qa(e.body,t,!0)}}),K({type:`overline`,names:[`\\overline`],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Pa(e.body,t.havingCrampedStyle()),r=ra(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return G([`mord`,`overline`],[ca({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new J(`mo`,[new Ra(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new J(`mover`,[Ja(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),K({type:`phantom`,names:[`\\phantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`phantom`,mode:n.mode,body:wa(r)}},htmlBuilder:(e,t)=>aa(ka(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new J(`mphantom`,Ka(e.body,t))}),Y(`\\hphantom`,`\\smash{\\phantom{#1}}`),K({type:`vphantom`,names:[`\\vphantom`],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>G([`mord`,`rlap`],[G([`inner`],[Pa(e.body,t.withPhantom())]),G([`fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new J(`mpadded`,[new J(`mphantom`,Ka(wa(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),K({type:`raisebox`,names:[`\\raisebox`],props:{numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0},handler(e,t){var{parser:n}=e,r=uo(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Pa(e.body,t);return ca({positionType:`shift`,positionData:-Yr(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new J(`mpadded`,[Ja(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}}),K({type:`internal`,names:[`\\relax`],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:`internal`,mode:t.mode}}}),K({type:`rule`,names:[`\\rule`],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`]},handler(e,t,n){var{parser:r}=e,i=n[0],a=uo(t[0],`size`),o=uo(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&uo(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=G([`mord`,`rule`],[],t),r=Yr(e.width,t),i=Yr(e.height,t),a=e.shift?Yr(e.shift,t):0;return n.style.borderRightWidth=N(r),n.style.borderTopWidth=N(i),n.style.bottom=N(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Yr(e.width,t),r=Yr(e.height,t),i=e.shift?Yr(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new J(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,N(n)),o.setAttribute(`height`,N(r));var s=new J(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,N(i)):(s.setAttribute(`height`,N(i)),s.setAttribute(`depth`,N(-i))),s.setAttribute(`voffset`,N(i)),s}});function Ys(e,t,n){for(var r=ka(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return aa(r)}var Xs=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];K({type:`sizing`,names:Xs,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:Xs.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return Ys(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new J(`mstyle`,Ka(e.body,n));return r.setAttribute(`mathsize`,N(n.sizeMultiplier)),r}}),K({type:`smash`,names:[`\\smash`],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&uo(n[0],`ordgroup`);if(o)for(var s=``,c=0;c<o.body.length;++c){var l=o.body[c];if(s=fo(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=G([],[Pa(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return G([`mord`,`smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return G([`mord`],[ca({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new J(`mpadded`,[Ja(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),K({type:`sqrt`,names:[`\\sqrt`],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Pa(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=oa(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<M.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:c}=Xo(n.height+n.depth+a+r,t),l=o.height-s;l>n.height+n.depth+a&&(a=(a+l-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=N(c);var d=ca({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+u)},{type:`elem`,elem:o},{type:`kern`,size:s}]});if(e.index){var f=t.havingStyle(M.SCRIPTSCRIPT),p=Pa(e.index,f,t);return G([`mord`,`sqrt`],[G([`root`],[ca({positionType:`shift`,positionData:-(.6*(d.height-d.depth)),children:[{type:`elem`,elem:p}]})]),d],t)}else return G([`mord`,`sqrt`],[d],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new J(`mroot`,[Ja(n,t),Ja(r,t)]):new J(`msqrt`,[Ja(n,t)])}});var Zs={display:M.DISPLAY,text:M.TEXT,script:M.SCRIPT,scriptscript:M.SCRIPTSCRIPT};K({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=Zs[e.style],r=t.havingStyle(n).withFont(``);return Ys(e.body,r,t)},mathmlBuilder(e,t){var n=Zs[e.style],r=t.havingStyle(n),i=new J(`mstyle`,Ka(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Qs=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===M.DISPLAY.size||n.alwaysHandleSupSub)?Ws:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===M.DISPLAY.size||n.limits)?Js:null:n.type===`accent`?lr(n.base)?ho:null:n.type===`horizBrace`&&!e.sub===n.isOver?zs:null:null};Sa({type:`supsub`,htmlBuilder(e,t){var n=Qs(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,o=Pa(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&lr(r);if(i){var p=t.havingStyle(t.style.sup());s=Pa(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Pa(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===M.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=N(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof ai||y)&&(v=N(-o.italic))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=ca({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=ca({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=ca({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return G([Ma(o,`right`)||`mord`],[o,G([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Ja(e.base,t)];e.sub&&a.push(Ja(e.sub,t)),e.sup&&a.push(Ja(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===M.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===M.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===M.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===M.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===M.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===M.DISPLAY)?`munder`:`msub`}return new J(o,a)}}),Sa({type:`atom`,htmlBuilder(e,t){return Xi(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new J(`mo`,[Ha(e.text,e.mode)]);if(e.family===`bin`){var r=Wa(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var $s={mi:`italic`,mn:`normal`,mtext:`normal`};Sa({type:`mathord`,htmlBuilder(e,t){return Qi(e,t,`mathord`)},mathmlBuilder(e,t){var n=new J(`mi`,[Ha(e.text,e.mode,t)]),r=Wa(e,t)||`italic`;return r!==$s[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Sa({type:`textord`,htmlBuilder(e,t){return Qi(e,t,`textord`)},mathmlBuilder(e,t){var n=Ha(e.text,e.mode,t),r=Wa(e,t)||`normal`,i=e.mode===`text`?new J(`mtext`,[n]):/[0-9]/.test(e.text)?new J(`mn`,[n]):e.text===`\\prime`?new J(`mo`,[n]):new J(`mi`,[n]);return r!==$s[i.type]&&i.setAttribute(`mathvariant`,r),i}});var ec={"\\nobreak":`nobreak`,"\\allowbreak":`allowbreak`},tc={" ":{},"\\ ":{},"~":{className:`nobreak`},"\\space":{},"\\nobreakspace":{className:`nobreak`}};Sa({type:`spacing`,htmlBuilder(e,t){if(tc.hasOwnProperty(e.text)){var n=tc[e.text].className||``;if(e.mode===`text`){var r=Qi(e,t,`textord`);return r.classes.push(n),r}else return G([`mspace`,n],[Xi(e.text,e.mode,t)],t)}else if(ec.hasOwnProperty(e.text))return G([`mspace`,ec[e.text]],[],t);else throw new A(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(tc.hasOwnProperty(e.text))n=new J(`mtext`,[new Ra(`\xA0`)]);else if(ec.hasOwnProperty(e.text))return new J(`mspace`);else throw new A(`Unknown type of space "`+e.text+`"`);return n}});var nc=()=>{var e=new J(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Sa({type:`tag`,mathmlBuilder(e,t){var n=new J(`mtable`,[new J(`mtr`,[nc(),new J(`mtd`,[qa(e.body,t)]),nc(),new J(`mtd`,[qa(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var rc={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},ic={"\\textbf":`textbf`,"\\textmd":`textmd`},ac={"\\textit":`textit`,"\\textup":`textup`},oc=(e,t)=>{var n=e.font;return n?rc[n]?t.withTextFontFamily(rc[n]):ic[n]?t.withTextFontWeight(ic[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(ac[n]):t};K({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],props:{numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:`text`,mode:n.mode,body:wa(i),font:r}},htmlBuilder(e,t){var n=oc(e,t);return G([`mord`,`text`],ka(e.body,n,!0),n)},mathmlBuilder(e,t){var n=oc(e,t);return qa(e.body,n)}}),K({type:`underline`,names:[`\\underline`],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:`underline`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Pa(e.body,t),r=ra(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return G([`mord`,`underline`],[ca({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new J(`mo`,[new Ra(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new J(`munder`,[Ja(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),K({type:`vcenter`,names:[`\\vcenter`],props:{numArgs:1,argTypes:[`original`],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:`vcenter`,mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Pa(e.body,t),r=t.fontMetrics().axisHeight;return ca({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new J(`mpadded`,[Ja(e.body,t)],[`vcenter`])}}),K({type:`verb`,names:[`\\verb`],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new A(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=sc(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(Yi(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return G([`mord`,`text`].concat(i.sizingClasses(t)),ea(r),i)},mathmlBuilder(e,t){var n=new J(`mtext`,[new Ra(sc(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var sc=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),cc=ya,lc=`[ \r
|
|
517
517
|
]`,uc=`\\\\[a-zA-Z@]+`,dc=`\\\\[^\ud800-\udfff]`,fc=`(`+uc+`)`+lc+`*`,pc=`\\\\(
|
|
518
518
|
|[ \r ]+
|
|
@@ -3366,7 +3366,8 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
3366
3366
|
opacity: 0;
|
|
3367
3367
|
}
|
|
3368
3368
|
|
|
3369
|
-
.norio-office-rich-text-bubble
|
|
3369
|
+
.norio-office-rich-text-bubble,
|
|
3370
|
+
.norio-office-rich-table-bubble-menu {
|
|
3370
3371
|
z-index: 60;
|
|
3371
3372
|
max-width: calc(100vw - 16px);
|
|
3372
3373
|
padding: 5px;
|
|
@@ -3477,7 +3478,8 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
3477
3478
|
}
|
|
3478
3479
|
|
|
3479
3480
|
@media print {
|
|
3480
|
-
.norio-office-rich-text-bubble
|
|
3481
|
+
.norio-office-rich-text-bubble,
|
|
3482
|
+
.norio-office-rich-table-bubble-menu {
|
|
3481
3483
|
display: none !important;
|
|
3482
3484
|
}
|
|
3483
3485
|
}
|
|
@@ -3494,18 +3496,14 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
3494
3496
|
0 2px 8px rgba(15, 23, 42, 0.06);
|
|
3495
3497
|
}
|
|
3496
3498
|
\r
|
|
3497
|
-
.norio-office-rich-table-bubble-
|
|
3498
|
-
display:
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
.norio-office-rich-table-bubble-menu__actions {\r
|
|
3506
|
-
display: inline-flex;\r
|
|
3507
|
-
align-items: center;\r
|
|
3508
|
-
gap: 4px;\r
|
|
3499
|
+
.norio-office-rich-table-bubble-menu__actions {
|
|
3500
|
+
display: flex;
|
|
3501
|
+
align-items: center;
|
|
3502
|
+
flex-wrap: wrap;
|
|
3503
|
+
gap: 4px;
|
|
3504
|
+
margin-top: 5px;
|
|
3505
|
+
padding-top: 5px;
|
|
3506
|
+
border-top: 1px solid #e6ebf2;
|
|
3509
3507
|
}\r
|
|
3510
3508
|
\r
|
|
3511
3509
|
.norio-office-rich-table-bubble-menu__dropdown {\r
|
|
@@ -7739,13 +7737,13 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
7739
7737
|
}\r
|
|
7740
7738
|
}\r
|
|
7741
7739
|
`,Dl=`@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(fonts/KaTeX_AMS-Regular.woff2) format("woff2"),url(fonts/KaTeX_AMS-Regular.woff) format("woff"),url(fonts/KaTeX_AMS-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Bold.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(fonts/KaTeX_Caligraphic-Regular.woff) format("woff"),url(fonts/KaTeX_Caligraphic-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Bold.woff) format("woff"),url(fonts/KaTeX_Fraktur-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(fonts/KaTeX_Fraktur-Regular.woff) format("woff"),url(fonts/KaTeX_Fraktur-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(fonts/KaTeX_Main-Bold.woff2) format("woff2"),url(fonts/KaTeX_Main-Bold.woff) format("woff"),url(fonts/KaTeX_Main-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Main-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Main-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Main-Italic.woff2) format("woff2"),url(fonts/KaTeX_Main-Italic.woff) format("woff"),url(fonts/KaTeX_Main-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Main-Regular.woff2) format("woff2"),url(fonts/KaTeX_Main-Regular.woff) format("woff"),url(fonts/KaTeX_Main-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(fonts/KaTeX_Math-BoldItalic.woff) format("woff"),url(fonts/KaTeX_Math-BoldItalic.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(fonts/KaTeX_Math-Italic.woff2) format("woff2"),url(fonts/KaTeX_Math-Italic.woff) format("woff"),url(fonts/KaTeX_Math-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Bold.woff) format("woff"),url(fonts/KaTeX_SansSerif-Bold.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Italic.woff) format("woff"),url(fonts/KaTeX_SansSerif-Italic.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(fonts/KaTeX_SansSerif-Regular.woff) format("woff"),url(fonts/KaTeX_SansSerif-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Script-Regular.woff2) format("woff2"),url(fonts/KaTeX_Script-Regular.woff) format("woff"),url(fonts/KaTeX_Script-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size1-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size1-Regular.woff) format("woff"),url(fonts/KaTeX_Size1-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size2-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size2-Regular.woff) format("woff"),url(fonts/KaTeX_Size2-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size3-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size3-Regular.woff) format("woff"),url(fonts/KaTeX_Size3-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Size4-Regular.woff2) format("woff2"),url(fonts/KaTeX_Size4-Regular.woff) format("woff"),url(fonts/KaTeX_Size4-Regular.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(fonts/KaTeX_Typewriter-Regular.woff) format("woff"),url(fonts/KaTeX_Typewriter-Regular.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.44"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}
|
|
7742
|
-
`;function Ol(e,t,n){return Math.max(t,Math.min(n,e))}var kl=T.Extension.create({name:`indent`,addOptions(){return{types:[`paragraph`,`heading`],minLevel:0,maxLevel:8,stepEm:2}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:e=>{let t=e.getAttribute(`data-indent`),n=Number.parseInt(t??`0`,10);return Number.isNaN(n)?this.options.minLevel:Ol(n,this.options.minLevel,this.options.maxLevel)},renderHTML:e=>{let t=Number(e.indent??0);return t?{"data-indent":String(t),style:`margin-left: ${t*this.options.stepEm}em;`}:{}}}}}]},addCommands(){let e=e=>({state:t,dispatch:n})=>{let{from:r,to:i}=t.selection,a=t.tr,o=!1;return t.doc.nodesBetween(r,i,(t,n)=>{if(!this.options.types.includes(t.type.name))return;let r=Number(t.attrs.indent??0),i=Ol(r+e,this.options.minLevel,this.options.maxLevel);i!==r&&(a.setNodeMarkup(n,void 0,{...t.attrs,indent:i}),o=!0)}),o?(n&&n(a),!0):!1};return{increaseIndent:()=>e(1),decreaseIndent:()=>e(-1)}}});function Al(e){let n=(0,t.ref)(e.isEditable),r=null;function i(){let t=e.view.dom.closest(`.norio-office-rich-editor`);n.value=e.isEditable&&t?.dataset.editable!==`false`&&t?.dataset.presentation!==`true`}return(0,t.onMounted)(()=>{e.on(`update`,i);let t=e.view.dom.closest(`.norio-office-rich-editor`);t&&(r=new MutationObserver(i),r.observe(t,{attributes:!0,attributeFilter:[`data-editable`,`data-presentation`]})),i()}),(0,t.onBeforeUnmount)(()=>{e.off(`update`,i),r?.disconnect()}),(0,t.readonly)(n)}function jl(e){return Math.round(e*1e3)/1e3}function Ml(e){if(e<=0)return[];let t=100/e,n=Array.from({length:e},()=>jl(t)),r=n.reduce((e,t)=>e+t,0);return n[e-1]=jl(n[e-1]+(100-r)),n}function Nl(e,t){if(t<=0)return[];if(!Array.isArray(e)||e.length!==t)return Ml(t);let n=e.map(e=>Number(e)).filter(e=>Number.isFinite(e)&&e>0);if(n.length!==t)return Ml(t);let r=n.reduce((e,t)=>e+t,0);if(r<=0)return Ml(t);let i=n.map(e=>e/r*100);if(10*t>100)return Ml(t);let a=i.map(e=>e).map(e=>e<10?10:e),o=a.reduce((e,t)=>e+t,0)-100;for(;o>.001;){let e=a.map((e,t)=>({width:e,index:t})).filter(({width:e})=>e>10.001);if(!e.length)return Ml(t);let n=o/e.length,r=0;if(e.forEach(({index:e})=>{let t=a[e]-10,i=Math.min(t,n);a[e]-=i,r+=i}),r<=.001)return Ml(t);o-=r}return a=a.map(e=>jl(e)),r=a.reduce((e,t)=>e+t,0),a[t-1]=jl(a[t-1]+(100-r)),a}var Pl={class:`norio-office-rich-columns__surface`},Fl={key:0,class:`norio-office-rich-columns__overlay`,"aria-hidden":`true`},Il=[`onMouseenter`,`onMouseleave`],Ll=[`onClick`],Rl=[`onPointerdown`],zl=(0,t.defineComponent)({__name:`ColumnsBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(null),c=(0,t.ref)([]),l=null,u=null,d=(0,t.computed)(()=>r.node.childCount),f=(0,t.computed)(()=>Nl(r.node.attrs.widths,d.value)),p=Al(r.editor),m=(0,t.computed)(()=>d.value<4),h=(0,t.computed)(()=>({gridTemplateColumns:f.value.map(e=>`minmax(0, ${e}fr)`).join(` `)}));function g(){if(typeof r.getPos!=`function`)return null;let e=r.getPos();return typeof e==`number`?e:null}function _(){let e=v();return e?Array.from(e.querySelectorAll(`:scope > [data-type="columns-column"]`)):[]}function v(){if(i.value instanceof HTMLElement)return i.value;let e=i.value?.$el;return e instanceof HTMLElement?e:null}function y(){let e=v();if(!e){c.value=[];return}let t=_(),n=e.getBoundingClientRect(),r=[];for(let e=0;e<t.length-1;e+=1){let i=t[e].getBoundingClientRect(),a=t[e+1].getBoundingClientRect();r.push((i.right+a.left)/2-n.left)}c.value=r}function b(e){if(!p.value||!m.value)return;let t=g();if(t===null)return;let{state:n,view:i}=r.editor,o=n.doc.nodeAt(t),s=n.schema.nodes.columnsColumn,c=n.schema.nodes.paragraph;if(!o||!s||!c)return;let l=e+1,u=s.create(void 0,[c.create()]),d=t+1;for(let e=0;e<l;e+=1)d+=o.child(e).nodeSize;let f=n.tr.insert(d,u);f.setNodeMarkup(t,void 0,{...o.attrs,widths:Ml(o.childCount+1)}),f.setSelection(a.TextSelection.near(f.doc.resolve(Math.min(d+1,f.doc.content.size)),1)),i.dispatch(f.scrollIntoView())}function x(e){p.value&&(o.value=e)}function S(e){s.value!==e&&(o.value=null)}function C(){u=null,s.value=null,window.removeEventListener(`pointermove`,w),window.removeEventListener(`pointerup`,C),window.removeEventListener(`pointercancel`,C)}function w(e){if(!u)return;let t=u.leftWidth+u.rightWidth,n=(e.clientX-u.startX)/Math.max(u.totalWidth,1)*100,i=f.value.slice(),a=t-10,o=Math.min(Math.max(u.leftWidth+n,10),a),s=t-o;i[u.index]=o,i[u.index+1]=s,r.updateAttributes({widths:Nl(i,d.value)})}function T(e,t){if(!p.value)return;t.preventDefault(),t.stopPropagation();let n=_();!n[e]||!n[e+1]||(u={index:e,startX:t.clientX,leftWidth:f.value[e]??0,rightWidth:f.value[e+1]??0,totalWidth:n.reduce((e,t)=>e+t.getBoundingClientRect().width,0)},s.value=e,o.value=e,window.addEventListener(`pointermove`,w),window.addEventListener(`pointerup`,C),window.addEventListener(`pointercancel`,C))}return(0,t.watch)(()=>[r.node.childCount,JSON.stringify(r.node.attrs.widths)],()=>{(0,t.nextTick)(y)}),(0,t.onMounted)(()=>{(0,t.nextTick)(y);let e=v();typeof ResizeObserver<`u`&&e&&(l=new ResizeObserver(()=>{y()}),l.observe(e)),window.addEventListener(`resize`,y,{passive:!0})}),(0,t.onBeforeUnmount)(()=>{C(),l?.disconnect(),window.removeEventListener(`resize`,y)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:`norio-office-rich-columns`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Pl,[(0,t.createVNode)((0,t.unref)(n.NodeViewContent),{ref_key:`contentRef`,ref:i,as:`div`,class:`norio-office-rich-columns__content`,style:(0,t.normalizeStyle)(h.value)},null,8,[`style`]),(0,t.unref)(p)&&c.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Fl,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`columns-divider-${n}`,class:`norio-office-rich-columns__divider-hitbox`,style:(0,t.normalizeStyle)({left:`${e}px`}),onMouseenter:e=>x(n),onMouseleave:e=>S(n)},[m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-columns__add-button`,{"norio-office-rich-columns__add-button--active":s.value===n}]),tabindex:`-1`,onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:(0,t.withModifiers)(e=>b(n),[`stop`])},[r[1]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-columns__add-tooltip`},`新增分栏`,-1),(0,t.createVNode)(k,{name:`add`,size:16,color:`#ffffff`,"background-color":`transparent`})],42,Ll)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-columns__divider`,{"norio-office-rich-columns__divider--active":o.value===n||s.value===n}]),tabindex:`-1`,onPointerdown:e=>T(n,e)},null,42,Rl)],44,Il))),128))])):(0,t.createCommentVNode)(``,!0)])]),_:1}))}}),Bl=T.Node.create({name:`columnsBlock`,group:`block`,content:`columnsColumn+`,defining:!0,isolating:!0,addAttributes(){return{widths:{default:Ml(2),parseHTML:e=>{let t=e.getAttribute(`data-widths`);if(!t)return Ml(e.childElementCount||2);try{return Nl(JSON.parse(decodeURIComponent(t)),e.childElementCount||2)}catch{return Ml(e.childElementCount||2)}},renderHTML:e=>({"data-widths":encodeURIComponent(JSON.stringify(e.widths??Ml(2)))})}}},parseHTML(){return[{tag:`div[data-type="columns-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,(0,T.mergeAttributes)(e,{"data-type":`columns-block`}),0]},addNodeView(){return(0,n.VueNodeViewRenderer)(zl)}});function Vl(e){return e.textContent.trim().length===0}var Hl=T.Node.create({name:`columnsColumn`,content:`block+`,defining:!0,isolating:!0,parseHTML(){return[{tag:`div[data-type="columns-column"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,(0,T.mergeAttributes)(e,{"data-type":`columns-column`,class:`norio-office-rich-columns__column`}),0]},addKeyboardShortcuts(){return{Backspace:()=>{let{state:e,view:t}=this.editor,{selection:n,schema:r}=e;if(!n.empty||n.$from.parentOffset!==0)return!1;let i=-1,o=-1;for(let e=n.$from.depth;e>0;--e){let t=n.$from.node(e).type.name;if(t===`columnsColumn`&&o<0&&(o=e),t===`columnsBlock`){i=e;break}}if(i<0||o<0)return!1;let s=n.$from.node(i),c=n.$from.node(o);if(!Vl(c))return!1;let l=n.$from.before(i),u=n.$from.before(o),d=n.$from.index(i),f=e.tr;if(s.childCount<=1){let e=r.nodes.paragraph?.create();return e?(f.replaceWith(l,l+s.nodeSize,e),f.setSelection(a.TextSelection.near(f.doc.resolve(Math.min(l+1,f.doc.content.size)),1)),t.dispatch(f.scrollIntoView()),!0):!1}f.delete(u,u+c.nodeSize),f.setNodeMarkup(l,void 0,{...s.attrs,widths:Ml(s.childCount-1)});let p=f.doc.nodeAt(l);if(p){let e=Math.max(0,d-1),t=l+1;for(let n=0;n<e;n+=1)t+=p.child(n).nodeSize;f.setSelection(a.TextSelection.near(f.doc.resolve(Math.min(t+1,f.doc.content.size)),1))}return t.dispatch(f.scrollIntoView()),!0}}}}),Ul=T.Mark.create({name:`commentMark`,inclusive:!1,addAttributes(){return{threadId:{default:``,parseHTML:e=>e.getAttribute(`data-comment-thread-id`)||``,renderHTML:e=>({"data-comment-thread-id":String(e.threadId??``)})}}},parseHTML(){return[{tag:`span[data-comment-thread-id]`}]},renderHTML({HTMLAttributes:e}){return[`span`,{...e,class:`norio-office-rich-comment-mark`},0]}}),Wl={class:`norio-office-rich-countdown-block__inner`},Gl={key:0,class:`norio-office-rich-countdown-block__actions`},Kl={class:`norio-office-rich-countdown-block__color-control`},ql={class:`norio-office-rich-countdown-color-panel__swatches`},Jl=[`onClick`],Yl={class:`norio-office-rich-countdown-block__digits`},Xl={class:`norio-office-rich-countdown-block__unit`},Zl={class:`norio-office-rich-countdown-block__card`},Ql={class:`norio-office-rich-countdown-block__label`},$l={key:0,class:`norio-office-rich-countdown-block__separator`},eu={class:`norio-office-rich-countdown-dialog__panel`},tu={class:`norio-office-rich-countdown-dialog__header`},nu={class:`norio-office-rich-countdown-dialog__radio`},ru={class:`norio-office-rich-countdown-dialog__duration`},iu={class:`norio-office-rich-countdown-dialog__radio`},au={class:`norio-office-rich-countdown-dialog__date-picker`},ou=[`disabled`],su=[`disabled`],cu={class:`norio-office-rich-countdown-date-picker__header`},lu={class:`norio-office-rich-countdown-date-picker__title`},uu={class:`norio-office-rich-countdown-date-picker__weekdays`},du={class:`norio-office-rich-countdown-date-picker__grid`},fu=[`onClick`],pu={class:`norio-office-rich-countdown-time-picker__column`},mu=[`onClick`],hu={class:`norio-office-rich-countdown-time-picker__column`},gu=[`onClick`],_u={class:`norio-office-rich-countdown-dialog__footer`},vu={class:`norio-office-rich-countdown-dialog__checkbox`},yu=(0,t.defineComponent)({__name:`CountdownBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=[`#f56565`,`#ff8b00`,`#ffc400`,`#6bcf43`,`#5b8cff`,`#7c4dff`,`#aab2bd`],a=(0,t.ref)(Date.now()),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(`duration`),l=(0,t.ref)(`0`),u=(0,t.ref)(`0`),d=(0,t.ref)(`0`),f=(0,t.ref)(`0`),p=(0,t.ref)(``),m=(0,t.ref)(!1),h=(0,t.ref)(!1),g=(0,t.ref)(new Date().getFullYear()),_=(0,t.ref)(new Date().getMonth()),v=(0,t.ref)(!0),y=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)(null),S=(0,t.ref)(null),C=(0,t.ref)(null),w=(0,t.ref)(null),T=null,E=[`日`,`一`,`二`,`三`,`四`,`五`,`六`],ee=Array.from({length:24},(e,t)=>String(t).padStart(2,`0`)),te=Array.from({length:60},(e,t)=>String(t).padStart(2,`0`)),D=(0,t.computed)(()=>Number(r.node.attrs.targetTimestamp??0)||0),ne=(0,t.computed)(()=>String(r.node.attrs.color||`#ff8b00`)),re=Al(r.editor),ie=(0,t.computed)(()=>D.value<=0?0:Math.max(0,D.value-a.value)),O=(0,t.computed)(()=>{let e=Math.floor(ie.value/1e3),t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),i=e%60;return[{key:`days`,label:`天`,value:String(t).padStart(2,`0`)},{key:`hours`,label:`时`,value:String(n).padStart(2,`0`)},{key:`minutes`,label:`分`,value:String(r).padStart(2,`0`)},{key:`seconds`,label:`秒`,value:String(i).padStart(2,`0`)}]}),ae=(0,t.computed)(()=>({"--norio-office-rich-countdown-color":ne.value})),oe=(0,t.computed)(()=>{let e=new Date(p.value);return Number.isFinite(e.getTime())?e:new Date}),se=(0,t.computed)(()=>{let e=oe.value;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}),ce=(0,t.computed)(()=>{let e=oe.value;return`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`}),le=(0,t.computed)(()=>`${g.value}年 ${_.value+1}月`),ue=(0,t.computed)(()=>{let e=new Date(g.value,_.value,1).getDay(),t=new Date(g.value,_.value+1,0).getDate(),n=new Date(g.value,_.value,0).getDate(),r=oe.value,i=new Date;return Array.from({length:42},(a,o)=>{let s=g.value,c=_.value,l=o-e+1,u=!0;return l<=0?(--c,c<0&&(c=11,--s),l=n+l,u=!1):l>t&&(l-=t,c+=1,c>11&&(c=0,s+=1),u=!1),{key:`${s}-${c}-${l}`,year:s,month:c,day:l,isCurrentMonth:u,isToday:i.getFullYear()===s&&i.getMonth()===c&&i.getDate()===l,isSelected:r.getFullYear()===s&&r.getMonth()===c&&r.getDate()===l}})});function de(e,t){let n=Number.parseInt(e||`0`,10);return!Number.isFinite(n)||n<0?0:typeof t==`number`?Math.min(t,n):n}function fe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}T${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`}function pe(){let e=oe.value;g.value=e.getFullYear(),_.value=e.getMonth()}function me(e){p.value=fe(e),pe()}function he(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=t%60;l.value=String(n),u.value=String(r),d.value=String(i),f.value=String(a)}function ge(){if(!re.value)return;let e=r.node.attrs.mode===`deadline`?`deadline`:`duration`,t=D.value>0?D.value:Date.now()+6e4;c.value=e,he(Math.max(0,D.value-Date.now())),me(new Date(t)),v.value=r.node.attrs.reminderEnabled!==!1,o.value=!1,m.value=!1,h.value=!1,s.value=!0}function _e(){s.value=!1,m.value=!1,h.value=!1}function ve(){let e=0;if(c.value===`deadline`){let t=new Date(p.value).getTime();e=Number.isFinite(t)?t:0}else{let t=de(l.value),n=de(u.value,23),r=de(d.value,59),i=de(f.value,59),a=((t*24+n)*60+r)*60+i;e=a>0?Date.now()+a*1e3:0}r.updateAttributes({targetTimestamp:Math.floor(e),mode:c.value,reminderEnabled:v.value}),_e()}function ye(){re.value&&(o.value=!o.value,o.value&&(s.value=!1,m.value=!1,h.value=!1))}function be(e){re.value&&(r.updateAttributes({color:e}),o.value=!1)}function xe(){c.value=`deadline`,m.value=!m.value,h.value=!1,pe()}function Se(){c.value=`deadline`,h.value=!h.value,m.value=!1}function Ce(e){let t=new Date(g.value,_.value+e,1);g.value=t.getFullYear(),_.value=t.getMonth()}function we(e,t,n){let r=oe.value,i=new Date(r);i.setFullYear(e,t,n),me(i),m.value=!1}function Te(){let e=oe.value,t=new Date;t.setHours(e.getHours(),e.getMinutes(),0,0),me(t),m.value=!1}function Ee(e){let t=new Date(oe.value);t.setHours(de(e,23),t.getMinutes(),0,0),me(t)}function De(e){let t=new Date(oe.value);t.setHours(t.getHours(),de(e,59),0,0),me(t),h.value=!1}function Oe(e){let t=e.target;t&&(y.value?.contains(t)||b.value?.contains(t)||x.value?.contains(t)||S.value?.contains(t)||C.value?.contains(t)||w.value?.contains(t)||(o.value=!1,m.value=!1,h.value=!1))}function ke(){Ae(),a.value=Date.now(),T=window.setInterval(()=>{a.value=Date.now()},1e3)}function Ae(){T!==null&&(window.clearInterval(T),T=null)}return(0,t.onMounted)(()=>{ke(),document.addEventListener(`pointerdown`,Oe)}),(0,t.onBeforeUnmount)(()=>{Ae(),document.removeEventListener(`pointerdown`,Oe)}),(r,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-countdown-block`,{"norio-office-rich-countdown-block--selected":e.selected&&(0,t.unref)(re)}]),style:(0,t.normalizeStyle)(ae.value)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Wl,[(0,t.unref)(re)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gl,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-block__tool`,title:`编辑`,"aria-label":`编辑`,onMousedown:a[0]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(ge,[`stop`])},[(0,t.createVNode)(k,{name:`edit`,size:16,color:`#5f6b7a`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`div`,Kl,[(0,t.createElementVNode)(`button`,{ref_key:`colorTriggerRef`,ref:y,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-block__tool`,{"norio-office-rich-countdown-block__tool--active":o.value}]),title:`设置颜色`,"aria-label":`设置颜色`,onMousedown:a[1]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(ye,[`stop`])},[(0,t.createVNode)(k,{name:`yanse`,size:16,color:`#5f6b7a`,"background-color":`transparent`})],34),o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`colorPanelRef`,ref:b,class:`norio-office-rich-countdown-color-panel`,onMousedown:a[2]||=(0,t.withModifiers)(()=>{},[`stop`]),onClick:a[3]||=(0,t.withModifiers)(()=>{},[`stop`])},[a[16]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-color-panel__title`},`颜色`,-1),(0,t.createElementVNode)(`div`,ql,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i,e=>(0,t.createElementVNode)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-color-panel__swatch`,{"norio-office-rich-countdown-color-panel__swatch--active":e===ne.value}]),style:(0,t.normalizeStyle)({backgroundColor:e}),onClick:t=>be(e)},null,14,Jl)),64))])],544)):(0,t.createCommentVNode)(``,!0)])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Yl,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(O.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.key},[(0,t.createElementVNode)(`div`,Xl,[(0,t.createElementVNode)(`span`,Zl,(0,t.toDisplayString)(e.value),1),(0,t.createElementVNode)(`span`,Ql,(0,t.toDisplayString)(e.label),1)]),n<O.value.length-1?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,$l,`:`)):(0,t.createCommentVNode)(``,!0)],64))),128))])]),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[s.value&&(0,t.unref)(re)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-countdown-dialog`,onMousedown:a[15]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,eu,[(0,t.createElementVNode)(`div`,tu,[a[17]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-dialog__title`},`倒计时设置`,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-dialog__close`,onClick:_e},[(0,t.createVNode)(k,{name:`close`,size:20,color:`#6b7280`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`label`,{class:(0,t.normalizeClass)([`norio-office-rich-countdown-dialog__option`,{"norio-office-rich-countdown-dialog__option--active":c.value===`duration`}])},[(0,t.createElementVNode)(`span`,nu,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[4]||=e=>c.value=e,type:`radio`,value:`duration`},null,512),[[t.vModelRadio,c.value]]),a[18]||=(0,t.createElementVNode)(`span`,null,null,-1)]),a[23]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-dialog__option-title`},`输入倒计时时长`,-1),(0,t.createElementVNode)(`span`,ru,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[5]||=e=>l.value=e,type:`number`,min:`0`},null,512),[[t.vModelText,l.value]]),a[19]||=(0,t.createElementVNode)(`span`,null,`天`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[6]||=e=>u.value=e,type:`number`,min:`0`,max:`23`},null,512),[[t.vModelText,u.value]]),a[20]||=(0,t.createElementVNode)(`span`,null,`时`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[7]||=e=>d.value=e,type:`number`,min:`0`,max:`59`},null,512),[[t.vModelText,d.value]]),a[21]||=(0,t.createElementVNode)(`span`,null,`分`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[8]||=e=>f.value=e,type:`number`,min:`0`,max:`59`},null,512),[[t.vModelText,f.value]]),a[22]||=(0,t.createElementVNode)(`span`,null,`秒`,-1)])],2),(0,t.createElementVNode)(`label`,{class:(0,t.normalizeClass)([`norio-office-rich-countdown-dialog__option`,{"norio-office-rich-countdown-dialog__option--active":c.value===`deadline`}])},[(0,t.createElementVNode)(`span`,iu,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[9]||=e=>c.value=e,type:`radio`,value:`deadline`},null,512),[[t.vModelRadio,c.value]]),a[24]||=(0,t.createElementVNode)(`span`,null,null,-1)]),a[25]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-dialog__option-title`},`选择具体日期`,-1),(0,t.createElementVNode)(`span`,au,[(0,t.createElementVNode)(`button`,{ref_key:`dateTriggerRef`,ref:x,type:`button`,class:`norio-office-rich-countdown-dialog__date-button`,disabled:c.value!==`deadline`,onClick:(0,t.withModifiers)(xe,[`prevent`])},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(se.value),1)],8,ou),(0,t.createElementVNode)(`button`,{ref_key:`timeTriggerRef`,ref:C,type:`button`,class:`norio-office-rich-countdown-dialog__time-button`,disabled:c.value!==`deadline`,onClick:(0,t.withModifiers)(Se,[`prevent`])},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(ce.value),1)],8,su),(0,t.createVNode)(k,{name:`days`,size:16,color:`#8a95a5`,"background-color":`transparent`}),m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`datePanelRef`,ref:S,class:`norio-office-rich-countdown-date-picker`,onClick:a[12]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,cu,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-date-picker__nav`,onClick:a[10]||=e=>Ce(-1)},[(0,t.createVNode)(k,{name:`zuojiantou`,size:14,color:`#4b5563`,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,lu,(0,t.toDisplayString)(le.value),1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-date-picker__nav`,onClick:a[11]||=e=>Ce(1)},[(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#4b5563`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`div`,uu,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(E,e=>(0,t.createElementVNode)(`span`,{key:e},(0,t.toDisplayString)(e),1)),64))]),(0,t.createElementVNode)(`div`,du,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ue.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-date-picker__day`,{"norio-office-rich-countdown-date-picker__day--muted":!e.isCurrentMonth,"norio-office-rich-countdown-date-picker__day--today":e.isToday,"norio-office-rich-countdown-date-picker__day--selected":e.isSelected}]),onClick:t=>we(e.year,e.month,e.day)},(0,t.toDisplayString)(e.day),11,fu))),128))]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-date-picker__today`,onClick:Te},` 今天 `)],512)):(0,t.createCommentVNode)(``,!0),h.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`timePanelRef`,ref:w,class:`norio-office-rich-countdown-time-picker`,onClick:a[13]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,pu,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(ee),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`hour-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-time-picker__item`,{"norio-office-rich-countdown-time-picker__item--active":e===ce.value.slice(0,2)}]),onClick:t=>Ee(e)},(0,t.toDisplayString)(e),11,mu))),128))]),(0,t.createElementVNode)(`div`,hu,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(te),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`minute-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-time-picker__item`,{"norio-office-rich-countdown-time-picker__item--active":e===ce.value.slice(3,5)}]),onClick:t=>De(e)},(0,t.toDisplayString)(e),11,gu))),128))])],512)):(0,t.createCommentVNode)(``,!0)])],2),(0,t.createElementVNode)(`div`,_u,[(0,t.createElementVNode)(`label`,vu,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[14]||=e=>v.value=e,type:`checkbox`},null,512),[[t.vModelCheckbox,v.value]]),a[26]||=(0,t.createElementVNode)(`span`,null,`倒计时结束时显示气泡提醒`,-1)]),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-dialog__actions`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-dialog__button norio-office-rich-countdown-dialog__button--secondary`,onClick:_e},` 取消 `),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-dialog__button norio-office-rich-countdown-dialog__button--primary`,onClick:ve},` 确定 `)])])])],32)):(0,t.createCommentVNode)(``,!0)]))]),_:1},8,[`class`,`style`]))}}),bu=T.Node.create({name:`countdownBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return{targetTimestamp:{default:0,parseHTML:e=>Number.parseInt(e.getAttribute(`data-target-timestamp`)??`0`,10)||0,renderHTML:e=>({"data-target-timestamp":String(e.targetTimestamp??0)})},mode:{default:`duration`,parseHTML:e=>e.getAttribute(`data-mode`)||`duration`,renderHTML:e=>({"data-mode":String(e.mode??`duration`)})},color:{default:`#ff8b00`,parseHTML:e=>e.getAttribute(`data-color`)||`#ff8b00`,renderHTML:e=>({"data-color":String(e.color??`#ff8b00`)})},reminderEnabled:{default:!0,parseHTML:e=>e.getAttribute(`data-reminder-enabled`)!==`false`,renderHTML:e=>({"data-reminder-enabled":e.reminderEnabled===!1?`false`:`true`})}}},parseHTML(){return[{tag:`div[data-type="countdown-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`countdown-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(yu)}}),xu=[`innerHTML`],Su={key:1,class:`norio-office-rich-formula-block__error`},Cu={key:2,class:`norio-office-rich-formula-block__placeholder`},wu=(0,t.defineComponent)({__name:`FormulaBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(!1),a=(0,t.computed)(()=>String(r.node.attrs.latex??``)),o=Al(r.editor),s=(0,t.computed)(()=>{let e=a.value.trim();if(!e)return``;try{return zc.renderToString(e,{throwOnError:!1,displayMode:!0,strict:`ignore`})}catch{return``}}),c=(0,t.computed)(()=>!a.value.trim()||s.value?``:`公式渲染失败`);function l(){o.value&&(i.value=!0)}function u(){i.value=!1}function d(e){o.value&&(r.updateAttributes({latex:e}),i.value=!1)}return(e,f)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-formula-block`,{"norio-office-rich-formula-block--selected":r.selected&&(0,t.unref)(o)}]),"data-drag-handle":``,onDblclick:(0,t.withModifiers)(l,[`stop`])},{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-formula-block__content`,innerHTML:s.value},null,8,xu)):c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Su,(0,t.toDisplayString)(c.value),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Cu,`双击编辑公式`)),(0,t.createVNode)(el,{open:i.value&&(0,t.unref)(o),value:a.value,title:`编辑 LaTeX 公式`,"submit-label":`确定`,onClose:u,onSubmit:d},null,8,[`open`,`value`])]),_:1},8,[`class`]))}}),Tu=T.Node.create({name:`formulaBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return{latex:{default:``,parseHTML:e=>e.getAttribute(`data-latex`)||``,renderHTML:e=>({"data-latex":String(e.latex??``)})}}},parseHTML(){return[{tag:`div[data-type="formula-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`formula-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(wu)}});function Eu(e){let t=e.trim();if(!t)return``;let n=/^[a-z][a-z\d+.-]*:/i.test(t)?t:`https://${t}`;try{let e=new URL(n);return e.protocol===`http:`||e.protocol===`https:`?e.href:``}catch{return``}}function Du(e){let t=e.trim();return t?t.startsWith(`blob:`)?t:Eu(t):``}var Ou={key:0,class:`norio-office-rich-image-block__toolbar`},ku={key:0,class:`norio-office-rich-image-block__align-menu`},Au={key:1,class:`norio-office-rich-image-block__align-check`},ju={key:1,class:`norio-office-rich-image-block__align-check`},Mu={key:1,class:`norio-office-rich-image-block__align-check`},Nu=[`aria-expanded`],Pu={class:`norio-office-rich-image-block__body`},Fu=[`draggable`,`data-drag-handle`,`onMousedown`,`onClick`,`onDragstart`,`onDrop`],Iu=[`src`,`alt`],Lu=[`src`,`alt`],Ru=[`value`,`onFocus`,`onInput`,`onKeydown`],zu=[`hidden`],Bu={key:0,class:`norio-office-rich-image-block__upload-state`},Vu={class:`norio-office-rich-image-block__upload-file`},Hu={key:1,class:`norio-office-rich-image-block__upload-state norio-office-rich-image-block__upload-state--error`},Uu={class:`norio-office-rich-image-block__upload-file`},Wu={class:`norio-office-rich-image-block__placeholder-actions`},Gu=[`onClick`],Ku=[`onClick`],qu={class:`norio-office-rich-image-block__placeholder-title`},Ju={key:0,class:`norio-office-rich-image-block__placeholder-actions`},Yu=[`onClick`],Xu=[`src`,`alt`],Zu={class:`norio-office-rich-image-block__viewer-meta`},Qu={class:`norio-office-rich-image-block__viewer-name`},$u={key:0,class:`norio-office-rich-image-block__viewer-desc`},ed={class:`norio-office-rich-image-block__viewer-count`},td=[`onKeydown`],nd=[`aria-invalid`],rd={key:0,class:`norio-office-rich-image-block__link-error`,role:`alert`},id={class:`norio-office-rich-image-block__link-target`},ad=(0,t.defineComponent)({__name:`ImageBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(null),c=(0,t.ref)(null),l=new Map,u=(0,t.ref)(0),d=(0,t.ref)(null),f=(0,t.ref)({}),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)(!1),g=(0,t.ref)(!1),_=(0,t.ref)(null),v=(0,t.ref)(null),y=(0,t.ref)(``),b=(0,t.ref)(!1),x=(0,t.ref)(``),S=(0,t.ref)({}),C=(0,t.ref)(`body`),w=0,T=100,E=0,ee=146,te=`br`,D=(0,t.computed)(()=>Array.isArray(r.node.attrs.images)?r.node.attrs.images:[]),ne=(0,t.computed)(()=>Number(r.node.attrs.widthPercent??100)),re=(0,t.computed)(()=>String(r.node.attrs.align??`left`)),ie=(0,t.computed)(()=>Number(r.node.attrs.height??146)),O=Al(r.editor),ae=(0,t.computed)(()=>D.value.length<4),oe=(0,t.computed)(()=>D.value.length>0&&u.value>=0&&u.value<D.value.length),se=(0,t.computed)(()=>oe.value?D.value[u.value]:null),ce=(0,t.computed)(()=>re.value===`center`?`juzhongduiqi`:re.value===`right`?`youduiqi`:`zuoduiqi`),le=(0,t.computed)(()=>_.value===null?null:D.value[_.value]??null);function ue(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`image-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}async function de(e){return await new Promise((t,n)=>{let i={kind:`image`,file:e,handled:!1,resolve:t,reject:n};r.editor.view.dom.dispatchEvent(new CustomEvent(`norio-office-rich-upload-request`,{bubbles:!0,detail:i})),i.handled||n(Error(`Missing uploadImage hook.`))})}function fe(e,t){let n=r.extension.options.onUploadError;n?.({kind:`image`,fileName:e.name,error:t})}function pe(e){return e instanceof Error&&e.message?e.message:`上传失败,请重试。`}function me(e){let t=D.value[e];return t?f.value[t.id]??null:null}function he(e,t){f.value={...f.value,[e]:t}}function ge(e){if(!f.value[e])return;let t={...f.value};delete t[e],f.value=t}function _e(){if(!O.value)return;let e=r.getPos();typeof e==`number`&&r.editor.chain().focus().setNodeSelection(e).run()}function ve(e){D.value[e]?.id!==v.value&&qe(),u.value=e,_e()}function ye(e){r.updateAttributes({images:e})}function be(e){O.value&&me(e)?.status!==`uploading`&&(d.value=e,i.value?.click(),ve(e))}async function xe(e,t){let n=D.value[t];if(!n)return;let r=n.id;ve(t),he(r,{status:`uploading`,file:e});try{let t=await de(e),n=[...D.value],i=n.findIndex(e=>e.id===r);if(i===-1){ge(r);return}n[i]={...n[i],assetId:t.assetId,src:t.url,alt:t.alt||t.name||e.name,name:t.name||e.name,description:t.description??n[i]?.description??``,link:n[i]?.link??``,rotation:n[i]?.rotation??0},ye(n),ge(r)}catch(t){he(r,{status:`error`,file:e,message:pe(t)}),fe(e,t)}}function Se(e){let t=me(e);!t?.file||t.status!==`error`||xe(t.file,e)}async function Ce(e){let t=e.target,n=t.files?.[0],r=d.value;if(!n||r===null||!n.type.startsWith(`image/`)){t.value=``,d.value=null;return}await xe(n,r),t.value=``,d.value=null}function we(){if(!O.value||!oe.value||!ae.value)return;let e=[...D.value];e.splice(u.value+1,0,{id:ue(),rotation:0}),ye(e),u.value=Math.min(u.value+1,e.length-1)}function Te(){if(!O.value||!oe.value)return;if(D.value.length===1){r.deleteNode();return}let e=[...D.value];e.splice(u.value,1),ye(e),u.value=Math.max(0,u.value-1)}function Ee(){O.value&&r.deleteNode()}function De(e,t){if(!O.value||!D.value[e]?.src||me(e)?.status===`uploading`){t.preventDefault();return}p.value=e}function Oe(e){p.value!==null&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`))}function ke(e,t){if(p.value===null)return;if(t.preventDefault(),t.stopPropagation(),r.editor.view.dragging=null,!O.value||p.value===e){p.value=null;return}let n=[...D.value],[i]=n.splice(p.value,1);n.splice(e,0,i),ye(n),u.value=e,p.value=null}function Ae(){p.value=null}function je(e){O.value&&(r.updateAttributes({align:e}),g.value=!1)}function Me(){g.value=!1}function Ne(){O.value&&(qe(),g.value=!g.value)}function Pe(e){let t=e.target;if(v.value&&(!(t instanceof Node)||!s.value?.contains(t)&&!o.value?.contains(t))&&qe(),!g.value)return;let n=e.target;if(!(n instanceof Node)){Me();return}a.value?.contains(n)||Me()}function Fe(){if(!O.value||!se.value)return;let e=[...D.value],t=Number(se.value.rotation??0);e[u.value]={...se.value,rotation:(t+90)%360},ye(e)}function Ie(e,t){!O.value||!r.editor.isEditable||!D.value.some(t=>t.id===e)||ye(D.value.map(n=>n.id===e?{...n,...t}:n))}function Le(e){return e.descriptionVisible??!!e.description}function Re(e){e.style.height=`auto`,e.style.height=`${e.scrollHeight+e.offsetHeight-e.clientHeight}px`}function ze(e,t){t instanceof HTMLTextAreaElement?l.set(e,t):l.delete(e)}async function Be(){let e=se.value;if(!O.value||!e?.src)return;qe(),Me(),Ie(e.id,{descriptionVisible:!0}),await(0,t.nextTick)();let n=l.get(e.id);n&&(Re(n),n.focus(),n.setSelectionRange(n.value.length,n.value.length))}function Ve(e,t){let n=t.target;Ie(e,{description:n.value,descriptionVisible:!0}),Re(n)}function He(e,n){n.key!==`Backspace`||n.isComposing||n.target.value!==``||(n.preventDefault(),Ie(e,{description:``,descriptionVisible:!1}),(0,t.nextTick)(()=>{let e=r.getPos();typeof e==`number`&&r.editor.chain().focus().setNodeSelection(e).run()}))}function Ue(){if(!v.value||!o.value)return;let e=o.value.getBoundingClientRect(),t=o.value.closest(`.norio-office-rich-image-block__toolbar`)?.getBoundingClientRect()??e,n=Math.min(320,window.innerWidth-16),r=s.value?.offsetHeight||184,i=t.bottom+8,a=i+r<=window.innerHeight-8?i:t.top-r-8;S.value={left:`${Math.max(8,Math.min(e.left,window.innerWidth-n-8))}px`,top:`${Math.max(8,Math.min(a,window.innerHeight-r-8))}px`,width:`${n}px`,maxHeight:`${window.innerHeight-16}px`}}function We(){let e=document.fullscreenElement;C.value=e instanceof HTMLElement&&e.contains(r.editor.view.dom)?e:`body`,(0,t.nextTick)(Ue)}function Ge(){Ue(),l.forEach(Re)}async function Ke(){let e=se.value;!O.value||!e?.src||(Me(),v.value=e.id,y.value=e.link??``,b.value=e.linkTarget===`_self`,x.value=``,Ue(),await(0,t.nextTick)(),Ue(),c.value?.focus(),c.value?.select())}function qe(){v.value=null,y.value=``,x.value=``}function Je(){let e=v.value;if(!O.value||!e)return;let n=Eu(y.value);if(y.value.trim()&&!n){x.value=`请输入有效的 HTTP 或 HTTPS 网址`,(0,t.nextTick)(Ue);return}Ie(e,{link:n,linkTarget:b.value?`_self`:`_blank`}),qe()}function Ye(){se.value?.src&&(_.value=u.value)}function Xe(){_.value=null}function Ze(){_.value===null||D.value.length<=1||(_.value=(_.value-1+D.value.length)%D.value.length)}function Qe(){_.value===null||D.value.length<=1||(_.value=(_.value+1)%D.value.length)}function $e(e,t){O.value&&(e.preventDefault(),e.stopPropagation(),_e(),m.value=!0,te=t,w=e.clientX,T=ne.value,E=e.clientY,ee=ie.value,window.addEventListener(`pointermove`,tt),window.addEventListener(`pointerup`,rt))}function et(e){O.value&&(e.preventDefault(),e.stopPropagation(),_e(),h.value=!0,E=e.clientY,ee=ie.value,window.addEventListener(`pointermove`,nt),window.addEventListener(`pointerup`,it))}function tt(e){if(!m.value)return;let t=e.clientX-w,n=e.clientY-E,i=te===`tl`||te===`bl`?-1:1,a=te===`tl`||te===`tr`?-1:1,o=Math.max(30,Math.min(100,T+t*i/8)),s=Math.max(146,Math.min(560,ee+n*a));r.updateAttributes({widthPercent:Math.round(o),height:Math.round(s)})}function nt(e){if(!h.value)return;let t=e.clientY-E,n=Math.max(146,Math.min(560,ee+t));r.updateAttributes({height:Math.round(n)})}function rt(){m.value=!1,window.removeEventListener(`pointermove`,tt),window.removeEventListener(`pointerup`,rt)}function it(){h.value=!1,window.removeEventListener(`pointermove`,nt),window.removeEventListener(`pointerup`,it)}return(0,t.onBeforeUnmount)(()=>{rt(),it(),document.removeEventListener(`pointerdown`,Pe,!0),window.removeEventListener(`scroll`,Ue,!0),window.removeEventListener(`resize`,Ge),document.removeEventListener(`fullscreenchange`,We)}),(0,t.onMounted)(()=>{document.addEventListener(`pointerdown`,Pe,!0),window.addEventListener(`scroll`,Ue,!0),window.addEventListener(`resize`,Ge),document.addEventListener(`fullscreenchange`,We),We(),(0,t.nextTick)(()=>l.forEach(Re))}),(0,t.watch)(()=>r.selected,e=>{e||qe()}),(0,t.watch)(()=>O.value,e=>{e||qe()}),(0,t.watch)(()=>[D.value,r.node.attrs.widthPercent],()=>{v.value&&!D.value.some(e=>e.id===v.value)&&qe(),(0,t.nextTick)(()=>l.forEach(Re))}),(0,t.watch)(()=>D.value.length,e=>{e<=1||D.value.some(e=>Number(e.rotation??0)!==0)&&ye(D.value.map(e=>({...e,rotation:0})))}),(0,t.watch)(()=>D.value.map(e=>e.id).join(`|`),()=>{let e=new Set(D.value.map(e=>e.id)),t=Object.fromEntries(Object.entries(f.value).filter(([t])=>e.has(t)));Object.keys(t).length!==Object.keys(f.value).length&&(f.value=t)}),(r,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createVNode)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-image-block`,{"norio-office-rich-image-block--selected":e.selected&&(0,t.unref)(O)}]),"data-align":re.value,style:(0,t.normalizeStyle)({width:`${ne.value}%`}),onMousedown:_e},{default:(0,t.withCtx)(()=>[e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ou,[(0,t.createElementVNode)(`div`,{ref_key:`alignDropdownRef`,ref:a,class:`norio-office-rich-image-block__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__tool`,title:`图片对齐方式`,onClick:(0,t.withModifiers)(Ne,[`stop`])},[(0,t.createVNode)(k,{name:ce.value,size:14,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])]),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ku,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-image-block__align-item`,{"norio-office-rich-image-block__align-item--active":re.value===`left`}]),title:`左对齐`,onClick:l[0]||=(0,t.withModifiers)(e=>je(`left`),[`stop`])},[re.value===`left`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Au)),(0,t.createVNode)(k,{class:`norio-office-rich-image-block__align-icon`,name:`zuoduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[25]||=(0,t.createElementVNode)(`span`,null,`左对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-image-block__align-item`,{"norio-office-rich-image-block__align-item--active":re.value===`center`}]),title:`居中对齐`,onClick:l[1]||=(0,t.withModifiers)(e=>je(`center`),[`stop`])},[re.value===`center`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ju)),(0,t.createVNode)(k,{class:`norio-office-rich-image-block__align-icon`,name:`juzhongduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[26]||=(0,t.createElementVNode)(`span`,null,`居中对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-image-block__align-item`,{"norio-office-rich-image-block__align-item--active":re.value===`right`}]),title:`右对齐`,onClick:l[2]||=(0,t.withModifiers)(e=>je(`right`),[`stop`])},[re.value===`right`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Mu)),(0,t.createVNode)(k,{class:`norio-office-rich-image-block__align-icon`,name:`youduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[27]||=(0,t.createElementVNode)(`span`,null,`右对齐`,-1)],2)])):(0,t.createCommentVNode)(``,!0)],512),oe.value&&ae.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-image-block__tool`,title:`在右侧插入图片占位`,onClick:(0,t.withModifiers)(we,[`stop`])},[(0,t.createVNode)(k,{name:`charutupian`,size:16,color:`#4b5563`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`norio-office-rich-image-block__tool`,title:`放大查看图片`,onClick:(0,t.withModifiers)(Ye,[`stop`])},[(0,t.createVNode)(k,{name:`yulan`,size:14,color:`#4b5563`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,type:`button`,class:`norio-office-rich-image-block__tool`,title:`旋转图片 90 度`,onClick:(0,t.withModifiers)(Fe,[`stop`])},[(0,t.createVNode)(k,{name:`xuanzhuan`,size:14,color:`#4b5563`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,ref_key:`linkTriggerRef`,ref:o,type:`button`,class:`norio-office-rich-image-block__tool`,title:`设置图片链接`,"aria-expanded":!!v.value,onMousedown:l[3]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(Ke,[`stop`])},[(0,t.createVNode)(k,{name:`link`,size:14,color:`#4b5563`,"background-color":`transparent`})],40,Nu)):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:4,type:`button`,class:`norio-office-rich-image-block__tool`,title:`设置图片描述`,onMousedown:l[4]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(Be,[`stop`])},[(0,t.createVNode)(k,{name:`comment`,size:14,color:`#4b5563`,"background-color":`transparent`})],32)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__tool`,title:`删除当前图片`,onClick:(0,t.withModifiers)(Te,[`stop`])},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#4b5563`,"background-color":`transparent`})]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__tool`,title:`删除图片组`,onClick:(0,t.withModifiers)(Ee,[`stop`])},[(0,t.createVNode)(k,{name:`rubber`,size:14,color:`#4b5563`,"background-color":`transparent`})])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Pu,[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__grid`,style:(0,t.normalizeStyle)({gridTemplateColumns:`repeat(${Math.max(D.value.length,1)}, minmax(0, 1fr))`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(D.value,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.id,class:(0,t.normalizeClass)([`norio-office-rich-image-block__item`,{"norio-office-rich-image-block__item--selected":e.selected&&(0,t.unref)(O)&&u.value===r,"norio-office-rich-image-block__item--uploading":me(r)?.status===`uploading`,"norio-office-rich-image-block__item--upload-error":me(r)?.status===`error`}]),style:(0,t.normalizeStyle)({minHeight:`${ie.value}px`}),draggable:(0,t.unref)(O)&&!!n.src&&me(r)?.status!==`uploading`,"data-drag-handle":(0,t.unref)(O)?``:void 0,onMousedown:e=>ve(r),onClick:(0,t.withModifiers)(e=>ve(r),[`stop`]),onDragstart:e=>De(r,e),onDragover:Oe,onDrop:e=>ke(r,e),onDragend:Ae},[n.src?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__image-stage`,style:(0,t.normalizeStyle)({height:`${ie.value}px`})},[(0,t.unref)(Eu)(n.link||``)?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(O)?`span`:`a`),{key:0,class:`norio-office-rich-image-block__image-link`,draggable:`false`,href:(0,t.unref)(O)?void 0:(0,t.unref)(Eu)(n.link||``),target:(0,t.unref)(O)?void 0:n.linkTarget===`_self`?`_self`:`_blank`,rel:(0,t.unref)(O)?void 0:`noreferrer noopener`,"data-image-link":(0,t.unref)(O)?(0,t.unref)(Eu)(n.link||``):void 0,"data-image-link-target":(0,t.unref)(O)?n.linkTarget===`_self`?`_self`:`_blank`:void 0,onMousedown:l[5]||=e=>!(0,t.unref)(O)&&e.stopPropagation(),onClick:(0,t.withModifiers)(e=>ve(r),[`stop`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`img`,{class:`norio-office-rich-image-block__image`,draggable:`false`,src:n.src,alt:n.alt||``,style:(0,t.normalizeStyle)({transform:`rotate(${Number(n.rotation??0)}deg)`})},null,12,Iu)]),_:2},1064,[`href`,`target`,`rel`,`data-image-link`,`data-image-link-target`,`onClick`])):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,class:`norio-office-rich-image-block__image`,draggable:`false`,src:n.src,alt:n.alt||``,style:(0,t.normalizeStyle)({transform:`rotate(${Number(n.rotation??0)}deg)`})},null,12,Lu))],4),Le(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-image-block__caption`,onMousedown:l[6]||=(0,t.withModifiers)(()=>{},[`stop`]),onClick:l[7]||=(0,t.withModifiers)(()=>{},[`stop`]),onDragstart:l[8]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`])},[(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`textarea`,{key:0,ref_for:!0,ref:e=>ze(n.id,e),class:`norio-office-rich-image-block__caption-input`,value:n.description||``,rows:`1`,placeholder:`添加图片描述`,"aria-label":`图片描述`,onFocus:e=>u.value=r,onInput:e=>Ve(n.id,e),onKeydown:(0,t.withModifiers)(e=>He(n.id,e),[`stop`])},null,40,Ru)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__caption-desc`,hidden:(0,t.unref)(O)},(0,t.toDisplayString)(n.description),9,zu)],32)):(0,t.createCommentVNode)(``,!0)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`norio-office-rich-image-block__placeholder`,style:(0,t.normalizeStyle)({minHeight:`${ie.value}px`})},[me(r)?.status===`uploading`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Bu,[l[28]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-upload-spinner`,"aria-hidden":`true`},null,-1),l[29]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__upload-title`},`图片上传中`,-1),(0,t.createElementVNode)(`div`,Vu,(0,t.toDisplayString)(me(r)?.file.name),1)])):me(r)?.status===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Hu,[l[32]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__upload-title`},`图片上传失败`,-1),(0,t.createElementVNode)(`div`,Uu,(0,t.toDisplayString)(me(r)?.message),1),(0,t.createElementVNode)(`div`,Wu,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__placeholder-button`,title:`重试上传`,onClick:(0,t.withModifiers)(e=>Se(r),[`stop`])},[...l[30]||=[(0,t.createElementVNode)(`span`,null,`重试`,-1)]],8,Gu),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__placeholder-button`,title:`重新选择图片`,onClick:(0,t.withModifiers)(e=>be(r),[`stop`])},[...l[31]||=[(0,t.createElementVNode)(`span`,null,`重新选择`,-1)]],8,Ku)])])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`div`,qu,[(0,t.createVNode)(an,{name:`tupian`,size:16,"background-color":`transparent`}),l[33]||=(0,t.createElementVNode)(`span`,null,`图片`,-1)]),(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ju,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__placeholder-button`,title:`上传图片`,onClick:(0,t.withModifiers)(e=>be(r),[`stop`])},[(0,t.createVNode)(k,{name:`xiangshangcharu`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[34]||=(0,t.createElementVNode)(`span`,null,`上传图片`,-1)],8,Yu)])):(0,t.createCommentVNode)(``,!0)],64))],4))],46,Fu))),128))],4)]),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--tl`,onDragstart:l[9]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[10]||=e=>$e(e,`tl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--tr`,onDragstart:l[11]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[12]||=e=>$e(e,`tr`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--bl`,onDragstart:l[13]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[14]||=e=>$e(e,`bl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:4,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--br`,onDragstart:l[15]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[16]||=e=>$e(e,`br`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:5,draggable:`false`,class:`norio-office-rich-image-block__bottom-bar`,onDragstart:l[17]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:et},null,32)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`input`,{ref_key:`inputRef`,ref:i,type:`file`,accept:`image/*`,hidden:``,onChange:Ce},null,544)]),_:1},8,[`class`,`data-align`,`style`]),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[le.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-image-block__viewer`,onClick:Xe},[D.value.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-image-block__viewer-nav norio-office-rich-image-block__viewer-nav--prev`,title:`上一张`,onClick:(0,t.withModifiers)(Ze,[`stop`])},[(0,t.createVNode)(k,{name:`zuojiantou`,size:18,color:`#ffffff`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__viewer-stage`,onClick:l[18]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`img`,{class:`norio-office-rich-image-block__viewer-image`,src:le.value.src,alt:le.value.alt||``},null,8,Xu),(0,t.createElementVNode)(`div`,Zu,[(0,t.createElementVNode)(`div`,Qu,(0,t.toDisplayString)(le.value.name||le.value.alt||`图片`),1),le.value.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$u,(0,t.toDisplayString)(le.value.description),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ed,(0,t.toDisplayString)((_.value??0)+1)+` / `+(0,t.toDisplayString)(D.value.length),1)])]),D.value.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`norio-office-rich-image-block__viewer-nav norio-office-rich-image-block__viewer-nav--next`,title:`下一张`,onClick:(0,t.withModifiers)(Qe,[`stop`])},[(0,t.createVNode)(k,{name:`youjiantou`,size:18,color:`#ffffff`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__viewer-close`,title:`关闭预览`,onClick:(0,t.withModifiers)(Xe,[`stop`])},[(0,t.createVNode)(k,{name:`close`,size:18,color:`#ffffff`,"background-color":`transparent`})])])):(0,t.createCommentVNode)(``,!0)])),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:C.value},[v.value&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`form`,{key:0,ref_key:`linkPopoverRef`,ref:s,class:`norio-office-rich-image-block__link-popover`,style:(0,t.normalizeStyle)(S.value),role:`dialog`,"aria-label":`图片链接`,onPointerdown:l[22]||=(0,t.withModifiers)(()=>{},[`stop`]),onMousedown:l[23]||=(0,t.withModifiers)(()=>{},[`stop`]),onClick:l[24]||=(0,t.withModifiers)(()=>{},[`stop`]),onKeydown:(0,t.withKeys)((0,t.withModifiers)(qe,[`prevent`,`stop`]),[`esc`]),onSubmit:(0,t.withModifiers)(Je,[`prevent`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{ref_key:`linkInputRef`,ref:c,"onUpdate:modelValue":l[19]||=e=>y.value=e,type:`text`,class:`norio-office-rich-image-block__link-input`,placeholder:`请输入网址`,"aria-label":`图片链接网址`,"aria-invalid":!!x.value,onInput:l[20]||=e=>x.value=``},null,40,nd),[[t.vModelText,y.value]]),x.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,rd,(0,t.toDisplayString)(x.value),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`label`,id,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":l[21]||=e=>b.value=e,type:`checkbox`},null,512),[[t.vModelCheckbox,b.value]]),l[35]||=(0,t.createElementVNode)(`span`,null,`在当前页面打开`,-1)]),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__link-actions`},[(0,t.createElementVNode)(`button`,{type:`button`,onClick:qe},`取消`),l[36]||=(0,t.createElementVNode)(`button`,{type:`submit`,class:`norio-office-rich-image-block__link-confirm`},`确定`,-1)])],44,td)):(0,t.createCommentVNode)(``,!0)],8,[`to`]))],64))}}),od=T.Node.create({name:`imageBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addOptions(){return{uploadImage:null,onUploadError:null}},addAttributes(){return{images:{default:[],parseHTML:e=>{let t=e.getAttribute(`data-images`);if(!t)return[];try{return JSON.parse(decodeURIComponent(t))}catch{return[]}},renderHTML:e=>({"data-images":encodeURIComponent(JSON.stringify(e.images??[]))})},widthPercent:{default:100,parseHTML:e=>Number.parseInt(e.getAttribute(`data-width-percent`)??`100`,10)||100,renderHTML:e=>({"data-width-percent":String(e.widthPercent??100)})},align:{default:`left`,parseHTML:e=>e.getAttribute(`data-align`)||`left`,renderHTML:e=>({"data-align":String(e.align??`left`)})},height:{default:146,parseHTML:e=>Number.parseInt(e.getAttribute(`data-height`)??`146`,10)||146,renderHTML:e=>({"data-height":String(e.height??146)})}}},parseHTML(){return[{tag:`div[data-type="image-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`image-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(ad)}}),sd={key:0,class:`norio-office-rich-link-block__form-card`},cd={class:`norio-office-rich-link-block__form-row`},ld=[`onKeydown`],ud={class:`norio-office-rich-link-block__form-row`},dd=[`onKeydown`],fd={class:`norio-office-rich-link-block__form-actions`},pd=[`disabled`],md={key:0,class:`norio-office-rich-link-block__toolbar`},hd={key:0,class:`norio-office-rich-link-block__align-menu`},gd={key:1,class:`norio-office-rich-link-block__align-check`},_d={key:1,class:`norio-office-rich-link-block__align-check`},vd={key:1,class:`norio-office-rich-link-block__align-check`},yd={key:1,class:`norio-office-rich-link-block__preview`},bd=[`src`],xd={class:`norio-office-rich-link-block__preview-footer`},Sd={class:`norio-office-rich-link-block__preview-meta`},Cd={class:`norio-office-rich-link-block__preview-title`},wd=[`href`],Td=[`href`],Ed={class:`norio-office-rich-link-block__card-meta`},Dd={class:`norio-office-rich-link-block__card-text`},Od={class:`norio-office-rich-link-block__card-title`},kd={class:`norio-office-rich-link-block__card-subtitle`},Ad=[`href`],jd={class:`norio-office-rich-link-block__dialog-row`},Md=[`onKeydown`],Nd={class:`norio-office-rich-link-block__dialog-row`},Pd=[`onKeydown`],Fd={class:`norio-office-rich-link-block__dialog-actions`},Id=[`disabled`],Ld={class:`norio-office-rich-link-block__fullscreen-toolbar`},Rd={class:`norio-office-rich-link-block__fullscreen-title`},zd={class:`norio-office-rich-link-block__fullscreen-actions`},Bd=[`href`],Vd=[`src`],Hd=(0,t.defineComponent)({__name:`LinkBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(``),o=(0,t.ref)(``),s=(0,t.ref)(``),c=(0,t.ref)(``),l=(0,t.ref)(!1),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.ref)(!1),m=0,h=100,g=0,_=420,v=`br`,y=(0,t.computed)(()=>String(r.node.attrs.title??``)),b=(0,t.computed)(()=>String(r.node.attrs.url??``)),x=(0,t.computed)(()=>{let e=String(r.node.attrs.displayMode??`preview`);return e===`card`||e===`text`?e:`preview`}),S=(0,t.computed)(()=>{let e=String(r.node.attrs.align??`left`);return e===`center`||e===`right`?e:`left`}),C=(0,t.computed)(()=>Number(r.node.attrs.widthPercent??100)),w=(0,t.computed)(()=>Number(r.node.attrs.height??420)),T=Al(r.editor),E=(0,t.computed)(()=>y.value.trim().length>0&&b.value.trim().length>0),ee=(0,t.computed)(()=>O(b.value));(0,t.computed)(()=>O(c.value));let te=(0,t.computed)(()=>{try{return ee.value?new URL(ee.value).host:``}catch{return b.value}}),D=(0,t.computed)(()=>S.value===`center`?`juzhongduiqi`:S.value===`right`?`youduiqi`:`zuoduiqi`),ne=(0,t.computed)(()=>a.value.trim().length>0&&o.value.trim().length>0),re=(0,t.computed)(()=>s.value.trim().length>0&&c.value.trim().length>0),ie=(0,t.computed)(()=>E.value?x.value===`preview`?{width:`${C.value}%`}:x.value===`card`?{width:`400px`,maxWidth:`100%`}:{width:`fit-content`,maxWidth:`100%`}:{width:`fit-content`,maxWidth:`100%`});function O(e){return Eu(e)}function ae(){if(!T.value)return;let e=r.getPos();typeof e==`number`&&r.editor.commands.setNodeSelection(e)}function oe(){!T.value||!ne.value||r.updateAttributes({title:a.value.trim(),url:O(o.value),displayMode:`preview`})}function se(){T.value&&(s.value=y.value,c.value=b.value,u.value=!0)}function ce(){u.value=!1,s.value=``,c.value=``}function le(){!T.value||!re.value||(r.updateAttributes({title:s.value.trim(),url:O(c.value)}),ce())}function ue(e){T.value&&r.updateAttributes({displayMode:e})}function de(e){T.value&&(r.updateAttributes({align:e}),l.value=!1)}function fe(){T.value&&(l.value=!l.value)}function pe(){l.value=!1}function me(){d.value=!0}function he(){d.value=!1}function ge(){T.value&&r.deleteNode()}function _e(e,t){T.value&&(e.preventDefault(),e.stopPropagation(),ae(),f.value=!0,v=t,m=e.clientX,h=C.value,g=e.clientY,_=w.value,window.addEventListener(`mousemove`,ye),window.addEventListener(`mouseup`,xe))}function ve(e){T.value&&(e.preventDefault(),e.stopPropagation(),ae(),p.value=!0,g=e.clientY,_=w.value,window.addEventListener(`mousemove`,be),window.addEventListener(`mouseup`,Se))}function ye(e){if(!f.value)return;let t=e.clientX-m,n=e.clientY-g,i=v===`tl`||v===`bl`?-1:1,a=v===`tl`||v===`tr`?-1:1,o=Math.max(30,Math.min(100,h+t*i/8)),s=Math.max(240,Math.min(860,_+n*a));r.updateAttributes({widthPercent:Math.round(o),height:Math.round(s)})}function be(e){if(!p.value)return;let t=e.clientY-g,n=Math.max(240,Math.min(860,_+t));r.updateAttributes({height:Math.round(n)})}function xe(){f.value=!1,window.removeEventListener(`mousemove`,ye),window.removeEventListener(`mouseup`,xe)}function Se(){p.value=!1,window.removeEventListener(`mousemove`,be),window.removeEventListener(`mouseup`,Se)}function Ce(e){if(!l.value)return;let t=e.target;(!(t instanceof Node)||!i.value?.contains(t))&&pe()}return(0,t.watch)(()=>[y.value,b.value],()=>{E.value||(a.value=y.value,o.value=b.value)},{immediate:!0}),(0,t.onMounted)(()=>{document.addEventListener(`pointerdown`,Ce,!0)}),(0,t.onBeforeUnmount)(()=>{xe(),Se(),document.removeEventListener(`pointerdown`,Ce,!0)}),(r,f)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-link-block`,{"norio-office-rich-link-block--selected":e.selected&&(0,t.unref)(T)}]),"data-align":S.value,style:(0,t.normalizeStyle)(ie.value),onMousedown:ae},{default:(0,t.withCtx)(()=>[!E.value&&(0,t.unref)(T)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sd,[(0,t.createElementVNode)(`label`,cd,[f[20]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__form-label`},`文本`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[0]||=e=>a.value=e,class:`norio-office-rich-link-block__form-input`,placeholder:`输入文本`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(oe,[`prevent`]),[`enter`])},null,40,ld),[[t.vModelText,a.value]])]),(0,t.createElementVNode)(`label`,ud,[f[21]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__form-label`},`链接`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[1]||=e=>o.value=e,class:`norio-office-rich-link-block__form-input`,placeholder:`粘贴或输入链接`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(oe,[`prevent`]),[`enter`])},null,40,dd),[[t.vModelText,o.value]])]),(0,t.createElementVNode)(`div`,fd,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__form-confirm`,disabled:!ne.value,onClick:oe},`确认`,8,pd)])])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.selected&&(0,t.unref)(T)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,md,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`全屏预览`,onClick:(0,t.withModifiers)(me,[`stop`])},[(0,t.createVNode)(k,{name:`quanpingzuidahua`,size:14,color:`#4b5563`,"background-color":`transparent`})]),f[25]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__tool`,{"norio-office-rich-link-block__tool--active":x.value===`text`}]),title:`文字模式`,onClick:f[2]||=(0,t.withModifiers)(e=>ue(`text`),[`stop`])},[(0,t.createVNode)(k,{name:`wenziyulan`,size:14,color:`#4b5563`,"background-color":`transparent`})],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__tool`,{"norio-office-rich-link-block__tool--active":x.value===`card`}]),title:`卡片模式`,onClick:f[3]||=(0,t.withModifiers)(e=>ue(`card`),[`stop`])},[(0,t.createVNode)(k,{name:`kapianyulan`,size:14,color:`#4b5563`,"background-color":`transparent`})],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__tool`,{"norio-office-rich-link-block__tool--active":x.value===`preview`}]),title:`预览模式`,onClick:f[4]||=(0,t.withModifiers)(e=>ue(`preview`),[`stop`])},[(0,t.createVNode)(k,{name:`fangdayulan`,size:14,color:`#4b5563`,"background-color":`transparent`})],2),f[26]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`编辑超链接`,onClick:(0,t.withModifiers)(se,[`stop`])},[(0,t.createVNode)(k,{name:`link`,size:14,color:`#4b5563`,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,{ref_key:`alignDropdownRef`,ref:i,class:`norio-office-rich-link-block__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`对齐方式`,onClick:(0,t.withModifiers)(fe,[`stop`])},[(0,t.createVNode)(k,{name:D.value,size:14,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])]),l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hd,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__align-item`,{"norio-office-rich-link-block__align-item--active":S.value===`left`}]),onClick:f[5]||=(0,t.withModifiers)(e=>de(`left`),[`stop`])},[S.value===`left`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gd)),(0,t.createVNode)(k,{class:`norio-office-rich-link-block__align-icon`,name:`zuoduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),f[22]||=(0,t.createElementVNode)(`span`,null,`左对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__align-item`,{"norio-office-rich-link-block__align-item--active":S.value===`center`}]),onClick:f[6]||=(0,t.withModifiers)(e=>de(`center`),[`stop`])},[S.value===`center`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,_d)),(0,t.createVNode)(k,{class:`norio-office-rich-link-block__align-icon`,name:`juzhongduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),f[23]||=(0,t.createElementVNode)(`span`,null,`居中对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__align-item`,{"norio-office-rich-link-block__align-item--active":S.value===`right`}]),onClick:f[7]||=(0,t.withModifiers)(e=>de(`right`),[`stop`])},[S.value===`right`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,vd)),(0,t.createVNode)(k,{class:`norio-office-rich-link-block__align-icon`,name:`youduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),f[24]||=(0,t.createElementVNode)(`span`,null,`右对齐`,-1)],2)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`删除超链接`,onClick:(0,t.withModifiers)(ge,[`stop`])},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#4b5563`,"background-color":`transparent`})])])):(0,t.createCommentVNode)(``,!0),x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,yd,[(0,t.createElementVNode)(`iframe`,{class:`norio-office-rich-link-block__iframe`,src:ee.value,style:(0,t.normalizeStyle)({height:`${w.value}px`}),sandbox:`allow-forms allow-popups allow-popups-to-escape-sandbox allow-scripts`,referrerpolicy:`no-referrer`},null,12,bd),(0,t.createElementVNode)(`div`,xd,[(0,t.createElementVNode)(`div`,Sd,[(0,t.createVNode)(an,{name:`wangye`,size:20,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,Cd,(0,t.toDisplayString)(y.value),1)]),(0,t.createElementVNode)(`a`,{class:`norio-office-rich-link-block__preview-open`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[8]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createVNode)(k,{name:`yulan`,size:18,color:`#6b7280`,"background-color":`transparent`})],8,wd)])])):x.value===`card`?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:2,class:`norio-office-rich-link-block__card`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[9]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,Ed,[(0,t.createVNode)(an,{name:`wangye`,size:48,"background-color":`transparent`}),(0,t.createElementVNode)(`div`,Dd,[(0,t.createElementVNode)(`div`,Od,(0,t.toDisplayString)(y.value),1),(0,t.createElementVNode)(`div`,kd,(0,t.toDisplayString)(te.value),1)])]),(0,t.createVNode)(k,{name:`yulan`,size:18,color:`#6b7280`,"background-color":`transparent`})],8,Td)):((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:3,class:`norio-office-rich-link-block__text`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[10]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createVNode)(an,{name:`wangye`,size:18,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(y.value),1)],8,Ad))],64)),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--tl`,onMousedown:f[11]||=e=>_e(e,`tl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--tr`,onMousedown:f[12]||=e=>_e(e,`tr`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:4,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--bl`,onMousedown:f[13]||=e=>_e(e,`bl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:5,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--br`,onMousedown:f[14]||=e=>_e(e,`br`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:6,class:`norio-office-rich-link-block__bottom-bar`,onMousedown:ve},null,32)):(0,t.createCommentVNode)(``,!0),u.value&&(0,t.unref)(T)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:7,class:`norio-office-rich-link-block__dialog`,onClick:ce},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-link-block__dialog-card`,onClick:f[17]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`label`,jd,[f[27]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__dialog-label`},`文本`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[15]||=e=>s.value=e,class:`norio-office-rich-link-block__dialog-input`,placeholder:`输入文本`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(le,[`prevent`]),[`enter`])},null,40,Md),[[t.vModelText,s.value]])]),(0,t.createElementVNode)(`label`,Nd,[f[28]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__dialog-label`},`链接`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[16]||=e=>c.value=e,class:`norio-office-rich-link-block__dialog-input`,placeholder:`粘贴或输入链接`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(le,[`prevent`]),[`enter`])},null,40,Pd),[[t.vModelText,c.value]])]),(0,t.createElementVNode)(`div`,Fd,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__dialog-confirm`,disabled:!re.value,onClick:le},`确认`,8,Id)])])])):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:8,class:`norio-office-rich-link-block__fullscreen`,onClick:he},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-link-block__fullscreen-card`,onClick:f[19]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,Ld,[(0,t.createElementVNode)(`div`,Rd,(0,t.toDisplayString)(y.value),1),(0,t.createElementVNode)(`div`,zd,[(0,t.createElementVNode)(`a`,{class:`norio-office-rich-link-block__fullscreen-open`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[18]||=(0,t.withModifiers)(()=>{},[`stop`])},` 在新窗口打开 `,8,Bd),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__fullscreen-close`,onClick:he},[(0,t.createVNode)(k,{name:`close`,size:16,color:`#4b5563`,"background-color":`transparent`})])])]),(0,t.createElementVNode)(`iframe`,{class:`norio-office-rich-link-block__fullscreen-iframe`,src:ee.value,sandbox:`allow-forms allow-popups allow-popups-to-escape-sandbox allow-scripts`,referrerpolicy:`no-referrer`},null,8,Vd)])])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`class`,`data-align`,`style`]))}}),Ud=T.Node.create({name:`linkBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return{title:{default:``,parseHTML:e=>e.getAttribute(`data-title`)||``,renderHTML:e=>({"data-title":String(e.title??``)})},url:{default:``,parseHTML:e=>e.getAttribute(`data-url`)||``,renderHTML:e=>({"data-url":String(e.url??``)})},displayMode:{default:`preview`,parseHTML:e=>e.getAttribute(`data-display-mode`)||`preview`,renderHTML:e=>({"data-display-mode":String(e.displayMode??`preview`)})},align:{default:`left`,parseHTML:e=>e.getAttribute(`data-align`)||`left`,renderHTML:e=>({"data-align":String(e.align??`left`)})},widthPercent:{default:100,parseHTML:e=>Number.parseInt(e.getAttribute(`data-width-percent`)??`100`,10)||100,renderHTML:e=>({"data-width-percent":String(e.widthPercent??100)})},height:{default:420,parseHTML:e=>Number.parseInt(e.getAttribute(`data-height`)??`420`,10)||420,renderHTML:e=>({"data-height":String(e.height??420)})}}},parseHTML(){return[{tag:`div[data-type="link-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`link-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(Hd)}}),Wd={class:`norio-office-rich-local-file-block__main`},Gd={class:`norio-office-rich-local-file-block__icon`},Kd={class:`norio-office-rich-local-file-block__content`},qd={class:`norio-office-rich-local-file-block__title`},Jd={key:0,class:`norio-office-rich-local-file-block__meta`},Yd={key:1,class:`norio-office-rich-local-file-block__meta`},Xd=[`disabled`],Zd=(0,t.defineComponent)({__name:`LocalFileBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.computed)(()=>String(r.node.attrs.assetId??``)),a=(0,t.computed)(()=>String(r.node.attrs.url??``)),o=(0,t.computed)(()=>String(r.node.attrs.name??``)),s=(0,t.computed)(()=>Number(r.node.attrs.size??0)),c=(0,t.computed)(()=>String(r.node.attrs.mimeType??``)),l=Al(r.editor),u=(0,t.computed)(()=>a.value.trim().length>0&&o.value.trim().length>0),d=(0,t.computed)(()=>{let e=[];return c.value.trim()&&e.push(c.value),s.value>0&&e.push(f(s.value)),e.join(` · `)});function f(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(e>=10*1024?0:1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(e>=10*1024*1024?0:1)} MB`:`${(e/(1024*1024*1024)).toFixed(1)} GB`}function p(){if(!l.value)return;let e=r.getPos();typeof e==`number`&&r.editor.commands.setNodeSelection(e)}function m(){return{assetId:i.value||void 0,url:a.value,name:o.value,size:s.value>0?s.value:void 0,mimeType:c.value||void 0}}function h(){p(),u.value&&r.extension.options.onClick?.(m())}function g(){p(),u.value&&r.extension.options.onDownload?.(m())}return(r,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-local-file-block`,{"norio-office-rich-local-file-block--selected":e.selected&&(0,t.unref)(l),"norio-office-rich-local-file-block--empty":!u.value}]),onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Wd,[(0,t.createElementVNode)(`span`,Gd,[(0,t.createVNode)(an,{name:`file`,size:28,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,Kd,[(0,t.createElementVNode)(`div`,qd,(0,t.toDisplayString)(u.value?o.value:`请选择本地文件`),1),u.value&&d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Jd,(0,t.toDisplayString)(d.value),1)):u.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yd,` 本地文件卡片 `))])]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-local-file-block__download`,disabled:!u.value,onMousedown:i[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:(0,t.withModifiers)(g,[`stop`])},[(0,t.createVNode)(k,{name:`save`,size:14,color:`#2563eb`,"background-color":`transparent`}),i[1]||=(0,t.createElementVNode)(`span`,null,`下载`,-1)],40,Xd)]),_:1},8,[`class`]))}}),Qd=T.Node.create({name:`localFileBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addOptions(){return{onClick:null,onDownload:null}},addAttributes(){return{assetId:{default:``,parseHTML:e=>e.getAttribute(`data-asset-id`)||``,renderHTML:e=>({"data-asset-id":String(e.assetId??``)})},url:{default:``,parseHTML:e=>e.getAttribute(`data-url`)||``,renderHTML:e=>({"data-url":String(e.url??``)})},name:{default:``,parseHTML:e=>e.getAttribute(`data-name`)||``,renderHTML:e=>({"data-name":String(e.name??``)})},size:{default:0,parseHTML:e=>Number.parseInt(e.getAttribute(`data-size`)??`0`,10)||0,renderHTML:e=>({"data-size":String(e.size??0)})},mimeType:{default:``,parseHTML:e=>e.getAttribute(`data-mime-type`)||``,renderHTML:e=>({"data-mime-type":String(e.mimeType??``)})}}},parseHTML(){return[{tag:`div[data-type="local-file-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`local-file-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(Zd)}}),$d=[`#4f7cff`,`#22c55e`,`#f97316`,`#a855f7`,`#06b6d4`,`#ef4444`,`#14b8a6`,`#f59e0b`,`#6366f1`,`#ec4899`,`#3b82f6`,`#84cc16`,`#fb7185`,`#8b5cf6`,`#0ea5e9`,`#10b981`,`#f43f5e`,`#d946ef`,`#2dd4bf`,`#eab308`];function ef(e){return Array.from(e.trim()).slice(-2).join(``)||`NA`}function tf(e){let t=Array.from(String(e));return $d[(t[t.length-1]??`0`).charCodeAt(0)%$d.length]}function nf(e){return{backgroundColor:tf(e)}}var rf={class:`norio-office-rich-mention-inline__icon`},af=[`src`],of=[`src`],sf={class:`norio-office-rich-mention-inline__name`},cf=(0,t.defineComponent)({__name:`MentionInlineView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.computed)(()=>String(r.node.attrs.id??``)),a=(0,t.computed)(()=>String(r.node.attrs.name??``)),o=(0,t.computed)(()=>Number(r.node.attrs.type??1)===2?2:1),s=(0,t.computed)(()=>String(r.node.attrs.avatar??``)),c=(0,t.computed)(()=>String(r.node.attrs.icon??``)),l=(0,t.computed)(()=>String(r.node.attrs.tag??``)),u=(0,t.computed)(()=>String(r.node.attrs.updatedAt??``)),d=(0,t.computed)(()=>r.editor.isEditable),f=(0,t.computed)(()=>ef(a.value)),p=(0,t.computed)(()=>nf(i.value));function m(){return{id:i.value,name:a.value,type:o.value,avatar:s.value||void 0,icon:c.value||void 0,tag:l.value||void 0,updatedAt:u.value||void 0}}function h(){if(!d.value)return;let e=r.getPos();typeof e==`number`&&r.editor.commands.setNodeSelection(e)}function g(){h(),r.extension.options.onClick?.(m())}return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{as:`span`,class:(0,t.normalizeClass)([`norio-office-rich-mention-inline`,{"norio-office-rich-mention-inline--person":o.value===1,"norio-office-rich-mention-inline--document":o.value===2,"norio-office-rich-mention-inline--selected":e.selected&&d.value}]),"data-mention-id":i.value,"data-mention-name":a.value,"data-mention-type":o.value,"data-mention-tag":l.value,onClick:(0,t.withModifiers)(g,[`stop`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,rf,[o.value===1&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:s.value,alt:``},null,8,af)):o.value===2&&c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:c.value,alt:``},null,8,of)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,style:(0,t.normalizeStyle)(o.value===1?p.value:void 0)},(0,t.toDisplayString)(o.value===1?f.value:`文`),5))]),(0,t.createElementVNode)(`span`,sf,(0,t.toDisplayString)(a.value),1)]),_:1},8,[`class`,`data-mention-id`,`data-mention-name`,`data-mention-type`,`data-mention-tag`]))}}),lf=T.Node.create({name:`mention`,group:`inline`,inline:!0,atom:!0,selectable:!0,addOptions(){return{onClick:null}},addAttributes(){return{id:{default:``,parseHTML:e=>e.getAttribute(`data-mention-id`)||``,renderHTML:e=>({"data-mention-id":String(e.id??``)})},name:{default:``,parseHTML:e=>e.getAttribute(`data-mention-name`)||``,renderHTML:e=>({"data-mention-name":String(e.name??``)})},type:{default:1,parseHTML:e=>Number.parseInt(e.getAttribute(`data-mention-type`)??`1`,10)===2?2:1,renderHTML:e=>({"data-mention-type":String(Number(e.type??1)===2?2:1)})},avatar:{default:``,parseHTML:e=>e.getAttribute(`data-mention-avatar`)||``,renderHTML:e=>({"data-mention-avatar":String(e.avatar??``)})},icon:{default:``,parseHTML:e=>e.getAttribute(`data-mention-icon`)||``,renderHTML:e=>({"data-mention-icon":String(e.icon??``)})},tag:{default:``,parseHTML:e=>e.getAttribute(`data-mention-tag`)||``,renderHTML:e=>({"data-mention-tag":String(e.tag??``)})},updatedAt:{default:``,parseHTML:e=>e.getAttribute(`data-mention-updated-at`)||``,renderHTML:e=>({"data-mention-updated-at":String(e.updatedAt??``)})}}},parseHTML(){return[{tag:`span[data-type="mention"]`}]},renderHTML({HTMLAttributes:e}){let t=String(e[`data-mention-name`]??e.name??``);return[`span`,{...e,"data-type":`mention`,class:`norio-office-rich-mention-inline`},`@${t}`]},renderText({node:e}){return`@${String(e.attrs.name??``)}`},addNodeView(){return(0,n.VueNodeViewRenderer)(cf)}}),uf={key:0,class:`norio-office-rich-code-block__toolbar`},df={key:0,class:`norio-office-rich-code-block__menu`},ff=[`onClick`],pf={class:`norio-office-rich-code-block__toolbar-actions`},mf={key:0,class:`norio-office-rich-code-block__settings-menu`},hf=[`data-checked`],gf=[`data-checked`],_f=[`data-checked`],vf={class:`norio-office-rich-code-block__surface`},yf={class:`norio-office-rich-code-block__line-numbers`,"aria-hidden":`true`},bf=(0,t.defineComponent)({__name:`OfficeCodeBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(!1),c=(0,t.ref)(!1),l=(0,t.ref)(!1),u=null,d=[{label:`Plain Text`,value:`plain_text`},{label:`Bash`,value:`bash`},{label:`C#`,value:`csharp`},{label:`C/C++`,value:`cpp`},{label:`CMake`,value:`cmake`},{label:`CSS`,value:`css`},{label:`Dart`,value:`dart`},{label:`Dockerfile`,value:`dockerfile`},{label:`HTML`,value:`html`},{label:`JavaScript`,value:`javascript`},{label:`JSON`,value:`json`},{label:`TypeScript`,value:`typescript`},{label:`Vue`,value:`vue`}],f=(0,t.computed)(()=>{let e=String(r.node.attrs.language??`plain_text`);return d.find(t=>t.value===e)??d[0]}),p=(0,t.computed)(()=>!!r.node.attrs.wrapLines),m=(0,t.computed)(()=>!!r.node.attrs.darkTheme),h=(0,t.computed)(()=>!!r.node.attrs.fixedHeight),g=Al(r.editor),_=(0,t.computed)(()=>{let e=String(r.node.textContent??``).replace(/\r\n/g,`
|
|
7740
|
+
`;function Ol(e,t,n){return Math.max(t,Math.min(n,e))}var kl=T.Extension.create({name:`indent`,addOptions(){return{types:[`paragraph`,`heading`],minLevel:0,maxLevel:8,stepEm:2}},addGlobalAttributes(){return[{types:this.options.types,attributes:{indent:{default:0,parseHTML:e=>{let t=e.getAttribute(`data-indent`),n=Number.parseInt(t??`0`,10);return Number.isNaN(n)?this.options.minLevel:Ol(n,this.options.minLevel,this.options.maxLevel)},renderHTML:e=>{let t=Number(e.indent??0);return t?{"data-indent":String(t),style:`margin-left: ${t*this.options.stepEm}em;`}:{}}}}}]},addCommands(){let e=e=>({state:t,dispatch:n})=>{let r=t.tr,i=!1,a=new Set;for(let{$from:n,$to:o}of t.selection.ranges)t.doc.nodesBetween(n.pos,o.pos,(t,n)=>{if(!this.options.types.includes(t.type.name)||a.has(n))return;a.add(n);let o=Number(t.attrs.indent??0),s=Ol(o+e,this.options.minLevel,this.options.maxLevel);s!==o&&(r.setNodeMarkup(n,void 0,{...t.attrs,indent:s}),i=!0)});return i?(n&&n(r),!0):!1};return{increaseIndent:()=>e(1),decreaseIndent:()=>e(-1)}}});function Al(e){let n=(0,t.ref)(e.isEditable),r=null;function i(){let t=e.view.dom.closest(`.norio-office-rich-editor`);n.value=e.isEditable&&t?.dataset.editable!==`false`&&t?.dataset.presentation!==`true`}return(0,t.onMounted)(()=>{e.on(`update`,i);let t=e.view.dom.closest(`.norio-office-rich-editor`);t&&(r=new MutationObserver(i),r.observe(t,{attributes:!0,attributeFilter:[`data-editable`,`data-presentation`]})),i()}),(0,t.onBeforeUnmount)(()=>{e.off(`update`,i),r?.disconnect()}),(0,t.readonly)(n)}function jl(e){return Math.round(e*1e3)/1e3}function Ml(e){if(e<=0)return[];let t=100/e,n=Array.from({length:e},()=>jl(t)),r=n.reduce((e,t)=>e+t,0);return n[e-1]=jl(n[e-1]+(100-r)),n}function Nl(e,t){if(t<=0)return[];if(!Array.isArray(e)||e.length!==t)return Ml(t);let n=e.map(e=>Number(e)).filter(e=>Number.isFinite(e)&&e>0);if(n.length!==t)return Ml(t);let r=n.reduce((e,t)=>e+t,0);if(r<=0)return Ml(t);let i=n.map(e=>e/r*100);if(10*t>100)return Ml(t);let a=i.map(e=>e).map(e=>e<10?10:e),o=a.reduce((e,t)=>e+t,0)-100;for(;o>.001;){let e=a.map((e,t)=>({width:e,index:t})).filter(({width:e})=>e>10.001);if(!e.length)return Ml(t);let n=o/e.length,r=0;if(e.forEach(({index:e})=>{let t=a[e]-10,i=Math.min(t,n);a[e]-=i,r+=i}),r<=.001)return Ml(t);o-=r}return a=a.map(e=>jl(e)),r=a.reduce((e,t)=>e+t,0),a[t-1]=jl(a[t-1]+(100-r)),a}var Pl={class:`norio-office-rich-columns__surface`},Fl={key:0,class:`norio-office-rich-columns__overlay`,"aria-hidden":`true`},Il=[`onMouseenter`,`onMouseleave`],Ll=[`onClick`],Rl=[`onPointerdown`],zl=(0,t.defineComponent)({__name:`ColumnsBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(null),c=(0,t.ref)([]),l=null,u=null,d=(0,t.computed)(()=>r.node.childCount),f=(0,t.computed)(()=>Nl(r.node.attrs.widths,d.value)),p=Al(r.editor),m=(0,t.computed)(()=>d.value<4),h=(0,t.computed)(()=>({gridTemplateColumns:f.value.map(e=>`minmax(0, ${e}fr)`).join(` `)}));function g(){if(typeof r.getPos!=`function`)return null;let e=r.getPos();return typeof e==`number`?e:null}function _(){let e=v();return e?Array.from(e.querySelectorAll(`:scope > [data-type="columns-column"]`)):[]}function v(){if(i.value instanceof HTMLElement)return i.value;let e=i.value?.$el;return e instanceof HTMLElement?e:null}function y(){let e=v();if(!e){c.value=[];return}let t=_(),n=e.getBoundingClientRect(),r=[];for(let e=0;e<t.length-1;e+=1){let i=t[e].getBoundingClientRect(),a=t[e+1].getBoundingClientRect();r.push((i.right+a.left)/2-n.left)}c.value=r}function b(e){if(!p.value||!m.value)return;let t=g();if(t===null)return;let{state:n,view:i}=r.editor,o=n.doc.nodeAt(t),s=n.schema.nodes.columnsColumn,c=n.schema.nodes.paragraph;if(!o||!s||!c)return;let l=e+1,u=s.create(void 0,[c.create()]),d=t+1;for(let e=0;e<l;e+=1)d+=o.child(e).nodeSize;let f=n.tr.insert(d,u);f.setNodeMarkup(t,void 0,{...o.attrs,widths:Ml(o.childCount+1)}),f.setSelection(a.TextSelection.near(f.doc.resolve(Math.min(d+1,f.doc.content.size)),1)),i.dispatch(f.scrollIntoView())}function x(e){p.value&&(o.value=e)}function S(e){s.value!==e&&(o.value=null)}function C(){u=null,s.value=null,window.removeEventListener(`pointermove`,w),window.removeEventListener(`pointerup`,C),window.removeEventListener(`pointercancel`,C)}function w(e){if(!u)return;let t=u.leftWidth+u.rightWidth,n=(e.clientX-u.startX)/Math.max(u.totalWidth,1)*100,i=f.value.slice(),a=t-10,o=Math.min(Math.max(u.leftWidth+n,10),a),s=t-o;i[u.index]=o,i[u.index+1]=s,r.updateAttributes({widths:Nl(i,d.value)})}function T(e,t){if(!p.value)return;t.preventDefault(),t.stopPropagation();let n=_();!n[e]||!n[e+1]||(u={index:e,startX:t.clientX,leftWidth:f.value[e]??0,rightWidth:f.value[e+1]??0,totalWidth:n.reduce((e,t)=>e+t.getBoundingClientRect().width,0)},s.value=e,o.value=e,window.addEventListener(`pointermove`,w),window.addEventListener(`pointerup`,C),window.addEventListener(`pointercancel`,C))}return(0,t.watch)(()=>[r.node.childCount,JSON.stringify(r.node.attrs.widths)],()=>{(0,t.nextTick)(y)}),(0,t.onMounted)(()=>{(0,t.nextTick)(y);let e=v();typeof ResizeObserver<`u`&&e&&(l=new ResizeObserver(()=>{y()}),l.observe(e)),window.addEventListener(`resize`,y,{passive:!0})}),(0,t.onBeforeUnmount)(()=>{C(),l?.disconnect(),window.removeEventListener(`resize`,y)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:`norio-office-rich-columns`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Pl,[(0,t.createVNode)((0,t.unref)(n.NodeViewContent),{ref_key:`contentRef`,ref:i,as:`div`,class:`norio-office-rich-columns__content`,style:(0,t.normalizeStyle)(h.value)},null,8,[`style`]),(0,t.unref)(p)&&c.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Fl,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`columns-divider-${n}`,class:`norio-office-rich-columns__divider-hitbox`,style:(0,t.normalizeStyle)({left:`${e}px`}),onMouseenter:e=>x(n),onMouseleave:e=>S(n)},[m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-columns__add-button`,{"norio-office-rich-columns__add-button--active":s.value===n}]),tabindex:`-1`,onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:(0,t.withModifiers)(e=>b(n),[`stop`])},[r[1]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-columns__add-tooltip`},`新增分栏`,-1),(0,t.createVNode)(k,{name:`add`,size:16,color:`#ffffff`,"background-color":`transparent`})],42,Ll)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-columns__divider`,{"norio-office-rich-columns__divider--active":o.value===n||s.value===n}]),tabindex:`-1`,onPointerdown:e=>T(n,e)},null,42,Rl)],44,Il))),128))])):(0,t.createCommentVNode)(``,!0)])]),_:1}))}}),Bl=T.Node.create({name:`columnsBlock`,group:`block`,content:`columnsColumn+`,defining:!0,isolating:!0,addAttributes(){return{widths:{default:Ml(2),parseHTML:e=>{let t=e.getAttribute(`data-widths`);if(!t)return Ml(e.childElementCount||2);try{return Nl(JSON.parse(decodeURIComponent(t)),e.childElementCount||2)}catch{return Ml(e.childElementCount||2)}},renderHTML:e=>({"data-widths":encodeURIComponent(JSON.stringify(e.widths??Ml(2)))})}}},parseHTML(){return[{tag:`div[data-type="columns-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,(0,T.mergeAttributes)(e,{"data-type":`columns-block`}),0]},addNodeView(){return(0,n.VueNodeViewRenderer)(zl)}});function Vl(e){return e.textContent.trim().length===0}var Hl=T.Node.create({name:`columnsColumn`,content:`block+`,defining:!0,isolating:!0,parseHTML(){return[{tag:`div[data-type="columns-column"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,(0,T.mergeAttributes)(e,{"data-type":`columns-column`,class:`norio-office-rich-columns__column`}),0]},addKeyboardShortcuts(){return{Backspace:()=>{let{state:e,view:t}=this.editor,{selection:n,schema:r}=e;if(!n.empty||n.$from.parentOffset!==0)return!1;let i=-1,o=-1;for(let e=n.$from.depth;e>0;--e){let t=n.$from.node(e).type.name;if(t===`columnsColumn`&&o<0&&(o=e),t===`columnsBlock`){i=e;break}}if(i<0||o<0)return!1;let s=n.$from.node(i),c=n.$from.node(o);if(!Vl(c))return!1;let l=n.$from.before(i),u=n.$from.before(o),d=n.$from.index(i),f=e.tr;if(s.childCount<=1){let e=r.nodes.paragraph?.create();return e?(f.replaceWith(l,l+s.nodeSize,e),f.setSelection(a.TextSelection.near(f.doc.resolve(Math.min(l+1,f.doc.content.size)),1)),t.dispatch(f.scrollIntoView()),!0):!1}f.delete(u,u+c.nodeSize),f.setNodeMarkup(l,void 0,{...s.attrs,widths:Ml(s.childCount-1)});let p=f.doc.nodeAt(l);if(p){let e=Math.max(0,d-1),t=l+1;for(let n=0;n<e;n+=1)t+=p.child(n).nodeSize;f.setSelection(a.TextSelection.near(f.doc.resolve(Math.min(t+1,f.doc.content.size)),1))}return t.dispatch(f.scrollIntoView()),!0}}}}),Ul=T.Mark.create({name:`commentMark`,inclusive:!1,addAttributes(){return{threadId:{default:``,parseHTML:e=>e.getAttribute(`data-comment-thread-id`)||``,renderHTML:e=>({"data-comment-thread-id":String(e.threadId??``)})}}},parseHTML(){return[{tag:`span[data-comment-thread-id]`}]},renderHTML({HTMLAttributes:e}){return[`span`,{...e,class:`norio-office-rich-comment-mark`},0]}}),Wl={class:`norio-office-rich-countdown-block__inner`},Gl={key:0,class:`norio-office-rich-countdown-block__actions`},Kl={class:`norio-office-rich-countdown-block__color-control`},ql={class:`norio-office-rich-countdown-color-panel__swatches`},Jl=[`onClick`],Yl={class:`norio-office-rich-countdown-block__digits`},Xl={class:`norio-office-rich-countdown-block__unit`},Zl={class:`norio-office-rich-countdown-block__card`},Ql={class:`norio-office-rich-countdown-block__label`},$l={key:0,class:`norio-office-rich-countdown-block__separator`},eu={class:`norio-office-rich-countdown-dialog__panel`},tu={class:`norio-office-rich-countdown-dialog__header`},nu={class:`norio-office-rich-countdown-dialog__radio`},ru={class:`norio-office-rich-countdown-dialog__duration`},iu={class:`norio-office-rich-countdown-dialog__radio`},au={class:`norio-office-rich-countdown-dialog__date-picker`},ou=[`disabled`],su=[`disabled`],cu={class:`norio-office-rich-countdown-date-picker__header`},lu={class:`norio-office-rich-countdown-date-picker__title`},uu={class:`norio-office-rich-countdown-date-picker__weekdays`},du={class:`norio-office-rich-countdown-date-picker__grid`},fu=[`onClick`],pu={class:`norio-office-rich-countdown-time-picker__column`},mu=[`onClick`],hu={class:`norio-office-rich-countdown-time-picker__column`},gu=[`onClick`],_u={class:`norio-office-rich-countdown-dialog__footer`},vu={class:`norio-office-rich-countdown-dialog__checkbox`},yu=(0,t.defineComponent)({__name:`CountdownBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=[`#f56565`,`#ff8b00`,`#ffc400`,`#6bcf43`,`#5b8cff`,`#7c4dff`,`#aab2bd`],a=(0,t.ref)(Date.now()),o=(0,t.ref)(!1),s=(0,t.ref)(!1),c=(0,t.ref)(`duration`),l=(0,t.ref)(`0`),u=(0,t.ref)(`0`),d=(0,t.ref)(`0`),f=(0,t.ref)(`0`),p=(0,t.ref)(``),m=(0,t.ref)(!1),h=(0,t.ref)(!1),g=(0,t.ref)(new Date().getFullYear()),_=(0,t.ref)(new Date().getMonth()),v=(0,t.ref)(!0),y=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)(null),S=(0,t.ref)(null),C=(0,t.ref)(null),w=(0,t.ref)(null),T=null,E=[`日`,`一`,`二`,`三`,`四`,`五`,`六`],ee=Array.from({length:24},(e,t)=>String(t).padStart(2,`0`)),te=Array.from({length:60},(e,t)=>String(t).padStart(2,`0`)),D=(0,t.computed)(()=>Number(r.node.attrs.targetTimestamp??0)||0),ne=(0,t.computed)(()=>String(r.node.attrs.color||`#ff8b00`)),re=Al(r.editor),ie=(0,t.computed)(()=>D.value<=0?0:Math.max(0,D.value-a.value)),O=(0,t.computed)(()=>{let e=Math.floor(ie.value/1e3),t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),i=e%60;return[{key:`days`,label:`天`,value:String(t).padStart(2,`0`)},{key:`hours`,label:`时`,value:String(n).padStart(2,`0`)},{key:`minutes`,label:`分`,value:String(r).padStart(2,`0`)},{key:`seconds`,label:`秒`,value:String(i).padStart(2,`0`)}]}),ae=(0,t.computed)(()=>({"--norio-office-rich-countdown-color":ne.value})),oe=(0,t.computed)(()=>{let e=new Date(p.value);return Number.isFinite(e.getTime())?e:new Date}),se=(0,t.computed)(()=>{let e=oe.value;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}),ce=(0,t.computed)(()=>{let e=oe.value;return`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`}),le=(0,t.computed)(()=>`${g.value}年 ${_.value+1}月`),ue=(0,t.computed)(()=>{let e=new Date(g.value,_.value,1).getDay(),t=new Date(g.value,_.value+1,0).getDate(),n=new Date(g.value,_.value,0).getDate(),r=oe.value,i=new Date;return Array.from({length:42},(a,o)=>{let s=g.value,c=_.value,l=o-e+1,u=!0;return l<=0?(--c,c<0&&(c=11,--s),l=n+l,u=!1):l>t&&(l-=t,c+=1,c>11&&(c=0,s+=1),u=!1),{key:`${s}-${c}-${l}`,year:s,month:c,day:l,isCurrentMonth:u,isToday:i.getFullYear()===s&&i.getMonth()===c&&i.getDate()===l,isSelected:r.getFullYear()===s&&r.getMonth()===c&&r.getDate()===l}})});function de(e,t){let n=Number.parseInt(e||`0`,10);return!Number.isFinite(n)||n<0?0:typeof t==`number`?Math.min(t,n):n}function fe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}T${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`}function pe(){let e=oe.value;g.value=e.getFullYear(),_.value=e.getMonth()}function me(e){p.value=fe(e),pe()}function he(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=t%60;l.value=String(n),u.value=String(r),d.value=String(i),f.value=String(a)}function ge(){if(!re.value)return;let e=r.node.attrs.mode===`deadline`?`deadline`:`duration`,t=D.value>0?D.value:Date.now()+6e4;c.value=e,he(Math.max(0,D.value-Date.now())),me(new Date(t)),v.value=r.node.attrs.reminderEnabled!==!1,o.value=!1,m.value=!1,h.value=!1,s.value=!0}function _e(){s.value=!1,m.value=!1,h.value=!1}function ve(){let e=0;if(c.value===`deadline`){let t=new Date(p.value).getTime();e=Number.isFinite(t)?t:0}else{let t=de(l.value),n=de(u.value,23),r=de(d.value,59),i=de(f.value,59),a=((t*24+n)*60+r)*60+i;e=a>0?Date.now()+a*1e3:0}r.updateAttributes({targetTimestamp:Math.floor(e),mode:c.value,reminderEnabled:v.value}),_e()}function ye(){re.value&&(o.value=!o.value,o.value&&(s.value=!1,m.value=!1,h.value=!1))}function be(e){re.value&&(r.updateAttributes({color:e}),o.value=!1)}function xe(){c.value=`deadline`,m.value=!m.value,h.value=!1,pe()}function Se(){c.value=`deadline`,h.value=!h.value,m.value=!1}function Ce(e){let t=new Date(g.value,_.value+e,1);g.value=t.getFullYear(),_.value=t.getMonth()}function we(e,t,n){let r=oe.value,i=new Date(r);i.setFullYear(e,t,n),me(i),m.value=!1}function Te(){let e=oe.value,t=new Date;t.setHours(e.getHours(),e.getMinutes(),0,0),me(t),m.value=!1}function Ee(e){let t=new Date(oe.value);t.setHours(de(e,23),t.getMinutes(),0,0),me(t)}function De(e){let t=new Date(oe.value);t.setHours(t.getHours(),de(e,59),0,0),me(t),h.value=!1}function Oe(e){let t=e.target;t&&(y.value?.contains(t)||b.value?.contains(t)||x.value?.contains(t)||S.value?.contains(t)||C.value?.contains(t)||w.value?.contains(t)||(o.value=!1,m.value=!1,h.value=!1))}function ke(){Ae(),a.value=Date.now(),T=window.setInterval(()=>{a.value=Date.now()},1e3)}function Ae(){T!==null&&(window.clearInterval(T),T=null)}return(0,t.onMounted)(()=>{ke(),document.addEventListener(`pointerdown`,Oe)}),(0,t.onBeforeUnmount)(()=>{Ae(),document.removeEventListener(`pointerdown`,Oe)}),(r,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-countdown-block`,{"norio-office-rich-countdown-block--selected":e.selected&&(0,t.unref)(re)}]),style:(0,t.normalizeStyle)(ae.value)},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Wl,[(0,t.unref)(re)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gl,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-block__tool`,title:`编辑`,"aria-label":`编辑`,onMousedown:a[0]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(ge,[`stop`])},[(0,t.createVNode)(k,{name:`edit`,size:16,color:`#5f6b7a`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`div`,Kl,[(0,t.createElementVNode)(`button`,{ref_key:`colorTriggerRef`,ref:y,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-block__tool`,{"norio-office-rich-countdown-block__tool--active":o.value}]),title:`设置颜色`,"aria-label":`设置颜色`,onMousedown:a[1]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(ye,[`stop`])},[(0,t.createVNode)(k,{name:`yanse`,size:16,color:`#5f6b7a`,"background-color":`transparent`})],34),o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`colorPanelRef`,ref:b,class:`norio-office-rich-countdown-color-panel`,onMousedown:a[2]||=(0,t.withModifiers)(()=>{},[`stop`]),onClick:a[3]||=(0,t.withModifiers)(()=>{},[`stop`])},[a[16]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-color-panel__title`},`颜色`,-1),(0,t.createElementVNode)(`div`,ql,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i,e=>(0,t.createElementVNode)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-color-panel__swatch`,{"norio-office-rich-countdown-color-panel__swatch--active":e===ne.value}]),style:(0,t.normalizeStyle)({backgroundColor:e}),onClick:t=>be(e)},null,14,Jl)),64))])],544)):(0,t.createCommentVNode)(``,!0)])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Yl,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(O.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.key},[(0,t.createElementVNode)(`div`,Xl,[(0,t.createElementVNode)(`span`,Zl,(0,t.toDisplayString)(e.value),1),(0,t.createElementVNode)(`span`,Ql,(0,t.toDisplayString)(e.label),1)]),n<O.value.length-1?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,$l,`:`)):(0,t.createCommentVNode)(``,!0)],64))),128))])]),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[s.value&&(0,t.unref)(re)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-countdown-dialog`,onMousedown:a[15]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,eu,[(0,t.createElementVNode)(`div`,tu,[a[17]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-dialog__title`},`倒计时设置`,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-dialog__close`,onClick:_e},[(0,t.createVNode)(k,{name:`close`,size:20,color:`#6b7280`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`label`,{class:(0,t.normalizeClass)([`norio-office-rich-countdown-dialog__option`,{"norio-office-rich-countdown-dialog__option--active":c.value===`duration`}])},[(0,t.createElementVNode)(`span`,nu,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[4]||=e=>c.value=e,type:`radio`,value:`duration`},null,512),[[t.vModelRadio,c.value]]),a[18]||=(0,t.createElementVNode)(`span`,null,null,-1)]),a[23]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-dialog__option-title`},`输入倒计时时长`,-1),(0,t.createElementVNode)(`span`,ru,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[5]||=e=>l.value=e,type:`number`,min:`0`},null,512),[[t.vModelText,l.value]]),a[19]||=(0,t.createElementVNode)(`span`,null,`天`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[6]||=e=>u.value=e,type:`number`,min:`0`,max:`23`},null,512),[[t.vModelText,u.value]]),a[20]||=(0,t.createElementVNode)(`span`,null,`时`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[7]||=e=>d.value=e,type:`number`,min:`0`,max:`59`},null,512),[[t.vModelText,d.value]]),a[21]||=(0,t.createElementVNode)(`span`,null,`分`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[8]||=e=>f.value=e,type:`number`,min:`0`,max:`59`},null,512),[[t.vModelText,f.value]]),a[22]||=(0,t.createElementVNode)(`span`,null,`秒`,-1)])],2),(0,t.createElementVNode)(`label`,{class:(0,t.normalizeClass)([`norio-office-rich-countdown-dialog__option`,{"norio-office-rich-countdown-dialog__option--active":c.value===`deadline`}])},[(0,t.createElementVNode)(`span`,iu,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[9]||=e=>c.value=e,type:`radio`,value:`deadline`},null,512),[[t.vModelRadio,c.value]]),a[24]||=(0,t.createElementVNode)(`span`,null,null,-1)]),a[25]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-dialog__option-title`},`选择具体日期`,-1),(0,t.createElementVNode)(`span`,au,[(0,t.createElementVNode)(`button`,{ref_key:`dateTriggerRef`,ref:x,type:`button`,class:`norio-office-rich-countdown-dialog__date-button`,disabled:c.value!==`deadline`,onClick:(0,t.withModifiers)(xe,[`prevent`])},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(se.value),1)],8,ou),(0,t.createElementVNode)(`button`,{ref_key:`timeTriggerRef`,ref:C,type:`button`,class:`norio-office-rich-countdown-dialog__time-button`,disabled:c.value!==`deadline`,onClick:(0,t.withModifiers)(Se,[`prevent`])},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(ce.value),1)],8,su),(0,t.createVNode)(k,{name:`days`,size:16,color:`#8a95a5`,"background-color":`transparent`}),m.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`datePanelRef`,ref:S,class:`norio-office-rich-countdown-date-picker`,onClick:a[12]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,cu,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-date-picker__nav`,onClick:a[10]||=e=>Ce(-1)},[(0,t.createVNode)(k,{name:`zuojiantou`,size:14,color:`#4b5563`,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,lu,(0,t.toDisplayString)(le.value),1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-date-picker__nav`,onClick:a[11]||=e=>Ce(1)},[(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#4b5563`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`div`,uu,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(E,e=>(0,t.createElementVNode)(`span`,{key:e},(0,t.toDisplayString)(e),1)),64))]),(0,t.createElementVNode)(`div`,du,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ue.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-date-picker__day`,{"norio-office-rich-countdown-date-picker__day--muted":!e.isCurrentMonth,"norio-office-rich-countdown-date-picker__day--today":e.isToday,"norio-office-rich-countdown-date-picker__day--selected":e.isSelected}]),onClick:t=>we(e.year,e.month,e.day)},(0,t.toDisplayString)(e.day),11,fu))),128))]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-date-picker__today`,onClick:Te},` 今天 `)],512)):(0,t.createCommentVNode)(``,!0),h.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`timePanelRef`,ref:w,class:`norio-office-rich-countdown-time-picker`,onClick:a[13]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,pu,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(ee),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`hour-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-time-picker__item`,{"norio-office-rich-countdown-time-picker__item--active":e===ce.value.slice(0,2)}]),onClick:t=>Ee(e)},(0,t.toDisplayString)(e),11,mu))),128))]),(0,t.createElementVNode)(`div`,hu,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(te),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`minute-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-time-picker__item`,{"norio-office-rich-countdown-time-picker__item--active":e===ce.value.slice(3,5)}]),onClick:t=>De(e)},(0,t.toDisplayString)(e),11,gu))),128))])],512)):(0,t.createCommentVNode)(``,!0)])],2),(0,t.createElementVNode)(`div`,_u,[(0,t.createElementVNode)(`label`,vu,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":a[14]||=e=>v.value=e,type:`checkbox`},null,512),[[t.vModelCheckbox,v.value]]),a[26]||=(0,t.createElementVNode)(`span`,null,`倒计时结束时显示气泡提醒`,-1)]),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-dialog__actions`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-dialog__button norio-office-rich-countdown-dialog__button--secondary`,onClick:_e},` 取消 `),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-dialog__button norio-office-rich-countdown-dialog__button--primary`,onClick:ve},` 确定 `)])])])],32)):(0,t.createCommentVNode)(``,!0)]))]),_:1},8,[`class`,`style`]))}}),bu=T.Node.create({name:`countdownBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return{targetTimestamp:{default:0,parseHTML:e=>Number.parseInt(e.getAttribute(`data-target-timestamp`)??`0`,10)||0,renderHTML:e=>({"data-target-timestamp":String(e.targetTimestamp??0)})},mode:{default:`duration`,parseHTML:e=>e.getAttribute(`data-mode`)||`duration`,renderHTML:e=>({"data-mode":String(e.mode??`duration`)})},color:{default:`#ff8b00`,parseHTML:e=>e.getAttribute(`data-color`)||`#ff8b00`,renderHTML:e=>({"data-color":String(e.color??`#ff8b00`)})},reminderEnabled:{default:!0,parseHTML:e=>e.getAttribute(`data-reminder-enabled`)!==`false`,renderHTML:e=>({"data-reminder-enabled":e.reminderEnabled===!1?`false`:`true`})}}},parseHTML(){return[{tag:`div[data-type="countdown-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`countdown-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(yu)}}),xu=[`innerHTML`],Su={key:1,class:`norio-office-rich-formula-block__error`},Cu={key:2,class:`norio-office-rich-formula-block__placeholder`},wu=(0,t.defineComponent)({__name:`FormulaBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(!1),a=(0,t.computed)(()=>String(r.node.attrs.latex??``)),o=Al(r.editor),s=(0,t.computed)(()=>{let e=a.value.trim();if(!e)return``;try{return zc.renderToString(e,{throwOnError:!1,displayMode:!0,strict:`ignore`})}catch{return``}}),c=(0,t.computed)(()=>!a.value.trim()||s.value?``:`公式渲染失败`);function l(){o.value&&(i.value=!0)}function u(){i.value=!1}function d(e){o.value&&(r.updateAttributes({latex:e}),i.value=!1)}return(e,f)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-formula-block`,{"norio-office-rich-formula-block--selected":r.selected&&(0,t.unref)(o)}]),"data-drag-handle":``,onDblclick:(0,t.withModifiers)(l,[`stop`])},{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-formula-block__content`,innerHTML:s.value},null,8,xu)):c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Su,(0,t.toDisplayString)(c.value),1)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Cu,`双击编辑公式`)),(0,t.createVNode)(el,{open:i.value&&(0,t.unref)(o),value:a.value,title:`编辑 LaTeX 公式`,"submit-label":`确定`,onClose:u,onSubmit:d},null,8,[`open`,`value`])]),_:1},8,[`class`]))}}),Tu=T.Node.create({name:`formulaBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return{latex:{default:``,parseHTML:e=>e.getAttribute(`data-latex`)||``,renderHTML:e=>({"data-latex":String(e.latex??``)})}}},parseHTML(){return[{tag:`div[data-type="formula-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`formula-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(wu)}});function Eu(e){let t=e.trim();if(!t)return``;let n=/^[a-z][a-z\d+.-]*:/i.test(t)?t:`https://${t}`;try{let e=new URL(n);return e.protocol===`http:`||e.protocol===`https:`?e.href:``}catch{return``}}function Du(e){let t=e.trim();return t?t.startsWith(`blob:`)?t:Eu(t):``}var Ou={key:0,class:`norio-office-rich-image-block__toolbar`},ku={key:0,class:`norio-office-rich-image-block__align-menu`},Au={key:1,class:`norio-office-rich-image-block__align-check`},ju={key:1,class:`norio-office-rich-image-block__align-check`},Mu={key:1,class:`norio-office-rich-image-block__align-check`},Nu=[`aria-expanded`],Pu={class:`norio-office-rich-image-block__body`},Fu=[`draggable`,`data-drag-handle`,`onMousedown`,`onClick`,`onDragstart`,`onDrop`],Iu=[`src`,`alt`],Lu=[`src`,`alt`],Ru=[`value`,`onFocus`,`onInput`,`onKeydown`],zu=[`hidden`],Bu={key:0,class:`norio-office-rich-image-block__upload-state`},Vu={class:`norio-office-rich-image-block__upload-file`},Hu={key:1,class:`norio-office-rich-image-block__upload-state norio-office-rich-image-block__upload-state--error`},Uu={class:`norio-office-rich-image-block__upload-file`},Wu={class:`norio-office-rich-image-block__placeholder-actions`},Gu=[`onClick`],Ku=[`onClick`],qu={class:`norio-office-rich-image-block__placeholder-title`},Ju={key:0,class:`norio-office-rich-image-block__placeholder-actions`},Yu=[`onClick`],Xu=[`src`,`alt`],Zu={class:`norio-office-rich-image-block__viewer-meta`},Qu={class:`norio-office-rich-image-block__viewer-name`},$u={key:0,class:`norio-office-rich-image-block__viewer-desc`},ed={class:`norio-office-rich-image-block__viewer-count`},td=[`onKeydown`],nd=[`aria-invalid`],rd={key:0,class:`norio-office-rich-image-block__link-error`,role:`alert`},id={class:`norio-office-rich-image-block__link-target`},ad=(0,t.defineComponent)({__name:`ImageBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(null),c=(0,t.ref)(null),l=new Map,u=(0,t.ref)(0),d=(0,t.ref)(null),f=(0,t.ref)({}),p=(0,t.ref)(null),m=(0,t.ref)(!1),h=(0,t.ref)(!1),g=(0,t.ref)(!1),_=(0,t.ref)(null),v=(0,t.ref)(null),y=(0,t.ref)(``),b=(0,t.ref)(!1),x=(0,t.ref)(``),S=(0,t.ref)({}),C=(0,t.ref)(`body`),w=0,T=100,E=0,ee=146,te=`br`,D=(0,t.computed)(()=>Array.isArray(r.node.attrs.images)?r.node.attrs.images:[]),ne=(0,t.computed)(()=>Number(r.node.attrs.widthPercent??100)),re=(0,t.computed)(()=>String(r.node.attrs.align??`left`)),ie=(0,t.computed)(()=>Number(r.node.attrs.height??146)),O=Al(r.editor),ae=(0,t.computed)(()=>D.value.length<4),oe=(0,t.computed)(()=>D.value.length>0&&u.value>=0&&u.value<D.value.length),se=(0,t.computed)(()=>oe.value?D.value[u.value]:null),ce=(0,t.computed)(()=>re.value===`center`?`juzhongduiqi`:re.value===`right`?`youduiqi`:`zuoduiqi`),le=(0,t.computed)(()=>_.value===null?null:D.value[_.value]??null);function ue(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`image-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}async function de(e){return await new Promise((t,n)=>{let i={kind:`image`,file:e,handled:!1,resolve:t,reject:n};r.editor.view.dom.dispatchEvent(new CustomEvent(`norio-office-rich-upload-request`,{bubbles:!0,detail:i})),i.handled||n(Error(`Missing uploadImage hook.`))})}function fe(e,t){let n=r.extension.options.onUploadError;n?.({kind:`image`,fileName:e.name,error:t})}function pe(e){return e instanceof Error&&e.message?e.message:`上传失败,请重试。`}function me(e){let t=D.value[e];return t?f.value[t.id]??null:null}function he(e,t){f.value={...f.value,[e]:t}}function ge(e){if(!f.value[e])return;let t={...f.value};delete t[e],f.value=t}function _e(){if(!O.value)return;let e=r.getPos();typeof e==`number`&&r.editor.chain().focus().setNodeSelection(e).run()}function ve(e){D.value[e]?.id!==v.value&&qe(),u.value=e,_e()}function ye(e){r.updateAttributes({images:e})}function be(e){O.value&&me(e)?.status!==`uploading`&&(d.value=e,i.value?.click(),ve(e))}async function xe(e,t){let n=D.value[t];if(!n)return;let r=n.id;ve(t),he(r,{status:`uploading`,file:e});try{let t=await de(e),n=[...D.value],i=n.findIndex(e=>e.id===r);if(i===-1){ge(r);return}n[i]={...n[i],assetId:t.assetId,src:t.url,alt:t.alt||t.name||e.name,name:t.name||e.name,description:t.description??n[i]?.description??``,link:n[i]?.link??``,rotation:n[i]?.rotation??0},ye(n),ge(r)}catch(t){he(r,{status:`error`,file:e,message:pe(t)}),fe(e,t)}}function Se(e){let t=me(e);!t?.file||t.status!==`error`||xe(t.file,e)}async function Ce(e){let t=e.target,n=t.files?.[0],r=d.value;if(!n||r===null||!n.type.startsWith(`image/`)){t.value=``,d.value=null;return}await xe(n,r),t.value=``,d.value=null}function we(){if(!O.value||!oe.value||!ae.value)return;let e=[...D.value];e.splice(u.value+1,0,{id:ue(),rotation:0}),ye(e),u.value=Math.min(u.value+1,e.length-1)}function Te(){if(!O.value||!oe.value)return;if(D.value.length===1){r.deleteNode();return}let e=[...D.value];e.splice(u.value,1),ye(e),u.value=Math.max(0,u.value-1)}function Ee(){O.value&&r.deleteNode()}function De(e,t){if(!O.value||!D.value[e]?.src||me(e)?.status===`uploading`){t.preventDefault();return}p.value=e}function Oe(e){p.value!==null&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`))}function ke(e,t){if(p.value===null)return;if(t.preventDefault(),t.stopPropagation(),r.editor.view.dragging=null,!O.value||p.value===e){p.value=null;return}let n=[...D.value],[i]=n.splice(p.value,1);n.splice(e,0,i),ye(n),u.value=e,p.value=null}function Ae(){p.value=null}function je(e){O.value&&(r.updateAttributes({align:e}),g.value=!1)}function Me(){g.value=!1}function Ne(){O.value&&(qe(),g.value=!g.value)}function Pe(e){let t=e.target;if(v.value&&(!(t instanceof Node)||!s.value?.contains(t)&&!o.value?.contains(t))&&qe(),!g.value)return;let n=e.target;if(!(n instanceof Node)){Me();return}a.value?.contains(n)||Me()}function Fe(){if(!O.value||!se.value)return;let e=[...D.value],t=Number(se.value.rotation??0);e[u.value]={...se.value,rotation:(t+90)%360},ye(e)}function Ie(e,t){!O.value||!r.editor.isEditable||!D.value.some(t=>t.id===e)||ye(D.value.map(n=>n.id===e?{...n,...t}:n))}function Le(e){return e.descriptionVisible??!!e.description}function Re(e){e.style.height=`auto`,e.style.height=`${e.scrollHeight+e.offsetHeight-e.clientHeight}px`}function ze(e,t){t instanceof HTMLTextAreaElement?l.set(e,t):l.delete(e)}async function Be(){let e=se.value;if(!O.value||!e?.src)return;qe(),Me(),Ie(e.id,{descriptionVisible:!0}),await(0,t.nextTick)();let n=l.get(e.id);n&&(Re(n),n.focus(),n.setSelectionRange(n.value.length,n.value.length))}function Ve(e,t){let n=t.target;Ie(e,{description:n.value,descriptionVisible:!0}),Re(n)}function He(e,n){n.key!==`Backspace`||n.isComposing||n.target.value!==``||(n.preventDefault(),Ie(e,{description:``,descriptionVisible:!1}),(0,t.nextTick)(()=>{let e=r.getPos();typeof e==`number`&&r.editor.chain().focus().setNodeSelection(e).run()}))}function Ue(){if(!v.value||!o.value)return;let e=o.value.getBoundingClientRect(),t=o.value.closest(`.norio-office-rich-image-block__toolbar`)?.getBoundingClientRect()??e,n=Math.min(320,window.innerWidth-16),r=s.value?.offsetHeight||184,i=t.bottom+8,a=i+r<=window.innerHeight-8?i:t.top-r-8;S.value={left:`${Math.max(8,Math.min(e.left,window.innerWidth-n-8))}px`,top:`${Math.max(8,Math.min(a,window.innerHeight-r-8))}px`,width:`${n}px`,maxHeight:`${window.innerHeight-16}px`}}function We(){let e=document.fullscreenElement;C.value=e instanceof HTMLElement&&e.contains(r.editor.view.dom)?e:`body`,(0,t.nextTick)(Ue)}function Ge(){Ue(),l.forEach(Re)}async function Ke(){let e=se.value;!O.value||!e?.src||(Me(),v.value=e.id,y.value=e.link??``,b.value=e.linkTarget===`_self`,x.value=``,Ue(),await(0,t.nextTick)(),Ue(),c.value?.focus(),c.value?.select())}function qe(){v.value=null,y.value=``,x.value=``}function Je(){let e=v.value;if(!O.value||!e)return;let n=Eu(y.value);if(y.value.trim()&&!n){x.value=`请输入有效的 HTTP 或 HTTPS 网址`,(0,t.nextTick)(Ue);return}Ie(e,{link:n,linkTarget:b.value?`_self`:`_blank`}),qe()}function Ye(){se.value?.src&&(_.value=u.value)}function Xe(){_.value=null}function Ze(){_.value===null||D.value.length<=1||(_.value=(_.value-1+D.value.length)%D.value.length)}function Qe(){_.value===null||D.value.length<=1||(_.value=(_.value+1)%D.value.length)}function $e(e,t){O.value&&(e.preventDefault(),e.stopPropagation(),_e(),m.value=!0,te=t,w=e.clientX,T=ne.value,E=e.clientY,ee=ie.value,window.addEventListener(`pointermove`,tt),window.addEventListener(`pointerup`,rt))}function et(e){O.value&&(e.preventDefault(),e.stopPropagation(),_e(),h.value=!0,E=e.clientY,ee=ie.value,window.addEventListener(`pointermove`,nt),window.addEventListener(`pointerup`,it))}function tt(e){if(!m.value)return;let t=e.clientX-w,n=e.clientY-E,i=te===`tl`||te===`bl`?-1:1,a=te===`tl`||te===`tr`?-1:1,o=Math.max(30,Math.min(100,T+t*i/8)),s=Math.max(146,Math.min(560,ee+n*a));r.updateAttributes({widthPercent:Math.round(o),height:Math.round(s)})}function nt(e){if(!h.value)return;let t=e.clientY-E,n=Math.max(146,Math.min(560,ee+t));r.updateAttributes({height:Math.round(n)})}function rt(){m.value=!1,window.removeEventListener(`pointermove`,tt),window.removeEventListener(`pointerup`,rt)}function it(){h.value=!1,window.removeEventListener(`pointermove`,nt),window.removeEventListener(`pointerup`,it)}return(0,t.onBeforeUnmount)(()=>{rt(),it(),document.removeEventListener(`pointerdown`,Pe,!0),window.removeEventListener(`scroll`,Ue,!0),window.removeEventListener(`resize`,Ge),document.removeEventListener(`fullscreenchange`,We)}),(0,t.onMounted)(()=>{document.addEventListener(`pointerdown`,Pe,!0),window.addEventListener(`scroll`,Ue,!0),window.addEventListener(`resize`,Ge),document.addEventListener(`fullscreenchange`,We),We(),(0,t.nextTick)(()=>l.forEach(Re))}),(0,t.watch)(()=>r.selected,e=>{e||qe()}),(0,t.watch)(()=>O.value,e=>{e||qe()}),(0,t.watch)(()=>[D.value,r.node.attrs.widthPercent],()=>{v.value&&!D.value.some(e=>e.id===v.value)&&qe(),(0,t.nextTick)(()=>l.forEach(Re))}),(0,t.watch)(()=>D.value.length,e=>{e<=1||D.value.some(e=>Number(e.rotation??0)!==0)&&ye(D.value.map(e=>({...e,rotation:0})))}),(0,t.watch)(()=>D.value.map(e=>e.id).join(`|`),()=>{let e=new Set(D.value.map(e=>e.id)),t=Object.fromEntries(Object.entries(f.value).filter(([t])=>e.has(t)));Object.keys(t).length!==Object.keys(f.value).length&&(f.value=t)}),(r,l)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createVNode)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-image-block`,{"norio-office-rich-image-block--selected":e.selected&&(0,t.unref)(O)}]),"data-align":re.value,style:(0,t.normalizeStyle)({width:`${ne.value}%`}),onMousedown:_e},{default:(0,t.withCtx)(()=>[e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ou,[(0,t.createElementVNode)(`div`,{ref_key:`alignDropdownRef`,ref:a,class:`norio-office-rich-image-block__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__tool`,title:`图片对齐方式`,onClick:(0,t.withModifiers)(Ne,[`stop`])},[(0,t.createVNode)(k,{name:ce.value,size:14,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])]),g.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ku,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-image-block__align-item`,{"norio-office-rich-image-block__align-item--active":re.value===`left`}]),title:`左对齐`,onClick:l[0]||=(0,t.withModifiers)(e=>je(`left`),[`stop`])},[re.value===`left`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Au)),(0,t.createVNode)(k,{class:`norio-office-rich-image-block__align-icon`,name:`zuoduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[25]||=(0,t.createElementVNode)(`span`,null,`左对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-image-block__align-item`,{"norio-office-rich-image-block__align-item--active":re.value===`center`}]),title:`居中对齐`,onClick:l[1]||=(0,t.withModifiers)(e=>je(`center`),[`stop`])},[re.value===`center`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,ju)),(0,t.createVNode)(k,{class:`norio-office-rich-image-block__align-icon`,name:`juzhongduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[26]||=(0,t.createElementVNode)(`span`,null,`居中对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-image-block__align-item`,{"norio-office-rich-image-block__align-item--active":re.value===`right`}]),title:`右对齐`,onClick:l[2]||=(0,t.withModifiers)(e=>je(`right`),[`stop`])},[re.value===`right`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Mu)),(0,t.createVNode)(k,{class:`norio-office-rich-image-block__align-icon`,name:`youduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[27]||=(0,t.createElementVNode)(`span`,null,`右对齐`,-1)],2)])):(0,t.createCommentVNode)(``,!0)],512),oe.value&&ae.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-image-block__tool`,title:`在右侧插入图片占位`,onClick:(0,t.withModifiers)(we,[`stop`])},[(0,t.createVNode)(k,{name:`charutupian`,size:16,color:`#4b5563`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`norio-office-rich-image-block__tool`,title:`放大查看图片`,onClick:(0,t.withModifiers)(Ye,[`stop`])},[(0,t.createVNode)(k,{name:`yulan`,size:14,color:`#4b5563`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,type:`button`,class:`norio-office-rich-image-block__tool`,title:`旋转图片 90 度`,onClick:(0,t.withModifiers)(Fe,[`stop`])},[(0,t.createVNode)(k,{name:`xuanzhuan`,size:14,color:`#4b5563`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,ref_key:`linkTriggerRef`,ref:o,type:`button`,class:`norio-office-rich-image-block__tool`,title:`设置图片链接`,"aria-expanded":!!v.value,onMousedown:l[3]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(Ke,[`stop`])},[(0,t.createVNode)(k,{name:`link`,size:14,color:`#4b5563`,"background-color":`transparent`})],40,Nu)):(0,t.createCommentVNode)(``,!0),se.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:4,type:`button`,class:`norio-office-rich-image-block__tool`,title:`设置图片描述`,onMousedown:l[4]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:(0,t.withModifiers)(Be,[`stop`])},[(0,t.createVNode)(k,{name:`comment`,size:14,color:`#4b5563`,"background-color":`transparent`})],32)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__tool`,title:`删除当前图片`,onClick:(0,t.withModifiers)(Te,[`stop`])},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#4b5563`,"background-color":`transparent`})]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__tool`,title:`删除图片组`,onClick:(0,t.withModifiers)(Ee,[`stop`])},[(0,t.createVNode)(k,{name:`rubber`,size:14,color:`#4b5563`,"background-color":`transparent`})])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Pu,[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__grid`,style:(0,t.normalizeStyle)({gridTemplateColumns:`repeat(${Math.max(D.value.length,1)}, minmax(0, 1fr))`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(D.value,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.id,class:(0,t.normalizeClass)([`norio-office-rich-image-block__item`,{"norio-office-rich-image-block__item--selected":e.selected&&(0,t.unref)(O)&&u.value===r,"norio-office-rich-image-block__item--uploading":me(r)?.status===`uploading`,"norio-office-rich-image-block__item--upload-error":me(r)?.status===`error`}]),style:(0,t.normalizeStyle)({minHeight:`${ie.value}px`}),draggable:(0,t.unref)(O)&&!!n.src&&me(r)?.status!==`uploading`,"data-drag-handle":(0,t.unref)(O)?``:void 0,onMousedown:e=>ve(r),onClick:(0,t.withModifiers)(e=>ve(r),[`stop`]),onDragstart:e=>De(r,e),onDragover:Oe,onDrop:e=>ke(r,e),onDragend:Ae},[n.src?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__image-stage`,style:(0,t.normalizeStyle)({height:`${ie.value}px`})},[(0,t.unref)(Eu)(n.link||``)?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)((0,t.unref)(O)?`span`:`a`),{key:0,class:`norio-office-rich-image-block__image-link`,draggable:`false`,href:(0,t.unref)(O)?void 0:(0,t.unref)(Eu)(n.link||``),target:(0,t.unref)(O)?void 0:n.linkTarget===`_self`?`_self`:`_blank`,rel:(0,t.unref)(O)?void 0:`noreferrer noopener`,"data-image-link":(0,t.unref)(O)?(0,t.unref)(Eu)(n.link||``):void 0,"data-image-link-target":(0,t.unref)(O)?n.linkTarget===`_self`?`_self`:`_blank`:void 0,onMousedown:l[5]||=e=>!(0,t.unref)(O)&&e.stopPropagation(),onClick:(0,t.withModifiers)(e=>ve(r),[`stop`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`img`,{class:`norio-office-rich-image-block__image`,draggable:`false`,src:n.src,alt:n.alt||``,style:(0,t.normalizeStyle)({transform:`rotate(${Number(n.rotation??0)}deg)`})},null,12,Iu)]),_:2},1064,[`href`,`target`,`rel`,`data-image-link`,`data-image-link-target`,`onClick`])):((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,class:`norio-office-rich-image-block__image`,draggable:`false`,src:n.src,alt:n.alt||``,style:(0,t.normalizeStyle)({transform:`rotate(${Number(n.rotation??0)}deg)`})},null,12,Lu))],4),Le(n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-image-block__caption`,onMousedown:l[6]||=(0,t.withModifiers)(()=>{},[`stop`]),onClick:l[7]||=(0,t.withModifiers)(()=>{},[`stop`]),onDragstart:l[8]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`])},[(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`textarea`,{key:0,ref_for:!0,ref:e=>ze(n.id,e),class:`norio-office-rich-image-block__caption-input`,value:n.description||``,rows:`1`,placeholder:`添加图片描述`,"aria-label":`图片描述`,onFocus:e=>u.value=r,onInput:e=>Ve(n.id,e),onKeydown:(0,t.withModifiers)(e=>He(n.id,e),[`stop`])},null,40,Ru)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__caption-desc`,hidden:(0,t.unref)(O)},(0,t.toDisplayString)(n.description),9,zu)],32)):(0,t.createCommentVNode)(``,!0)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`norio-office-rich-image-block__placeholder`,style:(0,t.normalizeStyle)({minHeight:`${ie.value}px`})},[me(r)?.status===`uploading`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Bu,[l[28]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-upload-spinner`,"aria-hidden":`true`},null,-1),l[29]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__upload-title`},`图片上传中`,-1),(0,t.createElementVNode)(`div`,Vu,(0,t.toDisplayString)(me(r)?.file.name),1)])):me(r)?.status===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Hu,[l[32]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__upload-title`},`图片上传失败`,-1),(0,t.createElementVNode)(`div`,Uu,(0,t.toDisplayString)(me(r)?.message),1),(0,t.createElementVNode)(`div`,Wu,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__placeholder-button`,title:`重试上传`,onClick:(0,t.withModifiers)(e=>Se(r),[`stop`])},[...l[30]||=[(0,t.createElementVNode)(`span`,null,`重试`,-1)]],8,Gu),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__placeholder-button`,title:`重新选择图片`,onClick:(0,t.withModifiers)(e=>be(r),[`stop`])},[...l[31]||=[(0,t.createElementVNode)(`span`,null,`重新选择`,-1)]],8,Ku)])])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`div`,qu,[(0,t.createVNode)(an,{name:`tupian`,size:16,"background-color":`transparent`}),l[33]||=(0,t.createElementVNode)(`span`,null,`图片`,-1)]),(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ju,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__placeholder-button`,title:`上传图片`,onClick:(0,t.withModifiers)(e=>be(r),[`stop`])},[(0,t.createVNode)(k,{name:`xiangshangcharu`,size:14,color:`#4b5563`,"background-color":`transparent`}),l[34]||=(0,t.createElementVNode)(`span`,null,`上传图片`,-1)],8,Yu)])):(0,t.createCommentVNode)(``,!0)],64))],4))],46,Fu))),128))],4)]),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--tl`,onDragstart:l[9]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[10]||=e=>$e(e,`tl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--tr`,onDragstart:l[11]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[12]||=e=>$e(e,`tr`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--bl`,onDragstart:l[13]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[14]||=e=>$e(e,`bl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:4,draggable:`false`,class:`norio-office-rich-image-block__handle norio-office-rich-image-block__handle--br`,onDragstart:l[15]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:l[16]||=e=>$e(e,`br`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:5,draggable:`false`,class:`norio-office-rich-image-block__bottom-bar`,onDragstart:l[17]||=(0,t.withModifiers)(()=>{},[`prevent`,`stop`]),onPointerdown:et},null,32)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`input`,{ref_key:`inputRef`,ref:i,type:`file`,accept:`image/*`,hidden:``,onChange:Ce},null,544)]),_:1},8,[`class`,`data-align`,`style`]),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[le.value?.src?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-image-block__viewer`,onClick:Xe},[D.value.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-image-block__viewer-nav norio-office-rich-image-block__viewer-nav--prev`,title:`上一张`,onClick:(0,t.withModifiers)(Ze,[`stop`])},[(0,t.createVNode)(k,{name:`zuojiantou`,size:18,color:`#ffffff`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__viewer-stage`,onClick:l[18]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`img`,{class:`norio-office-rich-image-block__viewer-image`,src:le.value.src,alt:le.value.alt||``},null,8,Xu),(0,t.createElementVNode)(`div`,Zu,[(0,t.createElementVNode)(`div`,Qu,(0,t.toDisplayString)(le.value.name||le.value.alt||`图片`),1),le.value.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$u,(0,t.toDisplayString)(le.value.description),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ed,(0,t.toDisplayString)((_.value??0)+1)+` / `+(0,t.toDisplayString)(D.value.length),1)])]),D.value.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`norio-office-rich-image-block__viewer-nav norio-office-rich-image-block__viewer-nav--next`,title:`下一张`,onClick:(0,t.withModifiers)(Qe,[`stop`])},[(0,t.createVNode)(k,{name:`youjiantou`,size:18,color:`#ffffff`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-image-block__viewer-close`,title:`关闭预览`,onClick:(0,t.withModifiers)(Xe,[`stop`])},[(0,t.createVNode)(k,{name:`close`,size:18,color:`#ffffff`,"background-color":`transparent`})])])):(0,t.createCommentVNode)(``,!0)])),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:C.value},[v.value&&(0,t.unref)(O)?((0,t.openBlock)(),(0,t.createElementBlock)(`form`,{key:0,ref_key:`linkPopoverRef`,ref:s,class:`norio-office-rich-image-block__link-popover`,style:(0,t.normalizeStyle)(S.value),role:`dialog`,"aria-label":`图片链接`,onPointerdown:l[22]||=(0,t.withModifiers)(()=>{},[`stop`]),onMousedown:l[23]||=(0,t.withModifiers)(()=>{},[`stop`]),onClick:l[24]||=(0,t.withModifiers)(()=>{},[`stop`]),onKeydown:(0,t.withKeys)((0,t.withModifiers)(qe,[`prevent`,`stop`]),[`esc`]),onSubmit:(0,t.withModifiers)(Je,[`prevent`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{ref_key:`linkInputRef`,ref:c,"onUpdate:modelValue":l[19]||=e=>y.value=e,type:`text`,class:`norio-office-rich-image-block__link-input`,placeholder:`请输入网址`,"aria-label":`图片链接网址`,"aria-invalid":!!x.value,onInput:l[20]||=e=>x.value=``},null,40,nd),[[t.vModelText,y.value]]),x.value?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,rd,(0,t.toDisplayString)(x.value),1)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`label`,id,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":l[21]||=e=>b.value=e,type:`checkbox`},null,512),[[t.vModelCheckbox,b.value]]),l[35]||=(0,t.createElementVNode)(`span`,null,`在当前页面打开`,-1)]),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-image-block__link-actions`},[(0,t.createElementVNode)(`button`,{type:`button`,onClick:qe},`取消`),l[36]||=(0,t.createElementVNode)(`button`,{type:`submit`,class:`norio-office-rich-image-block__link-confirm`},`确定`,-1)])],44,td)):(0,t.createCommentVNode)(``,!0)],8,[`to`]))],64))}}),od=T.Node.create({name:`imageBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addOptions(){return{uploadImage:null,onUploadError:null}},addAttributes(){return{images:{default:[],parseHTML:e=>{let t=e.getAttribute(`data-images`);if(!t)return[];try{return JSON.parse(decodeURIComponent(t))}catch{return[]}},renderHTML:e=>({"data-images":encodeURIComponent(JSON.stringify(e.images??[]))})},widthPercent:{default:100,parseHTML:e=>Number.parseInt(e.getAttribute(`data-width-percent`)??`100`,10)||100,renderHTML:e=>({"data-width-percent":String(e.widthPercent??100)})},align:{default:`left`,parseHTML:e=>e.getAttribute(`data-align`)||`left`,renderHTML:e=>({"data-align":String(e.align??`left`)})},height:{default:146,parseHTML:e=>Number.parseInt(e.getAttribute(`data-height`)??`146`,10)||146,renderHTML:e=>({"data-height":String(e.height??146)})}}},parseHTML(){return[{tag:`div[data-type="image-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`image-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(ad)}}),sd={key:0,class:`norio-office-rich-link-block__form-card`},cd={class:`norio-office-rich-link-block__form-row`},ld=[`onKeydown`],ud={class:`norio-office-rich-link-block__form-row`},dd=[`onKeydown`],fd={class:`norio-office-rich-link-block__form-actions`},pd=[`disabled`],md={key:0,class:`norio-office-rich-link-block__toolbar`},hd={key:0,class:`norio-office-rich-link-block__align-menu`},gd={key:1,class:`norio-office-rich-link-block__align-check`},_d={key:1,class:`norio-office-rich-link-block__align-check`},vd={key:1,class:`norio-office-rich-link-block__align-check`},yd={key:1,class:`norio-office-rich-link-block__preview`},bd=[`src`],xd={class:`norio-office-rich-link-block__preview-footer`},Sd={class:`norio-office-rich-link-block__preview-meta`},Cd={class:`norio-office-rich-link-block__preview-title`},wd=[`href`],Td=[`href`],Ed={class:`norio-office-rich-link-block__card-meta`},Dd={class:`norio-office-rich-link-block__card-text`},Od={class:`norio-office-rich-link-block__card-title`},kd={class:`norio-office-rich-link-block__card-subtitle`},Ad=[`href`],jd={class:`norio-office-rich-link-block__dialog-row`},Md=[`onKeydown`],Nd={class:`norio-office-rich-link-block__dialog-row`},Pd=[`onKeydown`],Fd={class:`norio-office-rich-link-block__dialog-actions`},Id=[`disabled`],Ld={class:`norio-office-rich-link-block__fullscreen-toolbar`},Rd={class:`norio-office-rich-link-block__fullscreen-title`},zd={class:`norio-office-rich-link-block__fullscreen-actions`},Bd=[`href`],Vd=[`src`],Hd=(0,t.defineComponent)({__name:`LinkBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(``),o=(0,t.ref)(``),s=(0,t.ref)(``),c=(0,t.ref)(``),l=(0,t.ref)(!1),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=(0,t.ref)(!1),p=(0,t.ref)(!1),m=0,h=100,g=0,_=420,v=`br`,y=(0,t.computed)(()=>String(r.node.attrs.title??``)),b=(0,t.computed)(()=>String(r.node.attrs.url??``)),x=(0,t.computed)(()=>{let e=String(r.node.attrs.displayMode??`preview`);return e===`card`||e===`text`?e:`preview`}),S=(0,t.computed)(()=>{let e=String(r.node.attrs.align??`left`);return e===`center`||e===`right`?e:`left`}),C=(0,t.computed)(()=>Number(r.node.attrs.widthPercent??100)),w=(0,t.computed)(()=>Number(r.node.attrs.height??420)),T=Al(r.editor),E=(0,t.computed)(()=>y.value.trim().length>0&&b.value.trim().length>0),ee=(0,t.computed)(()=>O(b.value));(0,t.computed)(()=>O(c.value));let te=(0,t.computed)(()=>{try{return ee.value?new URL(ee.value).host:``}catch{return b.value}}),D=(0,t.computed)(()=>S.value===`center`?`juzhongduiqi`:S.value===`right`?`youduiqi`:`zuoduiqi`),ne=(0,t.computed)(()=>a.value.trim().length>0&&o.value.trim().length>0),re=(0,t.computed)(()=>s.value.trim().length>0&&c.value.trim().length>0),ie=(0,t.computed)(()=>E.value?x.value===`preview`?{width:`${C.value}%`}:x.value===`card`?{width:`400px`,maxWidth:`100%`}:{width:`fit-content`,maxWidth:`100%`}:{width:`fit-content`,maxWidth:`100%`});function O(e){return Eu(e)}function ae(){if(!T.value)return;let e=r.getPos();typeof e==`number`&&r.editor.commands.setNodeSelection(e)}function oe(){!T.value||!ne.value||r.updateAttributes({title:a.value.trim(),url:O(o.value),displayMode:`preview`})}function se(){T.value&&(s.value=y.value,c.value=b.value,u.value=!0)}function ce(){u.value=!1,s.value=``,c.value=``}function le(){!T.value||!re.value||(r.updateAttributes({title:s.value.trim(),url:O(c.value)}),ce())}function ue(e){T.value&&r.updateAttributes({displayMode:e})}function de(e){T.value&&(r.updateAttributes({align:e}),l.value=!1)}function fe(){T.value&&(l.value=!l.value)}function pe(){l.value=!1}function me(){d.value=!0}function he(){d.value=!1}function ge(){T.value&&r.deleteNode()}function _e(e,t){T.value&&(e.preventDefault(),e.stopPropagation(),ae(),f.value=!0,v=t,m=e.clientX,h=C.value,g=e.clientY,_=w.value,window.addEventListener(`mousemove`,ye),window.addEventListener(`mouseup`,xe))}function ve(e){T.value&&(e.preventDefault(),e.stopPropagation(),ae(),p.value=!0,g=e.clientY,_=w.value,window.addEventListener(`mousemove`,be),window.addEventListener(`mouseup`,Se))}function ye(e){if(!f.value)return;let t=e.clientX-m,n=e.clientY-g,i=v===`tl`||v===`bl`?-1:1,a=v===`tl`||v===`tr`?-1:1,o=Math.max(30,Math.min(100,h+t*i/8)),s=Math.max(240,Math.min(860,_+n*a));r.updateAttributes({widthPercent:Math.round(o),height:Math.round(s)})}function be(e){if(!p.value)return;let t=e.clientY-g,n=Math.max(240,Math.min(860,_+t));r.updateAttributes({height:Math.round(n)})}function xe(){f.value=!1,window.removeEventListener(`mousemove`,ye),window.removeEventListener(`mouseup`,xe)}function Se(){p.value=!1,window.removeEventListener(`mousemove`,be),window.removeEventListener(`mouseup`,Se)}function Ce(e){if(!l.value)return;let t=e.target;(!(t instanceof Node)||!i.value?.contains(t))&&pe()}return(0,t.watch)(()=>[y.value,b.value],()=>{E.value||(a.value=y.value,o.value=b.value)},{immediate:!0}),(0,t.onMounted)(()=>{document.addEventListener(`pointerdown`,Ce,!0)}),(0,t.onBeforeUnmount)(()=>{xe(),Se(),document.removeEventListener(`pointerdown`,Ce,!0)}),(r,f)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-link-block`,{"norio-office-rich-link-block--selected":e.selected&&(0,t.unref)(T)}]),"data-align":S.value,style:(0,t.normalizeStyle)(ie.value),onMousedown:ae},{default:(0,t.withCtx)(()=>[!E.value&&(0,t.unref)(T)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sd,[(0,t.createElementVNode)(`label`,cd,[f[20]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__form-label`},`文本`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[0]||=e=>a.value=e,class:`norio-office-rich-link-block__form-input`,placeholder:`输入文本`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(oe,[`prevent`]),[`enter`])},null,40,ld),[[t.vModelText,a.value]])]),(0,t.createElementVNode)(`label`,ud,[f[21]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__form-label`},`链接`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[1]||=e=>o.value=e,class:`norio-office-rich-link-block__form-input`,placeholder:`粘贴或输入链接`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(oe,[`prevent`]),[`enter`])},null,40,dd),[[t.vModelText,o.value]])]),(0,t.createElementVNode)(`div`,fd,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__form-confirm`,disabled:!ne.value,onClick:oe},`确认`,8,pd)])])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.selected&&(0,t.unref)(T)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,md,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`全屏预览`,onClick:(0,t.withModifiers)(me,[`stop`])},[(0,t.createVNode)(k,{name:`quanpingzuidahua`,size:14,color:`#4b5563`,"background-color":`transparent`})]),f[25]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__tool`,{"norio-office-rich-link-block__tool--active":x.value===`text`}]),title:`文字模式`,onClick:f[2]||=(0,t.withModifiers)(e=>ue(`text`),[`stop`])},[(0,t.createVNode)(k,{name:`wenziyulan`,size:14,color:`#4b5563`,"background-color":`transparent`})],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__tool`,{"norio-office-rich-link-block__tool--active":x.value===`card`}]),title:`卡片模式`,onClick:f[3]||=(0,t.withModifiers)(e=>ue(`card`),[`stop`])},[(0,t.createVNode)(k,{name:`kapianyulan`,size:14,color:`#4b5563`,"background-color":`transparent`})],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__tool`,{"norio-office-rich-link-block__tool--active":x.value===`preview`}]),title:`预览模式`,onClick:f[4]||=(0,t.withModifiers)(e=>ue(`preview`),[`stop`])},[(0,t.createVNode)(k,{name:`fangdayulan`,size:14,color:`#4b5563`,"background-color":`transparent`})],2),f[26]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`编辑超链接`,onClick:(0,t.withModifiers)(se,[`stop`])},[(0,t.createVNode)(k,{name:`link`,size:14,color:`#4b5563`,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,{ref_key:`alignDropdownRef`,ref:i,class:`norio-office-rich-link-block__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`对齐方式`,onClick:(0,t.withModifiers)(fe,[`stop`])},[(0,t.createVNode)(k,{name:D.value,size:14,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])]),l.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hd,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__align-item`,{"norio-office-rich-link-block__align-item--active":S.value===`left`}]),onClick:f[5]||=(0,t.withModifiers)(e=>de(`left`),[`stop`])},[S.value===`left`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gd)),(0,t.createVNode)(k,{class:`norio-office-rich-link-block__align-icon`,name:`zuoduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),f[22]||=(0,t.createElementVNode)(`span`,null,`左对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__align-item`,{"norio-office-rich-link-block__align-item--active":S.value===`center`}]),onClick:f[6]||=(0,t.withModifiers)(e=>de(`center`),[`stop`])},[S.value===`center`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,_d)),(0,t.createVNode)(k,{class:`norio-office-rich-link-block__align-icon`,name:`juzhongduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),f[23]||=(0,t.createElementVNode)(`span`,null,`居中对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-link-block__align-item`,{"norio-office-rich-link-block__align-item--active":S.value===`right`}]),onClick:f[7]||=(0,t.withModifiers)(e=>de(`right`),[`stop`])},[S.value===`right`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,vd)),(0,t.createVNode)(k,{class:`norio-office-rich-link-block__align-icon`,name:`youduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),f[24]||=(0,t.createElementVNode)(`span`,null,`右对齐`,-1)],2)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__tool`,title:`删除超链接`,onClick:(0,t.withModifiers)(ge,[`stop`])},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#4b5563`,"background-color":`transparent`})])])):(0,t.createCommentVNode)(``,!0),x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,yd,[(0,t.createElementVNode)(`iframe`,{class:`norio-office-rich-link-block__iframe`,src:ee.value,style:(0,t.normalizeStyle)({height:`${w.value}px`}),sandbox:`allow-forms allow-popups allow-popups-to-escape-sandbox allow-scripts`,referrerpolicy:`no-referrer`},null,12,bd),(0,t.createElementVNode)(`div`,xd,[(0,t.createElementVNode)(`div`,Sd,[(0,t.createVNode)(an,{name:`wangye`,size:20,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,Cd,(0,t.toDisplayString)(y.value),1)]),(0,t.createElementVNode)(`a`,{class:`norio-office-rich-link-block__preview-open`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[8]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createVNode)(k,{name:`yulan`,size:18,color:`#6b7280`,"background-color":`transparent`})],8,wd)])])):x.value===`card`?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:2,class:`norio-office-rich-link-block__card`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[9]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,Ed,[(0,t.createVNode)(an,{name:`wangye`,size:48,"background-color":`transparent`}),(0,t.createElementVNode)(`div`,Dd,[(0,t.createElementVNode)(`div`,Od,(0,t.toDisplayString)(y.value),1),(0,t.createElementVNode)(`div`,kd,(0,t.toDisplayString)(te.value),1)])]),(0,t.createVNode)(k,{name:`yulan`,size:18,color:`#6b7280`,"background-color":`transparent`})],8,Td)):((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:3,class:`norio-office-rich-link-block__text`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[10]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createVNode)(an,{name:`wangye`,size:18,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(y.value),1)],8,Ad))],64)),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--tl`,onMousedown:f[11]||=e=>_e(e,`tl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--tr`,onMousedown:f[12]||=e=>_e(e,`tr`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:4,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--bl`,onMousedown:f[13]||=e=>_e(e,`bl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:5,class:`norio-office-rich-link-block__handle norio-office-rich-link-block__handle--br`,onMousedown:f[14]||=e=>_e(e,`br`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(T)&&E.value&&x.value===`preview`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:6,class:`norio-office-rich-link-block__bottom-bar`,onMousedown:ve},null,32)):(0,t.createCommentVNode)(``,!0),u.value&&(0,t.unref)(T)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:7,class:`norio-office-rich-link-block__dialog`,onClick:ce},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-link-block__dialog-card`,onClick:f[17]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`label`,jd,[f[27]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__dialog-label`},`文本`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[15]||=e=>s.value=e,class:`norio-office-rich-link-block__dialog-input`,placeholder:`输入文本`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(le,[`prevent`]),[`enter`])},null,40,Md),[[t.vModelText,s.value]])]),(0,t.createElementVNode)(`label`,Nd,[f[28]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-link-block__dialog-label`},`链接`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":f[16]||=e=>c.value=e,class:`norio-office-rich-link-block__dialog-input`,placeholder:`粘贴或输入链接`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(le,[`prevent`]),[`enter`])},null,40,Pd),[[t.vModelText,c.value]])]),(0,t.createElementVNode)(`div`,Fd,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__dialog-confirm`,disabled:!re.value,onClick:le},`确认`,8,Id)])])])):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:8,class:`norio-office-rich-link-block__fullscreen`,onClick:he},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-link-block__fullscreen-card`,onClick:f[19]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,Ld,[(0,t.createElementVNode)(`div`,Rd,(0,t.toDisplayString)(y.value),1),(0,t.createElementVNode)(`div`,zd,[(0,t.createElementVNode)(`a`,{class:`norio-office-rich-link-block__fullscreen-open`,href:ee.value,target:`_blank`,rel:`noreferrer noopener`,onClick:f[18]||=(0,t.withModifiers)(()=>{},[`stop`])},` 在新窗口打开 `,8,Bd),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-link-block__fullscreen-close`,onClick:he},[(0,t.createVNode)(k,{name:`close`,size:16,color:`#4b5563`,"background-color":`transparent`})])])]),(0,t.createElementVNode)(`iframe`,{class:`norio-office-rich-link-block__fullscreen-iframe`,src:ee.value,sandbox:`allow-forms allow-popups allow-popups-to-escape-sandbox allow-scripts`,referrerpolicy:`no-referrer`},null,8,Vd)])])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`class`,`data-align`,`style`]))}}),Ud=T.Node.create({name:`linkBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return{title:{default:``,parseHTML:e=>e.getAttribute(`data-title`)||``,renderHTML:e=>({"data-title":String(e.title??``)})},url:{default:``,parseHTML:e=>e.getAttribute(`data-url`)||``,renderHTML:e=>({"data-url":String(e.url??``)})},displayMode:{default:`preview`,parseHTML:e=>e.getAttribute(`data-display-mode`)||`preview`,renderHTML:e=>({"data-display-mode":String(e.displayMode??`preview`)})},align:{default:`left`,parseHTML:e=>e.getAttribute(`data-align`)||`left`,renderHTML:e=>({"data-align":String(e.align??`left`)})},widthPercent:{default:100,parseHTML:e=>Number.parseInt(e.getAttribute(`data-width-percent`)??`100`,10)||100,renderHTML:e=>({"data-width-percent":String(e.widthPercent??100)})},height:{default:420,parseHTML:e=>Number.parseInt(e.getAttribute(`data-height`)??`420`,10)||420,renderHTML:e=>({"data-height":String(e.height??420)})}}},parseHTML(){return[{tag:`div[data-type="link-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`link-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(Hd)}}),Wd={class:`norio-office-rich-local-file-block__main`},Gd={class:`norio-office-rich-local-file-block__icon`},Kd={class:`norio-office-rich-local-file-block__content`},qd={class:`norio-office-rich-local-file-block__title`},Jd={key:0,class:`norio-office-rich-local-file-block__meta`},Yd={key:1,class:`norio-office-rich-local-file-block__meta`},Xd=[`disabled`],Zd=(0,t.defineComponent)({__name:`LocalFileBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.computed)(()=>String(r.node.attrs.assetId??``)),a=(0,t.computed)(()=>String(r.node.attrs.url??``)),o=(0,t.computed)(()=>String(r.node.attrs.name??``)),s=(0,t.computed)(()=>Number(r.node.attrs.size??0)),c=(0,t.computed)(()=>String(r.node.attrs.mimeType??``)),l=Al(r.editor),u=(0,t.computed)(()=>a.value.trim().length>0&&o.value.trim().length>0),d=(0,t.computed)(()=>{let e=[];return c.value.trim()&&e.push(c.value),s.value>0&&e.push(f(s.value)),e.join(` · `)});function f(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(e>=10*1024?0:1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(e>=10*1024*1024?0:1)} MB`:`${(e/(1024*1024*1024)).toFixed(1)} GB`}function p(){if(!l.value)return;let e=r.getPos();typeof e==`number`&&r.editor.commands.setNodeSelection(e)}function m(){return{assetId:i.value||void 0,url:a.value,name:o.value,size:s.value>0?s.value:void 0,mimeType:c.value||void 0}}function h(){p(),u.value&&r.extension.options.onClick?.(m())}function g(){p(),u.value&&r.extension.options.onDownload?.(m())}return(r,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-local-file-block`,{"norio-office-rich-local-file-block--selected":e.selected&&(0,t.unref)(l),"norio-office-rich-local-file-block--empty":!u.value}]),onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Wd,[(0,t.createElementVNode)(`span`,Gd,[(0,t.createVNode)(an,{name:`file`,size:28,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,Kd,[(0,t.createElementVNode)(`div`,qd,(0,t.toDisplayString)(u.value?o.value:`请选择本地文件`),1),u.value&&d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Jd,(0,t.toDisplayString)(d.value),1)):u.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yd,` 本地文件卡片 `))])]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-local-file-block__download`,disabled:!u.value,onMousedown:i[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:(0,t.withModifiers)(g,[`stop`])},[(0,t.createVNode)(k,{name:`save`,size:14,color:`#2563eb`,"background-color":`transparent`}),i[1]||=(0,t.createElementVNode)(`span`,null,`下载`,-1)],40,Xd)]),_:1},8,[`class`]))}}),Qd=T.Node.create({name:`localFileBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addOptions(){return{onClick:null,onDownload:null}},addAttributes(){return{assetId:{default:``,parseHTML:e=>e.getAttribute(`data-asset-id`)||``,renderHTML:e=>({"data-asset-id":String(e.assetId??``)})},url:{default:``,parseHTML:e=>e.getAttribute(`data-url`)||``,renderHTML:e=>({"data-url":String(e.url??``)})},name:{default:``,parseHTML:e=>e.getAttribute(`data-name`)||``,renderHTML:e=>({"data-name":String(e.name??``)})},size:{default:0,parseHTML:e=>Number.parseInt(e.getAttribute(`data-size`)??`0`,10)||0,renderHTML:e=>({"data-size":String(e.size??0)})},mimeType:{default:``,parseHTML:e=>e.getAttribute(`data-mime-type`)||``,renderHTML:e=>({"data-mime-type":String(e.mimeType??``)})}}},parseHTML(){return[{tag:`div[data-type="local-file-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`local-file-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(Zd)}}),$d=[`#4f7cff`,`#22c55e`,`#f97316`,`#a855f7`,`#06b6d4`,`#ef4444`,`#14b8a6`,`#f59e0b`,`#6366f1`,`#ec4899`,`#3b82f6`,`#84cc16`,`#fb7185`,`#8b5cf6`,`#0ea5e9`,`#10b981`,`#f43f5e`,`#d946ef`,`#2dd4bf`,`#eab308`];function ef(e){return Array.from(e.trim()).slice(-2).join(``)||`NA`}function tf(e){let t=Array.from(String(e));return $d[(t[t.length-1]??`0`).charCodeAt(0)%$d.length]}function nf(e){return{backgroundColor:tf(e)}}var rf={class:`norio-office-rich-mention-inline__icon`},af=[`src`],of=[`src`],sf={class:`norio-office-rich-mention-inline__name`},cf=(0,t.defineComponent)({__name:`MentionInlineView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.computed)(()=>String(r.node.attrs.id??``)),a=(0,t.computed)(()=>String(r.node.attrs.name??``)),o=(0,t.computed)(()=>Number(r.node.attrs.type??1)===2?2:1),s=(0,t.computed)(()=>String(r.node.attrs.avatar??``)),c=(0,t.computed)(()=>String(r.node.attrs.icon??``)),l=(0,t.computed)(()=>String(r.node.attrs.tag??``)),u=(0,t.computed)(()=>String(r.node.attrs.updatedAt??``)),d=(0,t.computed)(()=>r.editor.isEditable),f=(0,t.computed)(()=>ef(a.value)),p=(0,t.computed)(()=>nf(i.value));function m(){return{id:i.value,name:a.value,type:o.value,avatar:s.value||void 0,icon:c.value||void 0,tag:l.value||void 0,updatedAt:u.value||void 0}}function h(){if(!d.value)return;let e=r.getPos();typeof e==`number`&&r.editor.commands.setNodeSelection(e)}function g(){h(),r.extension.options.onClick?.(m())}return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{as:`span`,class:(0,t.normalizeClass)([`norio-office-rich-mention-inline`,{"norio-office-rich-mention-inline--person":o.value===1,"norio-office-rich-mention-inline--document":o.value===2,"norio-office-rich-mention-inline--selected":e.selected&&d.value}]),"data-mention-id":i.value,"data-mention-name":a.value,"data-mention-type":o.value,"data-mention-tag":l.value,onClick:(0,t.withModifiers)(g,[`stop`])},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,rf,[o.value===1&&s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:s.value,alt:``},null,8,af)):o.value===2&&c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:c.value,alt:``},null,8,of)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,style:(0,t.normalizeStyle)(o.value===1?p.value:void 0)},(0,t.toDisplayString)(o.value===1?f.value:`文`),5))]),(0,t.createElementVNode)(`span`,sf,(0,t.toDisplayString)(a.value),1)]),_:1},8,[`class`,`data-mention-id`,`data-mention-name`,`data-mention-type`,`data-mention-tag`]))}}),lf=T.Node.create({name:`mention`,group:`inline`,inline:!0,atom:!0,selectable:!0,addOptions(){return{onClick:null}},addAttributes(){return{id:{default:``,parseHTML:e=>e.getAttribute(`data-mention-id`)||``,renderHTML:e=>({"data-mention-id":String(e.id??``)})},name:{default:``,parseHTML:e=>e.getAttribute(`data-mention-name`)||``,renderHTML:e=>({"data-mention-name":String(e.name??``)})},type:{default:1,parseHTML:e=>Number.parseInt(e.getAttribute(`data-mention-type`)??`1`,10)===2?2:1,renderHTML:e=>({"data-mention-type":String(Number(e.type??1)===2?2:1)})},avatar:{default:``,parseHTML:e=>e.getAttribute(`data-mention-avatar`)||``,renderHTML:e=>({"data-mention-avatar":String(e.avatar??``)})},icon:{default:``,parseHTML:e=>e.getAttribute(`data-mention-icon`)||``,renderHTML:e=>({"data-mention-icon":String(e.icon??``)})},tag:{default:``,parseHTML:e=>e.getAttribute(`data-mention-tag`)||``,renderHTML:e=>({"data-mention-tag":String(e.tag??``)})},updatedAt:{default:``,parseHTML:e=>e.getAttribute(`data-mention-updated-at`)||``,renderHTML:e=>({"data-mention-updated-at":String(e.updatedAt??``)})}}},parseHTML(){return[{tag:`span[data-type="mention"]`}]},renderHTML({HTMLAttributes:e}){let t=String(e[`data-mention-name`]??e.name??``);return[`span`,{...e,"data-type":`mention`,class:`norio-office-rich-mention-inline`},`@${t}`]},renderText({node:e}){return`@${String(e.attrs.name??``)}`},addNodeView(){return(0,n.VueNodeViewRenderer)(cf)}}),uf={key:0,class:`norio-office-rich-code-block__toolbar`},df={key:0,class:`norio-office-rich-code-block__menu`},ff=[`onClick`],pf={class:`norio-office-rich-code-block__toolbar-actions`},mf={key:0,class:`norio-office-rich-code-block__settings-menu`},hf=[`data-checked`],gf=[`data-checked`],_f=[`data-checked`],vf={class:`norio-office-rich-code-block__surface`},yf={class:`norio-office-rich-code-block__line-numbers`,"aria-hidden":`true`},bf=(0,t.defineComponent)({__name:`OfficeCodeBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(!1),c=(0,t.ref)(!1),l=(0,t.ref)(!1),u=null,d=[{label:`Plain Text`,value:`plain_text`},{label:`Bash`,value:`bash`},{label:`C#`,value:`csharp`},{label:`C/C++`,value:`cpp`},{label:`CMake`,value:`cmake`},{label:`CSS`,value:`css`},{label:`Dart`,value:`dart`},{label:`Dockerfile`,value:`dockerfile`},{label:`HTML`,value:`html`},{label:`JavaScript`,value:`javascript`},{label:`JSON`,value:`json`},{label:`TypeScript`,value:`typescript`},{label:`Vue`,value:`vue`}],f=(0,t.computed)(()=>{let e=String(r.node.attrs.language??`plain_text`);return d.find(t=>t.value===e)??d[0]}),p=(0,t.computed)(()=>!!r.node.attrs.wrapLines),m=(0,t.computed)(()=>!!r.node.attrs.darkTheme),h=(0,t.computed)(()=>!!r.node.attrs.fixedHeight),g=Al(r.editor),_=(0,t.computed)(()=>{let e=String(r.node.textContent??``).replace(/\r\n/g,`
|
|
7743
7741
|
`),t=Math.max(1,e.split(`
|
|
7744
7742
|
`).length);return Array.from({length:t},(e,t)=>t+1)});function v(){g.value&&(s.value=!s.value,c.value=!1)}function y(){g.value&&(c.value=!c.value,s.value=!1)}function b(e){g.value&&(r.updateAttributes({language:e}),s.value=!1)}function x(){g.value&&r.updateAttributes({wrapLines:!p.value})}function S(){g.value&&r.updateAttributes({darkTheme:!m.value})}function C(){g.value&&r.updateAttributes({fixedHeight:!h.value})}async function w(){let e=r.node.textContent??``;if(e)try{await navigator.clipboard.writeText(e),l.value=!0,u&&window.clearTimeout(u),u=window.setTimeout(()=>{l.value=!1,u=null},1e3)}catch{}}function T(e){let t=e.target;(!t||!a.value?.contains(t))&&(s.value=!1),(!t||!o.value?.contains(t))&&(c.value=!1)}function E(){if(i.value instanceof HTMLElement)return i.value;let e=i.value?.$el;return e instanceof HTMLElement?e:null}function ee(){E()?.removeAttribute(`data-placeholder`)}return(0,t.onMounted)(()=>{document.addEventListener(`mousedown`,T),(0,t.nextTick)(ee)}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,T),u&&window.clearTimeout(u)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{ref_key:`wrapperRef`,ref:i,class:`norio-office-rich-code-block`,"data-wrap-lines":p.value?`true`:`false`,"data-dark-theme":m.value?`true`:`false`,"data-fixed-height":h.value?`true`:`false`},{default:(0,t.withCtx)(()=>[(0,t.unref)(g)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uf,[(0,t.createElementVNode)(`div`,{ref_key:`languageMenuRef`,ref:a,class:`norio-office-rich-code-block__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-code-block__toolbar-button norio-office-rich-code-block__toolbar-button--language`,onClick:v},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(f.value.label),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:10,color:`#6b7280`,"background-color":`transparent`})]),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,df,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-code-block__menu-scroll`,"max-height":`296px`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d,e=>(0,t.createElementVNode)(`button`,{key:e.value,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-code-block__menu-item`,{"norio-office-rich-code-block__menu-item--active":f.value.value===e.value}]),onClick:t=>b(e.value)},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.label),1),f.value.value===e.value?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],10,ff)),64))]),_:1})])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,pf,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-code-block__toolbar-button`,onClick:w},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(l.value?`已复制`:`复制`),1)]),(0,t.createElementVNode)(`div`,{ref_key:`settingsMenuRef`,ref:o,class:`norio-office-rich-code-block__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-code-block__toolbar-button`,onClick:y},[...r[1]||=[(0,t.createElementVNode)(`span`,null,`设置`,-1)]]),c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mf,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-code-block__setting-row`,onClick:C},[r[3]||=(0,t.createElementVNode)(`span`,null,`固定高度`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch`,"data-checked":h.value?`true`:`false`},[...r[2]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch-thumb`},null,-1)]],8,hf)]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-code-block__setting-row`,onClick:x},[r[5]||=(0,t.createElementVNode)(`span`,null,`自动换行`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch`,"data-checked":p.value?`true`:`false`},[...r[4]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch-thumb`},null,-1)]],8,gf)]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-code-block__setting-row`,onClick:S},[r[7]||=(0,t.createElementVNode)(`span`,null,`暗色主题`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch`,"data-checked":m.value?`true`:`false`},[...r[6]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch-thumb`},null,-1)]],8,_f)])])):(0,t.createCommentVNode)(``,!0)],512)])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-code-block__body`,onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`pre`,vf,[r[10]||=(0,t.createTextVNode)(` `,-1),(0,t.createElementVNode)(`div`,yf,[r[8]||=(0,t.createTextVNode)(`
|
|
7745
7743
|
`,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(_.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e,class:`norio-office-rich-code-block__line-number`},(0,t.toDisplayString)(e),1))),128)),r[9]||=(0,t.createTextVNode)(`
|
|
7746
7744
|
`,-1)]),r[11]||=(0,t.createTextVNode)(`
|
|
7747
7745
|
`,-1),(0,t.createVNode)((0,t.unref)(n.NodeViewContent),{as:`code`,class:`norio-office-rich-code-block__content`}),r[12]||=(0,t.createTextVNode)(`
|
|
7748
|
-
`,-1)])],32)]),_:1},8,[`data-wrap-lines`,`data-dark-theme`,`data-fixed-height`]))}}),xf=(0,ee.createLowlight)(ee.common),Sf=E.default.configure({lowlight:xf}).extend({addAttributes(){return{...this.parent?.(),language:{default:`plain_text`,parseHTML:e=>e.getAttribute(`data-language`)||`plain_text`,renderHTML:e=>{let t=e.language||`plain_text`;return t===`plain_text`?{"data-language":t}:{"data-language":t,class:`language-${t}`}}},wrapLines:{default:!1,parseHTML:e=>e.getAttribute(`data-wrap-lines`)===`true`,renderHTML:e=>({"data-wrap-lines":e.wrapLines?`true`:`false`})},darkTheme:{default:!1,parseHTML:e=>e.getAttribute(`data-dark-theme`)===`true`,renderHTML:e=>({"data-dark-theme":e.darkTheme?`true`:`false`})},fixedHeight:{default:!1,parseHTML:e=>e.getAttribute(`data-fixed-height`)===`true`,renderHTML:e=>({"data-fixed-height":e.fixedHeight?`true`:`false`})}}},addNodeView(){return(0,n.VueNodeViewRenderer)(bf)}}),Cf=T.Extension.create({name:`quoteStyle`,addOptions(){return{defaultBorderColor:`#c084fc`,defaultBackgroundColor:`#fcf5ff`}},addGlobalAttributes(){return[{types:[`blockquote`],attributes:{quoteBorderColor:{default:this.options.defaultBorderColor,parseHTML:e=>e.getAttribute(`data-quote-border-color`)||this.options.defaultBorderColor,renderHTML:e=>{let t=e.quoteBorderColor||this.options.defaultBorderColor,n=e.quoteBackgroundColor||this.options.defaultBackgroundColor;return{"data-quote-border-color":t,"data-quote-background-color":n,style:`--norio-office-rich-quote-border-color:${t};--norio-office-rich-quote-background-color:${n};`}}},quoteBackgroundColor:{default:this.options.defaultBackgroundColor,parseHTML:e=>e.getAttribute(`data-quote-background-color`)||this.options.defaultBackgroundColor}}}]},addCommands(){return{setQuoteStyle:e=>({commands:t})=>t.updateAttributes(`blockquote`,{quoteBorderColor:e.quoteBorderColor??this.options.defaultBorderColor,quoteBackgroundColor:e.quoteBackgroundColor??this.options.defaultBackgroundColor}),resetQuoteStyle:()=>({commands:e})=>e.updateAttributes(`blockquote`,{quoteBorderColor:this.options.defaultBorderColor,quoteBackgroundColor:this.options.defaultBackgroundColor})}}}),wf=T.Extension.create({name:`textAlign`,addOptions(){return{types:[`paragraph`,`heading`],alignments:[`left`,`center`,`right`]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:null,parseHTML:e=>{let t=e.style.textAlign||e.getAttribute(`data-text-align`);return this.options.alignments.includes(t)?t:null},renderHTML:e=>!e.textAlign||e.textAlign===`left`?{}:{"data-text-align":e.textAlign,style:`text-align: ${e.textAlign};`}}}}]},addCommands(){let e=e=>({state:t,dispatch:n})=>{let{selection:r,doc:i}=t,a=t.tr,o=!1;if(i.nodesBetween(r.from,r.to,(t,n)=>{if(!this.options.types.includes(t.type.name))return;let r=e===`left`?null:e;return t.attrs.textAlign===r?!1:(a=a.setNodeMarkup(n,void 0,{...t.attrs,textAlign:r}),o=!0,!1)}),!o){let{$from:t}=r;for(let n=t.depth;n>0;--n){let r=t.node(n);if(this.options.types.includes(r.type.name)){a=a.setNodeMarkup(t.before(n),void 0,{...r.attrs,textAlign:e===`left`?null:e}),o=!0;break}}}return o?(n&&n(a),!0):!1};return{setTextAlign:t=>n=>e(t)(n),unsetTextAlign:()=>t=>e(null)(t)}}}),Tf=class extends i.TableView{constructor(e,t){super(e,t),this.updateTheme(e)}update(e){let t=this.node.attrs.tableTheme;return super.update(e)?(t!==e.attrs.tableTheme&&this.updateTheme(e),!0):!1}updateTheme(e){let t=gl(e.attrs.tableTheme);for(let e of[`data-table-theme`,`data-table-theme-header`,`data-table-theme-odd`,`data-table-theme-even`])t[e]?this.table.setAttribute(e,t[e]):this.table.removeAttribute(e);for(let e of[`header`,`header-text`,`odd`,`even`])this.table.style.removeProperty(`--norio-office-rich-table-${e}`);t.style&&(this.table.style.cssText+=t.style)}},Ef=i.Table.extend({addAttributes(){return{...this.parent?.(),tableTheme:{default:null,parseHTML:e=>ml({header:e.getAttribute(`data-table-theme-header`),odd:e.getAttribute(`data-table-theme-odd`),even:e.getAttribute(`data-table-theme-even`)}),renderHTML:e=>gl(e.tableTheme)}}}}).configure({View:Tf}),Df=`#dfe5ee`,Of=[{value:`solid`,label:`实线`},{value:`dashed`,label:`虚线`},{value:`dotted`,label:`点状线`}];function kf(e){return Of.find(t=>t.value===e)?.value??`solid`}function Af(e){return typeof e==`string`&&/^#[\da-f]{6}$/i.test(e)?e.toLowerCase():null}var jf=te.default.extend({addAttributes(){return{...this.parent?.(),lineStyle:{default:`solid`,parseHTML:e=>kf(e.getAttribute(`data-line-style`)||e.style.borderTopStyle),renderHTML:e=>{let t=kf(e.lineStyle);return{"data-line-style":t,style:`border-top-style: ${t}; border-top-width: ${t===`solid`?1:2}px;`}}},lineColor:{default:null,parseHTML:e=>Af(e.getAttribute(`data-line-color`)),renderHTML:e=>{let t=Af(e.lineColor);return t?{"data-line-color":t,style:`border-top-color: ${t};`}:{}}}}}}),Mf={class:`norio-office-rich-highlight-block__emoji`},Nf={key:1,class:`norio-office-rich-highlight-block__emoji-slot norio-office-rich-highlight-block__emoji-slot--readonly`},Pf={class:`norio-office-rich-highlight-block__emoji`},Ff=er((0,t.defineComponent)({__name:`HighlightBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.computed)(()=>r.node.attrs.emojiEnabled!==!1),c=(0,t.computed)(()=>String(r.node.attrs.emoji||`✍️`)),l=Al(r.editor),u=(0,t.computed)(()=>({borderColor:String(r.node.attrs.borderColor||`#f3c389`),background:String(r.node.attrs.backgroundColor||`#fff8ef`)})),d=(0,t.ref)(!1);function f(){if(i.value instanceof HTMLElement)return i.value;let e=i.value?.$el;return e instanceof HTMLElement?e:null}function p(){f()?.removeAttribute(`data-placeholder`)}function m(){if(!l.value||!s.value){d.value=!1;return}d.value=!d.value}function h(e){l.value&&(r.updateAttributes({emoji:e,emojiEnabled:!0}),d.value=!1)}function g(e){let t=e.target;t&&(a.value?.contains(t)||o.value?.contains(t)||(d.value=!1))}return(0,t.onMounted)(()=>{(0,t.nextTick)(p),document.addEventListener(`pointerdown`,g)}),(0,t.watch)(s,e=>{(!e||!l.value)&&(d.value=!1)}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`pointerdown`,g)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{ref_key:`wrapperRef`,ref:i,class:`norio-office-rich-highlight-block`,"data-emoji-enabled":s.value?`true`:`false`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-highlight-block__body`,onMousedown:r[2]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-highlight-block__surface`,style:(0,t.normalizeStyle)(u.value)},[s.value&&(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_key:`emojiTriggerRef`,ref:a,type:`button`,class:`norio-office-rich-highlight-block__emoji-slot`,title:`选择表情`,onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:(0,t.withModifiers)(m,[`stop`])},[(0,t.createElementVNode)(`span`,Mf,(0,t.toDisplayString)(c.value),1)],544)):s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Nf,[(0,t.createElementVNode)(`span`,Pf,(0,t.toDisplayString)(c.value),1)])):(0,t.createCommentVNode)(``,!0),d.value&&(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,ref_key:`emojiPickerRef`,ref:o,class:`norio-office-rich-highlight-block__emoji-picker`,onMousedown:r[1]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createVNode)(tr,{"selected-emoji":c.value,onSelect:h},null,8,[`selected-emoji`])],544)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(n.NodeViewContent),{class:`norio-office-rich-highlight-block__content`})],4)],32)]),_:1},8,[`data-emoji-enabled`]))}}),[[`__scopeId`,`data-v-6138e252`]]),If=`高亮块`,Lf=`✍️`,Rf=`#f3c389`,zf=`#fff8ef`,Bf=T.Node.create({name:`highlightBlock`,group:`block`,content:`block+`,defining:!0,isolating:!0,addAttributes(){return{titleEnabled:{default:!0,parseHTML:e=>e.getAttribute(`data-title-enabled`)!==`false`,renderHTML:e=>({"data-title-enabled":e.titleEnabled?`true`:`false`})},emojiEnabled:{default:!0,parseHTML:e=>e.getAttribute(`data-emoji-enabled`)!==`false`,renderHTML:e=>({"data-emoji-enabled":e.emojiEnabled?`true`:`false`})},title:{default:If,parseHTML:e=>e.getAttribute(`data-title`)||If,renderHTML:e=>({"data-title":e.title||If})},emoji:{default:Lf,parseHTML:e=>e.getAttribute(`data-emoji`)||Lf,renderHTML:e=>({"data-emoji":e.emoji||Lf})},borderColor:{default:Rf,parseHTML:e=>e.getAttribute(`data-border-color`)||Rf,renderHTML:e=>({"data-border-color":e.borderColor||Rf})},backgroundColor:{default:zf,parseHTML:e=>e.getAttribute(`data-background-color`)||zf,renderHTML:e=>({"data-background-color":e.backgroundColor||zf})}}},parseHTML(){return[{tag:`div[data-type="highlight-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,(0,T.mergeAttributes)(e,{"data-type":`highlight-block`}),0]},addNodeView(){return(0,n.VueNodeViewRenderer)(Ff)}});function Z(e,t,n){return(t=Hf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vf(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hf(e){var t=Vf(e,`string`);return typeof t==`symbol`?t:t+``}function Uf(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Wf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gf(e,t,n){return t&&Wf(e.prototype,t),n&&Wf(e,n),e}function Kf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qf(Object(n),!0).forEach(function(t){Kf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Yf={addCSS:!0,thumbWidth:15,watch:!0};function Xf(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function Zf(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}var Qf=function(e){return e==null?null:e.constructor},$f=function(e,t){return!!(e&&t&&e instanceof t)},ep=function(e){return e==null},tp=function(e){return Qf(e)===Object},np=function(e){return Qf(e)===Number&&!Number.isNaN(e)},rp=function(e){return Qf(e)===String},ip=function(e){return Qf(e)===Boolean},ap=function(e){return Qf(e)===Function},op=function(e){return Array.isArray(e)},sp=function(e){return $f(e,NodeList)},cp={nullOrUndefined:ep,object:tp,number:np,string:rp,boolean:ip,function:ap,array:op,nodeList:sp,element:function(e){return $f(e,Element)},event:function(e){return $f(e,Event)},empty:function(e){return ep(e)||(rp(e)||op(e)||sp(e))&&!e.length||tp(e)&&!Object.keys(e).length}};function lp(e){var t=`${e}`.match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function up(e,t){if(1>t){var n=lp(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var dp=function(){function e(t,n){Uf(this,e),cp.element(t)?this.element=t:cp.string(t)&&(this.element=document.querySelector(t)),cp.element(this.element)&&cp.empty(this.element.rangeTouch)&&(this.config=Jf({},Yf,{},n),this.init())}return Gf(e,[{key:`init`,value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect=`none`,this.element.style.webKitUserSelect=`none`,this.element.style.touchAction=`manipulation`),this.listeners(!0),this.element.rangeTouch=this)}},{key:`destroy`,value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect=``,this.element.style.webKitUserSelect=``,this.element.style.touchAction=``),this.listeners(!1),this.element.rangeTouch=null)}},{key:`listeners`,value:function(e){var t=this,n=e?`addEventListener`:`removeEventListener`;[`touchstart`,`touchmove`,`touchend`].forEach(function(e){t.element[n](e,function(e){return t.set(e)},!1)})}},{key:`get`,value:function(t){if(!e.enabled||!cp.event(t))return null;var n,r=t.target,i=t.changedTouches[0],a=parseFloat(r.getAttribute(`min`))||0,o=parseFloat(r.getAttribute(`max`))||100,s=parseFloat(r.getAttribute(`step`))||1,c=r.getBoundingClientRect(),l=100/c.width*(this.config.thumbWidth/2)/100;return 0>(n=100/c.width*(i.clientX-c.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*l:50<n&&(n+=2*(n-50)*l),a+up(n/100*(o-a),s)}},{key:`set`,value:function(t){e.enabled&&cp.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),Zf(t.target,t.type===`touchend`?`change`:`input`))}}],[{key:`setup`,value:function(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=null;if(cp.empty(t)||cp.string(t)?r=Array.from(document.querySelectorAll(cp.string(t)?t:`input[type="range"]`)):cp.element(t)?r=[t]:cp.nodeList(t)?r=Array.from(t):cp.array(t)&&(r=t.filter(cp.element)),cp.empty(r))return null;var i=Jf({},Yf,{},n);return cp.string(t)&&i.watch&&new MutationObserver(function(n){Array.from(n).forEach(function(n){Array.from(n.addedNodes).forEach(function(n){cp.element(n)&&Xf(n,t)&&new e(n,i)})})}).observe(document.body,{childList:!0,subtree:!0}),r.map(function(t){return new e(t,n)})}},{key:`enabled`,get:function(){return`ontouchstart`in document.documentElement}}]),e}(),fp=e=>e==null?null:e.constructor,pp=(e,t)=>!!(e&&t&&e instanceof t),mp=e=>e==null,hp=e=>fp(e)===Object,gp=e=>fp(e)===Number&&!Number.isNaN(e),_p=e=>fp(e)===String,vp=e=>fp(e)===Boolean,yp=e=>typeof e==`function`,bp=e=>Array.isArray(e),xp=e=>pp(e,WeakMap),Sp=e=>pp(e,NodeList),Cp=e=>fp(e)===Text,wp=e=>pp(e,Event),Tp=e=>pp(e,KeyboardEvent),Ep=e=>pp(e,window.TextTrackCue)||pp(e,window.VTTCue),Dp=e=>pp(e,TextTrack)||!mp(e)&&_p(e.kind),Op=e=>pp(e,Promise)&&yp(e.then);function kp(e){return typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.style==`object`&&typeof e.ownerDocument==`object`}function Ap(e){return mp(e)||(_p(e)||bp(e)||Sp(e))&&!e.length||hp(e)&&!Object.keys(e).length}function jp(e){if(pp(e,window.URL))return!0;if(!_p(e))return!1;let t=e;(!e.startsWith(`http://`)||!e.startsWith(`https://`))&&(t=`http://${e}`);try{return!Ap(new URL(t).hostname)}catch{return!1}}var Q={nullOrUndefined:mp,object:hp,number:gp,string:_p,boolean:vp,function:yp,array:bp,weakMap:xp,nodeList:Sp,element:kp,textNode:Cp,event:wp,keyboardEvent:Tp,cue:Ep,track:Dp,promise:Op,url:jp,empty:Ap},Mp=(()=>{let e=document.createElement(`span`),t={WebkitTransition:`webkitTransitionEnd`,MozTransition:`transitionend`,OTransition:`oTransitionEnd otransitionend`,transition:`transitionend`},n=Object.keys(t).find(t=>e.style[t]!==void 0);return Q.string(n)?t[n]:!1})();function Np(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},t)}function Pp(e){return JSON.parse(JSON.stringify(e))}function Fp(e,t){return t.split(`.`).reduce((e,t)=>e&&e[t],e)}function Ip(e={},...t){if(!t.length)return e;let n=t.shift();return Q.object(n)?(Object.keys(n).forEach(t=>{Q.object(n[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),Ip(e[t],n[t])):Object.assign(e,{[t]:n[t]})}),Ip(e,...t)):e}function Lp(e,t){let n=e.length?e:[e];Array.from(n).reverse().forEach((e,n)=>{let r=n>0?t.cloneNode(!0):t,i=e.parentNode,a=e.nextSibling;r.appendChild(e),a?i.insertBefore(r,a):i.appendChild(r)})}function Rp(e,t){!Q.element(e)||Q.empty(t)||Object.entries(t).filter(([,e])=>!Q.nullOrUndefined(e)).forEach(([t,n])=>e.setAttribute(t,n))}function zp(e,t,n){let r=document.createElement(e);return Q.object(t)&&Rp(r,t),Q.string(n)&&(r.textContent=n),r}function Bp(e,t){!Q.element(e)||!Q.element(t)||t.parentNode.insertBefore(e,t.nextSibling)}function Vp(e,t,n,r){Q.element(t)&&t.appendChild(zp(e,n,r))}function Hp(e){if(Q.nodeList(e)||Q.array(e)){Array.from(e).forEach(Hp);return}!Q.element(e)||!Q.element(e.parentNode)||e.parentNode.removeChild(e)}function Up(e){if(!Q.element(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),--t}function Wp(e,t){return!Q.element(t)||!Q.element(t.parentNode)||!Q.element(e)?null:(t.parentNode.replaceChild(e,t),e)}function Gp(e,t){if(!Q.string(e)||Q.empty(e))return{};let n={},r=Ip({},t);return e.split(`,`).forEach(e=>{let t=e.trim(),i=t.replace(`.`,``),a=t.replace(/[[\]]/g,``).split(`=`),[o]=a,s=a.length>1?a[1].replace(/["']/g,``):``;switch(t.charAt(0)){case`.`:Q.string(r.class)?n.class=`${r.class} ${i}`:n.class=i;break;case`#`:n.id=t.replace(`#`,``);break;case`[`:n[o]=s;break}}),Ip(r,n)}function Kp(e,t){if(!Q.element(e))return;let n=t;Q.boolean(n)||(n=!e.hidden),e.hidden=n}function qp(e,t,n){if(Q.nodeList(e))return Array.from(e).map(e=>qp(e,t,n));if(Q.element(e)){let r=`toggle`;return n!==void 0&&(r=n?`add`:`remove`),e.classList[r](t),e.classList.contains(t)}return!1}function Jp(e,t){return Q.element(e)&&e.classList.contains(t)}function Yp(e,t){let{prototype:n}=Element;function r(){return Array.from(document.querySelectorAll(t)).includes(this)}return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||r).call(e,t)}function Xp(e,t){let{prototype:n}=Element;function r(){let e=this;do{if(Yp.matches(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}return(n.closest||r).call(e,t)}function Zp(e){return this.elements.container.querySelectorAll(e)}function Qp(e){return this.elements.container.querySelector(e)}function $p(e=null,t=!1){Q.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}var em={"audio/ogg":`vorbis`,"audio/wav":`1`,"video/webm":`vp8, vorbis`,"video/mp4":`avc1.42E01E, mp4a.40.2`,"video/ogg":`theora`},tm={audio:`canPlayType`in document.createElement(`audio`),video:`canPlayType`in document.createElement(`video`),check(e,t){let n=tm[e]||t!==`html5`;return{api:n,ui:n&&tm.rangeInput}},pip:document.pictureInPictureEnabled&&!zp(`video`).disablePictureInPicture,airplay:Q.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:`playsInline`in document.createElement(`video`),mime(e){if(Q.empty(e))return!1;let[t]=e.split(`/`),n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(em).includes(n)&&(n+=`; codecs="${em[e]}"`);try{return!!(n&&this.media.canPlayType(n).replace(/no/,``))}catch{return!1}},textTracks:`textTracks`in document.createElement(`video`),rangeInput:(()=>{let e=document.createElement(`input`);return e.type=`range`,e.type===`range`})(),touch:`ontouchstart`in document.documentElement,transitions:Mp!==!1,reducedMotion:`matchMedia`in window&&window.matchMedia(`(prefers-reduced-motion)`).matches},nm=(()=>{let e=!1;try{let t=Object.defineProperty({},`passive`,{get(){return e=!0,null}});window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t)}catch{}return e})();function rm(e,t,n,r=!1,i=!0,a=!1){if(!e||!(`addEventListener`in e)||Q.empty(t)||!Q.function(n))return;let o=t.split(` `),s=a;nm&&(s={passive:i,capture:a}),o.forEach(t=>{this&&this.eventListeners&&r&&this.eventListeners.push({element:e,type:t,callback:n,options:s}),e[r?`addEventListener`:`removeEventListener`](t,n,s)})}function im(e,t=``,n,r=!0,i=!1){rm.call(this,e,t,n,!0,r,i)}function am(e,t=``,n,r=!0,i=!1){rm.call(this,e,t,n,!1,r,i)}function om(e,t=``,n,r=!0,i=!1){let a=(...o)=>{am(e,t,a,r,i),n.apply(this,o)};rm.call(this,e,t,a,!0,r,i)}function sm(e,t=``,n=!1,r={}){if(!Q.element(e)||Q.empty(t))return;let i=new CustomEvent(t,{bubbles:n,detail:{...r,plyr:this}});e.dispatchEvent(i)}function cm(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{let{element:t,type:n,callback:r,options:i}=e;t.removeEventListener(n,r,i)}),this.eventListeners=[])}function lm(){return new Promise(e=>this.ready?setTimeout(e,0):im.call(this,this.elements.container,`ready`,e)).then(()=>{})}function um(e){Q.promise(e)&&e.then(null,()=>{})}function dm(e){return Q.array(e)?e.filter((t,n)=>e.indexOf(t)===n):e}function fm(e,t){return!Q.array(e)||!e.length?null:e.reduce((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)}function pm(e){return!window||!window.CSS?!1:window.CSS.supports(e)}var mm=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[t,n])=>({...e,[t/n]:[t,n]}),{});function hm(e){return!Q.array(e)&&(!Q.string(e)||!e.includes(`:`))?!1:(Q.array(e)?e:e.split(`:`)).map(Number).every(Q.number)}function gm(e){if(!Q.array(e)||!e.every(Q.number))return null;let[t,n]=e,r=(e,t)=>t===0?e:r(t,e%t),i=r(t,n);return[t/i,n/i]}function _m(e){let t=e=>hm(e)?e.split(`:`).map(Number):null,n=t(e);if(n===null&&(n=t(this.config.ratio)),n===null&&!Q.empty(this.embed)&&Q.array(this.embed.ratio)&&({ratio:n}=this.embed),n===null&&this.isHTML5){let{videoWidth:e,videoHeight:t}=this.media;n=[e,t]}return gm(n)}function vm(e){if(!this.isVideo)return{};let{wrapper:t}=this.elements,n=_m.call(this,e);if(!Q.array(n))return{};let[r,i]=gm(n),a=pm(`aspect-ratio: ${r}/${i}`),o=100/r*i;if(a?t.style.aspectRatio=`${r}/${i}`:t.style.paddingBottom=`${o}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){let e=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(e-o)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:o,ratio:n}}function ym(e,t,n=.05){let r=e/t,i=fm(Object.keys(mm),r);return Math.abs(i-r)<=n?mm[i]:[e,t]}function bm(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}var xm={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll(`source`)).filter(e=>{let t=e.getAttribute(`type`);return Q.empty(t)?!0:tm.mime.call(this,t)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:xm.getSources.call(this).map(e=>Number(e.getAttribute(`size`))).filter(Boolean)},setup(){if(!this.isHTML5)return;let e=this;e.options.speed=e.config.speed.options,Q.empty(this.config.ratio)||vm.call(e),Object.defineProperty(e.media,`quality`,{get(){let t=xm.getSources.call(e).find(t=>t.getAttribute(`src`)===e.source);return t&&Number(t.getAttribute(`size`))},set(t){if(e.quality!==t){if(e.config.quality.forced&&Q.function(e.config.quality.onChange))e.config.quality.onChange(t);else{let n=xm.getSources.call(e).find(e=>Number(e.getAttribute(`size`))===t);if(!n)return;let{currentTime:r,paused:i,preload:a,readyState:o,playbackRate:s}=e.media;e.media.src=n.getAttribute(`src`),(a!==`none`||o)&&(e.once(`loadedmetadata`,()=>{e.speed=s,e.currentTime=r,i||um(e.play())}),e.media.load())}sm.call(e,e.media,`qualitychange`,!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(Hp(xm.getSources.call(this)),this.media.setAttribute(`src`,this.config.blankVideo),this.media.load(),this.debug.log(`Cancelled network requests`))}},Sm={isIE:!!window.document.documentMode,isEdge:/Edge/.test(navigator.userAgent),isWebKit:`WebkitAppearance`in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPadOS:navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function Cm(e){return`${e}-${Math.floor(Math.random()*1e4)}`}function wm(e,...t){return Q.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(e,n)=>t[n].toString())}function Tm(e,t){return e===0||t===0||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}function Em(e=``,t=``,n=``){return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,`\\$1`),`g`),n.toString())}function Dm(e=``){return e.toString().replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())}function Om(e=``){let t=e.toString();return t=Em(t,`-`,` `),t=Em(t,`_`,` `),t=Dm(t),Em(t,` `,``)}function km(e=``){let t=e.toString();return t=Om(t),t.charAt(0).toLowerCase()+t.slice(1)}function Am(e){let t=document.createDocumentFragment(),n=document.createElement(`div`);return t.appendChild(n),n.innerHTML=e,t.firstChild.textContent}function jm(e){let t=document.createElement(`div`);return t.appendChild(e),t.innerHTML}var Mm={pip:`PIP`,airplay:`AirPlay`,html5:`HTML5`,vimeo:`Vimeo`,youtube:`YouTube`},Nm={get(e=``,t={}){if(Q.empty(e)||Q.empty(t))return``;let n=Fp(t.i18n,e);if(Q.empty(n))return Object.keys(Mm).includes(e)?Mm[e]:``;let r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach(([e,t])=>{n=Em(n,e,t)}),n}},Pm=class e{constructor(t){Z(this,`get`,t=>{if(!e.supported||!this.enabled)return null;let n=window.localStorage.getItem(this.key);if(Q.empty(n))return null;let r=JSON.parse(n);return Q.string(t)&&t.length?r[t]:r}),Z(this,`set`,t=>{if(!e.supported||!this.enabled||!Q.object(t))return;let n=this.get();Q.empty(n)&&(n={}),Ip(n,t);try{window.localStorage.setItem(this.key,JSON.stringify(n))}catch{}}),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}static get supported(){try{if(!(`localStorage`in window))return!1;let e=`___test`;return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}};function Fm(e,t=`text`,n=!1){return new Promise((r,i)=>{try{let i=new XMLHttpRequest;if(!(`withCredentials`in i))return;n&&(i.withCredentials=!0),i.addEventListener(`load`,()=>{if(t===`text`)try{r(JSON.parse(i.responseText))}catch{r(i.responseText)}else r(i.response)}),i.addEventListener(`error`,()=>{throw Error(i.status)}),i.open(`GET`,e,!0),i.responseType=t,i.send()}catch(e){i(e)}})}function Im(e,t){if(!Q.string(e))return;let n=`cache`,r=Q.string(t),i=!1,a=()=>document.getElementById(t)!==null,o=(e,t)=>{e.innerHTML=t,!(r&&a())&&document.body.insertAdjacentElement(`afterbegin`,e)};if(!r||!a()){let a=Pm.supported,s=document.createElement(`div`);if(s.setAttribute(`hidden`,``),r&&s.setAttribute(`id`,t),a){let e=window.localStorage.getItem(`${n}-${t}`);i=e!==null,i&&o(s,JSON.parse(e).content)}Fm(e).then(e=>{if(!Q.empty(e)){if(a)try{window.localStorage.setItem(`${n}-${t}`,JSON.stringify({content:e}))}catch{}o(s,e)}}).catch(()=>{})}}var Lm=e=>Math.trunc(e/60/60%60,10),Rm=e=>Math.trunc(e/60%60,10),zm=e=>Math.trunc(e%60,10);function Bm(e=0,t=!1,n=!1){if(!Q.number(e))return Bm(void 0,t,n);let r=e=>`0${e}`.slice(-2),i=Lm(e),a=Rm(e),o=zm(e);return i=t||i>0?`${i}:`:``,`${n&&e>0?`-`:``}${i}${r(a)}:${r(o)}`}var $={getIconUrl(){let e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||Sm.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements(){try{return this.elements.controls=Qp.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Zp.call(this,this.config.selectors.buttons.play),pause:Qp.call(this,this.config.selectors.buttons.pause),restart:Qp.call(this,this.config.selectors.buttons.restart),rewind:Qp.call(this,this.config.selectors.buttons.rewind),fastForward:Qp.call(this,this.config.selectors.buttons.fastForward),mute:Qp.call(this,this.config.selectors.buttons.mute),pip:Qp.call(this,this.config.selectors.buttons.pip),airplay:Qp.call(this,this.config.selectors.buttons.airplay),settings:Qp.call(this,this.config.selectors.buttons.settings),captions:Qp.call(this,this.config.selectors.buttons.captions),fullscreen:Qp.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Qp.call(this,this.config.selectors.progress),this.elements.inputs={seek:Qp.call(this,this.config.selectors.inputs.seek),volume:Qp.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Qp.call(this,this.config.selectors.display.buffer),currentTime:Qp.call(this,this.config.selectors.display.currentTime),duration:Qp.call(this,this.config.selectors.display.duration)},Q.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn(`It looks like there is a problem with your custom controls HTML`,e),this.toggleNativeControls(!0),!1}},createIcon(e,t){let n=`http://www.w3.org/2000/svg`,r=$.getIconUrl.call(this),i=`${r.cors?``:r.url}#${this.config.iconPrefix}`,a=document.createElementNS(n,`svg`);Rp(a,Ip(t,{"aria-hidden":`true`,focusable:`false`}));let o=document.createElementNS(n,`use`),s=`${i}-${e}`;return`href`in o&&o.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,s),o.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,s),a.appendChild(o),a},createLabel(e,t={}){let n=Nm.get(e,this.config);return zp(`span`,{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(` `)},n)},createBadge(e){if(Q.empty(e))return null;let t=zp(`span`,{class:this.config.classNames.menu.value});return t.appendChild(zp(`span`,{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){let n=Ip({},t),r=km(e),i={element:`button`,toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch([`element`,`icon`,`label`].forEach(e=>{Object.keys(n).includes(e)&&(i[e]=n[e],delete n[e])}),i.element===`button`&&!Object.keys(n).includes(`type`)&&(n.type=`button`),Object.keys(n).includes(`class`)?n.class.split(` `).includes(this.config.classNames.control)||Ip(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,e){case`play`:i.toggle=!0,i.label=`play`,i.labelPressed=`pause`,i.icon=`play`,i.iconPressed=`pause`;break;case`mute`:i.toggle=!0,i.label=`mute`,i.labelPressed=`unmute`,i.icon=`volume`,i.iconPressed=`muted`;break;case`captions`:i.toggle=!0,i.label=`enableCaptions`,i.labelPressed=`disableCaptions`,i.icon=`captions-off`,i.iconPressed=`captions-on`;break;case`fullscreen`:i.toggle=!0,i.label=`enterFullscreen`,i.labelPressed=`exitFullscreen`,i.icon=`enter-fullscreen`,i.iconPressed=`exit-fullscreen`;break;case`play-large`:n.class+=` ${this.config.classNames.control}--overlaid`,r=`play`,i.label=`play`,i.icon=`play`;break;default:Q.empty(i.label)&&(i.label=r),Q.empty(i.icon)&&(i.icon=e)}let a=zp(i.element);return i.toggle?(a.appendChild($.createIcon.call(this,i.iconPressed,{class:`icon--pressed`})),a.appendChild($.createIcon.call(this,i.icon,{class:`icon--not-pressed`})),a.appendChild($.createLabel.call(this,i.labelPressed,{class:`label--pressed`})),a.appendChild($.createLabel.call(this,i.label,{class:`label--not-pressed`}))):(a.appendChild($.createIcon.call(this,i.icon)),a.appendChild($.createLabel.call(this,i.label))),Ip(n,Gp(this.config.selectors.buttons[r],n)),Rp(a,n),r===`play`?(Q.array(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(a)):this.elements.buttons[r]=a,a},createRange(e,t){let n=zp(`input`,Ip(Gp(this.config.selectors.inputs[e]),{type:`range`,min:0,max:100,step:.01,value:0,autocomplete:`off`,role:`slider`,"aria-label":Nm.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,$.updateRangeFill.call(this,n),dp.setup(n),n},createProgress(e,t){let n=zp(`progress`,Ip(Gp(this.config.selectors.display[e]),{min:0,max:100,value:0,role:`progressbar`,"aria-hidden":!0},t));if(e!==`volume`){n.appendChild(zp(`span`,null,`0`));let t={played:`played`,buffer:`buffered`}[e];n.textContent=`% ${(t?Nm.get(t,this.config):``).toLowerCase()}`}return this.elements.display[e]=n,n},createTime(e,t){let n=Gp(this.config.selectors.display[e],t),r=zp(`div`,Ip(n,{class:`${n.class?n.class:``} ${this.config.classNames.display.time} `.trim(),"aria-label":Nm.get(e,this.config),role:`timer`}),`00:00`);return this.elements.display[e]=r,r},bindMenuItemShortcuts(e,t){im.call(this,e,`keydown keyup`,n=>{if(![` `,`ArrowUp`,`ArrowDown`,`ArrowRight`].includes(n.key)||(n.preventDefault(),n.stopPropagation(),n.type===`keydown`))return;let r=Yp(e,`[role="menuitemradio"]`);if(!r&&[` `,`ArrowRight`].includes(n.key))$.showMenuPanel.call(this,t,!0);else{let t;n.key!==` `&&(n.key===`ArrowDown`||r&&n.key===`ArrowRight`?(t=e.nextElementSibling,Q.element(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,Q.element(t)||(t=e.parentNode.lastElementChild)),$p.call(this,t,!0))}},!1),im.call(this,e,`keyup`,e=>{e.key===`Return`&&$.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:t,type:n,title:r,badge:i=null,checked:a=!1}){let o=Gp(this.config.selectors.inputs[n]),s=zp(`button`,Ip(o,{type:`button`,role:`menuitemradio`,class:`${this.config.classNames.control} ${o.class?o.class:``}`.trim(),"aria-checked":a,value:e})),c=zp(`span`);c.innerHTML=r,Q.element(i)&&c.appendChild(i),s.appendChild(c),Object.defineProperty(s,`checked`,{enumerable:!0,get(){return s.getAttribute(`aria-checked`)===`true`},set(e){e&&Array.from(s.parentNode.children).filter(e=>Yp(e,`[role="menuitemradio"]`)).forEach(e=>e.setAttribute(`aria-checked`,`false`)),s.setAttribute(`aria-checked`,e?`true`:`false`)}}),this.listeners.bind(s,`click keyup`,t=>{if(!(Q.keyboardEvent(t)&&t.key!==` `)){switch(t.preventDefault(),t.stopPropagation(),s.checked=!0,n){case`language`:this.currentTrack=Number(e);break;case`quality`:this.quality=e;break;case`speed`:this.speed=Number.parseFloat(e);break}$.showMenuPanel.call(this,`home`,Q.keyboardEvent(t))}},n,!1),$.bindMenuItemShortcuts.call(this,s,n),t.appendChild(s)},formatTime(e=0,t=!1){return Q.number(e)?Bm(e,Lm(this.duration)>0,t):e},updateTimeDisplay(e=null,t=0,n=!1){!Q.element(e)||!Q.number(t)||(e.textContent=$.formatTime(t,n))},updateVolume(){this.supported.ui&&(Q.element(this.elements.inputs.volume)&&$.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Q.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,t=0){Q.element(e)&&(e.value=t,$.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!Q.event(e))return;let t=0,n=(e,t)=>{let n=Q.number(t)?t:0,r=Q.element(e)?e:this.elements.display.buffer;if(Q.element(r)){r.value=n;let e=r.getElementsByTagName(`span`)[0];Q.element(e)&&(e.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case`timeupdate`:case`seeking`:case`seeked`:t=Tm(this.currentTime,this.duration),e.type===`timeupdate`&&$.setRange.call(this,this.elements.inputs.seek,t);break;case`playing`:case`progress`:n(this.elements.display.buffer,this.buffered*100);break}},updateRangeFill(e){let t=Q.event(e)?e.target:e;if(!(!Q.element(t)||t.getAttribute(`type`)!==`range`)){if(Yp(t,this.config.selectors.inputs.seek)){t.setAttribute(`aria-valuenow`,this.currentTime);let e=$.formatTime(this.currentTime),n=$.formatTime(this.duration),r=Nm.get(`seekLabel`,this.config);t.setAttribute(`aria-valuetext`,r.replace(`{currentTime}`,e).replace(`{duration}`,n))}else if(Yp(t,this.config.selectors.inputs.volume)){let e=t.value*100;t.setAttribute(`aria-valuenow`,e),t.setAttribute(`aria-valuetext`,`${e.toFixed(1)}%`)}else t.setAttribute(`aria-valuenow`,t.value);!Sm.isWebKit&&!Sm.isIPadOS||t.style.setProperty(`--value`,`${t.value/t.max*100}%`)}},updateSeekTooltip(e){if(!this.config.tooltips.seek||!Q.element(this.elements.inputs.seek)||!Q.element(this.elements.display.seekTooltip)||this.duration===0)return;let t=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,r=e=>qp(t,n,e);if(this.touch){r(!1);return}let i=0,a=this.elements.progress.getBoundingClientRect();if(Q.event(e)){let t=e.pageX-e.clientX;i=100/a.width*(e.pageX-a.left-t)}else if(Jp(t,n))i=Number.parseFloat(t.style.left,10);else return;i<0?i=0:i>100&&(i=100);let o=this.duration/100*i;t.textContent=$.formatTime(o);let s=this.config.markers?.points?.find(({time:e})=>e===Math.round(o));s&&t.insertAdjacentHTML(`afterbegin`,`${s.label}<br>`),t.style.left=`${i}%`,Q.event(e)&&[`mouseenter`,`mouseleave`].includes(e.type)&&r(e.type===`mouseenter`)},timeUpdate(e){let t=!Q.element(this.elements.display.duration)&&this.config.invertTime;$.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),!(e&&e.type===`timeupdate`&&this.media.seeking)&&$.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){Kp(this.elements.display.currentTime,!0),Kp(this.elements.progress,!0);return}Q.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute(`aria-valuemax`,this.duration);let e=Q.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&$.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&$.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&$.setMarkers.call(this),$.updateSeekTooltip.call(this)},toggleMenuButton(e,t){Kp(this.elements.settings.buttons[e],!t)},updateSetting(e,t,n){let r=this.elements.settings.panels[e],i=null,a=t;if(e===`captions`)i=this.currentTrack;else{if(i=Q.empty(n)?this[e]:n,Q.empty(i)&&(i=this.config[e].default),!Q.empty(this.options[e])&&!this.options[e].includes(i)){this.debug.warn(`Unsupported value of '${i}' for ${e}`);return}if(!this.config[e].options.includes(i)){this.debug.warn(`Disabled value of '${i}' for ${e}`);return}}if(Q.element(a)||(a=r&&r.querySelector(`[role="menu"]`)),!Q.element(a))return;let o=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);o.innerHTML=$.getLabel.call(this,e,i);let s=a&&a.querySelector(`[value="${i}"]`);Q.element(s)&&(s.checked=!0)},getLabel(e,t){switch(e){case`speed`:return t===1?Nm.get(`normal`,this.config):`${t}×`;case`quality`:if(Q.number(t)){let e=Nm.get(`qualityLabel.${t}`,this.config);return e.length?e:`${t}p`}return Dm(t);case`captions`:return Um.getLabel.call(this);default:return null}},setQualityMenu(e){if(!Q.element(this.elements.settings.panels.quality))return;let t=`quality`,n=this.elements.settings.panels.quality.querySelector(`[role="menu"]`);Q.array(e)&&(this.options.quality=dm(e).filter(e=>this.config.quality.options.includes(e)));let r=!Q.empty(this.options.quality)&&this.options.quality.length>1;if($.toggleMenuButton.call(this,t,r),Up(n),$.checkMenu.call(this),!r)return;let i=e=>{let t=Nm.get(`qualityBadge.${e}`,this.config);return t.length?$.createBadge.call(this,t):null};this.options.quality.sort((e,t)=>{let n=this.config.quality.options;return n.indexOf(e)>n.indexOf(t)?1:-1}).forEach(e=>{$.createMenuItem.call(this,{value:e,list:n,type:t,title:$.getLabel.call(this,`quality`,e),badge:i(e)})}),$.updateSetting.call(this,t,n)},setCaptionsMenu(){if(!Q.element(this.elements.settings.panels.captions))return;let e=`captions`,t=this.elements.settings.panels.captions.querySelector(`[role="menu"]`),n=Um.getTracks.call(this),r=!!n.length;if($.toggleMenuButton.call(this,e,r),Up(t),$.checkMenu.call(this),!r)return;let i=n.map((e,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:Um.getLabel.call(this,e),badge:e.language&&$.createBadge.call(this,e.language.toUpperCase()),list:t,type:`language`}));i.unshift({value:-1,checked:!this.captions.toggled,title:Nm.get(`disabled`,this.config),list:t,type:`language`}),i.forEach($.createMenuItem.bind(this)),$.updateSetting.call(this,e,t)},setSpeedMenu(){if(!Q.element(this.elements.settings.panels.speed))return;let e=`speed`,t=this.elements.settings.panels.speed.querySelector(`[role="menu"]`);this.options.speed=this.options.speed.filter(e=>e>=this.minimumSpeed&&e<=this.maximumSpeed);let n=!Q.empty(this.options.speed)&&this.options.speed.length>1;$.toggleMenuButton.call(this,e,n),Up(t),$.checkMenu.call(this),n&&(this.options.speed.forEach(n=>{$.createMenuItem.call(this,{value:n,list:t,type:e,title:$.getLabel.call(this,`speed`,n)})}),$.updateSetting.call(this,e,t))},checkMenu(){let{buttons:e}=this.elements.settings,t=!Q.empty(e)&&Object.values(e).some(e=>!e.hidden);Kp(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let n=e;Q.element(n)||(n=Object.values(this.elements.settings.panels).find(e=>!e.hidden));let r=n.querySelector(`[role^="menuitem"]`);$p.call(this,r,t)},toggleMenu(e){let{popup:t}=this.elements.settings,n=this.elements.buttons.settings;if(!Q.element(t)||!Q.element(n))return;let{hidden:r}=t,i=r;if(Q.boolean(e))i=e;else if(Q.keyboardEvent(e)&&e.key===`Escape`)i=!1;else if(Q.event(e)){let r=Q.function(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(r);if(a||!a&&e.target!==n&&i)return}n.setAttribute(`aria-expanded`,i),Kp(t,!i),qp(this.elements.container,this.config.classNames.menu.open,i),i&&Q.keyboardEvent(e)?$.focusFirstMenuItem.call(this,null,!0):!i&&!r&&$p.call(this,n,Q.keyboardEvent(e))},getMenuSize(e){let t=e.cloneNode(!0);t.style.position=`absolute`,t.style.opacity=0,t.removeAttribute(`hidden`),e.parentNode.appendChild(t);let n=t.scrollWidth,r=t.scrollHeight;return Hp(t),{width:n,height:r}},showMenuPanel(e=``,t=!1){let n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!Q.element(n))return;let r=n.parentNode,i=Array.from(r.children).find(e=>!e.hidden);if(tm.transitions&&!tm.reducedMotion){r.style.width=`${i.scrollWidth}px`,r.style.height=`${i.scrollHeight}px`;let e=$.getMenuSize.call(this,n),t=e=>{e.target!==r||![`width`,`height`].includes(e.propertyName)||(r.style.width=``,r.style.height=``,am.call(this,r,Mp,t))};im.call(this,r,Mp,t),r.style.width=`${e.width}px`,r.style.height=`${e.height}px`}Kp(i,!0),Kp(n,!1),$.focusFirstMenuItem.call(this,n,t)},setDownloadUrl(){let e=this.elements.buttons.download;Q.element(e)&&e.setAttribute(`href`,this.download)},create(e){let{bindMenuItemShortcuts:t,createButton:n,createProgress:r,createRange:i,createTime:a,setQualityMenu:o,setSpeedMenu:s,showMenuPanel:c}=$;this.elements.controls=null,Q.array(this.config.controls)&&this.config.controls.includes(`play-large`)&&this.elements.container.appendChild(n.call(this,`play-large`));let l=zp(`div`,Gp(this.config.selectors.controls.wrapper));this.elements.controls=l;let u={class:`plyr__controls__item`};return dm(Q.array(this.config.controls)?this.config.controls:[]).forEach(o=>{if(o===`restart`&&l.appendChild(n.call(this,`restart`,u)),o===`rewind`&&l.appendChild(n.call(this,`rewind`,u)),o===`play`&&l.appendChild(n.call(this,`play`,u)),o===`fast-forward`&&l.appendChild(n.call(this,`fast-forward`,u)),o===`progress`){let t=zp(`div`,{class:`${u.class} plyr__progress__container`}),n=zp(`div`,Gp(this.config.selectors.progress));if(n.appendChild(i.call(this,`seek`,{id:`plyr-seek-${e.id}`})),n.appendChild(r.call(this,`buffer`)),this.config.tooltips.seek){let e=zp(`span`,{class:this.config.classNames.tooltip},`00:00`);n.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=n,t.appendChild(this.elements.progress),l.appendChild(t)}if(o===`current-time`&&l.appendChild(a.call(this,`currentTime`,u)),o===`duration`&&l.appendChild(a.call(this,`duration`,u)),o===`mute`||o===`volume`){let{volume:t}=this.elements;if((!Q.element(t)||!l.contains(t))&&(t=zp(`div`,Ip({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=t,l.appendChild(t)),o===`mute`&&t.appendChild(n.call(this,`mute`)),o===`volume`&&!Sm.isIos&&!Sm.isIPadOS){let n={max:1,step:.05,value:this.config.volume};t.appendChild(i.call(this,`volume`,Ip(n,{id:`plyr-volume-${e.id}`})))}}if(o===`captions`&&l.appendChild(n.call(this,`captions`,u)),o===`settings`&&!Q.empty(this.config.settings)){let r=zp(`div`,Ip({},u,{class:`${u.class} plyr__menu`.trim(),hidden:``}));r.appendChild(n.call(this,`settings`,{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));let i=zp(`div`,{class:`plyr__menu__container`,id:`plyr-settings-${e.id}`,hidden:``}),a=zp(`div`),o=zp(`div`,{id:`plyr-settings-${e.id}-home`}),s=zp(`div`,{role:`menu`});o.appendChild(s),a.appendChild(o),this.elements.settings.panels.home=o,this.config.settings.forEach(n=>{let r=zp(`button`,Ip(Gp(this.config.selectors.buttons.settings),{type:`button`,class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:`menuitem`,"aria-haspopup":!0,hidden:``}));t.call(this,r,n),im.call(this,r,`click`,()=>{c.call(this,n,!1)});let i=zp(`span`,null,Nm.get(n,this.config)),o=zp(`span`,{class:this.config.classNames.menu.value});o.innerHTML=e[n],i.appendChild(o),r.appendChild(i),s.appendChild(r);let l=zp(`div`,{id:`plyr-settings-${e.id}-${n}`,hidden:``}),u=zp(`button`,{type:`button`,class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(zp(`span`,{"aria-hidden":!0},Nm.get(n,this.config))),u.appendChild(zp(`span`,{class:this.config.classNames.hidden},Nm.get(`menuBack`,this.config))),im.call(this,l,`keydown`,e=>{e.key===`ArrowLeft`&&(e.preventDefault(),e.stopPropagation(),c.call(this,`home`,!0))},!1),im.call(this,u,`click`,()=>{c.call(this,`home`,!1)}),l.appendChild(u),l.appendChild(zp(`div`,{role:`menu`})),a.appendChild(l),this.elements.settings.buttons[n]=r,this.elements.settings.panels[n]=l}),i.appendChild(a),r.appendChild(i),l.appendChild(r),this.elements.settings.popup=i,this.elements.settings.menu=r}if(o===`pip`&&tm.pip&&l.appendChild(n.call(this,`pip`,u)),o===`airplay`&&tm.airplay&&l.appendChild(n.call(this,`airplay`,u)),o===`download`){let e=Ip({},u,{element:`a`,href:this.download,target:`_blank`});this.isHTML5&&(e.download=``);let{download:t}=this.config.urls;!Q.url(t)&&this.isEmbed&&Ip(e,{icon:`logo-${this.provider}`,label:this.provider}),l.appendChild(n.call(this,`download`,e))}o===`fullscreen`&&l.appendChild(n.call(this,`fullscreen`,u))}),this.isHTML5&&o.call(this,xm.getQualityOptions.call(this)),s.call(this),l},inject(){if(this.config.loadSprite){let e=$.getIconUrl.call(this);e.cors&&Im(e.url,`sprite-plyr`)}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;let t={id:this.id,seektime:this.config.seekTime,title:this.config.title},n=!0;Q.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),Q.element(this.config.controls)||Q.string(this.config.controls)?e=this.config.controls:(e=$.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Um.getLabel.call(this)}),n=!1),n&&Q.string(this.config.controls)&&(e=(e=>{let n=e;return Object.entries(t).forEach(([e,t])=>{n=Em(n,`{${e}}`,t)}),n})(e));let r;Q.string(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),Q.element(r)||(r=this.elements.container);let i=Q.element(e)?`insertAdjacentElement`:`insertAdjacentHTML`;if(r[i](`afterbegin`,e),Q.element(this.elements.controls)||$.findElements.call(this),!Q.empty(this.elements.buttons)){let e=e=>{let t=this.config.classNames.controlPressed;e.setAttribute(`aria-pressed`,`false`),Object.defineProperty(e,`pressed`,{configurable:!0,enumerable:!0,get(){return Jp(e,t)},set(n=!1){qp(e,t,n),e.setAttribute(`aria-pressed`,n?`true`:`false`)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(t=>{Q.array(t)||Q.nodeList(t)?Array.from(t).filter(Boolean).forEach(e):e(t)})}if(Sm.isEdge&&Np(r),this.config.tooltips.controls){let{classNames:e,selectors:t}=this.config,n=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,r=Zp.call(this,n);Array.from(r).forEach(e=>{qp(e,this.config.classNames.hidden,!1),qp(e,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{`mediaSession`in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){if(!this.duration||this.elements.markers)return;let e=this.config.markers?.points?.filter(({time:e})=>e>0&&e<this.duration);if(!(e!=null&&e.length))return;let t=document.createDocumentFragment(),n=document.createDocumentFragment(),r=null,i=`${this.config.classNames.tooltip}--visible`,a=e=>qp(r,i,e);e.forEach(e=>{let t=zp(`span`,{class:this.config.classNames.marker},``),i=`${e.time/this.duration*100}%`;r&&(t.addEventListener(`mouseenter`,()=>{e.label||(r.style.left=i,r.innerHTML=e.label,a(!0))}),t.addEventListener(`mouseleave`,()=>{a(!1)})),t.addEventListener(`click`,()=>{this.currentTime=e.time}),t.style.left=i,n.appendChild(t)}),t.appendChild(n),this.config.tooltips.seek||(r=zp(`span`,{class:this.config.classNames.tooltip},``),t.appendChild(r)),this.elements.markers={points:n,tip:r},this.elements.progress.appendChild(t)}};function Vm(e,t=!0){let n=e;if(t){let e=document.createElement(`a`);e.href=n,n=e.href}try{return new URL(n)}catch{return null}}function Hm(e){let t=new URLSearchParams;return Q.object(e)&&Object.entries(e).forEach(([e,n])=>{t.set(e,n)}),t}var Um={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!tm.textTracks){Q.array(this.config.controls)&&this.config.controls.includes(`settings`)&&this.config.settings.includes(`captions`)&&$.setCaptionsMenu.call(this);return}if(Q.element(this.elements.captions)||(this.elements.captions=zp(`div`,Gp(this.config.selectors.captions)),this.elements.captions.setAttribute(`dir`,`auto`),Bp(this.elements.captions,this.elements.wrapper)),Sm.isIE&&window.URL){let e=this.media.querySelectorAll(`track`);Array.from(e).forEach(e=>{let t=e.getAttribute(`src`),n=Vm(t);n!==null&&n.hostname!==window.location.href.hostname&&[`http:`,`https:`].includes(n.protocol)&&Fm(t,`blob`).then(t=>{e.setAttribute(`src`,window.URL.createObjectURL(t))}).catch(()=>{Hp(e)})})}let e=dm((navigator.languages||[navigator.language||navigator.userLanguage||`en`]).map(e=>e.split(`-`)[0])),t=(this.storage.get(`language`)||this.captions.language||this.config.captions.language||`auto`).toLowerCase();t===`auto`&&([t]=e);let n=this.storage.get(`captions`)||this.captions.active;if(Q.boolean(n)||({active:n}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:n,language:t,languages:e}),this.isHTML5){let e=this.config.captions.update?`addtrack removetrack`:`removetrack`;im.call(this,this.media.textTracks,e,Um.update.bind(this))}setTimeout(Um.update.bind(this),0)},update(){let e=Um.getTracks.call(this,!0),{active:t,language:n,meta:r,currentTrackNode:i}=this.captions,a=!!e.find(e=>e.language===n);this.isHTML5&&this.isVideo&&e.filter(e=>!r.get(e)).forEach(e=>{this.debug.log(`Track added`,e),r.set(e,{default:e.mode===`showing`}),e.mode===`showing`&&(e.mode=`hidden`),im.call(this,e,`cuechange`,()=>Um.updateCues.call(this))}),(a&&this.language!==n||!e.includes(i))&&(Um.setLanguage.call(this,n),Um.toggle.call(this,t&&a)),this.elements&&qp(this.elements.container,this.config.classNames.captions.enabled,!Q.empty(e)),Q.array(this.config.controls)&&this.config.controls.includes(`settings`)&&this.config.settings.includes(`captions`)&&$.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;let{toggled:n}=this.captions,r=this.config.classNames.captions.active,i=Q.nullOrUndefined(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){let e=Um.getTracks.call(this),t=Um.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=t.language,Um.set.call(this,e.indexOf(t));return}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),qp(this.elements.container,r,i),this.captions.toggled=i,$.updateSetting.call(this,`captions`),sm.call(this,this.media,i?`captionsenabled`:`captionsdisabled`)}setTimeout(()=>{i&&this.captions.toggled&&(this.captions.currentTrackNode.mode=`hidden`)})},set(e,t=!0){let n=Um.getTracks.call(this);if(e===-1){Um.toggle.call(this,!1,t);return}if(!Q.number(e)){this.debug.warn(`Invalid caption argument`,e);return}if(!(e in n)){this.debug.warn(`Track not found`,e);return}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;let r=n[e],{language:i}=r||{};this.captions.currentTrackNode=r,$.updateSetting.call(this,`captions`),t||(this.captions.language=i,this.storage.set({language:i})),this.isVimeo&&this.embed.enableTextTrack(i,null,!1),sm.call(this,this.media,`languagechange`)}Um.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Um.updateCues.call(this)},setLanguage(e,t=!0){if(!Q.string(e)){this.debug.warn(`Invalid language argument`,e);return}let n=e.toLowerCase();this.captions.language=n;let r=Um.getTracks.call(this),i=Um.findTrack.call(this,[n]);Um.set.call(this,r.indexOf(i),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(t=>!this.isHTML5||e||this.captions.meta.has(t)).filter(e=>[`captions`,`subtitles`].includes(e.kind))},findTrack(e,t=!1){let n=Um.getTracks.call(this),r=e=>Number((this.captions.meta.get(e)||{}).default),i=Array.from(n).sort((e,t)=>r(t)-r(e)),a;return e.every(e=>(a=i.find(t=>t.language===e),!a)),a||(t?i[0]:void 0)},getCurrentTrack(){return Um.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!Q.track(t)&&tm.textTracks&&this.captions.toggled&&(t=Um.getCurrentTrack.call(this)),Q.track(t)?Q.empty(t.label)?Q.empty(t.language)?Nm.get(`enabled`,this.config):e.language.toUpperCase():t.label:Nm.get(`disabled`,this.config)},updateCues(e){if(!this.supported.ui)return;if(!Q.element(this.elements.captions)){this.debug.warn(`No captions element to render to`);return}if(!Q.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn(`updateCues: Invalid input`,e);return}let t=e;if(!t){let e=Um.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map(e=>e.getCueAsHTML()).map(jm)}let n=t.map(e=>e.trim()).join(`
|
|
7746
|
+
`,-1)])],32)]),_:1},8,[`data-wrap-lines`,`data-dark-theme`,`data-fixed-height`]))}}),xf=(0,ee.createLowlight)(ee.common),Sf=E.default.configure({lowlight:xf}).extend({addAttributes(){return{...this.parent?.(),language:{default:`plain_text`,parseHTML:e=>e.getAttribute(`data-language`)||`plain_text`,renderHTML:e=>{let t=e.language||`plain_text`;return t===`plain_text`?{"data-language":t}:{"data-language":t,class:`language-${t}`}}},wrapLines:{default:!1,parseHTML:e=>e.getAttribute(`data-wrap-lines`)===`true`,renderHTML:e=>({"data-wrap-lines":e.wrapLines?`true`:`false`})},darkTheme:{default:!1,parseHTML:e=>e.getAttribute(`data-dark-theme`)===`true`,renderHTML:e=>({"data-dark-theme":e.darkTheme?`true`:`false`})},fixedHeight:{default:!1,parseHTML:e=>e.getAttribute(`data-fixed-height`)===`true`,renderHTML:e=>({"data-fixed-height":e.fixedHeight?`true`:`false`})}}},addNodeView(){return(0,n.VueNodeViewRenderer)(bf)}}),Cf=T.Extension.create({name:`quoteStyle`,addOptions(){return{defaultBorderColor:`#c084fc`,defaultBackgroundColor:`#fcf5ff`}},addGlobalAttributes(){return[{types:[`blockquote`],attributes:{quoteBorderColor:{default:this.options.defaultBorderColor,parseHTML:e=>e.getAttribute(`data-quote-border-color`)||this.options.defaultBorderColor,renderHTML:e=>{let t=e.quoteBorderColor||this.options.defaultBorderColor,n=e.quoteBackgroundColor||this.options.defaultBackgroundColor;return{"data-quote-border-color":t,"data-quote-background-color":n,style:`--norio-office-rich-quote-border-color:${t};--norio-office-rich-quote-background-color:${n};`}}},quoteBackgroundColor:{default:this.options.defaultBackgroundColor,parseHTML:e=>e.getAttribute(`data-quote-background-color`)||this.options.defaultBackgroundColor}}}]},addCommands(){return{setQuoteStyle:e=>({commands:t})=>t.updateAttributes(`blockquote`,{quoteBorderColor:e.quoteBorderColor??this.options.defaultBorderColor,quoteBackgroundColor:e.quoteBackgroundColor??this.options.defaultBackgroundColor}),resetQuoteStyle:()=>({commands:e})=>e.updateAttributes(`blockquote`,{quoteBorderColor:this.options.defaultBorderColor,quoteBackgroundColor:this.options.defaultBackgroundColor})}}}),wf=T.Extension.create({name:`textAlign`,addOptions(){return{types:[`paragraph`,`heading`],alignments:[`left`,`center`,`right`]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:null,parseHTML:e=>{let t=e.style.textAlign||e.getAttribute(`data-text-align`);return this.options.alignments.includes(t)?t:null},renderHTML:e=>!e.textAlign||e.textAlign===`left`?{}:{"data-text-align":e.textAlign,style:`text-align: ${e.textAlign};`}}}}]},addCommands(){let e=e=>({state:t,dispatch:n})=>{let{selection:r,doc:i}=t,a=t.tr,o=!1;for(let{$from:t,$to:n}of r.ranges)i.nodesBetween(t.pos,n.pos,(t,n)=>{if(!this.options.types.includes(t.type.name))return;let r=e===`left`?null:e;return t.attrs.textAlign===r?!1:(a=a.setNodeMarkup(n,void 0,{...t.attrs,textAlign:r}),o=!0,!1)});if(!o){let{$from:t}=r;for(let n=t.depth;n>0;--n){let r=t.node(n);if(this.options.types.includes(r.type.name)){a=a.setNodeMarkup(t.before(n),void 0,{...r.attrs,textAlign:e===`left`?null:e}),o=!0;break}}}return o?(n&&n(a),!0):!1};return{setTextAlign:t=>n=>e(t)(n),unsetTextAlign:()=>t=>e(null)(t)}}}),Tf=class extends i.TableView{constructor(e,t){super(e,t),this.updateTheme(e)}update(e){let t=this.node.attrs.tableTheme;return super.update(e)?(t!==e.attrs.tableTheme&&this.updateTheme(e),!0):!1}updateTheme(e){let t=gl(e.attrs.tableTheme);for(let e of[`data-table-theme`,`data-table-theme-header`,`data-table-theme-odd`,`data-table-theme-even`])t[e]?this.table.setAttribute(e,t[e]):this.table.removeAttribute(e);for(let e of[`header`,`header-text`,`odd`,`even`])this.table.style.removeProperty(`--norio-office-rich-table-${e}`);t.style&&(this.table.style.cssText+=t.style)}},Ef=i.Table.extend({addAttributes(){return{...this.parent?.(),tableTheme:{default:null,parseHTML:e=>ml({header:e.getAttribute(`data-table-theme-header`),odd:e.getAttribute(`data-table-theme-odd`),even:e.getAttribute(`data-table-theme-even`)}),renderHTML:e=>gl(e.tableTheme)}}}}).configure({View:Tf}),Df=`#dfe5ee`,Of=[{value:`solid`,label:`实线`},{value:`dashed`,label:`虚线`},{value:`dotted`,label:`点状线`}];function kf(e){return Of.find(t=>t.value===e)?.value??`solid`}function Af(e){return typeof e==`string`&&/^#[\da-f]{6}$/i.test(e)?e.toLowerCase():null}var jf=te.default.extend({addAttributes(){return{...this.parent?.(),lineStyle:{default:`solid`,parseHTML:e=>kf(e.getAttribute(`data-line-style`)||e.style.borderTopStyle),renderHTML:e=>{let t=kf(e.lineStyle);return{"data-line-style":t,style:`border-top-style: ${t}; border-top-width: ${t===`solid`?1:2}px;`}}},lineColor:{default:null,parseHTML:e=>Af(e.getAttribute(`data-line-color`)),renderHTML:e=>{let t=Af(e.lineColor);return t?{"data-line-color":t,style:`border-top-color: ${t};`}:{}}}}}}),Mf={class:`norio-office-rich-highlight-block__emoji`},Nf={key:1,class:`norio-office-rich-highlight-block__emoji-slot norio-office-rich-highlight-block__emoji-slot--readonly`},Pf={class:`norio-office-rich-highlight-block__emoji`},Ff=er((0,t.defineComponent)({__name:`HighlightBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.computed)(()=>r.node.attrs.emojiEnabled!==!1),c=(0,t.computed)(()=>String(r.node.attrs.emoji||`✍️`)),l=Al(r.editor),u=(0,t.computed)(()=>({borderColor:String(r.node.attrs.borderColor||`#f3c389`),background:String(r.node.attrs.backgroundColor||`#fff8ef`)})),d=(0,t.ref)(!1);function f(){if(i.value instanceof HTMLElement)return i.value;let e=i.value?.$el;return e instanceof HTMLElement?e:null}function p(){f()?.removeAttribute(`data-placeholder`)}function m(){if(!l.value||!s.value){d.value=!1;return}d.value=!d.value}function h(e){l.value&&(r.updateAttributes({emoji:e,emojiEnabled:!0}),d.value=!1)}function g(e){let t=e.target;t&&(a.value?.contains(t)||o.value?.contains(t)||(d.value=!1))}return(0,t.onMounted)(()=>{(0,t.nextTick)(p),document.addEventListener(`pointerdown`,g)}),(0,t.watch)(s,e=>{(!e||!l.value)&&(d.value=!1)}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`pointerdown`,g)}),(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{ref_key:`wrapperRef`,ref:i,class:`norio-office-rich-highlight-block`,"data-emoji-enabled":s.value?`true`:`false`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-highlight-block__body`,onMousedown:r[2]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-highlight-block__surface`,style:(0,t.normalizeStyle)(u.value)},[s.value&&(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_key:`emojiTriggerRef`,ref:a,type:`button`,class:`norio-office-rich-highlight-block__emoji-slot`,title:`选择表情`,onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:(0,t.withModifiers)(m,[`stop`])},[(0,t.createElementVNode)(`span`,Mf,(0,t.toDisplayString)(c.value),1)],544)):s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Nf,[(0,t.createElementVNode)(`span`,Pf,(0,t.toDisplayString)(c.value),1)])):(0,t.createCommentVNode)(``,!0),d.value&&(0,t.unref)(l)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,ref_key:`emojiPickerRef`,ref:o,class:`norio-office-rich-highlight-block__emoji-picker`,onMousedown:r[1]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createVNode)(tr,{"selected-emoji":c.value,onSelect:h},null,8,[`selected-emoji`])],544)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)((0,t.unref)(n.NodeViewContent),{class:`norio-office-rich-highlight-block__content`})],4)],32)]),_:1},8,[`data-emoji-enabled`]))}}),[[`__scopeId`,`data-v-6138e252`]]),If=`高亮块`,Lf=`✍️`,Rf=`#f3c389`,zf=`#fff8ef`,Bf=T.Node.create({name:`highlightBlock`,group:`block`,content:`block+`,defining:!0,isolating:!0,addAttributes(){return{titleEnabled:{default:!0,parseHTML:e=>e.getAttribute(`data-title-enabled`)!==`false`,renderHTML:e=>({"data-title-enabled":e.titleEnabled?`true`:`false`})},emojiEnabled:{default:!0,parseHTML:e=>e.getAttribute(`data-emoji-enabled`)!==`false`,renderHTML:e=>({"data-emoji-enabled":e.emojiEnabled?`true`:`false`})},title:{default:If,parseHTML:e=>e.getAttribute(`data-title`)||If,renderHTML:e=>({"data-title":e.title||If})},emoji:{default:Lf,parseHTML:e=>e.getAttribute(`data-emoji`)||Lf,renderHTML:e=>({"data-emoji":e.emoji||Lf})},borderColor:{default:Rf,parseHTML:e=>e.getAttribute(`data-border-color`)||Rf,renderHTML:e=>({"data-border-color":e.borderColor||Rf})},backgroundColor:{default:zf,parseHTML:e=>e.getAttribute(`data-background-color`)||zf,renderHTML:e=>({"data-background-color":e.backgroundColor||zf})}}},parseHTML(){return[{tag:`div[data-type="highlight-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,(0,T.mergeAttributes)(e,{"data-type":`highlight-block`}),0]},addNodeView(){return(0,n.VueNodeViewRenderer)(Ff)}});function Z(e,t,n){return(t=Hf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vf(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hf(e){var t=Vf(e,`string`);return typeof t==`symbol`?t:t+``}function Uf(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Wf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gf(e,t,n){return t&&Wf(e.prototype,t),n&&Wf(e,n),e}function Kf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qf(Object(n),!0).forEach(function(t){Kf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Yf={addCSS:!0,thumbWidth:15,watch:!0};function Xf(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function Zf(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}var Qf=function(e){return e==null?null:e.constructor},$f=function(e,t){return!!(e&&t&&e instanceof t)},ep=function(e){return e==null},tp=function(e){return Qf(e)===Object},np=function(e){return Qf(e)===Number&&!Number.isNaN(e)},rp=function(e){return Qf(e)===String},ip=function(e){return Qf(e)===Boolean},ap=function(e){return Qf(e)===Function},op=function(e){return Array.isArray(e)},sp=function(e){return $f(e,NodeList)},cp={nullOrUndefined:ep,object:tp,number:np,string:rp,boolean:ip,function:ap,array:op,nodeList:sp,element:function(e){return $f(e,Element)},event:function(e){return $f(e,Event)},empty:function(e){return ep(e)||(rp(e)||op(e)||sp(e))&&!e.length||tp(e)&&!Object.keys(e).length}};function lp(e){var t=`${e}`.match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function up(e,t){if(1>t){var n=lp(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var dp=function(){function e(t,n){Uf(this,e),cp.element(t)?this.element=t:cp.string(t)&&(this.element=document.querySelector(t)),cp.element(this.element)&&cp.empty(this.element.rangeTouch)&&(this.config=Jf({},Yf,{},n),this.init())}return Gf(e,[{key:`init`,value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect=`none`,this.element.style.webKitUserSelect=`none`,this.element.style.touchAction=`manipulation`),this.listeners(!0),this.element.rangeTouch=this)}},{key:`destroy`,value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect=``,this.element.style.webKitUserSelect=``,this.element.style.touchAction=``),this.listeners(!1),this.element.rangeTouch=null)}},{key:`listeners`,value:function(e){var t=this,n=e?`addEventListener`:`removeEventListener`;[`touchstart`,`touchmove`,`touchend`].forEach(function(e){t.element[n](e,function(e){return t.set(e)},!1)})}},{key:`get`,value:function(t){if(!e.enabled||!cp.event(t))return null;var n,r=t.target,i=t.changedTouches[0],a=parseFloat(r.getAttribute(`min`))||0,o=parseFloat(r.getAttribute(`max`))||100,s=parseFloat(r.getAttribute(`step`))||1,c=r.getBoundingClientRect(),l=100/c.width*(this.config.thumbWidth/2)/100;return 0>(n=100/c.width*(i.clientX-c.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*l:50<n&&(n+=2*(n-50)*l),a+up(n/100*(o-a),s)}},{key:`set`,value:function(t){e.enabled&&cp.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),Zf(t.target,t.type===`touchend`?`change`:`input`))}}],[{key:`setup`,value:function(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=null;if(cp.empty(t)||cp.string(t)?r=Array.from(document.querySelectorAll(cp.string(t)?t:`input[type="range"]`)):cp.element(t)?r=[t]:cp.nodeList(t)?r=Array.from(t):cp.array(t)&&(r=t.filter(cp.element)),cp.empty(r))return null;var i=Jf({},Yf,{},n);return cp.string(t)&&i.watch&&new MutationObserver(function(n){Array.from(n).forEach(function(n){Array.from(n.addedNodes).forEach(function(n){cp.element(n)&&Xf(n,t)&&new e(n,i)})})}).observe(document.body,{childList:!0,subtree:!0}),r.map(function(t){return new e(t,n)})}},{key:`enabled`,get:function(){return`ontouchstart`in document.documentElement}}]),e}(),fp=e=>e==null?null:e.constructor,pp=(e,t)=>!!(e&&t&&e instanceof t),mp=e=>e==null,hp=e=>fp(e)===Object,gp=e=>fp(e)===Number&&!Number.isNaN(e),_p=e=>fp(e)===String,vp=e=>fp(e)===Boolean,yp=e=>typeof e==`function`,bp=e=>Array.isArray(e),xp=e=>pp(e,WeakMap),Sp=e=>pp(e,NodeList),Cp=e=>fp(e)===Text,wp=e=>pp(e,Event),Tp=e=>pp(e,KeyboardEvent),Ep=e=>pp(e,window.TextTrackCue)||pp(e,window.VTTCue),Dp=e=>pp(e,TextTrack)||!mp(e)&&_p(e.kind),Op=e=>pp(e,Promise)&&yp(e.then);function kp(e){return typeof e==`object`&&!!e&&e.nodeType===1&&typeof e.style==`object`&&typeof e.ownerDocument==`object`}function Ap(e){return mp(e)||(_p(e)||bp(e)||Sp(e))&&!e.length||hp(e)&&!Object.keys(e).length}function jp(e){if(pp(e,window.URL))return!0;if(!_p(e))return!1;let t=e;(!e.startsWith(`http://`)||!e.startsWith(`https://`))&&(t=`http://${e}`);try{return!Ap(new URL(t).hostname)}catch{return!1}}var Q={nullOrUndefined:mp,object:hp,number:gp,string:_p,boolean:vp,function:yp,array:bp,weakMap:xp,nodeList:Sp,element:kp,textNode:Cp,event:wp,keyboardEvent:Tp,cue:Ep,track:Dp,promise:Op,url:jp,empty:Ap},Mp=(()=>{let e=document.createElement(`span`),t={WebkitTransition:`webkitTransitionEnd`,MozTransition:`transitionend`,OTransition:`oTransitionEnd otransitionend`,transition:`transitionend`},n=Object.keys(t).find(t=>e.style[t]!==void 0);return Q.string(n)?t[n]:!1})();function Np(e,t){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},t)}function Pp(e){return JSON.parse(JSON.stringify(e))}function Fp(e,t){return t.split(`.`).reduce((e,t)=>e&&e[t],e)}function Ip(e={},...t){if(!t.length)return e;let n=t.shift();return Q.object(n)?(Object.keys(n).forEach(t=>{Q.object(n[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),Ip(e[t],n[t])):Object.assign(e,{[t]:n[t]})}),Ip(e,...t)):e}function Lp(e,t){let n=e.length?e:[e];Array.from(n).reverse().forEach((e,n)=>{let r=n>0?t.cloneNode(!0):t,i=e.parentNode,a=e.nextSibling;r.appendChild(e),a?i.insertBefore(r,a):i.appendChild(r)})}function Rp(e,t){!Q.element(e)||Q.empty(t)||Object.entries(t).filter(([,e])=>!Q.nullOrUndefined(e)).forEach(([t,n])=>e.setAttribute(t,n))}function zp(e,t,n){let r=document.createElement(e);return Q.object(t)&&Rp(r,t),Q.string(n)&&(r.textContent=n),r}function Bp(e,t){!Q.element(e)||!Q.element(t)||t.parentNode.insertBefore(e,t.nextSibling)}function Vp(e,t,n,r){Q.element(t)&&t.appendChild(zp(e,n,r))}function Hp(e){if(Q.nodeList(e)||Q.array(e)){Array.from(e).forEach(Hp);return}!Q.element(e)||!Q.element(e.parentNode)||e.parentNode.removeChild(e)}function Up(e){if(!Q.element(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),--t}function Wp(e,t){return!Q.element(t)||!Q.element(t.parentNode)||!Q.element(e)?null:(t.parentNode.replaceChild(e,t),e)}function Gp(e,t){if(!Q.string(e)||Q.empty(e))return{};let n={},r=Ip({},t);return e.split(`,`).forEach(e=>{let t=e.trim(),i=t.replace(`.`,``),a=t.replace(/[[\]]/g,``).split(`=`),[o]=a,s=a.length>1?a[1].replace(/["']/g,``):``;switch(t.charAt(0)){case`.`:Q.string(r.class)?n.class=`${r.class} ${i}`:n.class=i;break;case`#`:n.id=t.replace(`#`,``);break;case`[`:n[o]=s;break}}),Ip(r,n)}function Kp(e,t){if(!Q.element(e))return;let n=t;Q.boolean(n)||(n=!e.hidden),e.hidden=n}function qp(e,t,n){if(Q.nodeList(e))return Array.from(e).map(e=>qp(e,t,n));if(Q.element(e)){let r=`toggle`;return n!==void 0&&(r=n?`add`:`remove`),e.classList[r](t),e.classList.contains(t)}return!1}function Jp(e,t){return Q.element(e)&&e.classList.contains(t)}function Yp(e,t){let{prototype:n}=Element;function r(){return Array.from(document.querySelectorAll(t)).includes(this)}return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||r).call(e,t)}function Xp(e,t){let{prototype:n}=Element;function r(){let e=this;do{if(Yp.matches(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}return(n.closest||r).call(e,t)}function Zp(e){return this.elements.container.querySelectorAll(e)}function Qp(e){return this.elements.container.querySelector(e)}function $p(e=null,t=!1){Q.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}var em={"audio/ogg":`vorbis`,"audio/wav":`1`,"video/webm":`vp8, vorbis`,"video/mp4":`avc1.42E01E, mp4a.40.2`,"video/ogg":`theora`},tm={audio:`canPlayType`in document.createElement(`audio`),video:`canPlayType`in document.createElement(`video`),check(e,t){let n=tm[e]||t!==`html5`;return{api:n,ui:n&&tm.rangeInput}},pip:document.pictureInPictureEnabled&&!zp(`video`).disablePictureInPicture,airplay:Q.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:`playsInline`in document.createElement(`video`),mime(e){if(Q.empty(e))return!1;let[t]=e.split(`/`),n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(em).includes(n)&&(n+=`; codecs="${em[e]}"`);try{return!!(n&&this.media.canPlayType(n).replace(/no/,``))}catch{return!1}},textTracks:`textTracks`in document.createElement(`video`),rangeInput:(()=>{let e=document.createElement(`input`);return e.type=`range`,e.type===`range`})(),touch:`ontouchstart`in document.documentElement,transitions:Mp!==!1,reducedMotion:`matchMedia`in window&&window.matchMedia(`(prefers-reduced-motion)`).matches},nm=(()=>{let e=!1;try{let t=Object.defineProperty({},`passive`,{get(){return e=!0,null}});window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t)}catch{}return e})();function rm(e,t,n,r=!1,i=!0,a=!1){if(!e||!(`addEventListener`in e)||Q.empty(t)||!Q.function(n))return;let o=t.split(` `),s=a;nm&&(s={passive:i,capture:a}),o.forEach(t=>{this&&this.eventListeners&&r&&this.eventListeners.push({element:e,type:t,callback:n,options:s}),e[r?`addEventListener`:`removeEventListener`](t,n,s)})}function im(e,t=``,n,r=!0,i=!1){rm.call(this,e,t,n,!0,r,i)}function am(e,t=``,n,r=!0,i=!1){rm.call(this,e,t,n,!1,r,i)}function om(e,t=``,n,r=!0,i=!1){let a=(...o)=>{am(e,t,a,r,i),n.apply(this,o)};rm.call(this,e,t,a,!0,r,i)}function sm(e,t=``,n=!1,r={}){if(!Q.element(e)||Q.empty(t))return;let i=new CustomEvent(t,{bubbles:n,detail:{...r,plyr:this}});e.dispatchEvent(i)}function cm(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{let{element:t,type:n,callback:r,options:i}=e;t.removeEventListener(n,r,i)}),this.eventListeners=[])}function lm(){return new Promise(e=>this.ready?setTimeout(e,0):im.call(this,this.elements.container,`ready`,e)).then(()=>{})}function um(e){Q.promise(e)&&e.then(null,()=>{})}function dm(e){return Q.array(e)?e.filter((t,n)=>e.indexOf(t)===n):e}function fm(e,t){return!Q.array(e)||!e.length?null:e.reduce((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)}function pm(e){return!window||!window.CSS?!1:window.CSS.supports(e)}var mm=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[t,n])=>({...e,[t/n]:[t,n]}),{});function hm(e){return!Q.array(e)&&(!Q.string(e)||!e.includes(`:`))?!1:(Q.array(e)?e:e.split(`:`)).map(Number).every(Q.number)}function gm(e){if(!Q.array(e)||!e.every(Q.number))return null;let[t,n]=e,r=(e,t)=>t===0?e:r(t,e%t),i=r(t,n);return[t/i,n/i]}function _m(e){let t=e=>hm(e)?e.split(`:`).map(Number):null,n=t(e);if(n===null&&(n=t(this.config.ratio)),n===null&&!Q.empty(this.embed)&&Q.array(this.embed.ratio)&&({ratio:n}=this.embed),n===null&&this.isHTML5){let{videoWidth:e,videoHeight:t}=this.media;n=[e,t]}return gm(n)}function vm(e){if(!this.isVideo)return{};let{wrapper:t}=this.elements,n=_m.call(this,e);if(!Q.array(n))return{};let[r,i]=gm(n),a=pm(`aspect-ratio: ${r}/${i}`),o=100/r*i;if(a?t.style.aspectRatio=`${r}/${i}`:t.style.paddingBottom=`${o}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){let e=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(e-o)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:o,ratio:n}}function ym(e,t,n=.05){let r=e/t,i=fm(Object.keys(mm),r);return Math.abs(i-r)<=n?mm[i]:[e,t]}function bm(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}var xm={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll(`source`)).filter(e=>{let t=e.getAttribute(`type`);return Q.empty(t)?!0:tm.mime.call(this,t)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:xm.getSources.call(this).map(e=>Number(e.getAttribute(`size`))).filter(Boolean)},setup(){if(!this.isHTML5)return;let e=this;e.options.speed=e.config.speed.options,Q.empty(this.config.ratio)||vm.call(e),Object.defineProperty(e.media,`quality`,{get(){let t=xm.getSources.call(e).find(t=>t.getAttribute(`src`)===e.source);return t&&Number(t.getAttribute(`size`))},set(t){if(e.quality!==t){if(e.config.quality.forced&&Q.function(e.config.quality.onChange))e.config.quality.onChange(t);else{let n=xm.getSources.call(e).find(e=>Number(e.getAttribute(`size`))===t);if(!n)return;let{currentTime:r,paused:i,preload:a,readyState:o,playbackRate:s}=e.media;e.media.src=n.getAttribute(`src`),(a!==`none`||o)&&(e.once(`loadedmetadata`,()=>{e.speed=s,e.currentTime=r,i||um(e.play())}),e.media.load())}sm.call(e,e.media,`qualitychange`,!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(Hp(xm.getSources.call(this)),this.media.setAttribute(`src`,this.config.blankVideo),this.media.load(),this.debug.log(`Cancelled network requests`))}},Sm={isIE:!!window.document.documentMode,isEdge:/Edge/.test(navigator.userAgent),isWebKit:`WebkitAppearance`in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPadOS:navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function Cm(e){return`${e}-${Math.floor(Math.random()*1e4)}`}function wm(e,...t){return Q.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(e,n)=>t[n].toString())}function Tm(e,t){return e===0||t===0||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}function Em(e=``,t=``,n=``){return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,`\\$1`),`g`),n.toString())}function Dm(e=``){return e.toString().replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())}function Om(e=``){let t=e.toString();return t=Em(t,`-`,` `),t=Em(t,`_`,` `),t=Dm(t),Em(t,` `,``)}function km(e=``){let t=e.toString();return t=Om(t),t.charAt(0).toLowerCase()+t.slice(1)}function Am(e){let t=document.createDocumentFragment(),n=document.createElement(`div`);return t.appendChild(n),n.innerHTML=e,t.firstChild.textContent}function jm(e){let t=document.createElement(`div`);return t.appendChild(e),t.innerHTML}var Mm={pip:`PIP`,airplay:`AirPlay`,html5:`HTML5`,vimeo:`Vimeo`,youtube:`YouTube`},Nm={get(e=``,t={}){if(Q.empty(e)||Q.empty(t))return``;let n=Fp(t.i18n,e);if(Q.empty(n))return Object.keys(Mm).includes(e)?Mm[e]:``;let r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach(([e,t])=>{n=Em(n,e,t)}),n}},Pm=class e{constructor(t){Z(this,`get`,t=>{if(!e.supported||!this.enabled)return null;let n=window.localStorage.getItem(this.key);if(Q.empty(n))return null;let r=JSON.parse(n);return Q.string(t)&&t.length?r[t]:r}),Z(this,`set`,t=>{if(!e.supported||!this.enabled||!Q.object(t))return;let n=this.get();Q.empty(n)&&(n={}),Ip(n,t);try{window.localStorage.setItem(this.key,JSON.stringify(n))}catch{}}),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}static get supported(){try{if(!(`localStorage`in window))return!1;let e=`___test`;return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}};function Fm(e,t=`text`,n=!1){return new Promise((r,i)=>{try{let i=new XMLHttpRequest;if(!(`withCredentials`in i))return;n&&(i.withCredentials=!0),i.addEventListener(`load`,()=>{if(t===`text`)try{r(JSON.parse(i.responseText))}catch{r(i.responseText)}else r(i.response)}),i.addEventListener(`error`,()=>{throw Error(i.status)}),i.open(`GET`,e,!0),i.responseType=t,i.send()}catch(e){i(e)}})}function Im(e,t){if(!Q.string(e))return;let n=`cache`,r=Q.string(t),i=!1,a=()=>document.getElementById(t)!==null,o=(e,t)=>{e.innerHTML=t,!(r&&a())&&document.body.insertAdjacentElement(`afterbegin`,e)};if(!r||!a()){let a=Pm.supported,s=document.createElement(`div`);if(s.setAttribute(`hidden`,``),r&&s.setAttribute(`id`,t),a){let e=window.localStorage.getItem(`${n}-${t}`);i=e!==null,i&&o(s,JSON.parse(e).content)}Fm(e).then(e=>{if(!Q.empty(e)){if(a)try{window.localStorage.setItem(`${n}-${t}`,JSON.stringify({content:e}))}catch{}o(s,e)}}).catch(()=>{})}}var Lm=e=>Math.trunc(e/60/60%60,10),Rm=e=>Math.trunc(e/60%60,10),zm=e=>Math.trunc(e%60,10);function Bm(e=0,t=!1,n=!1){if(!Q.number(e))return Bm(void 0,t,n);let r=e=>`0${e}`.slice(-2),i=Lm(e),a=Rm(e),o=zm(e);return i=t||i>0?`${i}:`:``,`${n&&e>0?`-`:``}${i}${r(a)}:${r(o)}`}var $={getIconUrl(){let e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||Sm.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements(){try{return this.elements.controls=Qp.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Zp.call(this,this.config.selectors.buttons.play),pause:Qp.call(this,this.config.selectors.buttons.pause),restart:Qp.call(this,this.config.selectors.buttons.restart),rewind:Qp.call(this,this.config.selectors.buttons.rewind),fastForward:Qp.call(this,this.config.selectors.buttons.fastForward),mute:Qp.call(this,this.config.selectors.buttons.mute),pip:Qp.call(this,this.config.selectors.buttons.pip),airplay:Qp.call(this,this.config.selectors.buttons.airplay),settings:Qp.call(this,this.config.selectors.buttons.settings),captions:Qp.call(this,this.config.selectors.buttons.captions),fullscreen:Qp.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Qp.call(this,this.config.selectors.progress),this.elements.inputs={seek:Qp.call(this,this.config.selectors.inputs.seek),volume:Qp.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Qp.call(this,this.config.selectors.display.buffer),currentTime:Qp.call(this,this.config.selectors.display.currentTime),duration:Qp.call(this,this.config.selectors.display.duration)},Q.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn(`It looks like there is a problem with your custom controls HTML`,e),this.toggleNativeControls(!0),!1}},createIcon(e,t){let n=`http://www.w3.org/2000/svg`,r=$.getIconUrl.call(this),i=`${r.cors?``:r.url}#${this.config.iconPrefix}`,a=document.createElementNS(n,`svg`);Rp(a,Ip(t,{"aria-hidden":`true`,focusable:`false`}));let o=document.createElementNS(n,`use`),s=`${i}-${e}`;return`href`in o&&o.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,s),o.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,s),a.appendChild(o),a},createLabel(e,t={}){let n=Nm.get(e,this.config);return zp(`span`,{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(` `)},n)},createBadge(e){if(Q.empty(e))return null;let t=zp(`span`,{class:this.config.classNames.menu.value});return t.appendChild(zp(`span`,{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){let n=Ip({},t),r=km(e),i={element:`button`,toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch([`element`,`icon`,`label`].forEach(e=>{Object.keys(n).includes(e)&&(i[e]=n[e],delete n[e])}),i.element===`button`&&!Object.keys(n).includes(`type`)&&(n.type=`button`),Object.keys(n).includes(`class`)?n.class.split(` `).includes(this.config.classNames.control)||Ip(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,e){case`play`:i.toggle=!0,i.label=`play`,i.labelPressed=`pause`,i.icon=`play`,i.iconPressed=`pause`;break;case`mute`:i.toggle=!0,i.label=`mute`,i.labelPressed=`unmute`,i.icon=`volume`,i.iconPressed=`muted`;break;case`captions`:i.toggle=!0,i.label=`enableCaptions`,i.labelPressed=`disableCaptions`,i.icon=`captions-off`,i.iconPressed=`captions-on`;break;case`fullscreen`:i.toggle=!0,i.label=`enterFullscreen`,i.labelPressed=`exitFullscreen`,i.icon=`enter-fullscreen`,i.iconPressed=`exit-fullscreen`;break;case`play-large`:n.class+=` ${this.config.classNames.control}--overlaid`,r=`play`,i.label=`play`,i.icon=`play`;break;default:Q.empty(i.label)&&(i.label=r),Q.empty(i.icon)&&(i.icon=e)}let a=zp(i.element);return i.toggle?(a.appendChild($.createIcon.call(this,i.iconPressed,{class:`icon--pressed`})),a.appendChild($.createIcon.call(this,i.icon,{class:`icon--not-pressed`})),a.appendChild($.createLabel.call(this,i.labelPressed,{class:`label--pressed`})),a.appendChild($.createLabel.call(this,i.label,{class:`label--not-pressed`}))):(a.appendChild($.createIcon.call(this,i.icon)),a.appendChild($.createLabel.call(this,i.label))),Ip(n,Gp(this.config.selectors.buttons[r],n)),Rp(a,n),r===`play`?(Q.array(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(a)):this.elements.buttons[r]=a,a},createRange(e,t){let n=zp(`input`,Ip(Gp(this.config.selectors.inputs[e]),{type:`range`,min:0,max:100,step:.01,value:0,autocomplete:`off`,role:`slider`,"aria-label":Nm.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,$.updateRangeFill.call(this,n),dp.setup(n),n},createProgress(e,t){let n=zp(`progress`,Ip(Gp(this.config.selectors.display[e]),{min:0,max:100,value:0,role:`progressbar`,"aria-hidden":!0},t));if(e!==`volume`){n.appendChild(zp(`span`,null,`0`));let t={played:`played`,buffer:`buffered`}[e];n.textContent=`% ${(t?Nm.get(t,this.config):``).toLowerCase()}`}return this.elements.display[e]=n,n},createTime(e,t){let n=Gp(this.config.selectors.display[e],t),r=zp(`div`,Ip(n,{class:`${n.class?n.class:``} ${this.config.classNames.display.time} `.trim(),"aria-label":Nm.get(e,this.config),role:`timer`}),`00:00`);return this.elements.display[e]=r,r},bindMenuItemShortcuts(e,t){im.call(this,e,`keydown keyup`,n=>{if(![` `,`ArrowUp`,`ArrowDown`,`ArrowRight`].includes(n.key)||(n.preventDefault(),n.stopPropagation(),n.type===`keydown`))return;let r=Yp(e,`[role="menuitemradio"]`);if(!r&&[` `,`ArrowRight`].includes(n.key))$.showMenuPanel.call(this,t,!0);else{let t;n.key!==` `&&(n.key===`ArrowDown`||r&&n.key===`ArrowRight`?(t=e.nextElementSibling,Q.element(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,Q.element(t)||(t=e.parentNode.lastElementChild)),$p.call(this,t,!0))}},!1),im.call(this,e,`keyup`,e=>{e.key===`Return`&&$.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:t,type:n,title:r,badge:i=null,checked:a=!1}){let o=Gp(this.config.selectors.inputs[n]),s=zp(`button`,Ip(o,{type:`button`,role:`menuitemradio`,class:`${this.config.classNames.control} ${o.class?o.class:``}`.trim(),"aria-checked":a,value:e})),c=zp(`span`);c.innerHTML=r,Q.element(i)&&c.appendChild(i),s.appendChild(c),Object.defineProperty(s,`checked`,{enumerable:!0,get(){return s.getAttribute(`aria-checked`)===`true`},set(e){e&&Array.from(s.parentNode.children).filter(e=>Yp(e,`[role="menuitemradio"]`)).forEach(e=>e.setAttribute(`aria-checked`,`false`)),s.setAttribute(`aria-checked`,e?`true`:`false`)}}),this.listeners.bind(s,`click keyup`,t=>{if(!(Q.keyboardEvent(t)&&t.key!==` `)){switch(t.preventDefault(),t.stopPropagation(),s.checked=!0,n){case`language`:this.currentTrack=Number(e);break;case`quality`:this.quality=e;break;case`speed`:this.speed=Number.parseFloat(e);break}$.showMenuPanel.call(this,`home`,Q.keyboardEvent(t))}},n,!1),$.bindMenuItemShortcuts.call(this,s,n),t.appendChild(s)},formatTime(e=0,t=!1){return Q.number(e)?Bm(e,Lm(this.duration)>0,t):e},updateTimeDisplay(e=null,t=0,n=!1){!Q.element(e)||!Q.number(t)||(e.textContent=$.formatTime(t,n))},updateVolume(){this.supported.ui&&(Q.element(this.elements.inputs.volume)&&$.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Q.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,t=0){Q.element(e)&&(e.value=t,$.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!Q.event(e))return;let t=0,n=(e,t)=>{let n=Q.number(t)?t:0,r=Q.element(e)?e:this.elements.display.buffer;if(Q.element(r)){r.value=n;let e=r.getElementsByTagName(`span`)[0];Q.element(e)&&(e.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case`timeupdate`:case`seeking`:case`seeked`:t=Tm(this.currentTime,this.duration),e.type===`timeupdate`&&$.setRange.call(this,this.elements.inputs.seek,t);break;case`playing`:case`progress`:n(this.elements.display.buffer,this.buffered*100);break}},updateRangeFill(e){let t=Q.event(e)?e.target:e;if(!(!Q.element(t)||t.getAttribute(`type`)!==`range`)){if(Yp(t,this.config.selectors.inputs.seek)){t.setAttribute(`aria-valuenow`,this.currentTime);let e=$.formatTime(this.currentTime),n=$.formatTime(this.duration),r=Nm.get(`seekLabel`,this.config);t.setAttribute(`aria-valuetext`,r.replace(`{currentTime}`,e).replace(`{duration}`,n))}else if(Yp(t,this.config.selectors.inputs.volume)){let e=t.value*100;t.setAttribute(`aria-valuenow`,e),t.setAttribute(`aria-valuetext`,`${e.toFixed(1)}%`)}else t.setAttribute(`aria-valuenow`,t.value);!Sm.isWebKit&&!Sm.isIPadOS||t.style.setProperty(`--value`,`${t.value/t.max*100}%`)}},updateSeekTooltip(e){if(!this.config.tooltips.seek||!Q.element(this.elements.inputs.seek)||!Q.element(this.elements.display.seekTooltip)||this.duration===0)return;let t=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,r=e=>qp(t,n,e);if(this.touch){r(!1);return}let i=0,a=this.elements.progress.getBoundingClientRect();if(Q.event(e)){let t=e.pageX-e.clientX;i=100/a.width*(e.pageX-a.left-t)}else if(Jp(t,n))i=Number.parseFloat(t.style.left,10);else return;i<0?i=0:i>100&&(i=100);let o=this.duration/100*i;t.textContent=$.formatTime(o);let s=this.config.markers?.points?.find(({time:e})=>e===Math.round(o));s&&t.insertAdjacentHTML(`afterbegin`,`${s.label}<br>`),t.style.left=`${i}%`,Q.event(e)&&[`mouseenter`,`mouseleave`].includes(e.type)&&r(e.type===`mouseenter`)},timeUpdate(e){let t=!Q.element(this.elements.display.duration)&&this.config.invertTime;$.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),!(e&&e.type===`timeupdate`&&this.media.seeking)&&$.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){Kp(this.elements.display.currentTime,!0),Kp(this.elements.progress,!0);return}Q.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute(`aria-valuemax`,this.duration);let e=Q.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&$.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&$.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&$.setMarkers.call(this),$.updateSeekTooltip.call(this)},toggleMenuButton(e,t){Kp(this.elements.settings.buttons[e],!t)},updateSetting(e,t,n){let r=this.elements.settings.panels[e],i=null,a=t;if(e===`captions`)i=this.currentTrack;else{if(i=Q.empty(n)?this[e]:n,Q.empty(i)&&(i=this.config[e].default),!Q.empty(this.options[e])&&!this.options[e].includes(i)){this.debug.warn(`Unsupported value of '${i}' for ${e}`);return}if(!this.config[e].options.includes(i)){this.debug.warn(`Disabled value of '${i}' for ${e}`);return}}if(Q.element(a)||(a=r&&r.querySelector(`[role="menu"]`)),!Q.element(a))return;let o=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);o.innerHTML=$.getLabel.call(this,e,i);let s=a&&a.querySelector(`[value="${i}"]`);Q.element(s)&&(s.checked=!0)},getLabel(e,t){switch(e){case`speed`:return t===1?Nm.get(`normal`,this.config):`${t}×`;case`quality`:if(Q.number(t)){let e=Nm.get(`qualityLabel.${t}`,this.config);return e.length?e:`${t}p`}return Dm(t);case`captions`:return Um.getLabel.call(this);default:return null}},setQualityMenu(e){if(!Q.element(this.elements.settings.panels.quality))return;let t=`quality`,n=this.elements.settings.panels.quality.querySelector(`[role="menu"]`);Q.array(e)&&(this.options.quality=dm(e).filter(e=>this.config.quality.options.includes(e)));let r=!Q.empty(this.options.quality)&&this.options.quality.length>1;if($.toggleMenuButton.call(this,t,r),Up(n),$.checkMenu.call(this),!r)return;let i=e=>{let t=Nm.get(`qualityBadge.${e}`,this.config);return t.length?$.createBadge.call(this,t):null};this.options.quality.sort((e,t)=>{let n=this.config.quality.options;return n.indexOf(e)>n.indexOf(t)?1:-1}).forEach(e=>{$.createMenuItem.call(this,{value:e,list:n,type:t,title:$.getLabel.call(this,`quality`,e),badge:i(e)})}),$.updateSetting.call(this,t,n)},setCaptionsMenu(){if(!Q.element(this.elements.settings.panels.captions))return;let e=`captions`,t=this.elements.settings.panels.captions.querySelector(`[role="menu"]`),n=Um.getTracks.call(this),r=!!n.length;if($.toggleMenuButton.call(this,e,r),Up(t),$.checkMenu.call(this),!r)return;let i=n.map((e,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:Um.getLabel.call(this,e),badge:e.language&&$.createBadge.call(this,e.language.toUpperCase()),list:t,type:`language`}));i.unshift({value:-1,checked:!this.captions.toggled,title:Nm.get(`disabled`,this.config),list:t,type:`language`}),i.forEach($.createMenuItem.bind(this)),$.updateSetting.call(this,e,t)},setSpeedMenu(){if(!Q.element(this.elements.settings.panels.speed))return;let e=`speed`,t=this.elements.settings.panels.speed.querySelector(`[role="menu"]`);this.options.speed=this.options.speed.filter(e=>e>=this.minimumSpeed&&e<=this.maximumSpeed);let n=!Q.empty(this.options.speed)&&this.options.speed.length>1;$.toggleMenuButton.call(this,e,n),Up(t),$.checkMenu.call(this),n&&(this.options.speed.forEach(n=>{$.createMenuItem.call(this,{value:n,list:t,type:e,title:$.getLabel.call(this,`speed`,n)})}),$.updateSetting.call(this,e,t))},checkMenu(){let{buttons:e}=this.elements.settings,t=!Q.empty(e)&&Object.values(e).some(e=>!e.hidden);Kp(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let n=e;Q.element(n)||(n=Object.values(this.elements.settings.panels).find(e=>!e.hidden));let r=n.querySelector(`[role^="menuitem"]`);$p.call(this,r,t)},toggleMenu(e){let{popup:t}=this.elements.settings,n=this.elements.buttons.settings;if(!Q.element(t)||!Q.element(n))return;let{hidden:r}=t,i=r;if(Q.boolean(e))i=e;else if(Q.keyboardEvent(e)&&e.key===`Escape`)i=!1;else if(Q.event(e)){let r=Q.function(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(r);if(a||!a&&e.target!==n&&i)return}n.setAttribute(`aria-expanded`,i),Kp(t,!i),qp(this.elements.container,this.config.classNames.menu.open,i),i&&Q.keyboardEvent(e)?$.focusFirstMenuItem.call(this,null,!0):!i&&!r&&$p.call(this,n,Q.keyboardEvent(e))},getMenuSize(e){let t=e.cloneNode(!0);t.style.position=`absolute`,t.style.opacity=0,t.removeAttribute(`hidden`),e.parentNode.appendChild(t);let n=t.scrollWidth,r=t.scrollHeight;return Hp(t),{width:n,height:r}},showMenuPanel(e=``,t=!1){let n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!Q.element(n))return;let r=n.parentNode,i=Array.from(r.children).find(e=>!e.hidden);if(tm.transitions&&!tm.reducedMotion){r.style.width=`${i.scrollWidth}px`,r.style.height=`${i.scrollHeight}px`;let e=$.getMenuSize.call(this,n),t=e=>{e.target!==r||![`width`,`height`].includes(e.propertyName)||(r.style.width=``,r.style.height=``,am.call(this,r,Mp,t))};im.call(this,r,Mp,t),r.style.width=`${e.width}px`,r.style.height=`${e.height}px`}Kp(i,!0),Kp(n,!1),$.focusFirstMenuItem.call(this,n,t)},setDownloadUrl(){let e=this.elements.buttons.download;Q.element(e)&&e.setAttribute(`href`,this.download)},create(e){let{bindMenuItemShortcuts:t,createButton:n,createProgress:r,createRange:i,createTime:a,setQualityMenu:o,setSpeedMenu:s,showMenuPanel:c}=$;this.elements.controls=null,Q.array(this.config.controls)&&this.config.controls.includes(`play-large`)&&this.elements.container.appendChild(n.call(this,`play-large`));let l=zp(`div`,Gp(this.config.selectors.controls.wrapper));this.elements.controls=l;let u={class:`plyr__controls__item`};return dm(Q.array(this.config.controls)?this.config.controls:[]).forEach(o=>{if(o===`restart`&&l.appendChild(n.call(this,`restart`,u)),o===`rewind`&&l.appendChild(n.call(this,`rewind`,u)),o===`play`&&l.appendChild(n.call(this,`play`,u)),o===`fast-forward`&&l.appendChild(n.call(this,`fast-forward`,u)),o===`progress`){let t=zp(`div`,{class:`${u.class} plyr__progress__container`}),n=zp(`div`,Gp(this.config.selectors.progress));if(n.appendChild(i.call(this,`seek`,{id:`plyr-seek-${e.id}`})),n.appendChild(r.call(this,`buffer`)),this.config.tooltips.seek){let e=zp(`span`,{class:this.config.classNames.tooltip},`00:00`);n.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=n,t.appendChild(this.elements.progress),l.appendChild(t)}if(o===`current-time`&&l.appendChild(a.call(this,`currentTime`,u)),o===`duration`&&l.appendChild(a.call(this,`duration`,u)),o===`mute`||o===`volume`){let{volume:t}=this.elements;if((!Q.element(t)||!l.contains(t))&&(t=zp(`div`,Ip({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=t,l.appendChild(t)),o===`mute`&&t.appendChild(n.call(this,`mute`)),o===`volume`&&!Sm.isIos&&!Sm.isIPadOS){let n={max:1,step:.05,value:this.config.volume};t.appendChild(i.call(this,`volume`,Ip(n,{id:`plyr-volume-${e.id}`})))}}if(o===`captions`&&l.appendChild(n.call(this,`captions`,u)),o===`settings`&&!Q.empty(this.config.settings)){let r=zp(`div`,Ip({},u,{class:`${u.class} plyr__menu`.trim(),hidden:``}));r.appendChild(n.call(this,`settings`,{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));let i=zp(`div`,{class:`plyr__menu__container`,id:`plyr-settings-${e.id}`,hidden:``}),a=zp(`div`),o=zp(`div`,{id:`plyr-settings-${e.id}-home`}),s=zp(`div`,{role:`menu`});o.appendChild(s),a.appendChild(o),this.elements.settings.panels.home=o,this.config.settings.forEach(n=>{let r=zp(`button`,Ip(Gp(this.config.selectors.buttons.settings),{type:`button`,class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:`menuitem`,"aria-haspopup":!0,hidden:``}));t.call(this,r,n),im.call(this,r,`click`,()=>{c.call(this,n,!1)});let i=zp(`span`,null,Nm.get(n,this.config)),o=zp(`span`,{class:this.config.classNames.menu.value});o.innerHTML=e[n],i.appendChild(o),r.appendChild(i),s.appendChild(r);let l=zp(`div`,{id:`plyr-settings-${e.id}-${n}`,hidden:``}),u=zp(`button`,{type:`button`,class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(zp(`span`,{"aria-hidden":!0},Nm.get(n,this.config))),u.appendChild(zp(`span`,{class:this.config.classNames.hidden},Nm.get(`menuBack`,this.config))),im.call(this,l,`keydown`,e=>{e.key===`ArrowLeft`&&(e.preventDefault(),e.stopPropagation(),c.call(this,`home`,!0))},!1),im.call(this,u,`click`,()=>{c.call(this,`home`,!1)}),l.appendChild(u),l.appendChild(zp(`div`,{role:`menu`})),a.appendChild(l),this.elements.settings.buttons[n]=r,this.elements.settings.panels[n]=l}),i.appendChild(a),r.appendChild(i),l.appendChild(r),this.elements.settings.popup=i,this.elements.settings.menu=r}if(o===`pip`&&tm.pip&&l.appendChild(n.call(this,`pip`,u)),o===`airplay`&&tm.airplay&&l.appendChild(n.call(this,`airplay`,u)),o===`download`){let e=Ip({},u,{element:`a`,href:this.download,target:`_blank`});this.isHTML5&&(e.download=``);let{download:t}=this.config.urls;!Q.url(t)&&this.isEmbed&&Ip(e,{icon:`logo-${this.provider}`,label:this.provider}),l.appendChild(n.call(this,`download`,e))}o===`fullscreen`&&l.appendChild(n.call(this,`fullscreen`,u))}),this.isHTML5&&o.call(this,xm.getQualityOptions.call(this)),s.call(this),l},inject(){if(this.config.loadSprite){let e=$.getIconUrl.call(this);e.cors&&Im(e.url,`sprite-plyr`)}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;let t={id:this.id,seektime:this.config.seekTime,title:this.config.title},n=!0;Q.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),Q.element(this.config.controls)||Q.string(this.config.controls)?e=this.config.controls:(e=$.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Um.getLabel.call(this)}),n=!1),n&&Q.string(this.config.controls)&&(e=(e=>{let n=e;return Object.entries(t).forEach(([e,t])=>{n=Em(n,`{${e}}`,t)}),n})(e));let r;Q.string(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),Q.element(r)||(r=this.elements.container);let i=Q.element(e)?`insertAdjacentElement`:`insertAdjacentHTML`;if(r[i](`afterbegin`,e),Q.element(this.elements.controls)||$.findElements.call(this),!Q.empty(this.elements.buttons)){let e=e=>{let t=this.config.classNames.controlPressed;e.setAttribute(`aria-pressed`,`false`),Object.defineProperty(e,`pressed`,{configurable:!0,enumerable:!0,get(){return Jp(e,t)},set(n=!1){qp(e,t,n),e.setAttribute(`aria-pressed`,n?`true`:`false`)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(t=>{Q.array(t)||Q.nodeList(t)?Array.from(t).filter(Boolean).forEach(e):e(t)})}if(Sm.isEdge&&Np(r),this.config.tooltips.controls){let{classNames:e,selectors:t}=this.config,n=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,r=Zp.call(this,n);Array.from(r).forEach(e=>{qp(e,this.config.classNames.hidden,!1),qp(e,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{`mediaSession`in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){if(!this.duration||this.elements.markers)return;let e=this.config.markers?.points?.filter(({time:e})=>e>0&&e<this.duration);if(!(e!=null&&e.length))return;let t=document.createDocumentFragment(),n=document.createDocumentFragment(),r=null,i=`${this.config.classNames.tooltip}--visible`,a=e=>qp(r,i,e);e.forEach(e=>{let t=zp(`span`,{class:this.config.classNames.marker},``),i=`${e.time/this.duration*100}%`;r&&(t.addEventListener(`mouseenter`,()=>{e.label||(r.style.left=i,r.innerHTML=e.label,a(!0))}),t.addEventListener(`mouseleave`,()=>{a(!1)})),t.addEventListener(`click`,()=>{this.currentTime=e.time}),t.style.left=i,n.appendChild(t)}),t.appendChild(n),this.config.tooltips.seek||(r=zp(`span`,{class:this.config.classNames.tooltip},``),t.appendChild(r)),this.elements.markers={points:n,tip:r},this.elements.progress.appendChild(t)}};function Vm(e,t=!0){let n=e;if(t){let e=document.createElement(`a`);e.href=n,n=e.href}try{return new URL(n)}catch{return null}}function Hm(e){let t=new URLSearchParams;return Q.object(e)&&Object.entries(e).forEach(([e,n])=>{t.set(e,n)}),t}var Um={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!tm.textTracks){Q.array(this.config.controls)&&this.config.controls.includes(`settings`)&&this.config.settings.includes(`captions`)&&$.setCaptionsMenu.call(this);return}if(Q.element(this.elements.captions)||(this.elements.captions=zp(`div`,Gp(this.config.selectors.captions)),this.elements.captions.setAttribute(`dir`,`auto`),Bp(this.elements.captions,this.elements.wrapper)),Sm.isIE&&window.URL){let e=this.media.querySelectorAll(`track`);Array.from(e).forEach(e=>{let t=e.getAttribute(`src`),n=Vm(t);n!==null&&n.hostname!==window.location.href.hostname&&[`http:`,`https:`].includes(n.protocol)&&Fm(t,`blob`).then(t=>{e.setAttribute(`src`,window.URL.createObjectURL(t))}).catch(()=>{Hp(e)})})}let e=dm((navigator.languages||[navigator.language||navigator.userLanguage||`en`]).map(e=>e.split(`-`)[0])),t=(this.storage.get(`language`)||this.captions.language||this.config.captions.language||`auto`).toLowerCase();t===`auto`&&([t]=e);let n=this.storage.get(`captions`)||this.captions.active;if(Q.boolean(n)||({active:n}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:n,language:t,languages:e}),this.isHTML5){let e=this.config.captions.update?`addtrack removetrack`:`removetrack`;im.call(this,this.media.textTracks,e,Um.update.bind(this))}setTimeout(Um.update.bind(this),0)},update(){let e=Um.getTracks.call(this,!0),{active:t,language:n,meta:r,currentTrackNode:i}=this.captions,a=!!e.find(e=>e.language===n);this.isHTML5&&this.isVideo&&e.filter(e=>!r.get(e)).forEach(e=>{this.debug.log(`Track added`,e),r.set(e,{default:e.mode===`showing`}),e.mode===`showing`&&(e.mode=`hidden`),im.call(this,e,`cuechange`,()=>Um.updateCues.call(this))}),(a&&this.language!==n||!e.includes(i))&&(Um.setLanguage.call(this,n),Um.toggle.call(this,t&&a)),this.elements&&qp(this.elements.container,this.config.classNames.captions.enabled,!Q.empty(e)),Q.array(this.config.controls)&&this.config.controls.includes(`settings`)&&this.config.settings.includes(`captions`)&&$.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;let{toggled:n}=this.captions,r=this.config.classNames.captions.active,i=Q.nullOrUndefined(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){let e=Um.getTracks.call(this),t=Um.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=t.language,Um.set.call(this,e.indexOf(t));return}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),qp(this.elements.container,r,i),this.captions.toggled=i,$.updateSetting.call(this,`captions`),sm.call(this,this.media,i?`captionsenabled`:`captionsdisabled`)}setTimeout(()=>{i&&this.captions.toggled&&(this.captions.currentTrackNode.mode=`hidden`)})},set(e,t=!0){let n=Um.getTracks.call(this);if(e===-1){Um.toggle.call(this,!1,t);return}if(!Q.number(e)){this.debug.warn(`Invalid caption argument`,e);return}if(!(e in n)){this.debug.warn(`Track not found`,e);return}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;let r=n[e],{language:i}=r||{};this.captions.currentTrackNode=r,$.updateSetting.call(this,`captions`),t||(this.captions.language=i,this.storage.set({language:i})),this.isVimeo&&this.embed.enableTextTrack(i,null,!1),sm.call(this,this.media,`languagechange`)}Um.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Um.updateCues.call(this)},setLanguage(e,t=!0){if(!Q.string(e)){this.debug.warn(`Invalid language argument`,e);return}let n=e.toLowerCase();this.captions.language=n;let r=Um.getTracks.call(this),i=Um.findTrack.call(this,[n]);Um.set.call(this,r.indexOf(i),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(t=>!this.isHTML5||e||this.captions.meta.has(t)).filter(e=>[`captions`,`subtitles`].includes(e.kind))},findTrack(e,t=!1){let n=Um.getTracks.call(this),r=e=>Number((this.captions.meta.get(e)||{}).default),i=Array.from(n).sort((e,t)=>r(t)-r(e)),a;return e.every(e=>(a=i.find(t=>t.language===e),!a)),a||(t?i[0]:void 0)},getCurrentTrack(){return Um.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!Q.track(t)&&tm.textTracks&&this.captions.toggled&&(t=Um.getCurrentTrack.call(this)),Q.track(t)?Q.empty(t.label)?Q.empty(t.language)?Nm.get(`enabled`,this.config):e.language.toUpperCase():t.label:Nm.get(`disabled`,this.config)},updateCues(e){if(!this.supported.ui)return;if(!Q.element(this.elements.captions)){this.debug.warn(`No captions element to render to`);return}if(!Q.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn(`updateCues: Invalid input`,e);return}let t=e;if(!t){let e=Um.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map(e=>e.getCueAsHTML()).map(jm)}let n=t.map(e=>e.trim()).join(`
|
|
7749
7747
|
`);if(n!==this.elements.captions.innerHTML){Up(this.elements.captions);let e=zp(`span`,Gp(this.config.selectors.caption));e.innerHTML=n,this.elements.captions.appendChild(e),sm.call(this,this.media,`cuechange`)}}},Wm={enabled:!0,title:``,debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:`plyr`,iconUrl:`https://cdn.plyr.io/3.8.4/plyr.svg`,blankVideo:`https://cdn.plyr.io/static/blank.mp4`,quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:`auto`,update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:`plyr`},controls:[`play-large`,`play`,`progress`,`current-time`,`mute`,`volume`,`captions`,`settings`,`pip`,`airplay`,`fullscreen`],settings:[`captions`,`quality`,`speed`],i18n:{restart:`Restart`,rewind:`Rewind {seektime}s`,play:`Play`,pause:`Pause`,fastForward:`Forward {seektime}s`,seek:`Seek`,seekLabel:`{currentTime} of {duration}`,played:`Played`,buffered:`Buffered`,currentTime:`Current time`,duration:`Duration`,volume:`Volume`,mute:`Mute`,unmute:`Unmute`,enableCaptions:`Enable captions`,disableCaptions:`Disable captions`,download:`Download`,enterFullscreen:`Enter fullscreen`,exitFullscreen:`Exit fullscreen`,frameTitle:`Player for {title}`,captions:`Captions`,settings:`Settings`,pip:`PIP`,menuBack:`Go back to previous menu`,speed:`Speed`,normal:`Normal`,quality:`Quality`,loop:`Loop`,start:`Start`,end:`End`,all:`All`,reset:`Reset`,disabled:`Disabled`,enabled:`Enabled`,advertisement:`Ad`,qualityBadge:{2160:`4K`,1440:`HD`,1080:`HD`,720:`HD`,576:`SD`,480:`SD`}},urls:{download:null,vimeo:{sdk:`https://player.vimeo.com/api/player.js`,iframe:`https://player.vimeo.com/video/{0}?{1}`,api:`https://vimeo.com/api/oembed.json?url={0}`},youtube:{sdk:`https://www.youtube.com/iframe_api`,api:`https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}`},googleIMA:{sdk:`https://imasdk.googleapis.com/js/sdkloader/ima3.js`}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:`ended.progress.stalled.playing.waiting.canplay.canplaythrough.loadstart.loadeddata.loadedmetadata.timeupdate.volumechange.play.pause.error.seeking.seeked.emptied.ratechange.cuechange.download.enterfullscreen.exitfullscreen.captionsenabled.captionsdisabled.languagechange.controlshidden.controlsshown.ready.statechange.qualitychange.adsloaded.adscontentpause.adscontentresume.adstarted.adsmidpoint.adscomplete.adsallcomplete.adsimpression.adsclick`.split(`.`),selectors:{editable:`input, textarea, select, [contenteditable]`,container:`.plyr`,controls:{container:null,wrapper:`.plyr__controls`},labels:`[data-plyr]`,buttons:{play:`[data-plyr="play"]`,pause:`[data-plyr="pause"]`,restart:`[data-plyr="restart"]`,rewind:`[data-plyr="rewind"]`,fastForward:`[data-plyr="fast-forward"]`,mute:`[data-plyr="mute"]`,captions:`[data-plyr="captions"]`,download:`[data-plyr="download"]`,fullscreen:`[data-plyr="fullscreen"]`,pip:`[data-plyr="pip"]`,airplay:`[data-plyr="airplay"]`,settings:`[data-plyr="settings"]`,loop:`[data-plyr="loop"]`},inputs:{seek:`[data-plyr="seek"]`,volume:`[data-plyr="volume"]`,speed:`[data-plyr="speed"]`,language:`[data-plyr="language"]`,quality:`[data-plyr="quality"]`},display:{currentTime:`.plyr__time--current`,duration:`.plyr__time--duration`,buffer:`.plyr__progress__buffer`,loop:`.plyr__progress__loop`,volume:`.plyr__volume--display`},progress:`.plyr__progress`,captions:`.plyr__captions`,caption:`.plyr__caption`},classNames:{type:`plyr--{0}`,provider:`plyr--{0}`,video:`plyr__video-wrapper`,embed:`plyr__video-embed`,videoFixedRatio:`plyr__video-wrapper--fixed-ratio`,embedContainer:`plyr__video-embed__container`,poster:`plyr__poster`,posterEnabled:`plyr__poster-enabled`,ads:`plyr__ads`,control:`plyr__control`,controlPressed:`plyr__control--pressed`,playing:`plyr--playing`,paused:`plyr--paused`,stopped:`plyr--stopped`,loading:`plyr--loading`,hover:`plyr--hover`,tooltip:`plyr__tooltip`,cues:`plyr__cues`,marker:`plyr__progress__marker`,hidden:`plyr__sr-only`,hideControls:`plyr--hide-controls`,isTouch:`plyr--is-touch`,uiSupported:`plyr--full-ui`,noTransition:`plyr--no-transition`,display:{time:`plyr__time`},menu:{value:`plyr__menu__value`,badge:`plyr__badge`,open:`plyr--menu-open`},captions:{enabled:`plyr--captions-enabled`,active:`plyr--captions-active`},fullscreen:{enabled:`plyr--fullscreen-enabled`,fallback:`plyr--fullscreen-fallback`},pip:{supported:`plyr--pip-supported`,active:`plyr--pip-active`},airplay:{supported:`plyr--airplay-supported`,active:`plyr--airplay-active`},previewThumbnails:{thumbContainer:`plyr__preview-thumb`,thumbContainerShown:`plyr__preview-thumb--is-shown`,imageContainer:`plyr__preview-thumb__image-container`,timeContainer:`plyr__preview-thumb__time-container`,scrubbingContainer:`plyr__preview-scrubbing`,scrubbingContainerShown:`plyr__preview-scrubbing--is-shown`}},attributes:{embed:{provider:`data-plyr-provider`,id:`data-plyr-embed-id`,hash:`data-plyr-embed-hash`}},ads:{enabled:!1,publisherId:``,tagUrl:``},previewThumbnails:{enabled:!1,src:``,withCredentials:!1},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:``,artist:``,album:``,artwork:[]},markers:{enabled:!1,points:[]}},Gm={active:`picture-in-picture`,inactive:`inline`},Km={html5:`html5`,youtube:`youtube`,vimeo:`vimeo`},qm={audio:`audio`,video:`video`};function Jm(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Km.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Km.vimeo:null}function Ym(){}var Xm=class{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log(`Debugging enabled`)}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Ym}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Ym}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Ym}},Zm=class e{constructor(t){Z(this,`onChange`,()=>{if(!this.supported)return;let e=this.player.elements.buttons.fullscreen;Q.element(e)&&(e.pressed=this.active);let t=this.target===this.player.media?this.target:this.player.elements.container;sm.call(this.player,t,this.active?`enterfullscreen`:`exitfullscreen`,!0)}),Z(this,`toggleFallback`,(e=!1)=>{if(e?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?`hidden`:``,qp(this.target,this.player.config.classNames.fullscreen.fallback,e),Sm.isIos){let t=document.head.querySelector(`meta[name="viewport"]`),n=`viewport-fit=cover`;t||(t=document.createElement(`meta`),t.setAttribute(`name`,`viewport`));let r=Q.string(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!r,r||(t.content+=`,${n}`)):this.cleanupViewport&&(t.content=t.content.split(`,`).filter(e=>e.trim()!==n).join(`,`))}this.onChange()}),Z(this,`trapFocus`,e=>{if(Sm.isIos||Sm.isIPadOS||!this.active||e.key!==`Tab`)return;let t=document.activeElement,n=Zp.call(this.player,`a[href], button:not(:disabled), input:not(:disabled), [tabindex]`),[r]=n,i=n[n.length-1];t===i&&!e.shiftKey?(r.focus(),e.preventDefault()):t===r&&e.shiftKey&&(i.focus(),e.preventDefault())}),Z(this,`update`,()=>{if(this.supported){let t;t=this.forceFallback?`Fallback (forced)`:e.nativeSupported?`Native`:`Fallback`,this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log(`Fullscreen not supported and fallback disabled`);qp(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),Z(this,`enter`,()=>{this.supported&&(Sm.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!e.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?Q.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:`hide`}))}),Z(this,`exit`,()=>{if(this.supported){if(Sm.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),um(this.player.play());else if(!e.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(!this.prefix)(document.cancelFullScreen||document.exitFullscreen).call(document);else if(!Q.empty(this.prefix)){let e=this.prefix===`moz`?`Cancel`:`Exit`;document[`${this.prefix}${e}${this.property}`]()}}}),Z(this,`toggle`,()=>{this.active?this.exit():this.enter()}),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback=t.config.fullscreen.fallback===`force`,this.player.elements.fullscreen=t.config.fullscreen.container&&Xp(this.player.elements.container,t.config.fullscreen.container),im.call(this.player,document,this.prefix===`ms`?`MSFullscreenChange`:`${this.prefix}fullscreenchange`,()=>{this.onChange()}),im.call(this.player,this.player.elements.container,`dblclick`,e=>{Q.element(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,`fullscreen`)}),im.call(this,this.player.elements.container,`keydown`,e=>this.trapFocus(e)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return e.nativeSupported&&!this.forceFallback}static get prefix(){if(Q.function(document.exitFullscreen))return``;let e=``;return[`webkit`,`moz`,`ms`].some(t=>Q.function(document[`${t}ExitFullscreen`])||Q.function(document[`${t}CancelFullScreen`])?(e=t,!0):!1),e}static get property(){return this.prefix===`moz`?`FullScreen`:`Fullscreen`}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,e.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||e.nativeSupported||!Sm.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!e.nativeSupported||this.forceFallback)return Jp(this.target,this.player.config.classNames.fullscreen.fallback);let t=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}get target(){return Sm.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}};function Qm(e,t=1){return new Promise((n,r)=>{let i=new Image,a=()=>{delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:a,onerror:a,src:e})})}var $m={addStyleHook(){qp(this.elements.container,this.config.selectors.container.replace(`.`,``),!0),qp(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute(`controls`,``):this.media.removeAttribute(`controls`)},build(){if(this.listeners.media(),!this.supported.ui){this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),$m.toggleNativeControls.call(this,!0);return}Q.element(this.elements.controls)||($.inject.call(this),this.listeners.controls()),$m.toggleNativeControls.call(this),this.isHTML5&&Um.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,$.updateVolume.call(this),$.timeUpdate.call(this),$.durationUpdate.call(this),$m.checkPlaying.call(this),qp(this.elements.container,this.config.classNames.pip.supported,tm.pip&&this.isHTML5&&this.isVideo),qp(this.elements.container,this.config.classNames.airplay.supported,tm.airplay&&this.isHTML5),qp(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{sm.call(this,this.media,`ready`)},0),$m.setTitle.call(this),this.poster&&$m.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&$.durationUpdate.call(this),this.config.mediaMetadata&&$.setMediaMetadata.call(this)},setTitle(){let e=Nm.get(`play`,this.config);if(Q.string(this.config.title)&&!Q.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(t=>{t.setAttribute(`aria-label`,e)}),this.isEmbed){let e=Qp.call(this,`iframe`);if(!Q.element(e))return;let t=Q.empty(this.config.title)?`video`:this.config.title,n=Nm.get(`frameTitle`,this.config);e.setAttribute(`title`,n.replace(`{title}`,t))}},togglePoster(e){qp(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(Error(`Poster already set`)):(this.media.setAttribute(`data-poster`,e),this.elements.poster.removeAttribute(`hidden`),lm.call(this).then(()=>Qm(e)).catch(t=>{throw e===this.poster&&$m.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw Error(`setPoster cancelled by later call to setPoster`)}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:``}),$m.togglePoster.call(this,!0),e)))},checkPlaying(e){qp(this.elements.container,this.config.classNames.playing,this.playing),qp(this.elements.container,this.config.classNames.paused,this.paused),qp(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute(`aria-label`,Nm.get(this.playing?`pause`:`play`,this.config))}),!(Q.event(e)&&e.type===`timeupdate`)&&$m.toggleControls.call(this)},checkLoading(e){this.loading=[`stalled`,`waiting`].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{qp(this.elements.container,this.config.classNames.loading,this.loading),$m.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){let{controls:t}=this.elements;if(t&&this.config.hideControls){let n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!Q.empty(e)&&Q.string(e)&&e.startsWith(`--plyr`)).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),Q.empty(this.media.style)&&this.media.removeAttribute(`style`)}},eh=class{constructor(e){Z(this,`firstTouch`,()=>{let{player:e}=this,{elements:t}=e;e.touch=!0,qp(t.container,e.config.classNames.isTouch,!0)}),Z(this,`global`,(e=!0)=>{let{player:t}=this;t.config.keyboard.global&&rm.call(t,window,`keydown keyup`,this.handleKey,e,!1),rm.call(t,document.body,`click`,this.toggleMenu,e),om.call(t,document.body,`touchstart`,this.firstTouch)}),Z(this,`container`,()=>{let{player:e}=this,{config:t,elements:n,timers:r}=e;!t.keyboard.global&&t.keyboard.focused&&im.call(e,n.container,`keydown keyup`,this.handleKey,!1),im.call(e,n.container,`mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen`,t=>{let{controls:i}=n;i&&t.type===`enterfullscreen`&&(i.pressed=!1,i.hover=!1);let a=[`touchstart`,`touchmove`,`mousemove`].includes(t.type),o=0;a&&($m.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout(()=>$m.toggleControls.call(e,!1),o)});let i=()=>{if(!e.isVimeo||e.config.vimeo.premium)return;let t=n.wrapper,{active:r}=e.fullscreen,[i,a]=_m.call(e),o=pm(`aspect-ratio: ${i} / ${a}`);if(!r){o?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null);return}let[s,c]=bm(),l=s/c>i/a;o?(t.style.width=l?`auto`:`100%`,t.style.height=l?`100%`:`auto`):(t.style.maxWidth=l?`${c/a*i}px`:null,t.style.margin=l?`0 auto`:null)},a=()=>{clearTimeout(r.resized),r.resized=setTimeout(i,50)};im.call(e,n.container,`enterfullscreen exitfullscreen`,t=>{let{target:r}=e.fullscreen;r===n.container&&(!e.isEmbed&&Q.empty(e.config.ratio)||(i(),(t.type===`enterfullscreen`?im:am).call(e,window,`resize`,a)))})}),Z(this,`media`,()=>{let{player:e}=this,{elements:t}=e;if(im.call(e,e.media,`timeupdate seeking seeked`,t=>$.timeUpdate.call(e,t)),im.call(e,e.media,`durationchange loadeddata loadedmetadata`,t=>$.durationUpdate.call(e,t)),im.call(e,e.media,`ended`,()=>{e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())}),im.call(e,e.media,`progress playing seeking seeked`,t=>$.updateProgress.call(e,t)),im.call(e,e.media,`volumechange`,t=>$.updateVolume.call(e,t)),im.call(e,e.media,`playing play pause ended emptied timeupdate`,t=>$m.checkPlaying.call(e,t)),im.call(e,e.media,`waiting canplay seeked playing`,t=>$m.checkLoading.call(e,t)),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){let n=Qp.call(e,`.${e.config.classNames.video}`);if(!Q.element(n))return;im.call(e,t.container,`click`,r=>{![t.container,n].includes(r.target)&&!n.contains(r.target)||e.touch&&e.config.hideControls||(e.ended?(this.proxy(r,e.restart,`restart`),this.proxy(r,()=>{um(e.play())},`play`)):this.proxy(r,()=>{um(e.togglePlay())},`play`))})}e.supported.ui&&e.config.disableContextMenu&&im.call(e,t.wrapper,`contextmenu`,e=>{e.preventDefault()},!1),im.call(e,e.media,`volumechange`,()=>{e.storage.set({volume:e.volume,muted:e.muted})}),im.call(e,e.media,`ratechange`,()=>{$.updateSetting.call(e,`speed`),e.storage.set({speed:e.speed})}),im.call(e,e.media,`qualitychange`,t=>{$.updateSetting.call(e,`quality`,null,t.detail.quality)}),im.call(e,e.media,`ready qualitychange`,()=>{$.setDownloadUrl.call(e)});let n=e.config.events.concat([`keyup`,`keydown`]).join(` `);im.call(e,e.media,n,n=>{let{detail:r={}}=n;n.type===`error`&&(r=e.media.error),sm.call(e,t.container,n.type,!0,r)})}),Z(this,`proxy`,(e,t,n)=>{let{player:r}=this,i=r.config.listeners[n],a=Q.function(i),o=!0;a&&(o=i.call(r,e)),o!==!1&&Q.function(t)&&t.call(r,e)}),Z(this,`bind`,(e,t,n,r,i=!0)=>{let{player:a}=this,o=a.config.listeners[r],s=Q.function(o);im.call(a,e,t,e=>this.proxy(e,n,r),i&&!s)}),Z(this,`controls`,()=>{let{player:e}=this,{elements:t}=e,n=Sm.isIE?`change`:`input`;if(t.buttons.play&&Array.from(t.buttons.play).forEach(t=>{this.bind(t,`click`,()=>{um(e.togglePlay())},`play`)}),this.bind(t.buttons.restart,`click`,e.restart,`restart`),this.bind(t.buttons.rewind,`click`,()=>{e.lastSeekTime=Date.now(),e.rewind()},`rewind`),this.bind(t.buttons.fastForward,`click`,()=>{e.lastSeekTime=Date.now(),e.forward()},`fastForward`),this.bind(t.buttons.mute,`click`,()=>{e.muted=!e.muted},`mute`),this.bind(t.buttons.captions,`click`,()=>e.toggleCaptions()),this.bind(t.buttons.download,`click`,()=>{sm.call(e,e.media,`download`)},`download`),this.bind(t.buttons.fullscreen,`click`,()=>{e.fullscreen.toggle()},`fullscreen`),this.bind(t.buttons.pip,`click`,()=>{e.pip=`toggle`},`pip`),this.bind(t.buttons.airplay,`click`,e.airplay,`airplay`),this.bind(t.buttons.settings,`click`,t=>{t.stopPropagation(),t.preventDefault(),$.toggleMenu.call(e,t)},null,!1),this.bind(t.buttons.settings,`keyup`,t=>{if([` `,`Enter`].includes(t.key)){if(t.key===`Enter`){$.focusFirstMenuItem.call(e,null,!0);return}t.preventDefault(),t.stopPropagation(),$.toggleMenu.call(e,t)}},null,!1),this.bind(t.settings.menu,`keydown`,t=>{t.key===`Escape`&&$.toggleMenu.call(e,t)}),this.bind(t.inputs.seek,`mousedown mousemove`,e=>{let n=t.progress.getBoundingClientRect(),r=e.pageX-e.clientX,i=100/n.width*(e.pageX-n.left-r);e.currentTarget.setAttribute(`seek-value`,i)}),this.bind(t.inputs.seek,`mousedown mouseup keydown keyup touchstart touchend`,t=>{let n=t.currentTarget,r=`play-on-seeked`;if(Q.keyboardEvent(t)&&![`ArrowLeft`,`ArrowRight`].includes(t.key))return;e.lastSeekTime=Date.now();let i=n.hasAttribute(r),a=[`mouseup`,`touchend`,`keyup`].includes(t.type);i&&a?(n.removeAttribute(r),um(e.play())):!a&&e.playing&&(n.setAttribute(r,``),e.pause())}),Sm.isIos){let t=Zp.call(e,`input[type="range"]`);Array.from(t).forEach(e=>this.bind(e,n,e=>Np(e.target)))}this.bind(t.inputs.seek,n,t=>{let n=t.currentTarget,r=n.getAttribute(`seek-value`);Q.empty(r)&&(r=n.value),n.removeAttribute(`seek-value`),e.currentTime=r/n.max*e.duration},`seek`),this.bind(t.progress,`mouseenter mouseleave mousemove`,t=>$.updateSeekTooltip.call(e,t)),this.bind(t.progress,`mousemove touchmove`,t=>{let{previewThumbnails:n}=e;n&&n.loaded&&n.startMove(t)}),this.bind(t.progress,`mouseleave touchend click`,()=>{let{previewThumbnails:t}=e;t&&t.loaded&&t.endMove(!1,!0)}),this.bind(t.progress,`mousedown touchstart`,t=>{let{previewThumbnails:n}=e;n&&n.loaded&&n.startScrubbing(t)}),this.bind(t.progress,`mouseup touchend`,t=>{let{previewThumbnails:n}=e;n&&n.loaded&&n.endScrubbing(t)}),Sm.isWebKit&&Array.from(Zp.call(e,`input[type="range"]`)).forEach(t=>{this.bind(t,`input`,t=>$.updateRangeFill.call(e,t.target))}),e.config.toggleInvert&&!Q.element(t.display.duration)&&this.bind(t.display.currentTime,`click`,()=>{e.currentTime!==0&&(e.config.invertTime=!e.config.invertTime,$.timeUpdate.call(e))}),this.bind(t.inputs.volume,n,t=>{e.volume=t.target.value},`volume`),this.bind(t.controls,`mouseenter mouseleave`,n=>{t.controls.hover=!e.touch&&n.type===`mouseenter`}),t.fullscreen&&Array.from(t.fullscreen.children).filter(e=>!e.contains(t.container)).forEach(n=>{this.bind(n,`mouseenter mouseleave`,n=>{t.controls&&(t.controls.hover=!e.touch&&n.type===`mouseenter`)})}),this.bind(t.controls,`mousedown mouseup touchstart touchend touchcancel`,e=>{t.controls.pressed=[`mousedown`,`touchstart`].includes(e.type)}),this.bind(t.controls,`focusin`,()=>{let{config:n,timers:r}=e;qp(t.controls,n.classNames.noTransition,!0),$m.toggleControls.call(e,!0),setTimeout(()=>{qp(t.controls,n.classNames.noTransition,!1)},0);let i=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>$m.toggleControls.call(e,!1),i)}),this.bind(t.inputs.volume,`wheel`,t=>{let n=t.webkitDirectionInvertedFromDevice,[r,i]=[t.deltaX,-t.deltaY].map(e=>n?-e:e),a=Math.sign(Math.abs(r)>Math.abs(i)?r:i);e.increaseVolume(a/50);let{volume:o}=e.media;(a===1&&o<1||a===-1&&o>0)&&t.preventDefault()},`volume`,!1)}),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){let{player:t}=this,{elements:n}=t,{key:r,type:i,altKey:a,ctrlKey:o,metaKey:s,shiftKey:c}=e,l=i===`keydown`,u=l&&r===this.lastKey;if(a||o||s||c||!r)return;let d=e=>{t.currentTime=t.duration/10*e};if(l){let i=document.activeElement;if(Q.element(i)){let{editable:r}=t.config.selectors,{seek:a}=n.inputs;if(i!==a&&Yp(i,r)||e.key===` `&&Yp(i,`button, [role^="menuitem"]`))return}switch([` `,`ArrowLeft`,`ArrowUp`,`ArrowRight`,`ArrowDown`,`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`,`c`,`f`,`k`,`l`,`m`].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:u||d(Number.parseInt(r,10));break;case` `:case`k`:u||um(t.togglePlay());break;case`ArrowUp`:t.increaseVolume(.1);break;case`ArrowDown`:t.decreaseVolume(.1);break;case`m`:u||(t.muted=!t.muted);break;case`ArrowRight`:t.forward();break;case`ArrowLeft`:t.rewind();break;case`f`:t.fullscreen.toggle();break;case`c`:u||t.toggleCaptions();break;case`l`:t.loop=!t.loop;break}r===`Escape`&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}toggleMenu(e){$.toggleMenu.call(this.player,e)}};function th(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var nh={exports:{}},rh=nh.exports,ih;function ah(){return ih?nh.exports:(ih=1,(function(e,t){(function(t,n){e.exports=n()})(rh,function(){var e=function(){},t={},n={},r={};function i(e,t){e=e.push?e:[e];for(var i=[],a=e.length,o=a,s=function(e,n){n.length&&i.push(e),o--,o||t(i)},c,l,u;a--;){if(c=e[a],l=n[c],l){s(c,l);continue}u=r[c]=r[c]||[],u.push(s)}}function a(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function s(t,n,r,i){var a=document,o=r.async,c=(r.numRetries||0)+1,l=r.before||e,u=t.replace(/[\?|#].*$/,``),d=t.replace(/^(css|img|module|nomodule)!/,``),f,p,m;if(i||=0,/(^css!|\.css$)/.test(u))m=a.createElement(`link`),m.rel=`stylesheet`,m.href=d,f=`hideFocus`in m,f&&m.relList&&(f=0,m.rel=`preload`,m.as=`style`);else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(u))m=a.createElement(`img`),m.src=d;else if(m=a.createElement(`script`),m.src=d,m.async=o===void 0?!0:o,p=`noModule`in m,/^module!/.test(u)){if(!p)return n(t,`l`);m.type=`module`}else if(/^nomodule!/.test(u)&&p)return n(t,`l`);m.onload=m.onerror=m.onbeforeload=function(e){var a=e.type[0];if(f)try{m.sheet.cssText.length||(a=`e`)}catch(e){e.code!=18&&(a=`e`)}if(a==`e`){if(i+=1,i<c)return s(t,n,r,i)}else if(m.rel==`preload`&&m.as==`style`)return m.rel=`stylesheet`;n(t,a,e.defaultPrevented)},l(t,m)!==!1&&a.head.appendChild(m)}function c(e,t,n){e=e.push?e:[e];var r=e.length,i=r,a=[],o=function(e,n,i){if(n==`e`&&a.push(e),n==`b`)if(i)a.push(e);else return;r--,r||t(a)},c;for(c=0;c<i;c++)s(e[c],o,n)}function l(e,n,r){var i,s;if(n&&n.trim&&(i=n),s=(i?r:n)||{},i){if(i in t)throw`LoadJS`;t[i]=!0}function l(t,n){c(e,function(e){o(s,e),t&&o({success:t,error:n},e),a(i,e)},s)}if(s.returnPromise)return new Promise(l);l()}return l.ready=function(e,t){return i(e,function(e){o(t,e)}),l},l.done=function(e){a(e,[])},l.reset=function(){t={},n={},r={}},l.isDefined=function(e){return e in t},l})})(nh),nh.exports)}var oh=th(ah());function sh(e){return new Promise((t,n)=>{oh(e,{success:t,error:n})})}function ch(e){if(Q.empty(e))return null;if(Q.number(Number(e)))return e;let t=e.match(/^.*(vimeo.com\/|video\/)(\d+).*/);return t?t[2]:e}function lh(e){let t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/);return t&&t.length===5?t[4]:null}function uh(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,sm.call(this,this.media,e?`play`:`pause`))}var dh={setup(){let e=this;qp(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,vm.call(e),Q.object(window.Vimeo)?dh.ready.call(e):sh(e.config.urls.vimeo.sdk).then(()=>{dh.ready.call(e)}).catch(t=>{e.debug.warn(`Vimeo SDK (player.js) failed to load`,t)})},ready(){let e=this,t=e.config.vimeo,{premium:n,referrerPolicy:r,...i}=t,a=e.media.getAttribute(`src`),o=``;Q.empty(a)?(a=e.media.getAttribute(e.config.attributes.embed.id),o=e.media.getAttribute(e.config.attributes.embed.hash)):o=lh(a);let s=o?{h:o}:{};n&&Object.assign(i,{controls:!1,sidedock:!1});let c=Hm({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:`media`,playsinline:e.config.playsinline,...s,...i}),l=ch(a),u=zp(`iframe`),d=wm(e.config.urls.vimeo.iframe,l,c);if(u.setAttribute(`src`,d),u.setAttribute(`allowfullscreen`,``),u.setAttribute(`allow`,[`autoplay`,`fullscreen`,`picture-in-picture`,`encrypted-media`,`accelerometer`,`gyroscope`].join(`; `)),Q.empty(r)||u.setAttribute(`referrerPolicy`,r),n||!t.customControls)u.setAttribute(`data-poster`,e.poster),e.media=Wp(u,e.media);else{let t=zp(`div`,{class:e.config.classNames.embedContainer,"data-poster":e.poster});t.appendChild(u),e.media=Wp(t,e.media)}t.customControls||Fm(wm(e.config.urls.vimeo.api,d)).then(t=>{Q.empty(t)||!t.thumbnail_url||$m.setPoster.call(e,t.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(u,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(uh.call(e,!0),e.embed.play()),e.media.pause=()=>(uh.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:f}=e.media;Object.defineProperty(e.media,`currentTime`,{get(){return f},set(t){let{embed:n,media:r,paused:i,volume:a}=e,o=i&&!n.hasPlayed;r.seeking=!0,sm.call(e,r,`seeking`),Promise.resolve(o&&n.setVolume(0)).then(()=>n.setCurrentTime(t)).then(()=>o&&n.pause()).then(()=>o&&n.setVolume(a)).catch(()=>{})}});let p=e.config.speed.selected;Object.defineProperty(e.media,`playbackRate`,{get(){return p},set(t){e.embed.setPlaybackRate(t).then(()=>{p=t,sm.call(e,e.media,`ratechange`)}).catch(()=>{e.options.speed=[1]})}});let{volume:m}=e.config;Object.defineProperty(e.media,`volume`,{get(){return m},set(t){e.embed.setVolume(t).then(()=>{m=t,sm.call(e,e.media,`volumechange`)})}});let{muted:h}=e.config;Object.defineProperty(e.media,`muted`,{get(){return h},set(t){let n=Q.boolean(t)?t:!1;e.embed.setMuted(n?!0:e.config.muted).then(()=>{h=n,sm.call(e,e.media,`volumechange`)})}});let{loop:g}=e.config;Object.defineProperty(e.media,`loop`,{get(){return g},set(t){let n=Q.boolean(t)?t:e.config.loop.active;e.embed.setLoop(n).then(()=>{g=n})}});let _;e.embed.getVideoUrl().then(t=>{_=t,$.setDownloadUrl.call(e)}).catch(e=>{this.debug.warn(e)}),Object.defineProperty(e.media,`currentSrc`,{get(){return _}}),Object.defineProperty(e.media,`ended`,{get(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(t=>{let[n,r]=t;e.embed.ratio=ym(n,r),vm.call(this)}),e.embed.setAutopause(e.config.autopause).then(t=>{e.config.autopause=t}),e.embed.getVideoTitle().then(t=>{e.config.title=t,$m.setTitle.call(this)}),e.embed.getCurrentTime().then(t=>{f=t,sm.call(e,e.media,`timeupdate`)}),e.embed.getDuration().then(t=>{e.media.duration=t,sm.call(e,e.media,`durationchange`)}),e.embed.getTextTracks().then(t=>{e.media.textTracks=t,Um.setup.call(e)}),e.embed.on(`cuechange`,({cues:t=[]})=>{let n=t.map(e=>Am(e.text));Um.updateCues.call(e,n)}),e.embed.on(`loaded`,()=>{e.embed.getPaused().then(t=>{uh.call(e,!t),t||sm.call(e,e.media,`playing`)}),Q.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute(`tabindex`,-1)}),e.embed.on(`bufferstart`,()=>{sm.call(e,e.media,`waiting`)}),e.embed.on(`bufferend`,()=>{sm.call(e,e.media,`playing`)}),e.embed.on(`play`,()=>{uh.call(e,!0),sm.call(e,e.media,`playing`)}),e.embed.on(`pause`,()=>{uh.call(e,!1)}),e.embed.on(`timeupdate`,t=>{e.media.seeking=!1,f=t.seconds,sm.call(e,e.media,`timeupdate`)}),e.embed.on(`progress`,t=>{e.media.buffered=t.percent,sm.call(e,e.media,`progress`),Number.parseInt(t.percent,10)===1&&sm.call(e,e.media,`canplaythrough`),e.embed.getDuration().then(t=>{t!==e.media.duration&&(e.media.duration=t,sm.call(e,e.media,`durationchange`))})}),e.embed.on(`seeked`,()=>{e.media.seeking=!1,sm.call(e,e.media,`seeked`)}),e.embed.on(`ended`,()=>{e.media.paused=!0,sm.call(e,e.media,`ended`)}),e.embed.on(`error`,t=>{e.media.error=t,sm.call(e,e.media,`error`)}),t.customControls&&setTimeout(()=>$m.build.call(e),0)}};function fh(e){if(Q.empty(e))return null;let t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&t[2]?t[2]:e}function ph(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,sm.call(this,this.media,e?`play`:`pause`))}function mh(e){if(e.noCookie)return`https://www.youtube-nocookie.com`;if(window.location.protocol===`http:`)return`http://www.youtube.com`}var hh={setup(){if(qp(this.elements.wrapper,this.config.classNames.embed,!0),Q.object(window.YT)&&Q.function(window.YT.Player))hh.ready.call(this);else{let e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{Q.function(e)&&e(),hh.ready.call(this)},sh(this.config.urls.youtube.sdk).catch(e=>{this.debug.warn(`YouTube API failed to load`,e)})}},getTitle(e){Fm(wm(this.config.urls.youtube.api,e)).then(e=>{if(Q.object(e)){let{title:t,height:n,width:r}=e;this.config.title=t,$m.setTitle.call(this),this.embed.ratio=ym(r,n)}vm.call(this)}).catch(()=>{vm.call(this)})},ready(){let e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute(`id`);if(!Q.empty(n)&&n.startsWith(`youtube-`))return;let r=e.media.getAttribute(`src`);Q.empty(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));let i=fh(r);if(e.media=Wp(zp(`div`,{id:Cm(e.provider),"data-poster":t.customControls?e.poster:void 0}),e.media),t.customControls){let t=e=>`https://i.ytimg.com/vi/${i}/${e}default.jpg`;Qm(t(`maxres`),121).catch(()=>Qm(t(`sd`),121)).catch(()=>Qm(t(`hq`))).then(t=>$m.setPoster.call(e,t.src)).then(t=>{t.includes(`maxres`)||(e.elements.poster.style.backgroundSize=`cover`)}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:i,host:mh(t),playerVars:Ip({},{autoplay:+!!e.config.autoplay,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:+!!e.captions.active,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError(t){if(!e.media.error){let n=t.data,r={2:`The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.`,5:`The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.`,100:`The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.`,101:`The owner of the requested video does not allow it to be played in embedded players.`,150:`The owner of the requested video does not allow it to be played in embedded players.`}[n]||`An unknown error occurred`;e.media.error={code:n,message:r},sm.call(e,e.media,`error`)}},onPlaybackRateChange(t){let n=t.target;e.media.playbackRate=n.getPlaybackRate(),sm.call(e,e.media,`ratechange`)},onReady(n){if(Q.function(e.media.play))return;let r=n.target;hh.getTitle.call(e,i),e.media.play=()=>{ph.call(e,!0),r.playVideo()},e.media.pause=()=>{ph.call(e,!1),r.pauseVideo()},e.media.stop=()=>{r.stopVideo()},e.media.duration=r.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,`currentTime`,{get(){return Number(r.getCurrentTime())},set(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,sm.call(e,e.media,`seeking`),r.seekTo(t)}}),Object.defineProperty(e.media,`playbackRate`,{get(){return r.getPlaybackRate()},set(e){r.setPlaybackRate(e)}});let{volume:a}=e.config;Object.defineProperty(e.media,`volume`,{get(){return a},set(t){a=t,r.setVolume(a*100),sm.call(e,e.media,`volumechange`)}});let{muted:o}=e.config;Object.defineProperty(e.media,`muted`,{get(){return o},set(t){let n=Q.boolean(t)?t:o;o=n,r[n?`mute`:`unMute`](),r.setVolume(a*100),sm.call(e,e.media,`volumechange`)}}),Object.defineProperty(e.media,`currentSrc`,{get(){return r.getVideoUrl()}}),Object.defineProperty(e.media,`ended`,{get(){return e.currentTime===e.duration}});let s=r.getAvailablePlaybackRates();e.options.speed=s.filter(t=>e.config.speed.options.includes(t)),e.supported.ui&&t.customControls&&e.media.setAttribute(`tabindex`,-1),sm.call(e,e.media,`timeupdate`),sm.call(e,e.media,`durationchange`),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=r.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&sm.call(e,e.media,`progress`),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),sm.call(e,e.media,`canplaythrough`))},200),t.customControls&&setTimeout(()=>$m.build.call(e),50)},onStateChange(n){let r=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,sm.call(e,e.media,`seeked`)),n.data){case-1:sm.call(e,e.media,`timeupdate`),e.media.buffered=r.getVideoLoadedFraction(),sm.call(e,e.media,`progress`);break;case 0:ph.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):sm.call(e,e.media,`ended`);break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(ph.call(e,!0),sm.call(e,e.media,`playing`),e.timers.playing=setInterval(()=>{sm.call(e,e.media,`timeupdate`)},50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),sm.call(e,e.media,`durationchange`)));break;case 2:e.muted||e.embed.unMute(),ph.call(e,!1);break;case 3:sm.call(e,e.media,`waiting`);break}sm.call(e,e.elements.container,`statechange`,!1,{code:n.data})}}})}},gh={setup(){if(!this.media){this.debug.warn(`No media element found!`);return}qp(this.elements.container,this.config.classNames.type.replace(`{0}`,this.type),!0),qp(this.elements.container,this.config.classNames.provider.replace(`{0}`,this.provider),!0),this.isEmbed&&qp(this.elements.container,this.config.classNames.type.replace(`{0}`,`video`),!0),this.isVideo&&(this.elements.wrapper=zp(`div`,{class:this.config.classNames.video}),Lp(this.media,this.elements.wrapper),this.elements.poster=zp(`div`,{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?xm.setup.call(this):this.isYouTube?hh.setup.call(this):this.isVimeo&&dh.setup.call(this)}};function _h(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()}var vh=class{constructor(e){Z(this,`load`,()=>{this.enabled&&(!Q.object(window.google)||!Q.object(window.google.ima)?sh(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger(`error`,Error(`Google IMA SDK failed to load`))}):this.ready())}),Z(this,`ready`,()=>{this.enabled||_h(this),this.startSafetyTimer(12e3,`ready()`),this.managerPromise.then(()=>{this.clearSafetyTimer(`onAdsManagerLoaded()`)}),this.listeners(),this.setupIMA()}),Z(this,`setupIMA`,()=>{this.elements.container=zp(`div`,{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,e=>this.onAdsManagerLoaded(e),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e),!1),this.requestAds()}),Z(this,`requestAds`,()=>{let{container:e}=this.player.elements;try{let t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}),Z(this,`pollCountdown`,(e=!1)=>{if(!e){clearInterval(this.countdownTimer),this.elements.container.removeAttribute(`data-badge-text`);return}let t=()=>{let e=Bm(Math.max(this.manager.getRemainingTime(),0)),t=`${Nm.get(`advertisement`,this.player.config)} - ${e}`;this.elements.container.setAttribute(`data-badge-text`,t)};this.countdownTimer=setInterval(t,100)}),Z(this,`onAdsManagerLoaded`,e=>{if(!this.enabled)return;let t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,e=>this.onAdError(e)),Object.keys(google.ima.AdEvent.Type).forEach(e=>{this.manager.addEventListener(google.ima.AdEvent.Type[e],e=>this.onAdEvent(e))}),this.trigger(`loaded`)}),Z(this,`addCuePoints`,()=>{Q.empty(this.cuePoints)||this.cuePoints.forEach(e=>{if(e!==0&&e!==-1&&e<this.player.duration){let t=this.player.elements.progress;if(Q.element(t)){let n=100/this.player.duration*e,r=zp(`span`,{class:this.player.config.classNames.cues});r.style.left=`${n.toString()}%`,t.appendChild(r)}}})}),Z(this,`onAdEvent`,e=>{let{container:t}=this.player.elements,n=e.getAd(),r=e.getAdData();switch((e=>{sm.call(this.player,this.player.media,`ads${e.replace(/_/g,``).toLowerCase()}`)})(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger(`loaded`),this.pollCountdown(!0),n.isLinear()||(n.width=t.offsetWidth,n.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&this.player.debug.warn(`Non-fatal ad error: ${r.adError.getMessage()}`);break}}),Z(this,`onAdError`,e=>{this.cancel(),this.player.debug.warn(`Ads error`,e)}),Z(this,`listeners`,()=>{let{container:e}=this.player.elements,t;this.player.on(`canplay`,()=>{this.addCuePoints()}),this.player.on(`ended`,()=>{this.loader.contentComplete()}),this.player.on(`timeupdate`,()=>{t=this.player.currentTime}),this.player.on(`seeked`,()=>{let e=this.player.currentTime;Q.empty(this.cuePoints)||this.cuePoints.forEach((n,r)=>{t<n&&n<e&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))})}),window.addEventListener(`resize`,()=>{this.manager&&this.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)})}),Z(this,`play`,()=>{let{container:e}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(e){this.onAdError(e)}}).catch(()=>{})}),Z(this,`resumeContent`,()=>{this.elements.container.style.zIndex=``,this.playing=!1,um(this.player.media.play())}),Z(this,`pauseContent`,()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),Z(this,`cancel`,()=>{this.initialized&&this.resumeContent(),this.trigger(`error`),this.loadAds()}),Z(this,`loadAds`,()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(e=>{this.on(`loaded`,e),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),Z(this,`trigger`,(e,...t)=>{let n=this.events[e];Q.array(n)&&n.forEach(e=>{Q.function(e)&&e.apply(this,t)})}),Z(this,`on`,(e,t)=>(Q.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this)),Z(this,`startSafetyTimer`,(e,t)=>{this.player.debug.log(`Safety timer invoked from: ${t}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer(`startSafetyTimer()`)},e)}),Z(this,`clearSafetyTimer`,e=>{Q.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${e}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((e,t)=>{this.on(`loaded`,e),this.on(`error`,t)}),this.load()}get enabled(){let{config:e}=this;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!Q.empty(e.publisherId)||Q.url(e.tagUrl))}get tagUrl(){let{config:e}=this;return Q.url(e.tagUrl)?e.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${Hm({AV_PUBLISHERID:`58c25bb0073ef448b1087ad6`,AV_CHANNELID:`5a0458dc28a06145e4519d21`,AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}`}};function yh(e=0,t=0,n=255){return Math.min(Math.max(e,t),n)}function bh(e){let t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(e=>{let n={};e.split(/\r\n|\n|\r/).forEach(e=>{if(!Q.number(n.startTime)){let t=e.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);t&&(n.startTime=Number(t[1]||0)*60*60+Number(t[2])*60+Number(t[3])+Number(`0.${t[4]}`),n.endTime=Number(t[6]||0)*60*60+Number(t[7])*60+Number(t[8])+Number(`0.${t[9]}`))}else if(!Q.empty(e.trim())&&Q.empty(n.text)){let t=e.trim().split(`#xywh=`);[n.text]=t,t[1]&&([n.x,n.y,n.w,n.h]=t[1].split(`,`))}}),n.text&&t.push(n)}),t}function xh(e,t){let n=t.width/t.height,r={};return e>n?(r.width=t.width,r.height=1/e*t.width):(r.height=t.height,r.width=e*t.height),r}var Sh=class{constructor(e){Z(this,`load`,()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),Z(this,`getThumbnails`,()=>new Promise(e=>{let{src:t}=this.player.config.previewThumbnails;if(Q.empty(t))throw Error(`Missing previewThumbnails.src config attribute`);let n=()=>{this.thumbnails.sort((e,t)=>e.height-t.height),this.player.debug.log(`Preview thumbnails`,this.thumbnails),e()};if(Q.function(t))t(e=>{this.thumbnails=e,n()});else{let e=(Q.string(t)?[t]:t).map(e=>this.getThumbnail(e));Promise.all(e).then(n)}})),Z(this,`getThumbnail`,e=>new Promise(t=>{Fm(e,void 0,this.player.config.previewThumbnails.withCredentials).then(n=>{let r={frames:bh(n),height:null,urlPrefix:``};!r.frames[0].text.startsWith(`/`)&&!r.frames[0].text.startsWith(`http://`)&&!r.frames[0].text.startsWith(`https://`)&&(r.urlPrefix=e.substring(0,e.lastIndexOf(`/`)+1));let i=new Image;i.onload=()=>{r.height=i.naturalHeight,r.width=i.naturalWidth,this.thumbnails.push(r),t()},i.src=r.urlPrefix+r.frames[0].text})})),Z(this,`startMove`,e=>{if(this.loaded&&!(!Q.event(e)||![`touchmove`,`mousemove`].includes(e.type))&&this.player.media.duration){if(e.type===`touchmove`)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{let t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.textContent=Bm(this.seekTime);let r=this.player.config.markers?.points?.find(({time:e})=>e===Math.round(this.seekTime));r&&this.elements.thumb.time.insertAdjacentHTML(`afterbegin`,`${r.label}<br>`)}this.showImageAtCurrentTime()}}),Z(this,`endMove`,()=>{this.toggleThumbContainer(!1,!0)}),Z(this,`startScrubbing`,e=>{(Q.nullOrUndefined(e.button)||e.button===!1||e.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),Z(this,`endScrubbing`,()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):om.call(this.player,this.player.media,`timeupdate`,()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),Z(this,`listeners`,()=>{this.player.on(`play`,()=>{this.toggleThumbContainer(!1,!0)}),this.player.on(`seeked`,()=>{this.toggleThumbContainer(!1)}),this.player.on(`timeupdate`,()=>{this.lastTime=this.player.media.currentTime})}),Z(this,`render`,()=>{this.elements.thumb.container=zp(`div`,{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=zp(`div`,{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);let e=zp(`div`,{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=zp(`span`,{},`00:00`),e.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(e),Q.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=zp(`div`,{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),Z(this,`destroy`,()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),Z(this,`showImageAtCurrentTime`,()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();let e=this.thumbnails[0].frames.findIndex(e=>this.seekTime>=e.startTime&&this.seekTime<=e.endTime),t=e>=0,n=0;this.mouseDown||this.toggleThumbContainer(t),t&&(this.thumbnails.forEach((t,r)=>{this.loadedImages.includes(t.frames[e].text)&&(n=r)}),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(n)))}),Z(this,`loadImage`,(e=0)=>{let t=this.showingThumb,n=this.thumbnails[e],{urlPrefix:r}=n,i=n.frames[t],a=n.frames[t].text,o=r+a;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==a){this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);let n=new Image;n.src=o,n.dataset.index=t,n.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log(`Loading image: ${o}`),n.onload=()=>this.showImage(n,i,e,t,a,!0),this.loadingImage=n,this.removeOldImages(n)}else this.showImage(this.currentImageElement,i,e,t,a,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement)}),Z(this,`showImage`,(e,t,n,r,i,a=!0)=>{this.player.debug.log(`Showing thumb: ${i}. num: ${r}. qual: ${n}. newimg: ${a}`),this.setImageSizeAndOffset(e,t),a&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(i)||this.loadedImages.push(i)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,e,t,i))}),Z(this,`removeOldImages`,e=>{Array.from(this.currentImageContainer.children).forEach(t=>{if(t.tagName.toLowerCase()!==`img`)return;let n=this.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;let{currentImageContainer:e}=this;setTimeout(()=>{e.removeChild(t),this.player.debug.log(`Removing thumb: ${t.dataset.filename}`)},n)}})}),Z(this,`preloadNearby`,(e,t=!0)=>new Promise(n=>{setTimeout(()=>{let r=this.thumbnails[0].frames[e].text;if(this.showingThumbFilename===r){let i;i=t?this.thumbnails[0].frames.slice(e):this.thumbnails[0].frames.slice(0,e).reverse();let a=!1;i.forEach(e=>{let t=e.text;if(t!==r&&!this.loadedImages.includes(t)){a=!0,this.player.debug.log(`Preloading thumb filename: ${t}`);let{urlPrefix:e}=this.thumbnails[0],r=e+t,i=new Image;i.src=r,i.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${t}`),this.loadedImages.includes(t)||this.loadedImages.push(t),n()}}}),a||n()}},300)})),Z(this,`getHigherQuality`,(e,t,n,r)=>{if(e<this.thumbnails.length-1){let i=t.naturalHeight;this.usingSprites&&(i=n.h),i<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===r&&(this.player.debug.log(`Showing higher quality thumb for: ${r}`),this.loadImage(e+1))},300)}}),Z(this,`toggleThumbContainer`,(e=!1,t=!1)=>{let n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}),Z(this,`toggleScrubbingContainer`,(e=!1)=>{let t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}),Z(this,`determineContainerAutoSizing`,()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),Z(this,`setThumbContainerSizeAndPos`,()=>{let{imageContainer:e}=this.elements.thumb;if(!this.sizeSpecifiedInCSS){let t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);e.style.height=`${this.thumbContainerHeight}px`,e.style.width=`${t}px`}else if(e.clientHeight>20&&e.clientWidth<20){let t=Math.floor(e.clientHeight*this.thumbAspectRatio);e.style.width=`${t}px`}else if(e.clientHeight<20&&e.clientWidth>20){let t=Math.floor(e.clientWidth/this.thumbAspectRatio);e.style.height=`${t}px`}this.setThumbContainerPos()}),Z(this,`setThumbContainerPos`,()=>{let e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,r=t.left-e.left+10,i=t.right-e.left-n.clientWidth-10,a=this.mousePosX-e.left-n.clientWidth/2,o=yh(a,r,i);n.style.left=`${o}px`,n.style.setProperty(`--preview-arrow-offset`,`${a-o}px`)}),Z(this,`setScrubbingContainerSize`,()=>{let{width:e,height:t}=xh(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${e}px`,this.elements.scrubbing.container.style.height=`${t}px`}),Z(this,`setImageSizeAndOffset`,(e,t)=>{if(!this.usingSprites)return;let n=this.thumbContainerHeight/t.h;e.style.height=`${e.naturalHeight*n}px`,e.style.width=`${e.naturalWidth*n}px`,e.style.left=`-${t.x*n}px`,e.style.top=`-${t.y*n}px`}),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes(`w`)}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){let{height:e}=xh(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return e}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}},Ch={insertElements(e,t){Q.string(t)?Vp(e,this.media,{src:t}):Q.array(t)&&t.forEach(t=>{Vp(e,this.media,t)})},change(e){if(!Fp(e,`sources.length`)){this.debug.warn(`Invalid source format`);return}xm.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],Hp(this.media),this.media=null,Q.element(this.elements.container)&&this.elements.container.removeAttribute(`class`);let{sources:t,type:n}=e,[{provider:r=Km.html5,src:i}]=t,a=r===`html5`?n:`div`,o=r===`html5`?{}:{src:i};Object.assign(this,{provider:r,type:n,supported:tm.check(n,r,this.config.playsinline),media:zp(a,o)}),this.elements.container.appendChild(this.media),Q.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute(`crossorigin`,``),this.config.autoplay&&this.media.setAttribute(`autoplay`,``),Q.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute(`loop`,``),this.config.muted&&this.media.setAttribute(`muted`,``),this.config.playsinline&&this.media.setAttribute(`playsinline`,``)),$m.addStyleHook.call(this),this.isHTML5&&Ch.insertElements.call(this,`source`,t),this.config.title=e.title,gh.setup.call(this),this.isHTML5&&Object.keys(e).includes(`tracks`)&&Ch.insertElements.call(this,`track`,e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&$m.build.call(this),this.isHTML5&&this.media.load(),Q.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Sh(this))),this.fullscreen.update()},!0)}},wh=class e{constructor(t,n){if(Z(this,`play`,()=>Q.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>um(this.media.play())),this.media.play()):null),Z(this,`pause`,()=>!this.playing||!Q.function(this.media.pause)?null:this.media.pause()),Z(this,`togglePlay`,e=>(Q.boolean(e)?e:!this.playing)?this.play():this.pause()),Z(this,`stop`,()=>{this.isHTML5?(this.pause(),this.restart()):Q.function(this.media.stop)&&this.media.stop()}),Z(this,`restart`,()=>{this.currentTime=0}),Z(this,`rewind`,e=>{this.currentTime-=Q.number(e)?e:this.config.seekTime}),Z(this,`forward`,e=>{this.currentTime+=Q.number(e)?e:this.config.seekTime}),Z(this,`increaseVolume`,e=>{let t=this.media.muted?0:this.volume;this.volume=t+(Q.number(e)?e:0)}),Z(this,`decreaseVolume`,e=>{this.increaseVolume(-e)}),Z(this,`airplay`,()=>{tm.airplay&&this.media.webkitShowPlaybackTargetPicker()}),Z(this,`toggleControls`,e=>{if(this.supported.ui&&!this.isAudio){let t=Jp(this.elements.container,this.config.classNames.hideControls),n=e===void 0?void 0:!e,r=qp(this.elements.container,this.config.classNames.hideControls,n);if(r&&Q.array(this.config.controls)&&this.config.controls.includes(`settings`)&&!Q.empty(this.config.settings)&&$.toggleMenu.call(this,!1),r!==t){let e=r?`controlshidden`:`controlsshown`;sm.call(this,this.media,e)}return!r}return!1}),Z(this,`on`,(e,t)=>{im.call(this,this.elements.container,e,t)}),Z(this,`once`,(e,t)=>{om.call(this,this.elements.container,e,t)}),Z(this,`off`,(e,t)=>{am(this.elements.container,e,t)}),Z(this,`destroy`,(e,t=!1)=>{if(!this.ready)return;let n=()=>{document.body.style.overflow=``,this.embed=null,t?(Object.keys(this.elements).length&&(Hp(this.elements.buttons.play),Hp(this.elements.captions),Hp(this.elements.controls),Hp(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),Q.function(e)&&e()):(cm.call(this),xm.cancelRequests.call(this),Wp(this.elements.original,this.elements.container),sm.call(this,this.elements.original,`destroyed`,!0),Q.function(e)&&e.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?($m.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&Q.function(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(n),setTimeout(n,200))}),Z(this,`supports`,e=>tm.mime.call(this,e)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=tm.touch,this.media=t,Q.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||Q.nodeList(this.media)||Q.array(this.media))&&(this.media=this.media[0]),this.config=Ip({},Wm,e.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute(`data-plyr-config`))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Xm(this.config.debug),this.debug.log(`Config`,this.config),this.debug.log(`Support`,tm),Q.nullOrUndefined(this.media)||!Q.element(this.media)){this.debug.error(`Setup failed: no suitable element passed`);return}if(this.media.plyr){this.debug.warn(`Target already setup`);return}if(!this.config.enabled){this.debug.error(`Setup failed: disabled by config`);return}if(!tm.check().api){this.debug.error(`Setup failed: no support`);return}let r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;let i=this.media.tagName.toLowerCase(),a=null,o=null;switch(i){case`div`:if(a=this.media.querySelector(`iframe`),Q.element(a)){if(o=Vm(a.getAttribute(`src`)),this.provider=Jm(o.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className=``,o.search.length){let e=[`1`,`true`];e.includes(o.searchParams.get(`autoplay`))&&(this.config.autoplay=!0),e.includes(o.searchParams.get(`loop`))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=e.includes(o.searchParams.get(`playsinline`)),this.config.youtube.hl=o.searchParams.get(`hl`)):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Q.empty(this.provider)||!Object.values(Km).includes(this.provider)){this.debug.error(`Setup failed: Invalid provider`);return}this.type=qm.video;break;case`video`:case`audio`:this.type=i,this.provider=Km.html5,this.media.hasAttribute(`crossorigin`)&&(this.config.crossorigin=!0),this.media.hasAttribute(`autoplay`)&&(this.config.autoplay=!0),(this.media.hasAttribute(`playsinline`)||this.media.hasAttribute(`webkit-playsinline`))&&(this.config.playsinline=!0),this.media.hasAttribute(`muted`)&&(this.config.muted=!0),this.media.hasAttribute(`loop`)&&(this.config.loop.active=!0);break;default:this.debug.error(`Setup failed: unsupported type`);return}if(this.supported=tm.check(this.type,this.provider),!this.supported.api){this.debug.error(`Setup failed: no support`);return}this.eventListeners=[],this.listeners=new eh(this),this.storage=new Pm(this),this.media.plyr=this,Q.element(this.elements.container)||(this.elements.container=zp(`div`),Lp(this.media,this.elements.container)),$m.migrateStyles.call(this),$m.addStyleHook.call(this),gh.setup.call(this),this.config.debug&&im.call(this,this.elements.container,this.config.events.join(` `),e=>{this.debug.log(`event: ${e.type}`)}),this.fullscreen=new Zm(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&$m.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new vh(this)),this.isHTML5&&this.config.autoplay&&this.once(`canplay`,()=>um(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Sh(this))}get isHTML5(){return this.provider===Km.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Km.youtube}get isVimeo(){return this.provider===Km.vimeo}get isVideo(){return this.type===qm.video}get isAudio(){return this.type===qm.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(e){if(!this.duration)return;let t=Q.number(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){let{buffered:e}=this.media;return Q.number(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){let e=Number.parseFloat(this.config.duration),t=(this.media||{}).duration,n=!Q.number(t)||t===1/0?0:t;return e||n}set volume(e){let t=e;Q.string(t)&&(t=Number(t)),Q.number(t)||(t=this.storage.get(`volume`)),Q.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!Q.empty(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;Q.boolean(t)||(t=this.storage.get(`muted`)),Q.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||this.isAudio?!0:!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(e){let t=null;Q.number(e)&&(t=e),Q.number(t)||(t=this.storage.get(`speed`)),Q.number(t)||(t=this.config.speed.selected);let{minimumSpeed:n,maximumSpeed:r}=this;t=yh(t,n,r),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){let t=this.config.quality,n=this.options.quality;if(!n.length)return;let r=[!Q.empty(e)&&Number(e),this.storage.get(`quality`),t.selected,t.default].find(Q.number),i=!0;if(!n.includes(r)){let e=fm(n,r);this.debug.warn(`Unsupported quality option: ${r}, using ${e} instead`),r=e,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}get quality(){return this.media.quality}set loop(e){let t=Q.boolean(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(e){Ch.change.call(this,e)}get source(){return this.media.currentSrc}get download(){let{download:e}=this.config.urls;return Q.url(e)?e:this.source}set download(e){Q.url(e)&&(this.config.urls.download=e,$.setDownloadUrl.call(this))}set poster(e){if(!this.isVideo){this.debug.warn(`Poster can only be set for video`);return}$m.setPoster.call(this,e,!1).catch(()=>{})}get poster(){return this.isVideo?this.media.getAttribute(`poster`)||this.media.getAttribute(`data-poster`):null}get ratio(){if(!this.isVideo)return null;let e=gm(_m.call(this));return Q.array(e)?e.join(`:`):e}set ratio(e){if(!this.isVideo){this.debug.warn(`Aspect ratio can only be set for video`);return}if(!Q.string(e)||!hm(e)){this.debug.error(`Invalid aspect ratio specified (${e})`);return}this.config.ratio=gm(e),vm.call(this)}set autoplay(e){this.config.autoplay=Q.boolean(e)?e:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(e){Um.toggle.call(this,e,!1)}set currentTrack(e){Um.set.call(this,e,!1),Um.setup.call(this)}get currentTrack(){let{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){Um.setLanguage.call(this,e,!1)}get language(){return(Um.getCurrentTrack.call(this)||{}).language}set pip(e){if(!tm.pip)return;let t=Q.boolean(e)?e:!this.pip;Q.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Gm.active:Gm.inactive),Q.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return tm.pip?Q.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Gm.active:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Sh(this))}static supported(e,t){return tm.check(e,t)}static loadSprite(e,t){return Im(e,t)}static setup(t,n={}){let r=null;return Q.string(t)?r=Array.from(document.querySelectorAll(t)):Q.nodeList(t)?r=Array.from(t):Q.array(t)&&(r=t.filter(Q.element)),Q.empty(r)?null:r.map(t=>new e(t,n))}};wh.defaults=Pp(Wm);var Th={key:0,class:`norio-office-rich-video-block__toolbar`},Eh=[`disabled`,`title`],Dh={key:0,class:`norio-office-rich-video-block__align-menu`},Oh={key:1,class:`norio-office-rich-video-block__align-check`},kh={key:1,class:`norio-office-rich-video-block__align-check`},Ah={key:1,class:`norio-office-rich-video-block__align-check`},jh=[`disabled`],Mh={class:`norio-office-rich-video-block__body`},Nh=[`src`,`type`],Ph={key:0,class:`norio-office-rich-video-block__caption`},Fh={class:`norio-office-rich-video-block__caption-desc`},Ih={key:1,class:`norio-office-rich-video-block__upload-overlay`},Lh={key:0,class:`norio-office-rich-upload-spinner`,"aria-hidden":`true`},Rh={class:`norio-office-rich-video-block__upload-title`},zh={class:`norio-office-rich-video-block__upload-file`},Bh={key:1,class:`norio-office-rich-video-block__placeholder-actions`},Vh={key:0,class:`norio-office-rich-video-block__upload-state`},Hh={class:`norio-office-rich-video-block__upload-file`},Uh={key:1,class:`norio-office-rich-video-block__upload-state norio-office-rich-video-block__upload-state--error`},Wh={class:`norio-office-rich-video-block__upload-file`},Gh={class:`norio-office-rich-video-block__placeholder-actions`},Kh={class:`norio-office-rich-video-block__placeholder-title`},qh={key:0,class:`norio-office-rich-video-block__placeholder-actions`},Jh={class:`norio-office-rich-video-block__dialog-row`},Yh=[`onKeydown`],Xh=(0,t.defineComponent)({__name:`VideoBlockView`,props:{decorations:{},selected:{type:Boolean},updateAttributes:{type:Function},deleteNode:{type:Function},node:{},view:{},getPos:{},innerDecorations:{},editor:{},extension:{},HTMLAttributes:{}},setup(e){let r=e,i=(0,t.ref)(null),a=(0,t.ref)(null),o=(0,t.ref)(null),s=(0,t.ref)(null),c=(0,t.ref)(!1),l=(0,t.ref)(``),u=(0,t.ref)(!1),d=(0,t.ref)(!1),f=(0,t.ref)(!1),p=0,m=100,h=0,g=220,_=`br`,v=null,y=(0,t.computed)(()=>String(r.node.attrs.src??``));(0,t.computed)(()=>String(r.node.attrs.name??``));let b=(0,t.computed)(()=>String(r.node.attrs.description??``)),x=(0,t.computed)(()=>String(r.node.attrs.mimeType??`video/mp4`)),S=(0,t.computed)(()=>{let e=String(r.node.attrs.align??`left`);return e===`center`||e===`right`?e:`left`}),C=(0,t.computed)(()=>Number(r.node.attrs.widthPercent??100)),w=(0,t.computed)(()=>Number(r.node.attrs.height??220)),T=(0,t.computed)(()=>y.value.length>0),E=Al(r.editor),ee=(0,t.computed)(()=>s.value?.status===`uploading`),te=(0,t.computed)(()=>s.value?.status===`error`),D=(0,t.computed)(()=>S.value===`center`?`juzhongduiqi`:S.value===`right`?`youduiqi`:`zuoduiqi`);function ne(){if(!E.value)return;let e=r.getPos();typeof e==`number`&&r.editor.commands.setNodeSelection(e)}function re(){!E.value||ee.value||(i.value?.click(),ne())}async function ie(e){return await new Promise((t,n)=>{let i={kind:`video`,file:e,handled:!1,resolve:t,reject:n};r.editor.view.dom.dispatchEvent(new CustomEvent(`norio-office-rich-upload-request`,{bubbles:!0,detail:i})),i.handled||n(Error(`Missing uploadVideo hook.`))})}function O(e,t){let n=r.extension.options.onUploadError;n?.({kind:`video`,fileName:e.name,error:t})}function ae(e){return e instanceof Error&&e.message?e.message:`上传失败,请重试。`}async function oe(e){s.value={status:`uploading`,file:e};try{let t=await ie(e);r.updateAttributes({assetId:t.assetId||``,src:t.url,name:t.name||e.name,description:t.description??b.value,mimeType:t.mimeType||e.type||`video/mp4`}),s.value=null}catch(t){s.value={status:`error`,file:e,message:ae(t)},O(e,t)}}function se(){!s.value?.file||s.value.status!==`error`||oe(s.value.file)}async function ce(e){let t=e.target,n=t.files?.[0];if(!n||!n.type.startsWith(`video/`)){t.value=``;return}await oe(n),t.value=``}function le(e){E.value&&(r.updateAttributes({align:e}),c.value=!1)}function ue(){E.value&&(c.value=!c.value)}function de(){c.value=!1}function fe(){E.value&&(l.value=b.value,u.value=!0)}function pe(){u.value=!1,l.value=``}function me(){E.value&&(r.updateAttributes({description:l.value.trim()}),pe())}function he(){E.value&&r.deleteNode()}function ge(e){if(c.value){let t=e.target;(!(t instanceof Node)||!o.value?.contains(t))&&de()}}function _e(e,t){E.value&&(e.preventDefault(),e.stopPropagation(),ne(),d.value=!0,_=t,p=e.clientX,m=C.value,h=e.clientY,g=w.value,window.addEventListener(`mousemove`,ye),window.addEventListener(`mouseup`,xe))}function ve(e){E.value&&(e.preventDefault(),e.stopPropagation(),ne(),f.value=!0,h=e.clientY,g=w.value,window.addEventListener(`mousemove`,be),window.addEventListener(`mouseup`,Se))}function ye(e){if(!d.value)return;let t=e.clientX-p,n=e.clientY-h,i=_===`tl`||_===`bl`?-1:1,a=_===`tl`||_===`tr`?-1:1,o=Math.max(30,Math.min(100,m+t*i/8)),s=Math.max(180,Math.min(640,g+n*a));r.updateAttributes({widthPercent:Math.round(o),height:Math.round(s)})}function be(e){if(!f.value)return;let t=e.clientY-h,n=Math.max(180,Math.min(640,g+t));r.updateAttributes({height:Math.round(n)})}function xe(){d.value=!1,window.removeEventListener(`mousemove`,ye),window.removeEventListener(`mouseup`,xe)}function Se(){f.value=!1,window.removeEventListener(`mousemove`,be),window.removeEventListener(`mouseup`,Se)}async function Ce(){v?.destroy(),v=null,await(0,t.nextTick)(),!(!a.value||!T.value)&&(v=new wh(a.value,{controls:[`play-large`,`play`,`progress`,`current-time`,`mute`,`volume`,`settings`,`fullscreen`],tooltips:{controls:!0,seek:!0},i18n:{restart:`重新开始`,rewind:`后退 {seektime} 秒`,play:`播放`,pause:`暂停`,fastForward:`快进 {seektime} 秒`,seek:`跳转`,seekLabel:`{currentTime} / {duration}`,played:`已播放`,buffered:`已缓冲`,currentTime:`当前时间`,duration:`总时长`,volume:`音量`,mute:`静音`,unmute:`取消静音`,enableCaptions:`开启字幕`,disableCaptions:`关闭字幕`,download:`下载`,enterFullscreen:`全屏`,exitFullscreen:`退出全屏`,frameTitle:`视频播放器:{title}`,captions:`字幕`,settings:`设置`,pip:`画中画`,menuBack:`返回上一级`,speed:`播放速度`,normal:`1.x`,quality:`清晰度`,loop:`循环播放`,start:`开始`,end:`结束`,all:`全部`,reset:`重置`,disabled:`关闭`,enabled:`开启`,advertisement:`广告`,qualityBadge:{2160:`4K`,1440:`2K`,1080:`1080p`,720:`720p`,576:`576p`,480:`480p`}}}),v.poster=``)}return(0,t.onMounted)(()=>{document.addEventListener(`pointerdown`,ge,!0),Ce()}),(0,t.watch)(y,()=>{Ce()}),(0,t.onBeforeUnmount)(()=>{xe(),Se(),document.removeEventListener(`pointerdown`,ge,!0),v?.destroy(),v=null}),(r,d)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.NodeViewWrapper),{class:(0,t.normalizeClass)([`norio-office-rich-video-block`,{"norio-office-rich-video-block--selected":e.selected&&(0,t.unref)(E),"norio-office-rich-video-block--uploading":ee.value,"norio-office-rich-video-block--upload-error":te.value}]),"data-align":S.value,style:(0,t.normalizeStyle)({width:`${C.value}%`}),onMousedown:ne},{default:(0,t.withCtx)(()=>[e.selected&&(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Th,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__tool`,disabled:ee.value,title:T.value?`替换视频`:`上传视频`,onClick:(0,t.withModifiers)(re,[`stop`])},[(0,t.createVNode)(k,{name:`xiangshangcharu`,size:14,color:`#4b5563`,"background-color":`transparent`})],8,Eh),T.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-video-block__tool`,title:`视频描述`,onClick:(0,t.withModifiers)(fe,[`stop`])},[(0,t.createVNode)(k,{name:`comment`,size:14,color:`#4b5563`,"background-color":`transparent`})])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{ref_key:`alignDropdownRef`,ref:o,class:`norio-office-rich-video-block__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__tool`,title:`视频对齐方式`,onClick:(0,t.withModifiers)(ue,[`stop`])},[(0,t.createVNode)(k,{name:D.value,size:14,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])]),c.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Dh,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-video-block__align-item`,{"norio-office-rich-video-block__align-item--active":S.value===`left`}]),onClick:d[0]||=(0,t.withModifiers)(e=>le(`left`),[`stop`])},[S.value===`left`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Oh)),(0,t.createVNode)(k,{class:`norio-office-rich-video-block__align-icon`,name:`zuoduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),d[9]||=(0,t.createElementVNode)(`span`,null,`左对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-video-block__align-item`,{"norio-office-rich-video-block__align-item--active":S.value===`center`}]),onClick:d[1]||=(0,t.withModifiers)(e=>le(`center`),[`stop`])},[S.value===`center`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,kh)),(0,t.createVNode)(k,{class:`norio-office-rich-video-block__align-icon`,name:`juzhongduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),d[10]||=(0,t.createElementVNode)(`span`,null,`居中对齐`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-video-block__align-item`,{"norio-office-rich-video-block__align-item--active":S.value===`right`}]),onClick:d[2]||=(0,t.withModifiers)(e=>le(`right`),[`stop`])},[S.value===`right`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ah)),(0,t.createVNode)(k,{class:`norio-office-rich-video-block__align-icon`,name:`youduiqi`,size:14,color:`#4b5563`,"background-color":`transparent`}),d[11]||=(0,t.createElementVNode)(`span`,null,`右对齐`,-1)],2)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__tool`,disabled:ee.value,title:`视频删除`,onClick:(0,t.withModifiers)(he,[`stop`])},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#4b5563`,"background-color":`transparent`})],8,jh)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Mh,[T.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`video`,{ref_key:`videoRef`,ref:a,class:`norio-office-rich-video-block__player`,playsinline:``,controls:``,style:(0,t.normalizeStyle)({height:`${w.value}px`})},[(0,t.createElementVNode)(`source`,{src:y.value,type:x.value},null,8,Nh)],4),b.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ph,[(0,t.createElementVNode)(`div`,Fh,(0,t.toDisplayString)(b.value),1)])):(0,t.createCommentVNode)(``,!0),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ih,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`norio-office-rich-video-block__upload-state`,{"norio-office-rich-video-block__upload-state--error":te.value}])},[ee.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Lh)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Rh,(0,t.toDisplayString)(ee.value?`视频上传中`:`视频上传失败`),1),(0,t.createElementVNode)(`div`,zh,(0,t.toDisplayString)(s.value.message||s.value.file.name),1),te.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Bh,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__placeholder-button`,title:`重试上传`,onClick:(0,t.withModifiers)(se,[`stop`])},[...d[12]||=[(0,t.createElementVNode)(`span`,null,`重试`,-1)]]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__placeholder-button`,title:`重新选择视频`,onClick:(0,t.withModifiers)(re,[`stop`])},[...d[13]||=[(0,t.createElementVNode)(`span`,null,`重新选择`,-1)]])])):(0,t.createCommentVNode)(``,!0)],2)])):(0,t.createCommentVNode)(``,!0)],64)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:`norio-office-rich-video-block__placeholder`,style:(0,t.normalizeStyle)({minHeight:`${w.value}px`})},[ee.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Vh,[d[14]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-upload-spinner`,"aria-hidden":`true`},null,-1),d[15]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-video-block__upload-title`},`视频上传中`,-1),(0,t.createElementVNode)(`div`,Hh,(0,t.toDisplayString)(s.value?.file.name),1)])):te.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Uh,[d[18]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-video-block__upload-title`},`视频上传失败`,-1),(0,t.createElementVNode)(`div`,Wh,(0,t.toDisplayString)(s.value?.message),1),(0,t.createElementVNode)(`div`,Gh,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__placeholder-button`,title:`重试上传`,onClick:(0,t.withModifiers)(se,[`stop`])},[...d[16]||=[(0,t.createElementVNode)(`span`,null,`重试`,-1)]]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__placeholder-button`,title:`重新选择视频`,onClick:(0,t.withModifiers)(re,[`stop`])},[...d[17]||=[(0,t.createElementVNode)(`span`,null,`重新选择`,-1)]])])])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createElementVNode)(`div`,Kh,[(0,t.createVNode)(an,{name:`shipin`,size:16,"background-color":`transparent`}),d[19]||=(0,t.createElementVNode)(`span`,null,`视频`,-1)]),(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qh,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__placeholder-button`,title:`上传视频`,onClick:(0,t.withModifiers)(re,[`stop`])},[(0,t.createVNode)(k,{name:`xiangshangcharu`,size:14,color:`#4b5563`,"background-color":`transparent`}),d[20]||=(0,t.createElementVNode)(`span`,null,`上传视频`,-1)])])):(0,t.createCommentVNode)(``,!0)],64))],4))]),e.selected&&(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:1,class:`norio-office-rich-video-block__handle norio-office-rich-video-block__handle--tl`,onMousedown:d[3]||=e=>_e(e,`tl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:2,class:`norio-office-rich-video-block__handle norio-office-rich-video-block__handle--tr`,onMousedown:d[4]||=e=>_e(e,`tr`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:3,class:`norio-office-rich-video-block__handle norio-office-rich-video-block__handle--bl`,onMousedown:d[5]||=e=>_e(e,`bl`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:4,class:`norio-office-rich-video-block__handle norio-office-rich-video-block__handle--br`,onMousedown:d[6]||=e=>_e(e,`br`)},null,32)):(0,t.createCommentVNode)(``,!0),e.selected&&(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:5,class:`norio-office-rich-video-block__bottom-bar`,onMousedown:ve},null,32)):(0,t.createCommentVNode)(``,!0),u.value&&(0,t.unref)(E)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:6,class:`norio-office-rich-video-block__dialog`,onClick:pe},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-video-block__dialog-card`,onClick:d[8]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createElementVNode)(`label`,Jh,[d[21]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-video-block__dialog-label`},`描述`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":d[7]||=e=>l.value=e,class:`norio-office-rich-video-block__dialog-input`,placeholder:`输入视频描述`,onKeydown:(0,t.withKeys)((0,t.withModifiers)(me,[`prevent`]),[`enter`])},null,40,Yh),[[t.vModelText,l.value]])]),(0,t.createElementVNode)(`div`,{class:`norio-office-rich-video-block__dialog-actions`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-video-block__dialog-confirm`,onClick:me},`确认`)])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`input`,{ref_key:`inputRef`,ref:i,type:`file`,accept:`video/*`,hidden:``,onChange:ce},null,544)]),_:1},8,[`class`,`data-align`,`style`]))}}),Zh=T.Node.create({name:`videoBlock`,group:`block`,atom:!0,selectable:!0,draggable:!0,addOptions(){return{uploadVideo:null,onUploadError:null}},addAttributes(){return{assetId:{default:``,parseHTML:e=>e.getAttribute(`data-asset-id`)||``,renderHTML:e=>({"data-asset-id":String(e.assetId??``)})},src:{default:``,parseHTML:e=>e.getAttribute(`data-src`)||``,renderHTML:e=>({"data-src":String(e.src??``)})},name:{default:``,parseHTML:e=>e.getAttribute(`data-name`)||``,renderHTML:e=>({"data-name":String(e.name??``)})},description:{default:``,parseHTML:e=>e.getAttribute(`data-description`)||``,renderHTML:e=>({"data-description":String(e.description??``)})},mimeType:{default:`video/mp4`,parseHTML:e=>e.getAttribute(`data-mime-type`)||`video/mp4`,renderHTML:e=>({"data-mime-type":String(e.mimeType??`video/mp4`)})},align:{default:`left`,parseHTML:e=>e.getAttribute(`data-align`)||`left`,renderHTML:e=>({"data-align":String(e.align??`left`)})},widthPercent:{default:100,parseHTML:e=>Number.parseInt(e.getAttribute(`data-width-percent`)??`100`,10)||100,renderHTML:e=>({"data-width-percent":String(e.widthPercent??100)})},height:{default:220,parseHTML:e=>Number.parseInt(e.getAttribute(`data-height`)??`220`,10)||220,renderHTML:e=>({"data-height":String(e.height??220)})}}},parseHTML(){return[{tag:`div[data-type="video-block"]`}]},renderHTML({HTMLAttributes:e}){return[`div`,{...e,"data-type":`video-block`}]},addNodeView(){return(0,n.VueNodeViewRenderer)(Xh)}}),Qh=b.default.extend({addAttributes(){return{...this.parent?.(),backgroundColor:{default:null,parseHTML:e=>e.getAttribute(`data-cell-background`)||e.style.backgroundColor||null,renderHTML:e=>e.backgroundColor?{"data-cell-background":e.backgroundColor,style:`background-color: ${e.backgroundColor};`}:{}}}}}),$h=x.default.extend({addAttributes(){return{...this.parent?.(),backgroundColor:{default:null,parseHTML:e=>e.getAttribute(`data-cell-background`)||e.style.backgroundColor||null,renderHTML:e=>e.backgroundColor?{"data-cell-background":e.backgroundColor,style:`background-color: ${e.backgroundColor};`}:{}}}}});function eg(e){let r=e.collaboration?(0,t.toRaw)(e.collaboration):null,i=r?.document?(0,t.toRaw)(r.document):null,a=r?.field?.trim()||`content`,o=i?.getXmlFragment(a),s=r?.provider?(0,t.toRaw)(r.provider):null,b=r?.user?(0,t.toRaw)(r.user):null,x=r?.initialContent??null,T=!!r?.initializeContent&&!!x,E=()=>!!(0,t.unref)(e.mention);return(0,n.useEditor)({content:r?void 0:e.content,editable:e.editable,extensions:[C.default.configure({codeBlock:!1,dropcursor:{color:!1,width:2,class:`ProseMirror-dropcursor norio-office-rich-dropcursor`},horizontalRule:!1,underline:!1,undoRedo:r?!1:void 0}),...o?[d.default.configure({fragment:o})]:[],...o&&s&&b?[f.default.configure({provider:s,user:b})]:[],Ef.configure({resizable:!0,allowTableNodeSelection:!0,cellMinWidth:70}),S.default,$h,Qh,jf,Ul,kl,Bl,Hl,bu,Tu,od.configure({uploadImage:n=>{let r=(0,t.unref)(e.uploadImage);if(!r)throw Error(`Missing uploadImage hook.`);return r(n)},onUploadError:n=>{(0,t.unref)(e.onUploadError)?.(n)}}),Ud,Qd.configure({onClick:e.onLocalFileClick??null,onDownload:e.onLocalFileDownload??null}),lf.configure({onClick:t=>{E()&&e.onMentionClick?.(t)}}),Zh.configure({uploadVideo:n=>{let r=(0,t.unref)(e.uploadVideo);if(!r)throw Error(`Missing uploadVideo hook.`);return r(n)},onUploadError:n=>{(0,t.unref)(e.onUploadError)?.(n)}}),Sf,Bf,y.TextStyle,h.default,g.default,_.default,v.default,u.default,l.default,m.default,p.default.configure({nested:!1}),w.default,Cf,wf,c.default.configure({placeholder:e.placeholder})],editorProps:{attributes:{class:`norio-office-rich-prosemirror`},handleKeyDown:(t,n)=>E()&&e.onMentionKeyDown?.(n)?!0:(E()&&n.key===`@`&&window.setTimeout(()=>{e.onMentionTrigger?.()}),!1),handleTextInput:(t,n,r,i)=>(E()&&i.includes(`@`)&&window.setTimeout(()=>{e.onMentionTrigger?.()}),!1)},onCreate:({editor:e})=>{!o||!T||(typeof o==`object`&&o&&`length`in o&&typeof o.length==`number`?o.length:null)===0&&e.commands.setContent(x,{emitUpdate:!1})},onUpdate:({editor:t})=>{e.onUpdate(t.getJSON())}})}var tg={comments:`comments`,outlineLeft:`outlineLeft`,outlineRight:`outlineRight`,watermark:`watermark`,collaboration:`collaboration`,mention:`mention`},ng={pdf:`pdf`,html:`html`,image:`image`,print:`print`},rg={image:`image`,video:`video`,table:`table`,localFile:`local-file`,columns:`columns`,highlightBlock:`highlight-block`,date:`date`,codeBlock:`code-block`,formula:`formula`,blockquote:`blockquote`,emoji:`emoji`,link:`link`,divider:`divider`,countdown:`countdown`,markdownImport:`markdown-import`},ig={blockquote:`blockquote`};function ag(e,t){return t?t.includes(e):!0}function og(e,t){return ag(e,t)}function sg(e,t){if(!t)return e;let n=t.includes(`outline`),r=n||t.includes(tg.outlineLeft),i=n||t.includes(tg.outlineRight);return r&&i?e:r?`left`:i?`right`:null}var cg={"insert.label":`插入`,"insert.section.general":`通用`,"insert.section.apps":`小应用`,"insert.section.external":`外部内容`,"insert.image":`图片`,"insert.video":`视频`,"insert.table":`表格`,"insert.localFile":`本地文件`,"insert.columns":`分栏`,"insert.highlightBlock":`高亮块`,"insert.date":`日期`,"insert.codeBlock":`代码块`,"insert.formula":`公式`,"insert.blockquote":`引用`,"insert.emoji":`表情符号`,"insert.link":`超链接`,"insert.divider":`分隔线`,"insert.countdown":`倒计时`,"insert.markdownImport":`Markdown导入`,"export.label":`导出`,"export.pdf":`导出PDF`,"export.pdf.loading":`导出PDF中...`,"export.html":`导出HTML`,"export.html.loading":`导出HTML中...`,"export.image":`导出图片`,"export.image.loading":`导出图片中...`,"print.label":`打印`,"print.loading":`打印中...`,"quote.apply":`应用引用`,"quote.cancel":`取消引用`,"quote.borderColor":`边框颜色`,"quote.backgroundColor":`背景颜色`,"outline.label":`大纲`,"outline.collapse":`收起大纲`,"outline.empty.description":`对文档内容应用“标题”样式,即可自动生成大纲。`,"outline.empty.tip":`点击内容区边缘的大纲图标可以展开大纲。`,"status.wordCountUnit":`个字`,"status.presentation.enter":`演示`,"status.presentation.exit":`退出演示`,"status.fullscreen.enter":`全屏`,"status.fullscreen.exit":`退出全屏`,"countdown.selectTime":`请选择时间`,"countdown.settingsTitle":`倒计时设置`,"formula.insertTitle":`插入 LaTeX 公式`};function lg(e){return{...cg,...e??{}}}function ug(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var dg=ug();function fg(e){dg=e}var pg={exec:()=>null};function mg(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(gg.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var hg=(()=>{try{return!0}catch{return!1}})(),gg={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},_g=/^(?:[ \t]*(?:\n|$))+/,vg=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bg=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xg=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Sg=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wg=mg(Cg).replace(/bull/g,Sg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Tg=mg(Cg).replace(/bull/g,Sg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Eg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Dg=/^[^\n]+/,Og=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kg=mg(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Og).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ag=mg(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Sg).getRegex(),jg=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Mg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ng=mg(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Mg).replace(`tag`,jg).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pg=mg(Eg).replace(`hr`,bg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,jg).getRegex(),Fg={blockquote:mg(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Pg).getRegex(),code:vg,def:kg,fences:yg,heading:xg,hr:bg,html:Ng,lheading:wg,list:Ag,newline:_g,paragraph:Pg,table:pg,text:Dg},Ig=mg(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,bg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,jg).getRegex(),Lg={...Fg,lheading:Tg,table:Ig,paragraph:mg(Eg).replace(`hr`,bg).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Ig).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,jg).getRegex()},Rg={...Fg,html:mg(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Mg).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:pg,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:mg(Eg).replace(`hr`,bg).replace(`heading`,` *#{1,6} *[^
|
|
7750
7748
|
]`).replace(`lheading`,wg).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},zg=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Bg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vg=/^( {2,}|\\)\n(?!\s*$)/,Hg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ug=/[\p{P}\p{S}]/u,Wg=/[\s\p{P}\p{S}]/u,Gg=/[^\s\p{P}\p{S}]/u,Kg=mg(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Wg).getRegex(),qg=/(?!~)[\p{P}\p{S}]/u,Jg=/(?!~)[\s\p{P}\p{S}]/u,Yg=/(?:[^\s\p{P}\p{S}]|~)/u,Xg=mg(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,hg?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Zg=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Qg=mg(Zg,`u`).replace(/punct/g,Ug).getRegex(),$g=mg(Zg,`u`).replace(/punct/g,qg).getRegex(),e_=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,t_=mg(e_,`gu`).replace(/notPunctSpace/g,Gg).replace(/punctSpace/g,Wg).replace(/punct/g,Ug).getRegex(),n_=mg(e_,`gu`).replace(/notPunctSpace/g,Yg).replace(/punctSpace/g,Jg).replace(/punct/g,qg).getRegex(),r_=mg(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Gg).replace(/punctSpace/g,Wg).replace(/punct/g,Ug).getRegex(),i_=mg(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Ug).getRegex(),a_=mg(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Gg).replace(/punctSpace/g,Wg).replace(/punct/g,Ug).getRegex(),o_=mg(/\\(punct)/,`gu`).replace(/punct/g,Ug).getRegex(),s_=mg(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),c_=mg(Mg).replace(`(?:-->|$)`,`-->`).getRegex(),l_=mg(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,c_).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),u_=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,d_=mg(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,u_).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),f_=mg(/^!?\[(label)\]\[(ref)\]/).replace(`label`,u_).replace(`ref`,Og).getRegex(),p_=mg(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Og).getRegex(),m_=mg(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,f_).replace(`nolink`,p_).getRegex(),h_=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,g_={_backpedal:pg,anyPunctuation:o_,autolink:s_,blockSkip:Xg,br:Vg,code:Bg,del:pg,delLDelim:pg,delRDelim:pg,emStrongLDelim:Qg,emStrongRDelimAst:t_,emStrongRDelimUnd:r_,escape:zg,link:d_,nolink:p_,punctuation:Kg,reflink:f_,reflinkSearch:m_,tag:l_,text:Hg,url:pg},__={...g_,link:mg(/^!?\[(label)\]\((.*?)\)/).replace(`label`,u_).getRegex(),reflink:mg(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,u_).getRegex()},v_={...g_,emStrongRDelimAst:n_,emStrongLDelim:$g,delLDelim:i_,delRDelim:a_,url:mg(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,h_).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:mg(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,h_).getRegex()},y_={...v_,br:mg(Vg).replace(`{2,}`,`*`).getRegex(),text:mg(v_.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},b_={normal:Fg,gfm:Lg,pedantic:Rg},x_={normal:g_,gfm:v_,breaks:y_,pedantic:__},S_={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},C_=e=>S_[e];function w_(e,t){if(t){if(gg.escapeTest.test(e))return e.replace(gg.escapeReplace,C_)}else if(gg.escapeTestNoEncode.test(e))return e.replace(gg.escapeReplaceNoEncode,C_);return e}function T_(e){try{e=encodeURI(e).replace(gg.percentDecode,`%`)}catch{return null}return e}function E_(e,t){let n=e.replace(gg.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(gg.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(gg.slashPipe,`|`);return n}function D_(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function O_(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function k_(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function A_(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function j_(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
7751
7749
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
@@ -7804,16 +7802,16 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
7804
7802
|
${e}</tr>
|
|
7805
7803
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
7806
7804
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${w_(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=T_(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+w_(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=T_(e);if(i===null)return w_(n);e=i;let a=`<img src="${e}" alt="${w_(n)}"`;return t&&(a+=` title="${w_(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:w_(e.text)}},F_=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},I_=class e{options;renderer;textRenderer;constructor(e){this.options=e||dg,this.options.renderer=this.options.renderer||new P_,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new F_}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},L_=class{options;block;constructor(e){this.options=e||dg}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?N_.lex:N_.lexInline}provideParser(){return this.block?I_.parse:I_.parseInline}},R_=new class{defaults=ug();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=I_;Renderer=P_;TextRenderer=F_;Lexer=N_;Tokenizer=M_;Hooks=L_;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new P_(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new M_(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new L_;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];L_.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&L_.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return N_.lex(e,t??this.defaults)}parser(e,t){return I_.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?N_.lex:N_.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?I_.parse:I_.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?N_.lex:N_.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?I_.parse:I_.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
7807
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+w_(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function z_(e,t){return R_.parse(e,t)}z_.options=z_.setOptions=function(e){return R_.setOptions(e),z_.defaults=R_.defaults,fg(z_.defaults),z_},z_.getDefaults=ug,z_.defaults=dg,z_.use=function(...e){return R_.use(...e),z_.defaults=R_.defaults,fg(z_.defaults),z_},z_.walkTokens=function(e,t){return R_.walkTokens(e,t)},z_.parseInline=R_.parseInline,z_.Parser=I_,z_.parser=I_.parse,z_.Renderer=P_,z_.TextRenderer=F_,z_.Lexer=N_,z_.lexer=N_.lex,z_.Tokenizer=M_,z_.Hooks=L_,z_.parse=z_,z_.options,z_.setOptions,z_.use,z_.walkTokens,z_.parseInline,I_.parse,N_.lex;function B_(e){return typeof crypto<`u`&&`randomUUID`in crypto?`${e}-${crypto.randomUUID()}`:`${e}-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function V_(e){return e.nodeType===Node.TEXT_NODE&&!e.textContent?.trim()}function H_(e){return e.every(e=>V_(e))}function U_(e){return e.map(e=>({type:e.type,attrs:e.attrs?{...e.attrs}:void 0}))}function W_(e,t=[]){return e?{type:`text`,text:e,...t.length?{marks:U_(t)}:{}}:null}function G_(e,t=[]){let n=[];return e.forEach(e=>{if(e.nodeType===Node.TEXT_NODE){let r=e.textContent??``;if(r){let e=W_(r,t);e&&n.push(e)}return}if(!(e instanceof HTMLElement))return;let r=e.tagName.toLowerCase();if(r===`br`){n.push({type:`hardBreak`});return}if(r===`strong`||r===`b`){n.push(...G_(Array.from(e.childNodes),[...t,{type:`bold`}]));return}if(r===`em`||r===`i`){n.push(...G_(Array.from(e.childNodes),[...t,{type:`italic`}]));return}if(r===`code`){let r=W_(e.textContent??``,[...t,{type:`code`}]);r&&n.push(r);return}if(r===`a`){let r=e.textContent?.trim()||e.getAttribute(`href`)||``,i=e.getAttribute(`href`)||``,a=W_(i&&i!==r?`${r} (${i})`:r,t);a&&n.push(a);return}if(r===`img`){let r=e.getAttribute(`alt`)||e.getAttribute(`src`)||``,i=W_(r?`[图片: ${r}]`:`[图片]`,t);i&&n.push(i);return}n.push(...G_(Array.from(e.childNodes),t))}),n}function K_(e){let t=Du(e.getAttribute(`src`)||``);if(!t)return null;let n=e.getAttribute(`alt`)?.trim()||``;return{type:`imageBlock`,attrs:{images:[{id:B_(`image`),src:t,alt:n,name:n||`Markdown image`,description:``,link:``,rotation:0}],widthPercent:100,align:`left`,height:146}}}function q_(e){let t=Eu(e.getAttribute(`href`)||``);return t?{type:`linkBlock`,attrs:{title:e.textContent?.trim()||t,url:t,displayMode:`text`,align:`left`,widthPercent:100,height:420}}:null}function J_(e){let t=Array.from(e.childNodes).filter(e=>!V_(e));if(t.length===1&&t[0]instanceof HTMLElement){let e=t[0],n=e.tagName.toLowerCase();if(n===`img`)return K_(e);if(n===`a`)return q_(e)}let n=G_(Array.from(e.childNodes));return n.length?{type:`paragraph`,content:n}:null}function Y_(e){let t=[],n=[];if(Array.from(e.childNodes).forEach(e=>{if(e instanceof HTMLElement){let r=e.tagName.toLowerCase();if(r===`ul`||r===`ol`){if(!H_(n)){let e=G_(n);e.length&&t.push({type:`paragraph`,content:e}),n.length=0}let r=ev(e);r&&t.push(r);return}if(r===`p`||r===`blockquote`||r===`pre`||r===`hr`){if(!H_(n)){let e=G_(n);e.length&&t.push({type:`paragraph`,content:e}),n.length=0}let r=ev(e);r&&t.push(r);return}}n.push(e)}),!H_(n)){let e=G_(n);e.length&&t.push({type:`paragraph`,content:e})}return t.length||t.push({type:`paragraph`}),{type:`listItem`,content:t}}function X_(e,t){let n=Array.from(e.children).filter(e=>e.tagName.toLowerCase()===`li`).map(e=>Y_(e));return n.length?{type:t?`orderedList`:`bulletList`,content:n}:null}function Z_(e){let t=e.querySelector(`code`),n=t?.textContent??e.textContent??``;if(!n.trim())return null;let r=(t?.className||``).match(/language-([a-z0-9_-]+)/i)?.[1]?.toLowerCase()||`plain_text`;return r===`mermaid`||r===`plantuml`||r===`markmap`||r===`flowchart`?null:{type:`codeBlock`,attrs:{language:r,wrapLines:!1,darkTheme:!1,fixedHeight:!1},content:[{type:`text`,text:n.replace(/\n$/,``)}]}}function Q_(e){let t=tv(Array.from(e.childNodes));return t.length?{type:`blockquote`,content:t}:null}function $_(e){let t=G_(Array.from(e.childNodes)),n=Number.parseInt(e.tagName.replace(/[^0-9]/g,``),10);return!t.length||Number.isNaN(n)?null:{type:`heading`,attrs:{level:n},content:t}}function ev(e){if(!(e instanceof HTMLElement))return null;let t=e.tagName.toLowerCase();return t===`p`?J_(e):/^h[1-6]$/.test(t)?$_(e):t===`blockquote`?Q_(e):t===`ul`?X_(e,!1):t===`ol`?X_(e,!0):t===`pre`?Z_(e):t===`hr`?{type:`horizontalRule`}:t===`img`?K_(e):t===`a`?q_(e):null}function tv(e){return e.map(e=>ev(e)).filter(e=>!!e)}function nv(e){let t=z_.parse(e,{async:!1,gfm:!0,breaks:!1}),n=new DOMParser().parseFromString(`<div data-markdown-root="true">${t}</div>`,`text/html`).querySelector(`[data-markdown-root="true"]`);if(!n)return[{type:`paragraph`}];let r=tv(Array.from(n.childNodes));return r.length?r:[{type:`paragraph`}]}var rv=oe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.html2canvas=r())})(e,(function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function i(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function a(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||t)}for(var o=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return e.width!==0});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return o.fromClientRect(e,t.getBoundingClientRect())},c=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw Error(`Unable to get document size`);return new o(0,0,Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight)))},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},u=function(){var e=[...arguments];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return``;for(var n=[],r=-1,i=``;++r<t;){var a=e[r];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,f=typeof Uint8Array>`u`?[]:new Uint8Array(256),p=0;p<d.length;p++)f[d.charCodeAt(p)]=p;for(var m=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,h=typeof Uint8Array>`u`?[]:new Uint8Array(256),g=0;g<m.length;g++)h[m.charCodeAt(g)]=g;for(var _=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);var l=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`&&Uint8Array.prototype.slice!==void 0?new ArrayBuffer(t):Array(t),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<n;r+=4)a=h[e.charCodeAt(r)],o=h[e.charCodeAt(r+1)],s=h[e.charCodeAt(r+2)],c=h[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},v=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},y=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},b=5,x=11,S=2,C=x-b,w=65536>>b,T=(1<<b)-1,E=w+(1024>>b)+32,ee=65536>>x,te=(1<<C)-1,D=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},ne=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},re=function(e,t){var n=_(e),r=Array.isArray(n)?y(n):new Uint32Array(n),i=Array.isArray(n)?v(n):new Uint16Array(n),a=24,o=D(i,a/2,r[4]/2),s=r[5]===2?D(i,(a+r[4])/2):ne(r,Math.ceil((a+r[4])/4));return new ie(r[0],r[1],r[2],r[3],o,s)},ie=function(){function e(e,t,n,r,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>b],t=(t<<S)+(e&T),this.data[t];if(e<=65535)return t=this.index[w+(e-55296>>b)],t=(t<<S)+(e&T),this.data[t];if(e<this.highStart)return t=E-ee+(e>>x),t=this.index[t],t+=e>>b&te,t=this.index[t],t=(t<<S)+(e&T),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),O=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ae=typeof Uint8Array>`u`?[]:new Uint8Array(256),oe=0;oe<O.length;oe++)ae[O.charCodeAt(oe)]=oe;var se=`KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==`,ce=50,le=1,ue=2,de=3,fe=4,pe=5,me=7,he=8,ge=9,_e=10,ve=11,ye=12,be=13,xe=14,Se=15,Ce=16,we=17,Te=18,Ee=19,De=20,Oe=21,ke=22,Ae=23,je=24,Me=25,Ne=26,Pe=27,Fe=28,Ie=29,Le=30,Re=31,ze=32,Be=33,Ve=34,He=35,Ue=36,We=37,Ge=38,Ke=39,qe=40,Je=41,Ye=42,Xe=43,Ze=[9001,65288],Qe=`!`,$e=`×`,et=`÷`,tt=re(se),nt=[Le,Ue],rt=[le,ue,de,pe],it=[_e,he],at=[Pe,Ne],ot=rt.concat(it),st=[Ge,Ke,qe,Ve,He],ct=[Se,be],lt=function(e,t){t===void 0&&(t=`strict`);var n=[],r=[],i=[];return e.forEach(function(e,a){var o=tt.get(e);if(o>ce?(i.push(!0),o-=ce):i.push(!1),[`normal`,`auto`,`loose`].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(e)!==-1)return r.push(a),n.push(Ce);if(o===fe||o===ve){if(a===0)return r.push(a),n.push(Le);var s=n[a-1];return ot.indexOf(s)===-1?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(Le))}if(r.push(a),o===Re)return n.push(t===`strict`?Oe:We);if(o===Ye||o===Ie)return n.push(Le);if(o===Xe)return e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(We):n.push(Le);n.push(o)}),[r,n,i]},ut=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=n;a<=r.length;){a++;var o=r[a];if(o===t)return!0;if(o!==_e)break}if(i===_e)for(var a=n;a>0;){a--;var s=r[a];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var c=n;c<=r.length;){c++;var o=r[c];if(o===t)return!0;if(o!==_e)break}if(s!==_e)break}return!1},dt=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r===_e)n--;else return r}return 0},ft=function(e,t,n,r,i){if(n[r]===0)return $e;var a=r-1;if(Array.isArray(i)&&i[a]===!0)return $e;var o=a-1,s=a+1,c=t[a],l=o>=0?t[o]:0,u=t[s];if(c===ue&&u===de)return $e;if(rt.indexOf(c)!==-1)return Qe;if(rt.indexOf(u)!==-1||it.indexOf(u)!==-1)return $e;if(dt(a,t)===he)return et;if(tt.get(e[a])===ve||(c===ze||c===Be)&&tt.get(e[s])===ve||c===me||u===me||c===ge||[_e,be,Se].indexOf(c)===-1&&u===ge||[we,Te,Ee,je,Fe].indexOf(u)!==-1||dt(a,t)===ke||ut(Ae,ke,a,t)||ut([we,Te],Oe,a,t)||ut(ye,ye,a,t))return $e;if(c===_e)return et;if(c===Ae||u===Ae)return $e;if(u===Ce||c===Ce)return et;if([be,Se,Oe].indexOf(u)!==-1||c===xe||l===Ue&&ct.indexOf(c)!==-1||c===Fe&&u===Ue||u===De||nt.indexOf(u)!==-1&&c===Me||nt.indexOf(c)!==-1&&u===Me||c===Pe&&[We,ze,Be].indexOf(u)!==-1||[We,ze,Be].indexOf(c)!==-1&&u===Ne||nt.indexOf(c)!==-1&&at.indexOf(u)!==-1||at.indexOf(c)!==-1&&nt.indexOf(u)!==-1||[Pe,Ne].indexOf(c)!==-1&&(u===Me||[ke,Se].indexOf(u)!==-1&&t[s+1]===Me)||[ke,Se].indexOf(c)!==-1&&u===Me||c===Me&&[Me,Fe,je].indexOf(u)!==-1)return $e;if([Me,Fe,je,we,Te].indexOf(u)!==-1)for(var d=a;d>=0;){var f=t[d];if(f===Me)return $e;if([Fe,je].indexOf(f)!==-1)d--;else break}if([Pe,Ne].indexOf(u)!==-1)for(var d=[we,Te].indexOf(c)===-1?a:o;d>=0;){var f=t[d];if(f===Me)return $e;if([Fe,je].indexOf(f)!==-1)d--;else break}if(Ge===c&&[Ge,Ke,Ve,He].indexOf(u)!==-1||[Ke,Ve].indexOf(c)!==-1&&[Ke,qe].indexOf(u)!==-1||[qe,He].indexOf(c)!==-1&&u===qe||st.indexOf(c)!==-1&&[De,Ne].indexOf(u)!==-1||st.indexOf(u)!==-1&&c===Pe||nt.indexOf(c)!==-1&&nt.indexOf(u)!==-1||c===je&&nt.indexOf(u)!==-1||nt.concat(Me).indexOf(c)!==-1&&u===ke&&Ze.indexOf(e[s])===-1||nt.concat(Me).indexOf(u)!==-1&&c===Te)return $e;if(c===Je&&u===Je){for(var p=n[a],m=1;p>0&&(p--,t[p]===Je);)m++;if(m%2!=0)return $e}return c===ze&&u===Be?$e:et},pt=function(e,t){t||={lineBreak:`normal`,wordBreak:`normal`};var n=lt(e,t.lineBreak),r=n[0],i=n[1],a=n[2];(t.wordBreak===`break-all`||t.wordBreak===`break-word`)&&(i=i.map(function(e){return[Me,Le,Ye].indexOf(e)===-1?e:We}));var o=t.wordBreak===`keep-all`?a.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0;return[r,i,o]},mt=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===Qe,this.start=n,this.end=r}return e.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),ht=function(e,t){var n=l(e),r=pt(n,t),i=r[0],a=r[1],o=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var e=$e;u<s&&(e=ft(n,a,i,++u,o))===$e;);if(e!==$e||u===s){var t=new mt(n,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}},gt=1,_t=2,vt=4,yt=8,bt=10,xt=47,St=92,Ct=9,wt=32,Tt=34,Et=61,Dt=35,Ot=36,kt=37,At=39,jt=40,Mt=41,Nt=95,Pt=45,Ft=33,It=60,Lt=62,Rt=64,zt=91,Bt=93,Vt=61,Ht=123,Ut=63,Wt=125,Gt=124,Kt=126,qt=128,Jt=65533,Yt=42,Xt=43,Zt=44,Qt=58,$t=59,en=46,tn=0,nn=8,rn=11,an=14,on=31,k=127,sn=-1,cn=48,ln=97,un=101,dn=102,fn=117,pn=122,mn=65,hn=69,gn=70,_n=85,vn=90,yn=function(e){return e>=cn&&e<=57},bn=function(e){return e>=55296&&e<=57343},xn=function(e){return yn(e)||e>=mn&&e<=gn||e>=ln&&e<=dn},Sn=function(e){return e>=ln&&e<=pn},Cn=function(e){return e>=mn&&e<=vn},wn=function(e){return Sn(e)||Cn(e)},Tn=function(e){return e>=qt},En=function(e){return e===bt||e===Ct||e===wt},Dn=function(e){return wn(e)||Tn(e)||e===Nt},On=function(e){return Dn(e)||yn(e)||e===Pt},kn=function(e){return e>=tn&&e<=nn||e===rn||e>=an&&e<=on||e===k},An=function(e,t){return e===St?t!==bt:!1},jn=function(e,t,n){return e===Pt?Dn(t)||An(t,n):Dn(e)?!0:!!(e===St&&An(e,t))},Mn=function(e,t,n){return e===Xt||e===Pt?yn(t)?!0:t===en&&yn(n):yn(e===en?t:e)},Nn=function(e){var t=0,n=1;(e[t]===Xt||e[t]===Pt)&&(e[t]===Pt&&(n=-1),t++);for(var r=[];yn(e[t]);)r.push(e[t++]);var i=r.length?parseInt(u.apply(void 0,r),10):0;e[t]===en&&t++;for(var a=[];yn(e[t]);)a.push(e[t++]);var o=a.length,s=o?parseInt(u.apply(void 0,a),10):0;(e[t]===hn||e[t]===un)&&t++;var c=1;(e[t]===Xt||e[t]===Pt)&&(e[t]===Pt&&(c=-1),t++);for(var l=[];yn(e[t]);)l.push(e[t++]);var d=l.length?parseInt(u.apply(void 0,l),10):0;return n*(i+s*10**-o)*10**(c*d)},Pn={type:2},Fn={type:3},In={type:4},Ln={type:13},Rn={type:8},zn={type:21},Bn={type:9},Vn={type:10},Hn={type:11},Un={type:12},Wn={type:14},Gn={type:23},Kn={type:1},qn={type:25},Jn={type:24},Yn={type:26},Xn={type:27},Zn={type:28},Qn={type:29},$n={type:31},er={type:32},tr=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==er;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Tt:return this.consumeStringToken(Tt);case Dt:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(On(t)||An(n,r)){var i=jn(t,n,r)?_t:gt,a=this.consumeName();return{type:5,value:a,flags:i}}break;case Ot:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Ln;break;case At:return this.consumeStringToken(At);case jt:return Pn;case Mt:return Fn;case Yt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Wn;break;case Xt:if(Mn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Zt:return In;case Pt:var o=e,s=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Mn(o,s,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(jn(o,s,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===Pt&&c===Lt)return this.consumeCodePoint(),this.consumeCodePoint(),Jn;break;case en:if(Mn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case xt:if(this.peekCodePoint(0)===Yt)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===Yt&&(l=this.consumeCodePoint(),l===xt)||l===sn)return this.consumeToken()}break;case Qt:return Yn;case $t:return Xn;case It:if(this.peekCodePoint(0)===Ft&&this.peekCodePoint(1)===Pt&&this.peekCodePoint(2)===Pt)return this.consumeCodePoint(),this.consumeCodePoint(),qn;break;case Rt:if(jn(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var a=this.consumeName();return{type:7,value:a}}break;case zt:return Zn;case St:if(An(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Bt:return Qn;case Vt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Rn;break;case Ht:return Hn;case Wt:return Un;case fn:case _n:var d=this.peekCodePoint(0),f=this.peekCodePoint(1);return d===Xt&&(xn(f)||f===Ut)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Gt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Bn;if(this.peekCodePoint(0)===Gt)return this.consumeCodePoint(),zn;break;case Kt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Vn;break;case sn:return er}return En(e)?(this.consumeWhiteSpace(),$n):yn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Dn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:u(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return e===void 0?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();xn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===Ut&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(u.apply(void 0,e.map(function(e){return e===Ut?cn:e})),16),i=parseInt(u.apply(void 0,e.map(function(e){return e===Ut?gn:e})),16);return{type:30,start:r,end:i}}var a=parseInt(u.apply(void 0,e),16);if(this.peekCodePoint(0)===Pt&&xn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];xn(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();var i=parseInt(u.apply(void 0,o),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()===`url`&&this.peekCodePoint(0)===jt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===jt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===sn)return{type:22,value:``};var t=this.peekCodePoint(0);if(t===At||t===Tt){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===sn||this.peekCodePoint(0)===Mt)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Gn)}for(;;){var r=this.consumeCodePoint();if(r===sn||r===Mt)return{type:22,value:u.apply(void 0,e)};if(En(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===sn||this.peekCodePoint(0)===Mt?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Gn);if(r===Tt||r===At||r===jt||kn(r))return this.consumeBadUrlRemnants(),Gn;if(r===St)if(An(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Gn;else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;En(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Mt||e===sn)return;An(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n=``;e>0;){var r=Math.min(t,e);n+=u.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){var t=``,n=0;do{var r=this._value[n];if(r===sn||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===bt)return this._value.splice(0,n),Kn;if(r===St){var i=this._value[n+1];i!==sn&&i!==void 0&&(i===bt?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):An(r,i)&&(t+=this.consumeStringSlice(n),t+=u(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var e=[],t=vt,n=this.peekCodePoint(0);for((n===Xt||n===Pt)&&e.push(this.consumeCodePoint());yn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===en&&yn(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=yt;yn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===hn||n===un)&&((r===Xt||r===Pt)&&yn(i)||yn(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=yt;yn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Nn(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0);return jn(r,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:t,flags:n,unit:this.consumeName()}:r===kt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(xn(e)){for(var t=u(e);xn(this.peekCodePoint(0))&&t.length<6;)t+=u(this.consumeCodePoint());En(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||bn(n)||n>1114111?Jt:n}return e===sn?Jt:e},e.prototype.consumeName=function(){for(var e=``;;){var t=this.consumeCodePoint();if(On(t))e+=u(t);else if(An(t,this.peekCodePoint(0)))e+=u(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},e}(),A=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new tr;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw SyntaxError(`Error parsing CSS component value, unexpected EOF`);this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw SyntaxError(`Error parsing CSS component value, multiple values found when expecting only one`)},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||ur(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return e===void 0?er:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),nr=function(e){return e.type===15},rr=function(e){return e.type===17},ir=function(e){return e.type===20},ar=function(e){return e.type===0},or=function(e,t){return ir(e)&&e.value===t},sr=function(e){return e.type!==31},cr=function(e){return e.type!==31&&e.type!==4},lr=function(e){var t=[],n=[];return e.forEach(function(e){if(e.type===4){if(n.length===0)throw Error(`Error parsing function args, zero tokens for arg`);t.push(n),n=[];return}e.type!==31&&n.push(e)}),n.length&&t.push(n),t},ur=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},dr=function(e){return e.type===17||e.type===15},fr=function(e){return e.type===16||dr(e)},pr=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},mr={type:17,number:0,flags:vt},hr={type:16,number:50,flags:vt},gr={type:16,number:100,flags:vt},_r=function(e,t,n){var r=e[0],i=e[1];return[vr(r,t),vr(i===void 0?r:i,n)]},vr=function(e,t){if(e.type===16)return e.number/100*t;if(nr(e))switch(e.unit){case`rem`:case`em`:return 16*e.number;default:return e.number}return e.number},yr=`deg`,br=`grad`,xr=`rad`,Sr=`turn`,Cr={name:`angle`,parse:function(e,t){if(t.type===15)switch(t.unit){case yr:return Math.PI*t.number/180;case br:return Math.PI/200*t.number;case xr:return t.number;case Sr:return Math.PI*2*t.number}throw Error(`Unsupported angle type`)}},wr=function(e){return e.type===15&&(e.unit===yr||e.unit===br||e.unit===xr||e.unit===Sr)},j=function(e){switch(e.filter(ir).map(function(e){return e.value}).join(` `)){case`to bottom right`:case`to right bottom`:case`left top`:case`top left`:return[mr,mr];case`to top`:case`bottom`:return Tr(0);case`to bottom left`:case`to left bottom`:case`right top`:case`top right`:return[mr,gr];case`to right`:case`left`:return Tr(90);case`to top left`:case`to left top`:case`right bottom`:case`bottom right`:return[gr,gr];case`to bottom`:case`top`:return Tr(180);case`to top right`:case`to right top`:case`left bottom`:case`bottom left`:return[gr,mr];case`to left`:case`right`:return Tr(270)}return 0},Tr=function(e){return Math.PI*e/180},Er={name:`color`,parse:function(e,t){if(t.type===18){var n=Nr[t.name];if(n===void 0)throw Error(`Attempting to parse an unsupported color function "`+t.name+`"`);return n(e,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3);return M(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3),o=t.value.substring(3,4);return M(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6);return M(parseInt(r,16),parseInt(i,16),parseInt(a,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6),o=t.value.substring(6,8);return M(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(t.type===20){var s=Fr[t.value.toUpperCase()];if(s!==void 0)return s}return Fr.TRANSPARENT}},Dr=function(e){return(255&e)==0},Or=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?`rgba(`+i+`,`+r+`,`+n+`,`+t/255+`)`:`rgb(`+i+`,`+r+`,`+n+`)`},M=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(r*255)<<0)>>>0},kr=function(e,t){if(e.type===17)return e.number;if(e.type===16){var n=t===3?1:255;return t===3?e.number/100*n:Math.round(e.number/100*n)}return 0},Ar=function(e,t){var n=t.filter(cr);if(n.length===3){var r=n.map(kr),i=r[0],a=r[1],o=r[2];return M(i,a,o,1)}if(n.length===4){var s=n.map(kr),i=s[0],a=s[1],o=s[2],c=s[3];return M(i,a,o,c)}return 0};function jr(e,t,n){return n<0&&(n+=1),n>=1&&--n,n<1/6?(t-e)*n*6+e:n<1/2?t:n<2/3?(t-e)*6*(2/3-n)+e:e}var Mr=function(e,t){var n=t.filter(cr),r=n[0],i=n[1],a=n[2],o=n[3],s=(r.type===17?Tr(r.number):Cr.parse(e,r))/(Math.PI*2),c=fr(i)?i.number/100:0,l=fr(a)?a.number/100:0,u=o!==void 0&&fr(o)?vr(o,1):1;if(c===0)return M(l*255,l*255,l*255,1);var d=l<=.5?l*(c+1):l+c-l*c,f=l*2-d,p=jr(f,d,s+1/3),m=jr(f,d,s),h=jr(f,d,s-1/3);return M(p*255,m*255,h*255,u)},Nr={hsl:Mr,hsla:Mr,rgb:Ar,rgba:Ar},Pr=function(e,t){return Er.parse(e,A.create(t).parseComponentValue())},Fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ir={name:`background-clip`,initialValue:`border-box`,prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(ir(e))switch(e.value){case`padding-box`:return 1;case`content-box`:return 2}return 0})}},Lr={name:`background-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},Rr=function(e,t){var n=Er.parse(e,t[0]),r=t[1];return r&&fr(r)?{color:n,stop:r}:{color:n,stop:null}},zr=function(e,t){var n=e[0],r=e[e.length-1];n.stop===null&&(n.stop=mr),r.stop===null&&(r.stop=gr);for(var i=[],a=0,o=0;o<e.length;o++){var s=e[o].stop;if(s!==null){var c=vr(s,t);c>a?i.push(c):i.push(a),a=c}else i.push(null)}for(var l=null,o=0;o<i.length;o++){var u=i[o];if(u===null)l===null&&(l=o);else if(l!==null){for(var d=o-l,f=(u-i[l-1])/(d+1),p=1;p<=d;p++)i[l+p-1]=f*p;l=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},Br=function(e,t,n){var r=t/2,i=n/2,a=vr(e[0],t)-r,o=i-vr(e[1],n);return(Math.atan2(o,a)+Math.PI*2)%(Math.PI*2)},Vr=function(e,t,n){var r=typeof e==`number`?e:Br(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),a=t/2,o=n/2,s=i/2,c=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[i,a-l,a+l,o-c,o+c]},Hr=function(e,t){return Math.sqrt(e*e+t*t)},Ur=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var a=t[0],o=t[1],s=Hr(n-a,r-o);return(i?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Wr=function(e,t,n,r,i){var a=0,o=0;switch(e.size){case 0:e.shape===0?a=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(e.shape===0)a=o=Math.min(Hr(t,n),Hr(t,n-i),Hr(t-r,n),Hr(t-r,n-i));else if(e.shape===1){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),c=Ur(r,i,t,n,!0),l=c[0],u=c[1];a=Hr(l-t,(u-n)/s),o=s*a}break;case 1:e.shape===0?a=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(e.shape===0)a=o=Math.max(Hr(t,n),Hr(t,n-i),Hr(t-r,n),Hr(t-r,n-i));else if(e.shape===1){var s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r)),d=Ur(r,i,t,n,!1),l=d[0],u=d[1];a=Hr(l-t,(u-n)/s),o=s*a}break}return Array.isArray(e.size)&&(a=vr(e.size[0],r),o=e.size.length===2?vr(e.size[1],i):a),[a,o]},Gr=function(e,t){var n=Tr(180),r=[];return lr(t).forEach(function(t,i){if(i===0){var a=t[0];if(a.type===20&&a.value===`to`){n=j(t);return}else if(wr(a)){n=Cr.parse(e,a);return}}var o=Rr(e,t);r.push(o)}),{angle:n,stops:r,type:1}},Kr=function(e,t){var n=Tr(180),r=[];return lr(t).forEach(function(t,i){if(i===0){var a=t[0];if(a.type===20&&[`top`,`left`,`right`,`bottom`].indexOf(a.value)!==-1){n=j(t);return}else if(wr(a)){n=(Cr.parse(e,a)+Tr(270))%Tr(360);return}}var o=Rr(e,t);r.push(o)}),{angle:n,stops:r,type:1}},qr=function(e,t){var n=Tr(180),r=[],i=1;return lr(t).forEach(function(t,n){var a=t[0];if(n===0){if(ir(a)&&a.value===`linear`){i=1;return}else if(ir(a)&&a.value===`radial`){i=2;return}}if(a.type===18){if(a.name===`from`){var o=Er.parse(e,a.values[0]);r.push({stop:mr,color:o})}else if(a.name===`to`){var o=Er.parse(e,a.values[0]);r.push({stop:gr,color:o})}else if(a.name===`color-stop`){var s=a.values.filter(cr);if(s.length===2){var o=Er.parse(e,s[1]),c=s[0];rr(c)&&r.push({stop:{type:16,number:c.number*100,flags:c.flags},color:o})}}}}),i===1?{angle:(n+Tr(180))%Tr(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}},Jr=`closest-side`,Yr=`farthest-side`,N=`closest-corner`,Xr=`farthest-corner`,Zr=`circle`,Qr=`ellipse`,$r=`cover`,ei=`contain`,ti=function(e,t){var n=0,r=3,i=[],a=[];return lr(t).forEach(function(t,o){var s=!0;if(o===0){var c=!1;s=t.reduce(function(e,t){if(c)if(ir(t))switch(t.value){case`center`:return a.push(hr),e;case`top`:case`left`:return a.push(mr),e;case`right`:case`bottom`:return a.push(gr),e}else (fr(t)||dr(t))&&a.push(t);else if(ir(t))switch(t.value){case Zr:return n=0,!1;case Qr:return n=1,!1;case`at`:return c=!0,!1;case Jr:return r=0,!1;case $r:case Yr:return r=1,!1;case ei:case N:return r=2,!1;case Xr:return r=3,!1}else if(dr(t)||fr(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)}if(s){var l=Rr(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:a,type:2}},ni=function(e,t){var n=0,r=3,i=[],a=[];return lr(t).forEach(function(t,o){var s=!0;if(o===0?s=t.reduce(function(e,t){if(ir(t))switch(t.value){case`center`:return a.push(hr),!1;case`top`:case`left`:return a.push(mr),!1;case`right`:case`bottom`:return a.push(gr),!1}else if(fr(t)||dr(t))return a.push(t),!1;return e},s):o===1&&(s=t.reduce(function(e,t){if(ir(t))switch(t.value){case Zr:return n=0,!1;case Qr:return n=1,!1;case ei:case Jr:return r=0,!1;case Yr:return r=1,!1;case N:return r=2,!1;case $r:case Xr:return r=3,!1}else if(dr(t)||fr(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)),s){var c=Rr(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:a,type:2}},ri=function(e){return e.type===1},ii=function(e){return e.type===2},ai={name:`image`,parse:function(e,t){if(t.type===22){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(t.type===18){var r=si[t.name];if(r===void 0)throw Error(`Attempting to parse an unsupported image function "`+t.name+`"`);return r(e,t.values)}throw Error(`Unsupported image type `+t.type)}};function oi(e){return!(e.type===20&&e.value===`none`)&&(e.type!==18||!!si[e.name])}var si={"linear-gradient":Gr,"-moz-linear-gradient":Kr,"-ms-linear-gradient":Kr,"-o-linear-gradient":Kr,"-webkit-linear-gradient":Kr,"radial-gradient":ti,"-moz-radial-gradient":ni,"-ms-radial-gradient":ni,"-o-radial-gradient":ni,"-webkit-radial-gradient":ni,"-webkit-gradient":qr},ci={name:`background-image`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var n=t[0];return n.type===20&&n.value===`none`?[]:t.filter(function(e){return cr(e)&&oi(e)}).map(function(t){return ai.parse(e,t)})}},li={name:`background-origin`,initialValue:`border-box`,prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(ir(e))switch(e.value){case`padding-box`:return 1;case`content-box`:return 2}return 0})}},ui={name:`background-position`,initialValue:`0% 0%`,type:1,prefix:!1,parse:function(e,t){return lr(t).map(function(e){return e.filter(fr)}).map(pr)}},di={name:`background-repeat`,initialValue:`repeat`,prefix:!1,type:1,parse:function(e,t){return lr(t).map(function(e){return e.filter(ir).map(function(e){return e.value}).join(` `)}).map(fi)}},fi=function(e){switch(e){case`no-repeat`:return 1;case`repeat-x`:case`repeat no-repeat`:return 2;case`repeat-y`:case`no-repeat repeat`:return 3;default:return 0}},pi;(function(e){e.AUTO=`auto`,e.CONTAIN=`contain`,e.COVER=`cover`})(pi||={});var mi={name:`background-size`,initialValue:`0`,prefix:!1,type:1,parse:function(e,t){return lr(t).map(function(e){return e.filter(hi)})}},hi=function(e){return ir(e)||fr(e)},gi=function(e){return{name:`border-`+e+`-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`}},_i=gi(`top`),vi=gi(`right`),yi=gi(`bottom`),bi=gi(`left`),xi=function(e){return{name:`border-radius-`+e,initialValue:`0 0`,prefix:!1,type:1,parse:function(e,t){return pr(t.filter(fr))}}},P=xi(`top-left`),F=xi(`top-right`),I=xi(`bottom-right`),L=xi(`bottom-left`),R=function(e){return{name:`border-`+e+`-style`,initialValue:`solid`,prefix:!1,type:2,parse:function(e,t){switch(t){case`none`:return 0;case`dashed`:return 2;case`dotted`:return 3;case`double`:return 4}return 1}}},Si=R(`top`),z=R(`right`),Ci=R(`bottom`),wi=R(`left`),B=function(e){return{name:`border-`+e+`-width`,initialValue:`0`,type:0,prefix:!1,parse:function(e,t){return nr(t)?t.number:0}}},Ti=B(`top`),Ei=B(`right`),V=B(`bottom`),H=B(`left`),Di={name:`color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},U={name:`direction`,initialValue:`ltr`,prefix:!1,type:2,parse:function(e,t){switch(t){case`rtl`:return 1;default:return 0}}},Oi={name:`display`,initialValue:`inline-block`,prefix:!1,type:1,parse:function(e,t){return t.filter(ir).reduce(function(e,t){return e|ki(t.value)},0)}},ki=function(e){switch(e){case`block`:case`-webkit-box`:return 2;case`inline`:return 4;case`run-in`:return 8;case`flow`:return 16;case`flow-root`:return 32;case`table`:return 64;case`flex`:case`-webkit-flex`:return 128;case`grid`:case`-ms-grid`:return 256;case`ruby`:return 512;case`subgrid`:return 1024;case`list-item`:return 2048;case`table-row-group`:return 4096;case`table-header-group`:return 8192;case`table-footer-group`:return 16384;case`table-row`:return 32768;case`table-cell`:return 65536;case`table-column-group`:return 131072;case`table-column`:return 262144;case`table-caption`:return 524288;case`ruby-base`:return 1048576;case`ruby-text`:return 2097152;case`ruby-base-container`:return 4194304;case`ruby-text-container`:return 8388608;case`contents`:return 16777216;case`inline-block`:return 33554432;case`inline-list-item`:return 67108864;case`inline-table`:return 134217728;case`inline-flex`:return 268435456;case`inline-grid`:return 536870912}return 0},Ai={name:`float`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`left`:return 1;case`right`:return 2;case`inline-start`:return 3;case`inline-end`:return 4}return 0}},ji={name:`letter-spacing`,initialValue:`0`,prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value===`normal`?0:t.type===17||t.type===15?t.number:0}},Mi;(function(e){e.NORMAL=`normal`,e.STRICT=`strict`})(Mi||={});var Ni={name:`line-break`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`strict`:return Mi.STRICT;default:return Mi.NORMAL}}},Pi={name:`line-height`,initialValue:`normal`,prefix:!1,type:4},Fi=function(e,t){return ir(e)&&e.value===`normal`?1.2*t:e.type===17?t*e.number:fr(e)?vr(e,t):t},Ii={name:`list-style-image`,initialValue:`none`,type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value===`none`?null:ai.parse(e,t)}},Li={name:`list-style-position`,initialValue:`outside`,prefix:!1,type:2,parse:function(e,t){switch(t){case`inside`:return 0;default:return 1}}},W={name:`list-style-type`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`disc`:return 0;case`circle`:return 1;case`square`:return 2;case`decimal`:return 3;case`cjk-decimal`:return 4;case`decimal-leading-zero`:return 5;case`lower-roman`:return 6;case`upper-roman`:return 7;case`lower-greek`:return 8;case`lower-alpha`:return 9;case`upper-alpha`:return 10;case`arabic-indic`:return 11;case`armenian`:return 12;case`bengali`:return 13;case`cambodian`:return 14;case`cjk-earthly-branch`:return 15;case`cjk-heavenly-stem`:return 16;case`cjk-ideographic`:return 17;case`devanagari`:return 18;case`ethiopic-numeric`:return 19;case`georgian`:return 20;case`gujarati`:return 21;case`gurmukhi`:return 22;case`hebrew`:return 22;case`hiragana`:return 23;case`hiragana-iroha`:return 24;case`japanese-formal`:return 25;case`japanese-informal`:return 26;case`kannada`:return 27;case`katakana`:return 28;case`katakana-iroha`:return 29;case`khmer`:return 30;case`korean-hangul-formal`:return 31;case`korean-hanja-formal`:return 32;case`korean-hanja-informal`:return 33;case`lao`:return 34;case`lower-armenian`:return 35;case`malayalam`:return 36;case`mongolian`:return 37;case`myanmar`:return 38;case`oriya`:return 39;case`persian`:return 40;case`simp-chinese-formal`:return 41;case`simp-chinese-informal`:return 42;case`tamil`:return 43;case`telugu`:return 44;case`thai`:return 45;case`tibetan`:return 46;case`trad-chinese-formal`:return 47;case`trad-chinese-informal`:return 48;case`upper-armenian`:return 49;case`disclosure-open`:return 50;case`disclosure-closed`:return 51;default:return-1}}},Ri=function(e){return{name:`margin-`+e,initialValue:`0`,prefix:!1,type:4}},zi=Ri(`top`),Bi=Ri(`right`),Vi=Ri(`bottom`),Hi=Ri(`left`),Ui={name:`overflow`,initialValue:`visible`,prefix:!1,type:1,parse:function(e,t){return t.filter(ir).map(function(e){switch(e.value){case`hidden`:return 1;case`scroll`:return 2;case`clip`:return 3;case`auto`:return 4;default:return 0}})}},Wi={name:`overflow-wrap`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`break-word`:return`break-word`;default:return`normal`}}},Gi=function(e){return{name:`padding-`+e,initialValue:`0`,prefix:!1,type:3,format:`length-percentage`}},Ki=Gi(`top`),qi=Gi(`right`),Ji=Gi(`bottom`),Yi=Gi(`left`),Xi={name:`text-align`,initialValue:`left`,prefix:!1,type:2,parse:function(e,t){switch(t){case`right`:return 2;case`center`:case`justify`:return 1;default:return 0}}},Zi={name:`position`,initialValue:`static`,prefix:!1,type:2,parse:function(e,t){switch(t){case`relative`:return 1;case`absolute`:return 2;case`fixed`:return 3;case`sticky`:return 4}return 0}},Qi={name:`text-shadow`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){return t.length===1&&or(t[0],`none`)?[]:lr(t).map(function(t){for(var n={color:Fr.TRANSPARENT,offsetX:mr,offsetY:mr,blur:mr},r=0,i=0;i<t.length;i++){var a=t[i];dr(a)?(r===0?n.offsetX=a:r===1?n.offsetY=a:n.blur=a,r++):n.color=Er.parse(e,a)}return n})}},$i={name:`text-transform`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`uppercase`:return 2;case`lowercase`:return 1;case`capitalize`:return 3}return 0}},ea={name:`transform`,initialValue:`none`,prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value===`none`)return null;if(t.type===18){var n=ta[t.name];if(n===void 0)throw Error(`Attempting to parse an unsupported transform function "`+t.name+`"`);return n(t.values)}return null}},ta={matrix:function(e){var t=e.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},matrix3d:function(e){var t=e.filter(function(e){return e.type===17}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],t.length===16?[n,r,i,a,o,s]:null}},G={type:16,number:50,flags:vt},na=[G,G],ra={name:`transform-origin`,initialValue:`50% 50%`,prefix:!0,type:1,parse:function(e,t){var n=t.filter(fr);return n.length===2?[n[0],n[1]]:na}},ia={name:`visible`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`hidden`:return 1;case`collapse`:return 2;default:return 0}}},aa;(function(e){e.NORMAL=`normal`,e.BREAK_ALL=`break-all`,e.KEEP_ALL=`keep-all`})(aa||={});for(var oa={name:`word-break`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`break-all`:return aa.BREAK_ALL;case`keep-all`:return aa.KEEP_ALL;default:return aa.NORMAL}}},sa={name:`z-index`,initialValue:`auto`,prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(rr(t))return{auto:!1,order:t.number};throw Error(`Invalid z-index number parsed`)}},ca={name:`time`,parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case`s`:return 1e3*t.number;case`ms`:return t.number}throw Error(`Unsupported time type`)}},la={name:`opacity`,initialValue:`1`,type:0,prefix:!1,parse:function(e,t){return rr(t)?t.number:1}},ua={name:`text-decoration-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},da={name:`text-decoration-line`,initialValue:`none`,prefix:!1,type:1,parse:function(e,t){return t.filter(ir).map(function(e){switch(e.value){case`underline`:return 1;case`overline`:return 2;case`line-through`:return 3;case`none`:return 4}return 0}).filter(function(e){return e!==0})}},fa={name:`font-family`,initialValue:``,prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(` `)),n.length=0;break}}),n.length&&r.push(n.join(` `)),r.map(function(e){return e.indexOf(` `)===-1?e:`'`+e+`'`})}},pa={name:`font-size`,initialValue:`0`,prefix:!1,type:3,format:`length`},ma={name:`font-weight`,initialValue:`normal`,type:0,prefix:!1,parse:function(e,t){if(rr(t))return t.number;if(ir(t))switch(t.value){case`bold`:return 700;default:return 400}return 400}},ha={name:`font-variant`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){return t.filter(ir).map(function(e){return e.value})}},ga={name:`font-style`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`oblique`:return`oblique`;case`italic`:return`italic`;default:return`normal`}}},_a=function(e,t){return(e&t)!==0},va={name:`content`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var n=t[0];return n.type===20&&n.value===`none`?[]:t}},ya={name:`counter-increment`,initialValue:`none`,prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var n=t[0];if(n.type===20&&n.value===`none`)return null;for(var r=[],i=t.filter(sr),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(o.type===20){var c=s&&rr(s)?s.number:1;r.push({counter:o.value,increment:c})}}return r}},ba={name:`counter-reset`,initialValue:`none`,prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var n=[],r=t.filter(sr),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(ir(a)&&a.value!==`none`){var s=o&&rr(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},xa={name:`duration`,initialValue:`0s`,prefix:!1,type:1,parse:function(e,t){return t.filter(nr).map(function(t){return ca.parse(e,t)})}},K={name:`quotes`,initialValue:`none`,prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var n=t[0];if(n.type===20&&n.value===`none`)return null;var r=[],i=t.filter(ar);if(i.length%2!=0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;r.push({open:o,close:s})}return r}},Sa=function(e,t,n){if(!e)return``;var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:``},Ca={name:`box-shadow`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){return t.length===1&&or(t[0],`none`)?[]:lr(t).map(function(t){for(var n={color:255,offsetX:mr,offsetY:mr,blur:mr,spread:mr,inset:!1},r=0,i=0;i<t.length;i++){var a=t[i];or(a,`inset`)?n.inset=!0:dr(a)?(r===0?n.offsetX=a:r===1?n.offsetY=a:r===2?n.blur=a:n.spread=a,r++):n.color=Er.parse(e,a)}return n})}},wa={name:`paint-order`,initialValue:`normal`,prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],r=[];return t.filter(ir).forEach(function(e){switch(e.value){case`stroke`:r.push(1);break;case`fill`:r.push(0);break;case`markers`:r.push(2);break}}),n.forEach(function(e){r.indexOf(e)===-1&&r.push(e)}),r}},Ta={name:`-webkit-text-stroke-color`,initialValue:`currentcolor`,prefix:!1,type:3,format:`color`},Ea={name:`-webkit-text-stroke-width`,initialValue:`0`,type:0,prefix:!1,parse:function(e,t){return nr(t)?t.number:0}},Da=function(){function e(e,t){this.animationDuration=q(e,xa,t.animationDuration),this.backgroundClip=q(e,Ir,t.backgroundClip),this.backgroundColor=q(e,Lr,t.backgroundColor),this.backgroundImage=q(e,ci,t.backgroundImage),this.backgroundOrigin=q(e,li,t.backgroundOrigin),this.backgroundPosition=q(e,ui,t.backgroundPosition),this.backgroundRepeat=q(e,di,t.backgroundRepeat),this.backgroundSize=q(e,mi,t.backgroundSize),this.borderTopColor=q(e,_i,t.borderTopColor),this.borderRightColor=q(e,vi,t.borderRightColor),this.borderBottomColor=q(e,yi,t.borderBottomColor),this.borderLeftColor=q(e,bi,t.borderLeftColor),this.borderTopLeftRadius=q(e,P,t.borderTopLeftRadius),this.borderTopRightRadius=q(e,F,t.borderTopRightRadius),this.borderBottomRightRadius=q(e,I,t.borderBottomRightRadius),this.borderBottomLeftRadius=q(e,L,t.borderBottomLeftRadius),this.borderTopStyle=q(e,Si,t.borderTopStyle),this.borderRightStyle=q(e,z,t.borderRightStyle),this.borderBottomStyle=q(e,Ci,t.borderBottomStyle),this.borderLeftStyle=q(e,wi,t.borderLeftStyle),this.borderTopWidth=q(e,Ti,t.borderTopWidth),this.borderRightWidth=q(e,Ei,t.borderRightWidth),this.borderBottomWidth=q(e,V,t.borderBottomWidth),this.borderLeftWidth=q(e,H,t.borderLeftWidth),this.boxShadow=q(e,Ca,t.boxShadow),this.color=q(e,Di,t.color),this.direction=q(e,U,t.direction),this.display=q(e,Oi,t.display),this.float=q(e,Ai,t.cssFloat),this.fontFamily=q(e,fa,t.fontFamily),this.fontSize=q(e,pa,t.fontSize),this.fontStyle=q(e,ga,t.fontStyle),this.fontVariant=q(e,ha,t.fontVariant),this.fontWeight=q(e,ma,t.fontWeight),this.letterSpacing=q(e,ji,t.letterSpacing),this.lineBreak=q(e,Ni,t.lineBreak),this.lineHeight=q(e,Pi,t.lineHeight),this.listStyleImage=q(e,Ii,t.listStyleImage),this.listStylePosition=q(e,Li,t.listStylePosition),this.listStyleType=q(e,W,t.listStyleType),this.marginTop=q(e,zi,t.marginTop),this.marginRight=q(e,Bi,t.marginRight),this.marginBottom=q(e,Vi,t.marginBottom),this.marginLeft=q(e,Hi,t.marginLeft),this.opacity=q(e,la,t.opacity);var n=q(e,Ui,t.overflow);this.overflowX=n[0],this.overflowY=n[+(n.length>1)],this.overflowWrap=q(e,Wi,t.overflowWrap),this.paddingTop=q(e,Ki,t.paddingTop),this.paddingRight=q(e,qi,t.paddingRight),this.paddingBottom=q(e,Ji,t.paddingBottom),this.paddingLeft=q(e,Yi,t.paddingLeft),this.paintOrder=q(e,wa,t.paintOrder),this.position=q(e,Zi,t.position),this.textAlign=q(e,Xi,t.textAlign),this.textDecorationColor=q(e,ua,t.textDecorationColor??t.color),this.textDecorationLine=q(e,da,t.textDecorationLine??t.textDecoration),this.textShadow=q(e,Qi,t.textShadow),this.textTransform=q(e,$i,t.textTransform),this.transform=q(e,ea,t.transform),this.transformOrigin=q(e,ra,t.transformOrigin),this.visibility=q(e,ia,t.visibility),this.webkitTextStrokeColor=q(e,Ta,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=q(e,Ea,t.webkitTextStrokeWidth),this.wordBreak=q(e,oa,t.wordBreak),this.zIndex=q(e,sa,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return Dr(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return _a(this.display,4)||_a(this.display,33554432)||_a(this.display,268435456)||_a(this.display,536870912)||_a(this.display,67108864)||_a(this.display,134217728)},e}(),Oa=function(){function e(e,t){this.content=q(e,va,t.content),this.quotes=q(e,K,t.quotes)}return e}(),ka=function(){function e(e,t){this.counterIncrement=q(e,ya,t.counterIncrement),this.counterReset=q(e,ba,t.counterReset)}return e}(),q=function(e,t,n){var r=new tr,i=n==null?t.initialValue:n.toString();r.write(i);var a=new A(r.read());switch(t.type){case 2:var o=a.parseComponentValue();return t.parse(e,ir(o)?o.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case`angle`:return Cr.parse(e,a.parseComponentValue());case`color`:return Er.parse(e,a.parseComponentValue());case`image`:return ai.parse(e,a.parseComponentValue());case`length`:var s=a.parseComponentValue();return dr(s)?s:mr;case`length-percentage`:var c=a.parseComponentValue();return fr(c)?c:mr;case`time`:return ca.parse(e,a.parseComponentValue())}break}},Aa=`data-html2canvas-debug`,ja=function(e){switch(e.getAttribute(Aa)){case`all`:return 1;case`clone`:return 2;case`parse`:return 3;case`render`:return 4;default:return 0}},Ma=function(e,t){var n=ja(e);return n===1||t===n},Na=function(){function e(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Ma(t,3))debugger;this.styles=new Da(e,window.getComputedStyle(t,null)),ys(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration=`0s`),this.styles.transform!==null&&(t.style.transform=`none`)),this.bounds=s(this.context,t),Ma(t,4)&&(this.flags|=16)}return e}(),Pa=`AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=`,Fa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Ia=typeof Uint8Array>`u`?[]:new Uint8Array(256),La=0;La<Fa.length;La++)Ia[Fa.charCodeAt(La)]=La;for(var J=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);var l=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`&&Uint8Array.prototype.slice!==void 0?new ArrayBuffer(t):Array(t),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<n;r+=4)a=Ia[e.charCodeAt(r)],o=Ia[e.charCodeAt(r+1)],s=Ia[e.charCodeAt(r+2)],c=Ia[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Ra=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},za=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},Ba=5,Va=11,Ha=2,Ua=Va-Ba,Wa=65536>>Ba,Ga=(1<<Ba)-1,Ka=Wa+(1024>>Ba)+32,qa=65536>>Va,Ja=(1<<Ua)-1,Ya=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Xa=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},Za=function(e,t){var n=J(e),r=Array.isArray(n)?za(n):new Uint32Array(n),i=Array.isArray(n)?Ra(n):new Uint16Array(n),a=24,o=Ya(i,a/2,r[4]/2),s=r[5]===2?Ya(i,(a+r[4])/2):Xa(r,Math.ceil((a+r[4])/4));return new Qa(r[0],r[1],r[2],r[3],o,s)},Qa=function(){function e(e,t,n,r,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Ba],t=(t<<Ha)+(e&Ga),this.data[t];if(e<=65535)return t=this.index[Wa+(e-55296>>Ba)],t=(t<<Ha)+(e&Ga),this.data[t];if(e<this.highStart)return t=Ka-qa+(e>>Va),t=this.index[t],t+=e>>Ba&Ja,t=this.index[t],t=(t<<Ha)+(e&Ga),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),$a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,eo=typeof Uint8Array>`u`?[]:new Uint8Array(256),to=0;to<$a.length;to++)eo[$a.charCodeAt(to)]=to;var no=1,ro=2,io=3,ao=4,oo=5,so=7,co=8,lo=9,uo=10,fo=11,po=12,mo=13,ho=14,go=15,_o=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},vo=function(){var e=[...arguments];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return``;for(var n=[],r=-1,i=``;++r<t;){var a=e[r];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},yo=Za(Pa),bo=`×`,xo=`÷`,So=function(e){return yo.get(e)},Co=function(e,t,n){var r=n-2,i=t[r],a=t[n-1],o=t[n];if(a===ro&&o===io)return bo;if(a===ro||a===io||a===ao||o===ro||o===io||o===ao)return xo;if(a===co&&[co,lo,fo,po].indexOf(o)!==-1||(a===fo||a===lo)&&(o===lo||o===uo)||(a===po||a===uo)&&o===uo||o===mo||o===oo||o===so||a===no)return bo;if(a===mo&&o===ho){for(;i===oo;)i=t[--r];if(i===ho)return bo}if(a===go&&o===go){for(var s=0;i===go;)s++,i=t[--r];if(s%2==0)return bo}return xo},wo=function(e){var t=_o(e),n=t.length,r=0,i=0,a=t.map(So);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=bo;r<n&&(e=Co(t,a,++r))===bo;);if(e!==bo||r===n){var o=vo.apply(null,t.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},To=function(e){for(var t=wo(e),n=[],r;!(r=t.next()).done;)r.value&&n.push(r.value.slice());return n},Eo=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var r=e.createElement(`boundtest`);r.style.height=t+`px`,r.style.display=`block`,e.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),a=Math.round(i.height);if(e.body.removeChild(r),a===t)return!0}}return!1},Do=function(e){var t=e.createElement(`boundtest`);t.style.width=`50px`,t.style.display=`block`,t.style.fontSize=`12px`,t.style.letterSpacing=`0px`,t.style.wordSpacing=`0px`,e.body.appendChild(t);var n=e.createRange();t.innerHTML=typeof``.repeat==`function`?`👨`.repeat(10):``;var r=t.firstChild,i=l(r.data).map(function(e){return u(e)}),a=0,o={},s=i.every(function(e,t){n.setStart(r,a),n.setEnd(r,a+e.length);var i=n.getBoundingClientRect();a+=e.length;var s=i.x>o.x||i.y>o.y;return o=i,t===0?!0:s});return e.body.removeChild(t),s},Oo=function(){return new Image().crossOrigin!==void 0},ko=function(){return typeof new XMLHttpRequest().responseType==`string`},Ao=function(e){var t=new Image,n=e.createElement(`canvas`),r=n.getContext(`2d`);if(!r)return!1;t.src=`data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>`;try{r.drawImage(t,0,0),n.toDataURL()}catch{return!1}return!0},jo=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},Mo=function(e){var t=e.createElement(`canvas`),n=100;t.width=n,t.height=n;var r=t.getContext(`2d`);if(!r)return Promise.reject(!1);r.fillStyle=`rgb(0, 255, 0)`,r.fillRect(0,0,n,n);var i=new Image,a=t.toDataURL();i.src=a;var o=No(n,n,0,0,i);return r.fillStyle=`red`,r.fillRect(0,0,n,n),Po(o).then(function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle=`red`,r.fillRect(0,0,n,n);var o=e.createElement(`div`);return o.style.backgroundImage=`url(`+a+`)`,o.style.height=n+`px`,jo(i)?Po(No(n,n,0,0,o)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),jo(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},No=function(e,t,n,r,i){var a=`http://www.w3.org/2000/svg`,o=document.createElementNS(a,`svg`),s=document.createElementNS(a,`foreignObject`);return o.setAttributeNS(null,`width`,e.toString()),o.setAttributeNS(null,`height`,t.toString()),s.setAttributeNS(null,`width`,`100%`),s.setAttributeNS(null,`height`,`100%`),s.setAttributeNS(null,`x`,n.toString()),s.setAttributeNS(null,`y`,r.toString()),s.setAttributeNS(null,`externalResourcesRequired`,`true`),o.appendChild(s),s.appendChild(i),o},Po=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Fo={get SUPPORT_RANGE_BOUNDS(){var e=Eo(document);return Object.defineProperty(Fo,`SUPPORT_RANGE_BOUNDS`,{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Fo.SUPPORT_RANGE_BOUNDS&&Do(document);return Object.defineProperty(Fo,`SUPPORT_WORD_BREAKING`,{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Ao(document);return Object.defineProperty(Fo,`SUPPORT_SVG_DRAWING`,{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from==`function`&&typeof window.fetch==`function`?Mo(document):Promise.resolve(!1);return Object.defineProperty(Fo,`SUPPORT_FOREIGNOBJECT_DRAWING`,{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Oo();return Object.defineProperty(Fo,`SUPPORT_CORS_IMAGES`,{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=ko();return Object.defineProperty(Fo,`SUPPORT_RESPONSE_TYPE`,{value:e}),e},get SUPPORT_CORS_XHR(){var e=`withCredentials`in new XMLHttpRequest;return Object.defineProperty(Fo,`SUPPORT_CORS_XHR`,{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<`u`&&Intl.Segmenter);return Object.defineProperty(Fo,`SUPPORT_NATIVE_TEXT_SEGMENTATION`,{value:e}),e}},Io=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Lo=function(e,t,n,r){var i=Ho(t,n),a=[],s=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Fo.SUPPORT_RANGE_BOUNDS){var i=zo(r,s,t.length).getClientRects();if(i.length>1){var c=Bo(t),l=0;c.forEach(function(t){a.push(new Io(t,o.fromDOMRectList(e,zo(r,l+s,t.length).getClientRects()))),l+=t.length})}else a.push(new Io(t,o.fromDOMRectList(e,i)))}else{var u=r.splitText(t.length);a.push(new Io(t,Ro(e,r))),r=u}else Fo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));s+=t.length}),a},Ro=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement(`html2canvaswrapper`);r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var a=s(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},zo=function(e,t,n){var r=e.ownerDocument;if(!r)throw Error(`Node has no owner document`);var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},Bo=function(e){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:`grapheme`});return Array.from(t.segment(e)).map(function(e){return e.segment})}return To(e)},Vo=function(e,t){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:`word`});return Array.from(n.segment(e)).map(function(e){return e.segment})}return Wo(e,t)},Ho=function(e,t){return t.letterSpacing===0?Vo(e,t):Bo(e)},Uo=[32,160,4961,65792,65793,4153,4241],Wo=function(e,t){for(var n=ht(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===`break-word`?`break-word`:t.wordBreak}),r=[],i,a=function(){if(i.value){var e=l(i.value.slice()),t=``;e.forEach(function(e){Uo.indexOf(e)===-1?t+=u(e):(t.length&&r.push(t),r.push(u(e)),t=``)}),t.length&&r.push(t)}};!(i=n.next()).done;)a();return r},Go=function(){function e(e,t,n){this.text=Ko(t.data,n.textTransform),this.textBounds=Lo(e,this.text,n,t)}return e}(),Ko=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(qo,Jo);case 2:return e.toUpperCase();default:return e}},qo=/(^|\s|:|-|\(|\))([a-z])/g,Jo=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Yo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return n}(Na),Xo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return n}(Na),Zo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,a=s(t,n);return n.setAttribute(`width`,a.width+`px`),n.setAttribute(`height`,a.height+`px`),r.svg=`data:image/svg+xml,`+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return n}(Na),Qo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return n}(Na),$o=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed=typeof n.reversed==`boolean`&&n.reversed===!0,r}return n}(Na),es=[{type:15,flags:0,unit:`px`,number:3}],ts=[{type:16,flags:0,number:50}],ns=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},rs=function(e){var t=e.type===os?Array(e.value.length+1).join(`•`):e.value;return t.length===0?e.placeholder||``:t},is=`checkbox`,as=`radio`,os=`password`,ss=707406591,cs=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=rs(n),(r.type===is||r.type===as)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=ns(r.bounds)),r.type){case is:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=es;break;case as:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ts;break}return r}return n}(Na),ls=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||``,r}return n}(Na),us=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return n}(Na),ds=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=hs(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Pr(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Fr.TRANSPARENT,a=n.contentWindow.document.body?Pr(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):Fr.TRANSPARENT;r.backgroundColor=Dr(i)?Dr(a)?r.styles.backgroundColor:a:i}}catch{}return r}return n}(Na),fs=[`OL`,`UL`,`MENU`],ps=function(e,t,n,r){for(var i=t.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,Y(i)&&i.data.trim().length>0)n.textNodes.push(new Go(e,i,n.styles));else if(vs(i))if(Fs(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return ps(e,t,n,r)});else{var o=ms(e,i);o.styles.isVisible()&&(gs(i,o,r)?o.flags|=4:_s(o.styles)&&(o.flags|=2),fs.indexOf(i.tagName)!==-1&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?ps(e,i.shadowRoot,o,r):!Ns(i)&&!Ts(i)&&!Ps(i)&&ps(e,i,o,r))}},ms=function(e,t){return ks(t)?new Yo(e,t):Ds(t)?new Xo(e,t):Ts(t)?new Zo(e,t):xs(t)?new Qo(e,t):Ss(t)?new $o(e,t):Cs(t)?new cs(e,t):Ps(t)?new ls(e,t):Ns(t)?new us(e,t):As(t)?new ds(e,t):new Na(e,t)},hs=function(e,t){var n=ms(e,t);return n.flags|=4,ps(e,t,n,n),n},gs=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Es(e)&&n.styles.isTransparent()},_s=function(e){return e.isPositioned()||e.isFloating()},Y=function(e){return e.nodeType===Node.TEXT_NODE},vs=function(e){return e.nodeType===Node.ELEMENT_NODE},ys=function(e){return vs(e)&&e.style!==void 0&&!bs(e)},bs=function(e){return typeof e.className==`object`},xs=function(e){return e.tagName===`LI`},Ss=function(e){return e.tagName===`OL`},Cs=function(e){return e.tagName===`INPUT`},ws=function(e){return e.tagName===`HTML`},Ts=function(e){return e.tagName===`svg`},Es=function(e){return e.tagName===`BODY`},Ds=function(e){return e.tagName===`CANVAS`},Os=function(e){return e.tagName===`VIDEO`},ks=function(e){return e.tagName===`IMG`},As=function(e){return e.tagName===`IFRAME`},js=function(e){return e.tagName===`STYLE`},Ms=function(e){return e.tagName===`SCRIPT`},Ns=function(e){return e.tagName===`TEXTAREA`},Ps=function(e){return e.tagName===`SELECT`},Fs=function(e){return e.tagName===`SLOT`},Is=function(e){return e.tagName.indexOf(`-`)>0},Ls=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;n!==null&&n.forEach(function(e){var n=t.counters[e.counter];n&&e.increment!==0&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var a=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];a.push(e.counter),n||=t.counters[e.counter]=[],n.push(e.reset)}),a},e}(),Rs={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:[`M`,`CM`,`D`,`CD`,`C`,`XC`,`L`,`XL`,`X`,`IX`,`V`,`IV`,`I`]},zs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:`Ք.Փ.Ւ.Ց.Ր.Տ.Վ.Ս.Ռ.Ջ.Պ.Չ.Ո.Շ.Ն.Յ.Մ.Ճ.Ղ.Ձ.Հ.Կ.Ծ.Խ.Լ.Ի.Ժ.Թ.Ը.Է.Զ.Ե.Դ.Գ.Բ.Ա`.split(`.`)},Bs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:`י׳.ט׳.ח׳.ז׳.ו׳.ה׳.ד׳.ג׳.ב׳.א׳.ת.ש.ר.ק.צ.פ.ע.ס.נ.מ.ל.כ.יט.יח.יז.טז.טו.י.ט.ח.ז.ו.ה.ד.ג.ב.א`.split(`.`)},Vs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:`ჵ.ჰ.ჯ.ჴ.ხ.ჭ.წ.ძ.ც.ჩ.შ.ყ.ღ.ქ.ფ.ჳ.ტ.ს.რ.ჟ.პ.ო.ჲ.ნ.მ.ლ.კ.ი.თ.ჱ.ზ.ვ.ე.დ.გ.ბ.ა`.split(`.`)},Hs=function(e,t,n,r,i,a){return e<t||e>n?tc(e,i,a.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},``)+a},Us=function(e,t,n,r){var i=``;do n||e--,i=r(e)+i,e/=t;while(e*t>=t);return i},Ws=function(e,t,n,r,i){var a=n-t+1;return(e<0?`-`:``)+(Us(Math.abs(e),a,r,function(e){return u(Math.floor(e%a)+t)})+i)},Gs=function(e,t,n){n===void 0&&(n=`. `);var r=t.length;return Us(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},Ks=1,qs=2,Js=4,Ys=8,Xs=function(e,t,n,r,i,a){if(e<-9999||e>9999)return tc(e,4,i.length>0);var o=Math.abs(e),s=i;if(o===0)return t[0]+s;for(var c=0;o>0&&c<=4;c++){var l=o%10;l===0&&_a(a,Ks)&&s!==``?s=t[l]+s:l>1||l===1&&c===0||l===1&&c===1&&_a(a,qs)||l===1&&c===1&&_a(a,Js)&&e>100||l===1&&c>1&&_a(a,Ys)?s=t[l]+(c>0?n[c-1]:``)+s:l===1&&c>0&&(s=n[c-1]+s),o=Math.floor(o/10)}return(e<0?r:``)+s},Zs=`十百千萬`,Qs=`拾佰仟萬`,$s=`マイナス`,ec=`마이너스`,tc=function(e,t,n){var r=n?`. `:``,i=n?`、`:``,a=n?`, `:``,o=n?` `:``;switch(t){case 0:return`•`+o;case 1:return`◦`+o;case 2:return`◾`+o;case 5:var s=Ws(e,48,57,!0,r);return s.length<4?`0`+s:s;case 4:return Gs(e,`〇一二三四五六七八九`,i);case 6:return Hs(e,1,3999,Rs,3,r).toLowerCase();case 7:return Hs(e,1,3999,Rs,3,r);case 8:return Ws(e,945,969,!1,r);case 9:return Ws(e,97,122,!1,r);case 10:return Ws(e,65,90,!1,r);case 11:return Ws(e,1632,1641,!0,r);case 12:case 49:return Hs(e,1,9999,zs,3,r);case 35:return Hs(e,1,9999,zs,3,r).toLowerCase();case 13:return Ws(e,2534,2543,!0,r);case 14:case 30:return Ws(e,6112,6121,!0,r);case 15:return Gs(e,`子丑寅卯辰巳午未申酉戌亥`,i);case 16:return Gs(e,`甲乙丙丁戊己庚辛壬癸`,i);case 17:case 48:return Xs(e,`零一二三四五六七八九`,Zs,`負`,i,qs|Js|Ys);case 47:return Xs(e,`零壹貳參肆伍陸柒捌玖`,Qs,`負`,i,Ks|qs|Js|Ys);case 42:return Xs(e,`零一二三四五六七八九`,Zs,`负`,i,qs|Js|Ys);case 41:return Xs(e,`零壹贰叁肆伍陆柒捌玖`,Qs,`负`,i,Ks|qs|Js|Ys);case 26:return Xs(e,`〇一二三四五六七八九`,`十百千万`,$s,i,0);case 25:return Xs(e,`零壱弐参四伍六七八九`,`拾百千万`,$s,i,Ks|qs|Js);case 31:return Xs(e,`영일이삼사오육칠팔구`,`십백천만`,ec,a,Ks|qs|Js);case 33:return Xs(e,`零一二三四五六七八九`,`十百千萬`,ec,a,0);case 32:return Xs(e,`零壹貳參四五六七八九`,`拾百千`,ec,a,Ks|qs|Js);case 18:return Ws(e,2406,2415,!0,r);case 20:return Hs(e,1,19999,Vs,3,r);case 21:return Ws(e,2790,2799,!0,r);case 22:return Ws(e,2662,2671,!0,r);case 22:return Hs(e,1,10999,Bs,3,r);case 23:return Gs(e,`あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん`);case 24:return Gs(e,`いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす`);case 27:return Ws(e,3302,3311,!0,r);case 28:return Gs(e,`アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン`,i);case 29:return Gs(e,`イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス`,i);case 34:return Ws(e,3792,3801,!0,r);case 37:return Ws(e,6160,6169,!0,r);case 38:return Ws(e,4160,4169,!0,r);case 39:return Ws(e,2918,2927,!0,r);case 40:return Ws(e,1776,1785,!0,r);case 43:return Ws(e,3046,3055,!0,r);case 44:return Ws(e,3174,3183,!0,r);case 45:return Ws(e,3664,3673,!0,r);case 46:return Ws(e,3872,3881,!0,r);default:return Ws(e,48,57,!0,r)}},nc=`data-html2canvas-ignore`,rc=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ls,this.quoteDepth=0,!t.ownerDocument)throw Error(`Cloned element does not have an owner document`);this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,a=ac(e,t);if(!a.contentWindow)return Promise.reject(`Unable to find iframe window`);var o=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,c=a.contentWindow,l=c.document,u=cc(a).then(function(){return r(n,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(pc),c&&(c.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(c.scrollY!==t.top||c.scrollX!==t.left)&&(this.context.logger.warn(`Unable to restore scroll position for cloned document`),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-t.left,c.scrollY-t.top,0,0))),e=this.options.onclone,n=this.clonedReferenceElement,n===void 0?[2,Promise.reject(`Error finding the `+this.referenceElement.nodeName+` in the cloned document`)]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,sc(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return typeof e==`function`?[2,Promise.resolve().then(function(){return e(l,n)}).then(function(){return a})]:[2,a]}})})});return l.open(),l.write(dc(document.doctype)+`<html></html>`),fc(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},e.prototype.createElementClone=function(e){if(Ma(e,2))debugger;if(Ds(e))return this.createCanvasClone(e);if(Os(e))return this.createVideoClone(e);if(js(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return ks(t)&&(ks(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=``),t.loading===`lazy`&&(t.loading=`eager`)),Is(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement(`html2canvascustomelement`);return uc(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&typeof t.cssText==`string`?e+t.cssText:e},``),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error(`Unable to access cssRules property`,e),e.name!==`SecurityError`)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement(`img`);try{return t.src=e.toDataURL(),t}catch{this.context.logger.info(`Unable to inline canvas contents, canvas is tainted`,e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext(`2d`),i=n.getContext(`2d`);if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,e.width,e.height),0,0);else{var a=e.getContext(`webgl2`)??e.getContext(`webgl`);a&&a.getContextAttributes()?.preserveDrawingBuffer===!1&&this.context.logger.warn(`Unable to clone WebGL context as it has preserveDrawingBuffer=false`,e),i.drawImage(e,0,0)}return n}catch{this.context.logger.info(`Unable to clone canvas as it is tainted`,e)}return n},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement(`canvas`);t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext(`2d`);try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info(`Unable to clone video as it is tainted`,e)}var r=e.ownerDocument.createElement(`canvas`);return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){(!vs(t)||!Ms(t)&&!t.hasAttribute(nc)&&(typeof this.options.ignoreElements!=`function`||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!vs(t)||!js(t))&&e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(vs(i)&&Fs(i)&&typeof i.assignedNodes==`function`){var a=i.assignedNodes();a.length&&a.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,i,n)},e.prototype.cloneNode=function(e,t){if(Y(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&vs(e)&&(ys(e)||bs(e))){var r=this.createElementClone(e);r.style.transitionProperty=`none`;var i=n.getComputedStyle(e),a=n.getComputedStyle(e,`:before`),o=n.getComputedStyle(e,`:after`);this.referenceElement===e&&ys(r)&&(this.clonedReferenceElement=r),Es(r)&&yc(r);var s=this.counters.parse(new ka(this.context,i)),c=this.resolvePseudoContent(e,r,a,ic.BEFORE);Is(e)&&(t=!0),Os(e)||this.cloneChildNodes(e,r,t),c&&r.insertBefore(c,r.firstChild);var l=this.resolvePseudoContent(e,r,o,ic.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||bs(e))&&!As(e)||t)&&uc(i,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Ns(e)||Ps(e))&&(Ns(r)||Ps(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var a=n.content,o=t.ownerDocument;if(!(!o||!a||a===`none`||a===`-moz-alt-content`||n.display===`none`)){this.counters.parse(new ka(this.context,n));var s=new Oa(this.context,n),c=o.createElement(`html2canvaspseudoelement`);uc(n,c),s.content.forEach(function(t){if(t.type===0)c.appendChild(o.createTextNode(t.value));else if(t.type===22){var n=o.createElement(`img`);n.src=t.value,n.style.opacity=`1`,c.appendChild(n)}else if(t.type===18){if(t.name===`attr`){var r=t.values.filter(ir);r.length&&c.appendChild(o.createTextNode(e.getAttribute(r[0].value)||``))}else if(t.name===`counter`){var a=t.values.filter(cr),l=a[0],u=a[1];if(l&&ir(l)){var d=i.counters.getCounterValue(l.value),f=u&&ir(u)?W.parse(i.context,u.value):3;c.appendChild(o.createTextNode(tc(d,f,!1)))}}else if(t.name===`counters`){var p=t.values.filter(cr),l=p[0],m=p[1],u=p[2];if(l&&ir(l)){var h=i.counters.getCounterValues(l.value),g=u&&ir(u)?W.parse(i.context,u.value):3,_=m&&m.type===0?m.value:``,v=h.map(function(e){return tc(e,g,!1)}).join(_);c.appendChild(o.createTextNode(v))}}}else if(t.type===20)switch(t.value){case`open-quote`:c.appendChild(o.createTextNode(Sa(s.quotes,i.quoteDepth++,!0)));break;case`close-quote`:c.appendChild(o.createTextNode(Sa(s.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(t.value))}}),c.className=gc+` `+_c;var l=r===ic.BEFORE?` `+gc:` `+_c;return bs(t)?t.className.baseValue+=l:t.className+=l,c}}},e.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},e}(),ic;(function(e){e[e.BEFORE=0]=`BEFORE`,e[e.AFTER=1]=`AFTER`})(ic||={});var ac=function(e,t){var n=e.createElement(`iframe`);return n.className=`html2canvas-container`,n.style.visibility=`hidden`,n.style.position=`fixed`,n.style.left=`-10000px`,n.style.top=`0px`,n.style.border=`0`,n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling=`no`,n.setAttribute(nc,`true`),e.body.appendChild(n),n},oc=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},sc=function(e){return Promise.all([].slice.call(e.images,0).map(oc))},cc=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n(`No window assigned for iframe`);var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&i.readyState===`complete`&&(clearInterval(n),t(e))},50)}})},lc=[`all`,`d`,`content`],uc=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);lc.indexOf(r)===-1&&t.style.setProperty(r,e.getPropertyValue(r))}return t},dc=function(e){var t=``;return e&&(t+=`<!DOCTYPE `,e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+=`"`+e.publicId+`"`),e.systemId&&(t+=`"`+e.systemId+`"`),t+=`>`),t},fc=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},pc=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},mc=`:before`,hc=`:after`,gc=`___html2canvas___pseudoelement_before`,_c=`___html2canvas___pseudoelement_after`,vc=`{
|
|
7805
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+w_(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function z_(e,t){return R_.parse(e,t)}z_.options=z_.setOptions=function(e){return R_.setOptions(e),z_.defaults=R_.defaults,fg(z_.defaults),z_},z_.getDefaults=ug,z_.defaults=dg,z_.use=function(...e){return R_.use(...e),z_.defaults=R_.defaults,fg(z_.defaults),z_},z_.walkTokens=function(e,t){return R_.walkTokens(e,t)},z_.parseInline=R_.parseInline,z_.Parser=I_,z_.parser=I_.parse,z_.Renderer=P_,z_.TextRenderer=F_,z_.Lexer=N_,z_.lexer=N_.lex,z_.Tokenizer=M_,z_.Hooks=L_,z_.parse=z_,z_.options,z_.setOptions,z_.use,z_.walkTokens,z_.parseInline,I_.parse,N_.lex;function B_(e){return typeof crypto<`u`&&`randomUUID`in crypto?`${e}-${crypto.randomUUID()}`:`${e}-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function V_(e){return e.nodeType===Node.TEXT_NODE&&!e.textContent?.trim()}function H_(e){return e.every(e=>V_(e))}function U_(e){return e.map(e=>({type:e.type,attrs:e.attrs?{...e.attrs}:void 0}))}function W_(e,t=[]){return e?{type:`text`,text:e,...t.length?{marks:U_(t)}:{}}:null}function G_(e,t=[]){let n=[];return e.forEach(e=>{if(e.nodeType===Node.TEXT_NODE){let r=e.textContent??``;if(r){let e=W_(r,t);e&&n.push(e)}return}if(!(e instanceof HTMLElement))return;let r=e.tagName.toLowerCase();if(r===`br`){n.push({type:`hardBreak`});return}if(r===`strong`||r===`b`){n.push(...G_(Array.from(e.childNodes),[...t,{type:`bold`}]));return}if(r===`em`||r===`i`){n.push(...G_(Array.from(e.childNodes),[...t,{type:`italic`}]));return}if(r===`code`){let r=W_(e.textContent??``,[...t,{type:`code`}]);r&&n.push(r);return}if(r===`a`){let r=e.textContent?.trim()||e.getAttribute(`href`)||``,i=e.getAttribute(`href`)||``,a=W_(i&&i!==r?`${r} (${i})`:r,t);a&&n.push(a);return}if(r===`img`){let r=e.getAttribute(`alt`)||e.getAttribute(`src`)||``,i=W_(r?`[图片: ${r}]`:`[图片]`,t);i&&n.push(i);return}n.push(...G_(Array.from(e.childNodes),t))}),n}function K_(e){let t=Du(e.getAttribute(`src`)||``);if(!t)return null;let n=e.getAttribute(`alt`)?.trim()||``;return{type:`imageBlock`,attrs:{images:[{id:B_(`image`),src:t,alt:n,name:n||`Markdown image`,description:``,link:``,rotation:0}],widthPercent:100,align:`left`,height:146}}}function q_(e){let t=Eu(e.getAttribute(`href`)||``);return t?{type:`linkBlock`,attrs:{title:e.textContent?.trim()||t,url:t,displayMode:`text`,align:`left`,widthPercent:100,height:420}}:null}function J_(e){let t=Array.from(e.childNodes).filter(e=>!V_(e));if(t.length===1&&t[0]instanceof HTMLElement){let e=t[0],n=e.tagName.toLowerCase();if(n===`img`)return K_(e);if(n===`a`)return q_(e)}let n=G_(Array.from(e.childNodes));return n.length?{type:`paragraph`,content:n}:null}function Y_(e){let t=[],n=[];if(Array.from(e.childNodes).forEach(e=>{if(e instanceof HTMLElement){let r=e.tagName.toLowerCase();if(r===`ul`||r===`ol`){if(!H_(n)){let e=G_(n);e.length&&t.push({type:`paragraph`,content:e}),n.length=0}let r=ev(e);r&&t.push(r);return}if(r===`p`||r===`blockquote`||r===`pre`||r===`hr`){if(!H_(n)){let e=G_(n);e.length&&t.push({type:`paragraph`,content:e}),n.length=0}let r=ev(e);r&&t.push(r);return}}n.push(e)}),!H_(n)){let e=G_(n);e.length&&t.push({type:`paragraph`,content:e})}return t.length||t.push({type:`paragraph`}),{type:`listItem`,content:t}}function X_(e,t){let n=Array.from(e.children).filter(e=>e.tagName.toLowerCase()===`li`).map(e=>Y_(e));return n.length?{type:t?`orderedList`:`bulletList`,content:n}:null}function Z_(e){let t=e.querySelector(`code`),n=t?.textContent??e.textContent??``;if(!n.trim())return null;let r=(t?.className||``).match(/language-([a-z0-9_-]+)/i)?.[1]?.toLowerCase()||`plain_text`;return r===`mermaid`||r===`plantuml`||r===`markmap`||r===`flowchart`?null:{type:`codeBlock`,attrs:{language:r,wrapLines:!1,darkTheme:!1,fixedHeight:!1},content:[{type:`text`,text:n.replace(/\n$/,``)}]}}function Q_(e){let t=tv(Array.from(e.childNodes));return t.length?{type:`blockquote`,content:t}:null}function $_(e){let t=G_(Array.from(e.childNodes)),n=Number.parseInt(e.tagName.replace(/[^0-9]/g,``),10);return!t.length||Number.isNaN(n)?null:{type:`heading`,attrs:{level:n},content:t}}function ev(e){if(!(e instanceof HTMLElement))return null;let t=e.tagName.toLowerCase();return t===`p`?J_(e):/^h[1-6]$/.test(t)?$_(e):t===`blockquote`?Q_(e):t===`ul`?X_(e,!1):t===`ol`?X_(e,!0):t===`pre`?Z_(e):t===`hr`?{type:`horizontalRule`}:t===`img`?K_(e):t===`a`?q_(e):null}function tv(e){return e.map(e=>ev(e)).filter(e=>!!e)}function nv(e){let t=z_.parse(e,{async:!1,gfm:!0,breaks:!1}),n=new DOMParser().parseFromString(`<div data-markdown-root="true">${t}</div>`,`text/html`).querySelector(`[data-markdown-root="true"]`);if(!n)return[{type:`paragraph`}];let r=tv(Array.from(n.childNodes));return r.length?r:[{type:`paragraph`}]}var rv=oe(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self,n.html2canvas=r())})(e,(function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function i(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function a(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||t)}for(var o=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return e.width!==0});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return o.fromClientRect(e,t.getBoundingClientRect())},c=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw Error(`Unable to get document size`);return new o(0,0,Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight)))},l=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},u=function(){var e=[...arguments];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return``;for(var n=[],r=-1,i=``;++r<t;){var a=e[r];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,f=typeof Uint8Array>`u`?[]:new Uint8Array(256),p=0;p<d.length;p++)f[d.charCodeAt(p)]=p;for(var m=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,h=typeof Uint8Array>`u`?[]:new Uint8Array(256),g=0;g<m.length;g++)h[m.charCodeAt(g)]=g;for(var _=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);var l=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`&&Uint8Array.prototype.slice!==void 0?new ArrayBuffer(t):Array(t),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<n;r+=4)a=h[e.charCodeAt(r)],o=h[e.charCodeAt(r+1)],s=h[e.charCodeAt(r+2)],c=h[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},v=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},y=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},b=5,x=11,S=2,C=x-b,w=65536>>b,T=(1<<b)-1,E=w+(1024>>b)+32,ee=65536>>x,te=(1<<C)-1,D=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},ne=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},re=function(e,t){var n=_(e),r=Array.isArray(n)?y(n):new Uint32Array(n),i=Array.isArray(n)?v(n):new Uint16Array(n),a=24,o=D(i,a/2,r[4]/2),s=r[5]===2?D(i,(a+r[4])/2):ne(r,Math.ceil((a+r[4])/4));return new ie(r[0],r[1],r[2],r[3],o,s)},ie=function(){function e(e,t,n,r,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>b],t=(t<<S)+(e&T),this.data[t];if(e<=65535)return t=this.index[w+(e-55296>>b)],t=(t<<S)+(e&T),this.data[t];if(e<this.highStart)return t=E-ee+(e>>x),t=this.index[t],t+=e>>b&te,t=this.index[t],t=(t<<S)+(e&T),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),O=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ae=typeof Uint8Array>`u`?[]:new Uint8Array(256),oe=0;oe<O.length;oe++)ae[O.charCodeAt(oe)]=oe;var se=`KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==`,ce=50,le=1,ue=2,de=3,fe=4,pe=5,me=7,he=8,ge=9,_e=10,ve=11,ye=12,be=13,xe=14,Se=15,Ce=16,we=17,Te=18,Ee=19,De=20,Oe=21,ke=22,Ae=23,je=24,Me=25,Ne=26,Pe=27,Fe=28,Ie=29,Le=30,Re=31,ze=32,Be=33,Ve=34,He=35,Ue=36,We=37,Ge=38,Ke=39,qe=40,Je=41,Ye=42,Xe=43,Ze=[9001,65288],Qe=`!`,$e=`×`,et=`÷`,tt=re(se),nt=[Le,Ue],rt=[le,ue,de,pe],it=[_e,he],at=[Pe,Ne],ot=rt.concat(it),st=[Ge,Ke,qe,Ve,He],ct=[Se,be],lt=function(e,t){t===void 0&&(t=`strict`);var n=[],r=[],i=[];return e.forEach(function(e,a){var o=tt.get(e);if(o>ce?(i.push(!0),o-=ce):i.push(!1),[`normal`,`auto`,`loose`].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(e)!==-1)return r.push(a),n.push(Ce);if(o===fe||o===ve){if(a===0)return r.push(a),n.push(Le);var s=n[a-1];return ot.indexOf(s)===-1?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(Le))}if(r.push(a),o===Re)return n.push(t===`strict`?Oe:We);if(o===Ye||o===Ie)return n.push(Le);if(o===Xe)return e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(We):n.push(Le);n.push(o)}),[r,n,i]},ut=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=n;a<=r.length;){a++;var o=r[a];if(o===t)return!0;if(o!==_e)break}if(i===_e)for(var a=n;a>0;){a--;var s=r[a];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var c=n;c<=r.length;){c++;var o=r[c];if(o===t)return!0;if(o!==_e)break}if(s!==_e)break}return!1},dt=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r===_e)n--;else return r}return 0},ft=function(e,t,n,r,i){if(n[r]===0)return $e;var a=r-1;if(Array.isArray(i)&&i[a]===!0)return $e;var o=a-1,s=a+1,c=t[a],l=o>=0?t[o]:0,u=t[s];if(c===ue&&u===de)return $e;if(rt.indexOf(c)!==-1)return Qe;if(rt.indexOf(u)!==-1||it.indexOf(u)!==-1)return $e;if(dt(a,t)===he)return et;if(tt.get(e[a])===ve||(c===ze||c===Be)&&tt.get(e[s])===ve||c===me||u===me||c===ge||[_e,be,Se].indexOf(c)===-1&&u===ge||[we,Te,Ee,je,Fe].indexOf(u)!==-1||dt(a,t)===ke||ut(Ae,ke,a,t)||ut([we,Te],Oe,a,t)||ut(ye,ye,a,t))return $e;if(c===_e)return et;if(c===Ae||u===Ae)return $e;if(u===Ce||c===Ce)return et;if([be,Se,Oe].indexOf(u)!==-1||c===xe||l===Ue&&ct.indexOf(c)!==-1||c===Fe&&u===Ue||u===De||nt.indexOf(u)!==-1&&c===Me||nt.indexOf(c)!==-1&&u===Me||c===Pe&&[We,ze,Be].indexOf(u)!==-1||[We,ze,Be].indexOf(c)!==-1&&u===Ne||nt.indexOf(c)!==-1&&at.indexOf(u)!==-1||at.indexOf(c)!==-1&&nt.indexOf(u)!==-1||[Pe,Ne].indexOf(c)!==-1&&(u===Me||[ke,Se].indexOf(u)!==-1&&t[s+1]===Me)||[ke,Se].indexOf(c)!==-1&&u===Me||c===Me&&[Me,Fe,je].indexOf(u)!==-1)return $e;if([Me,Fe,je,we,Te].indexOf(u)!==-1)for(var d=a;d>=0;){var f=t[d];if(f===Me)return $e;if([Fe,je].indexOf(f)!==-1)d--;else break}if([Pe,Ne].indexOf(u)!==-1)for(var d=[we,Te].indexOf(c)===-1?a:o;d>=0;){var f=t[d];if(f===Me)return $e;if([Fe,je].indexOf(f)!==-1)d--;else break}if(Ge===c&&[Ge,Ke,Ve,He].indexOf(u)!==-1||[Ke,Ve].indexOf(c)!==-1&&[Ke,qe].indexOf(u)!==-1||[qe,He].indexOf(c)!==-1&&u===qe||st.indexOf(c)!==-1&&[De,Ne].indexOf(u)!==-1||st.indexOf(u)!==-1&&c===Pe||nt.indexOf(c)!==-1&&nt.indexOf(u)!==-1||c===je&&nt.indexOf(u)!==-1||nt.concat(Me).indexOf(c)!==-1&&u===ke&&Ze.indexOf(e[s])===-1||nt.concat(Me).indexOf(u)!==-1&&c===Te)return $e;if(c===Je&&u===Je){for(var p=n[a],m=1;p>0&&(p--,t[p]===Je);)m++;if(m%2!=0)return $e}return c===ze&&u===Be?$e:et},pt=function(e,t){t||={lineBreak:`normal`,wordBreak:`normal`};var n=lt(e,t.lineBreak),r=n[0],i=n[1],a=n[2];(t.wordBreak===`break-all`||t.wordBreak===`break-word`)&&(i=i.map(function(e){return[Me,Le,Ye].indexOf(e)===-1?e:We}));var o=t.wordBreak===`keep-all`?a.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0;return[r,i,o]},mt=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===Qe,this.start=n,this.end=r}return e.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),ht=function(e,t){var n=l(e),r=pt(n,t),i=r[0],a=r[1],o=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var e=$e;u<s&&(e=ft(n,a,i,++u,o))===$e;);if(e!==$e||u===s){var t=new mt(n,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}},gt=1,_t=2,vt=4,yt=8,bt=10,xt=47,St=92,Ct=9,wt=32,Tt=34,Et=61,Dt=35,Ot=36,kt=37,At=39,jt=40,Mt=41,Nt=95,Pt=45,Ft=33,It=60,Lt=62,Rt=64,zt=91,Bt=93,Vt=61,Ht=123,Ut=63,Wt=125,Gt=124,Kt=126,qt=128,Jt=65533,Yt=42,Xt=43,Zt=44,Qt=58,$t=59,en=46,tn=0,nn=8,rn=11,an=14,on=31,k=127,sn=-1,cn=48,ln=97,un=101,dn=102,fn=117,pn=122,mn=65,hn=69,gn=70,_n=85,vn=90,yn=function(e){return e>=cn&&e<=57},bn=function(e){return e>=55296&&e<=57343},xn=function(e){return yn(e)||e>=mn&&e<=gn||e>=ln&&e<=dn},Sn=function(e){return e>=ln&&e<=pn},Cn=function(e){return e>=mn&&e<=vn},wn=function(e){return Sn(e)||Cn(e)},Tn=function(e){return e>=qt},En=function(e){return e===bt||e===Ct||e===wt},Dn=function(e){return wn(e)||Tn(e)||e===Nt},On=function(e){return Dn(e)||yn(e)||e===Pt},kn=function(e){return e>=tn&&e<=nn||e===rn||e>=an&&e<=on||e===k},An=function(e,t){return e===St?t!==bt:!1},jn=function(e,t,n){return e===Pt?Dn(t)||An(t,n):Dn(e)?!0:!!(e===St&&An(e,t))},Mn=function(e,t,n){return e===Xt||e===Pt?yn(t)?!0:t===en&&yn(n):yn(e===en?t:e)},Nn=function(e){var t=0,n=1;(e[t]===Xt||e[t]===Pt)&&(e[t]===Pt&&(n=-1),t++);for(var r=[];yn(e[t]);)r.push(e[t++]);var i=r.length?parseInt(u.apply(void 0,r),10):0;e[t]===en&&t++;for(var a=[];yn(e[t]);)a.push(e[t++]);var o=a.length,s=o?parseInt(u.apply(void 0,a),10):0;(e[t]===hn||e[t]===un)&&t++;var c=1;(e[t]===Xt||e[t]===Pt)&&(e[t]===Pt&&(c=-1),t++);for(var l=[];yn(e[t]);)l.push(e[t++]);var d=l.length?parseInt(u.apply(void 0,l),10):0;return n*(i+s*10**-o)*10**(c*d)},Pn={type:2},Fn={type:3},In={type:4},Ln={type:13},Rn={type:8},zn={type:21},Bn={type:9},Vn={type:10},Hn={type:11},Un={type:12},Wn={type:14},Gn={type:23},Kn={type:1},qn={type:25},Jn={type:24},Yn={type:26},Xn={type:27},Zn={type:28},Qn={type:29},$n={type:31},er={type:32},tr=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==er;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Tt:return this.consumeStringToken(Tt);case Dt:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(On(t)||An(n,r)){var i=jn(t,n,r)?_t:gt,a=this.consumeName();return{type:5,value:a,flags:i}}break;case Ot:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Ln;break;case At:return this.consumeStringToken(At);case jt:return Pn;case Mt:return Fn;case Yt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Wn;break;case Xt:if(Mn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Zt:return In;case Pt:var o=e,s=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Mn(o,s,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(jn(o,s,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(s===Pt&&c===Lt)return this.consumeCodePoint(),this.consumeCodePoint(),Jn;break;case en:if(Mn(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case xt:if(this.peekCodePoint(0)===Yt)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===Yt&&(l=this.consumeCodePoint(),l===xt)||l===sn)return this.consumeToken()}break;case Qt:return Yn;case $t:return Xn;case It:if(this.peekCodePoint(0)===Ft&&this.peekCodePoint(1)===Pt&&this.peekCodePoint(2)===Pt)return this.consumeCodePoint(),this.consumeCodePoint(),qn;break;case Rt:if(jn(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var a=this.consumeName();return{type:7,value:a}}break;case zt:return Zn;case St:if(An(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Bt:return Qn;case Vt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Rn;break;case Ht:return Hn;case Wt:return Un;case fn:case _n:var d=this.peekCodePoint(0),f=this.peekCodePoint(1);return d===Xt&&(xn(f)||f===Ut)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Gt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Bn;if(this.peekCodePoint(0)===Gt)return this.consumeCodePoint(),zn;break;case Kt:if(this.peekCodePoint(0)===Et)return this.consumeCodePoint(),Vn;break;case sn:return er}return En(e)?(this.consumeWhiteSpace(),$n):yn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Dn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:u(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return e===void 0?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();xn(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===Ut&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(u.apply(void 0,e.map(function(e){return e===Ut?cn:e})),16),i=parseInt(u.apply(void 0,e.map(function(e){return e===Ut?gn:e})),16);return{type:30,start:r,end:i}}var a=parseInt(u.apply(void 0,e),16);if(this.peekCodePoint(0)===Pt&&xn(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];xn(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();var i=parseInt(u.apply(void 0,o),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()===`url`&&this.peekCodePoint(0)===jt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===jt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===sn)return{type:22,value:``};var t=this.peekCodePoint(0);if(t===At||t===Tt){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===sn||this.peekCodePoint(0)===Mt)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Gn)}for(;;){var r=this.consumeCodePoint();if(r===sn||r===Mt)return{type:22,value:u.apply(void 0,e)};if(En(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===sn||this.peekCodePoint(0)===Mt?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Gn);if(r===Tt||r===At||r===jt||kn(r))return this.consumeBadUrlRemnants(),Gn;if(r===St)if(An(r,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Gn;else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;En(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Mt||e===sn)return;An(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n=``;e>0;){var r=Math.min(t,e);n+=u.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){var t=``,n=0;do{var r=this._value[n];if(r===sn||r===void 0||r===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(r===bt)return this._value.splice(0,n),Kn;if(r===St){var i=this._value[n+1];i!==sn&&i!==void 0&&(i===bt?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):An(r,i)&&(t+=this.consumeStringSlice(n),t+=u(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var e=[],t=vt,n=this.peekCodePoint(0);for((n===Xt||n===Pt)&&e.push(this.consumeCodePoint());yn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===en&&yn(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=yt;yn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===hn||n===un)&&((r===Xt||r===Pt)&&yn(i)||yn(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=yt;yn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Nn(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0);return jn(r,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:t,flags:n,unit:this.consumeName()}:r===kt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(xn(e)){for(var t=u(e);xn(this.peekCodePoint(0))&&t.length<6;)t+=u(this.consumeCodePoint());En(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||bn(n)||n>1114111?Jt:n}return e===sn?Jt:e},e.prototype.consumeName=function(){for(var e=``;;){var t=this.consumeCodePoint();if(On(t))e+=u(t);else if(An(t,this.peekCodePoint(0)))e+=u(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},e}(),A=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new tr;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw SyntaxError(`Error parsing CSS component value, unexpected EOF`);this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw SyntaxError(`Error parsing CSS component value, multiple values found when expecting only one`)},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||ur(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return e===void 0?er:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),nr=function(e){return e.type===15},rr=function(e){return e.type===17},ir=function(e){return e.type===20},ar=function(e){return e.type===0},or=function(e,t){return ir(e)&&e.value===t},sr=function(e){return e.type!==31},cr=function(e){return e.type!==31&&e.type!==4},lr=function(e){var t=[],n=[];return e.forEach(function(e){if(e.type===4){if(n.length===0)throw Error(`Error parsing function args, zero tokens for arg`);t.push(n),n=[];return}e.type!==31&&n.push(e)}),n.length&&t.push(n),t},ur=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},dr=function(e){return e.type===17||e.type===15},fr=function(e){return e.type===16||dr(e)},pr=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},mr={type:17,number:0,flags:vt},hr={type:16,number:50,flags:vt},gr={type:16,number:100,flags:vt},_r=function(e,t,n){var r=e[0],i=e[1];return[vr(r,t),vr(i===void 0?r:i,n)]},vr=function(e,t){if(e.type===16)return e.number/100*t;if(nr(e))switch(e.unit){case`rem`:case`em`:return 16*e.number;default:return e.number}return e.number},yr=`deg`,br=`grad`,xr=`rad`,Sr=`turn`,j={name:`angle`,parse:function(e,t){if(t.type===15)switch(t.unit){case yr:return Math.PI*t.number/180;case br:return Math.PI/200*t.number;case xr:return t.number;case Sr:return Math.PI*2*t.number}throw Error(`Unsupported angle type`)}},Cr=function(e){return e.type===15&&(e.unit===yr||e.unit===br||e.unit===xr||e.unit===Sr)},wr=function(e){switch(e.filter(ir).map(function(e){return e.value}).join(` `)){case`to bottom right`:case`to right bottom`:case`left top`:case`top left`:return[mr,mr];case`to top`:case`bottom`:return Tr(0);case`to bottom left`:case`to left bottom`:case`right top`:case`top right`:return[mr,gr];case`to right`:case`left`:return Tr(90);case`to top left`:case`to left top`:case`right bottom`:case`bottom right`:return[gr,gr];case`to bottom`:case`top`:return Tr(180);case`to top right`:case`to right top`:case`left bottom`:case`bottom left`:return[gr,mr];case`to left`:case`right`:return Tr(270)}return 0},Tr=function(e){return Math.PI*e/180},Er={name:`color`,parse:function(e,t){if(t.type===18){var n=Nr[t.name];if(n===void 0)throw Error(`Attempting to parse an unsupported color function "`+t.name+`"`);return n(e,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3);return M(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3),o=t.value.substring(3,4);return M(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6);return M(parseInt(r,16),parseInt(i,16),parseInt(a,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6),o=t.value.substring(6,8);return M(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(t.type===20){var s=Fr[t.value.toUpperCase()];if(s!==void 0)return s}return Fr.TRANSPARENT}},Dr=function(e){return(255&e)==0},Or=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?`rgba(`+i+`,`+r+`,`+n+`,`+t/255+`)`:`rgb(`+i+`,`+r+`,`+n+`)`},M=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(r*255)<<0)>>>0},kr=function(e,t){if(e.type===17)return e.number;if(e.type===16){var n=t===3?1:255;return t===3?e.number/100*n:Math.round(e.number/100*n)}return 0},Ar=function(e,t){var n=t.filter(cr);if(n.length===3){var r=n.map(kr),i=r[0],a=r[1],o=r[2];return M(i,a,o,1)}if(n.length===4){var s=n.map(kr),i=s[0],a=s[1],o=s[2],c=s[3];return M(i,a,o,c)}return 0};function jr(e,t,n){return n<0&&(n+=1),n>=1&&--n,n<1/6?(t-e)*n*6+e:n<1/2?t:n<2/3?(t-e)*6*(2/3-n)+e:e}var Mr=function(e,t){var n=t.filter(cr),r=n[0],i=n[1],a=n[2],o=n[3],s=(r.type===17?Tr(r.number):j.parse(e,r))/(Math.PI*2),c=fr(i)?i.number/100:0,l=fr(a)?a.number/100:0,u=o!==void 0&&fr(o)?vr(o,1):1;if(c===0)return M(l*255,l*255,l*255,1);var d=l<=.5?l*(c+1):l+c-l*c,f=l*2-d,p=jr(f,d,s+1/3),m=jr(f,d,s),h=jr(f,d,s-1/3);return M(p*255,m*255,h*255,u)},Nr={hsl:Mr,hsla:Mr,rgb:Ar,rgba:Ar},Pr=function(e,t){return Er.parse(e,A.create(t).parseComponentValue())},Fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ir={name:`background-clip`,initialValue:`border-box`,prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(ir(e))switch(e.value){case`padding-box`:return 1;case`content-box`:return 2}return 0})}},Lr={name:`background-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},Rr=function(e,t){var n=Er.parse(e,t[0]),r=t[1];return r&&fr(r)?{color:n,stop:r}:{color:n,stop:null}},zr=function(e,t){var n=e[0],r=e[e.length-1];n.stop===null&&(n.stop=mr),r.stop===null&&(r.stop=gr);for(var i=[],a=0,o=0;o<e.length;o++){var s=e[o].stop;if(s!==null){var c=vr(s,t);c>a?i.push(c):i.push(a),a=c}else i.push(null)}for(var l=null,o=0;o<i.length;o++){var u=i[o];if(u===null)l===null&&(l=o);else if(l!==null){for(var d=o-l,f=(u-i[l-1])/(d+1),p=1;p<=d;p++)i[l+p-1]=f*p;l=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},Br=function(e,t,n){var r=t/2,i=n/2,a=vr(e[0],t)-r,o=i-vr(e[1],n);return(Math.atan2(o,a)+Math.PI*2)%(Math.PI*2)},Vr=function(e,t,n){var r=typeof e==`number`?e:Br(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),a=t/2,o=n/2,s=i/2,c=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[i,a-l,a+l,o-c,o+c]},Hr=function(e,t){return Math.sqrt(e*e+t*t)},Ur=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var a=t[0],o=t[1],s=Hr(n-a,r-o);return(i?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Wr=function(e,t,n,r,i){var a=0,o=0;switch(e.size){case 0:e.shape===0?a=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(e.shape===0)a=o=Math.min(Hr(t,n),Hr(t,n-i),Hr(t-r,n),Hr(t-r,n-i));else if(e.shape===1){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),c=Ur(r,i,t,n,!0),l=c[0],u=c[1];a=Hr(l-t,(u-n)/s),o=s*a}break;case 1:e.shape===0?a=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(e.shape===0)a=o=Math.max(Hr(t,n),Hr(t,n-i),Hr(t-r,n),Hr(t-r,n-i));else if(e.shape===1){var s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r)),d=Ur(r,i,t,n,!1),l=d[0],u=d[1];a=Hr(l-t,(u-n)/s),o=s*a}break}return Array.isArray(e.size)&&(a=vr(e.size[0],r),o=e.size.length===2?vr(e.size[1],i):a),[a,o]},Gr=function(e,t){var n=Tr(180),r=[];return lr(t).forEach(function(t,i){if(i===0){var a=t[0];if(a.type===20&&a.value===`to`){n=wr(t);return}else if(Cr(a)){n=j.parse(e,a);return}}var o=Rr(e,t);r.push(o)}),{angle:n,stops:r,type:1}},Kr=function(e,t){var n=Tr(180),r=[];return lr(t).forEach(function(t,i){if(i===0){var a=t[0];if(a.type===20&&[`top`,`left`,`right`,`bottom`].indexOf(a.value)!==-1){n=wr(t);return}else if(Cr(a)){n=(j.parse(e,a)+Tr(270))%Tr(360);return}}var o=Rr(e,t);r.push(o)}),{angle:n,stops:r,type:1}},qr=function(e,t){var n=Tr(180),r=[],i=1;return lr(t).forEach(function(t,n){var a=t[0];if(n===0){if(ir(a)&&a.value===`linear`){i=1;return}else if(ir(a)&&a.value===`radial`){i=2;return}}if(a.type===18){if(a.name===`from`){var o=Er.parse(e,a.values[0]);r.push({stop:mr,color:o})}else if(a.name===`to`){var o=Er.parse(e,a.values[0]);r.push({stop:gr,color:o})}else if(a.name===`color-stop`){var s=a.values.filter(cr);if(s.length===2){var o=Er.parse(e,s[1]),c=s[0];rr(c)&&r.push({stop:{type:16,number:c.number*100,flags:c.flags},color:o})}}}}),i===1?{angle:(n+Tr(180))%Tr(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}},Jr=`closest-side`,Yr=`farthest-side`,N=`closest-corner`,Xr=`farthest-corner`,Zr=`circle`,Qr=`ellipse`,$r=`cover`,ei=`contain`,ti=function(e,t){var n=0,r=3,i=[],a=[];return lr(t).forEach(function(t,o){var s=!0;if(o===0){var c=!1;s=t.reduce(function(e,t){if(c)if(ir(t))switch(t.value){case`center`:return a.push(hr),e;case`top`:case`left`:return a.push(mr),e;case`right`:case`bottom`:return a.push(gr),e}else (fr(t)||dr(t))&&a.push(t);else if(ir(t))switch(t.value){case Zr:return n=0,!1;case Qr:return n=1,!1;case`at`:return c=!0,!1;case Jr:return r=0,!1;case $r:case Yr:return r=1,!1;case ei:case N:return r=2,!1;case Xr:return r=3,!1}else if(dr(t)||fr(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)}if(s){var l=Rr(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:a,type:2}},ni=function(e,t){var n=0,r=3,i=[],a=[];return lr(t).forEach(function(t,o){var s=!0;if(o===0?s=t.reduce(function(e,t){if(ir(t))switch(t.value){case`center`:return a.push(hr),!1;case`top`:case`left`:return a.push(mr),!1;case`right`:case`bottom`:return a.push(gr),!1}else if(fr(t)||dr(t))return a.push(t),!1;return e},s):o===1&&(s=t.reduce(function(e,t){if(ir(t))switch(t.value){case Zr:return n=0,!1;case Qr:return n=1,!1;case ei:case Jr:return r=0,!1;case Yr:return r=1,!1;case N:return r=2,!1;case $r:case Xr:return r=3,!1}else if(dr(t)||fr(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)),s){var c=Rr(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:a,type:2}},ri=function(e){return e.type===1},ii=function(e){return e.type===2},ai={name:`image`,parse:function(e,t){if(t.type===22){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(t.type===18){var r=si[t.name];if(r===void 0)throw Error(`Attempting to parse an unsupported image function "`+t.name+`"`);return r(e,t.values)}throw Error(`Unsupported image type `+t.type)}};function oi(e){return!(e.type===20&&e.value===`none`)&&(e.type!==18||!!si[e.name])}var si={"linear-gradient":Gr,"-moz-linear-gradient":Kr,"-ms-linear-gradient":Kr,"-o-linear-gradient":Kr,"-webkit-linear-gradient":Kr,"radial-gradient":ti,"-moz-radial-gradient":ni,"-ms-radial-gradient":ni,"-o-radial-gradient":ni,"-webkit-radial-gradient":ni,"-webkit-gradient":qr},ci={name:`background-image`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var n=t[0];return n.type===20&&n.value===`none`?[]:t.filter(function(e){return cr(e)&&oi(e)}).map(function(t){return ai.parse(e,t)})}},li={name:`background-origin`,initialValue:`border-box`,prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(ir(e))switch(e.value){case`padding-box`:return 1;case`content-box`:return 2}return 0})}},ui={name:`background-position`,initialValue:`0% 0%`,type:1,prefix:!1,parse:function(e,t){return lr(t).map(function(e){return e.filter(fr)}).map(pr)}},di={name:`background-repeat`,initialValue:`repeat`,prefix:!1,type:1,parse:function(e,t){return lr(t).map(function(e){return e.filter(ir).map(function(e){return e.value}).join(` `)}).map(fi)}},fi=function(e){switch(e){case`no-repeat`:return 1;case`repeat-x`:case`repeat no-repeat`:return 2;case`repeat-y`:case`no-repeat repeat`:return 3;default:return 0}},pi;(function(e){e.AUTO=`auto`,e.CONTAIN=`contain`,e.COVER=`cover`})(pi||={});var mi={name:`background-size`,initialValue:`0`,prefix:!1,type:1,parse:function(e,t){return lr(t).map(function(e){return e.filter(hi)})}},hi=function(e){return ir(e)||fr(e)},gi=function(e){return{name:`border-`+e+`-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`}},_i=gi(`top`),vi=gi(`right`),yi=gi(`bottom`),bi=gi(`left`),xi=function(e){return{name:`border-radius-`+e,initialValue:`0 0`,prefix:!1,type:1,parse:function(e,t){return pr(t.filter(fr))}}},P=xi(`top-left`),F=xi(`top-right`),I=xi(`bottom-right`),L=xi(`bottom-left`),R=function(e){return{name:`border-`+e+`-style`,initialValue:`solid`,prefix:!1,type:2,parse:function(e,t){switch(t){case`none`:return 0;case`dashed`:return 2;case`dotted`:return 3;case`double`:return 4}return 1}}},Si=R(`top`),z=R(`right`),Ci=R(`bottom`),wi=R(`left`),B=function(e){return{name:`border-`+e+`-width`,initialValue:`0`,type:0,prefix:!1,parse:function(e,t){return nr(t)?t.number:0}}},V=B(`top`),Ti=B(`right`),Ei=B(`bottom`),H=B(`left`),Di={name:`color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},U={name:`direction`,initialValue:`ltr`,prefix:!1,type:2,parse:function(e,t){switch(t){case`rtl`:return 1;default:return 0}}},Oi={name:`display`,initialValue:`inline-block`,prefix:!1,type:1,parse:function(e,t){return t.filter(ir).reduce(function(e,t){return e|ki(t.value)},0)}},ki=function(e){switch(e){case`block`:case`-webkit-box`:return 2;case`inline`:return 4;case`run-in`:return 8;case`flow`:return 16;case`flow-root`:return 32;case`table`:return 64;case`flex`:case`-webkit-flex`:return 128;case`grid`:case`-ms-grid`:return 256;case`ruby`:return 512;case`subgrid`:return 1024;case`list-item`:return 2048;case`table-row-group`:return 4096;case`table-header-group`:return 8192;case`table-footer-group`:return 16384;case`table-row`:return 32768;case`table-cell`:return 65536;case`table-column-group`:return 131072;case`table-column`:return 262144;case`table-caption`:return 524288;case`ruby-base`:return 1048576;case`ruby-text`:return 2097152;case`ruby-base-container`:return 4194304;case`ruby-text-container`:return 8388608;case`contents`:return 16777216;case`inline-block`:return 33554432;case`inline-list-item`:return 67108864;case`inline-table`:return 134217728;case`inline-flex`:return 268435456;case`inline-grid`:return 536870912}return 0},Ai={name:`float`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`left`:return 1;case`right`:return 2;case`inline-start`:return 3;case`inline-end`:return 4}return 0}},ji={name:`letter-spacing`,initialValue:`0`,prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value===`normal`?0:t.type===17||t.type===15?t.number:0}},Mi;(function(e){e.NORMAL=`normal`,e.STRICT=`strict`})(Mi||={});var Ni={name:`line-break`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`strict`:return Mi.STRICT;default:return Mi.NORMAL}}},Pi={name:`line-height`,initialValue:`normal`,prefix:!1,type:4},Fi=function(e,t){return ir(e)&&e.value===`normal`?1.2*t:e.type===17?t*e.number:fr(e)?vr(e,t):t},Ii={name:`list-style-image`,initialValue:`none`,type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value===`none`?null:ai.parse(e,t)}},Li={name:`list-style-position`,initialValue:`outside`,prefix:!1,type:2,parse:function(e,t){switch(t){case`inside`:return 0;default:return 1}}},W={name:`list-style-type`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`disc`:return 0;case`circle`:return 1;case`square`:return 2;case`decimal`:return 3;case`cjk-decimal`:return 4;case`decimal-leading-zero`:return 5;case`lower-roman`:return 6;case`upper-roman`:return 7;case`lower-greek`:return 8;case`lower-alpha`:return 9;case`upper-alpha`:return 10;case`arabic-indic`:return 11;case`armenian`:return 12;case`bengali`:return 13;case`cambodian`:return 14;case`cjk-earthly-branch`:return 15;case`cjk-heavenly-stem`:return 16;case`cjk-ideographic`:return 17;case`devanagari`:return 18;case`ethiopic-numeric`:return 19;case`georgian`:return 20;case`gujarati`:return 21;case`gurmukhi`:return 22;case`hebrew`:return 22;case`hiragana`:return 23;case`hiragana-iroha`:return 24;case`japanese-formal`:return 25;case`japanese-informal`:return 26;case`kannada`:return 27;case`katakana`:return 28;case`katakana-iroha`:return 29;case`khmer`:return 30;case`korean-hangul-formal`:return 31;case`korean-hanja-formal`:return 32;case`korean-hanja-informal`:return 33;case`lao`:return 34;case`lower-armenian`:return 35;case`malayalam`:return 36;case`mongolian`:return 37;case`myanmar`:return 38;case`oriya`:return 39;case`persian`:return 40;case`simp-chinese-formal`:return 41;case`simp-chinese-informal`:return 42;case`tamil`:return 43;case`telugu`:return 44;case`thai`:return 45;case`tibetan`:return 46;case`trad-chinese-formal`:return 47;case`trad-chinese-informal`:return 48;case`upper-armenian`:return 49;case`disclosure-open`:return 50;case`disclosure-closed`:return 51;default:return-1}}},Ri=function(e){return{name:`margin-`+e,initialValue:`0`,prefix:!1,type:4}},zi=Ri(`top`),Bi=Ri(`right`),Vi=Ri(`bottom`),Hi=Ri(`left`),Ui={name:`overflow`,initialValue:`visible`,prefix:!1,type:1,parse:function(e,t){return t.filter(ir).map(function(e){switch(e.value){case`hidden`:return 1;case`scroll`:return 2;case`clip`:return 3;case`auto`:return 4;default:return 0}})}},Wi={name:`overflow-wrap`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`break-word`:return`break-word`;default:return`normal`}}},Gi=function(e){return{name:`padding-`+e,initialValue:`0`,prefix:!1,type:3,format:`length-percentage`}},Ki=Gi(`top`),qi=Gi(`right`),Ji=Gi(`bottom`),Yi=Gi(`left`),Xi={name:`text-align`,initialValue:`left`,prefix:!1,type:2,parse:function(e,t){switch(t){case`right`:return 2;case`center`:case`justify`:return 1;default:return 0}}},Zi={name:`position`,initialValue:`static`,prefix:!1,type:2,parse:function(e,t){switch(t){case`relative`:return 1;case`absolute`:return 2;case`fixed`:return 3;case`sticky`:return 4}return 0}},Qi={name:`text-shadow`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){return t.length===1&&or(t[0],`none`)?[]:lr(t).map(function(t){for(var n={color:Fr.TRANSPARENT,offsetX:mr,offsetY:mr,blur:mr},r=0,i=0;i<t.length;i++){var a=t[i];dr(a)?(r===0?n.offsetX=a:r===1?n.offsetY=a:n.blur=a,r++):n.color=Er.parse(e,a)}return n})}},$i={name:`text-transform`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`uppercase`:return 2;case`lowercase`:return 1;case`capitalize`:return 3}return 0}},ea={name:`transform`,initialValue:`none`,prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value===`none`)return null;if(t.type===18){var n=ta[t.name];if(n===void 0)throw Error(`Attempting to parse an unsupported transform function "`+t.name+`"`);return n(t.values)}return null}},ta={matrix:function(e){var t=e.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},matrix3d:function(e){var t=e.filter(function(e){return e.type===17}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],s=t[13];return t[14],t[15],t.length===16?[n,r,i,a,o,s]:null}},G={type:16,number:50,flags:vt},na=[G,G],ra={name:`transform-origin`,initialValue:`50% 50%`,prefix:!0,type:1,parse:function(e,t){var n=t.filter(fr);return n.length===2?[n[0],n[1]]:na}},ia={name:`visible`,initialValue:`none`,prefix:!1,type:2,parse:function(e,t){switch(t){case`hidden`:return 1;case`collapse`:return 2;default:return 0}}},aa;(function(e){e.NORMAL=`normal`,e.BREAK_ALL=`break-all`,e.KEEP_ALL=`keep-all`})(aa||={});for(var oa={name:`word-break`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`break-all`:return aa.BREAK_ALL;case`keep-all`:return aa.KEEP_ALL;default:return aa.NORMAL}}},sa={name:`z-index`,initialValue:`auto`,prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(rr(t))return{auto:!1,order:t.number};throw Error(`Invalid z-index number parsed`)}},ca={name:`time`,parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case`s`:return 1e3*t.number;case`ms`:return t.number}throw Error(`Unsupported time type`)}},la={name:`opacity`,initialValue:`1`,type:0,prefix:!1,parse:function(e,t){return rr(t)?t.number:1}},ua={name:`text-decoration-color`,initialValue:`transparent`,prefix:!1,type:3,format:`color`},da={name:`text-decoration-line`,initialValue:`none`,prefix:!1,type:1,parse:function(e,t){return t.filter(ir).map(function(e){switch(e.value){case`underline`:return 1;case`overline`:return 2;case`line-through`:return 3;case`none`:return 4}return 0}).filter(function(e){return e!==0})}},fa={name:`font-family`,initialValue:``,prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(` `)),n.length=0;break}}),n.length&&r.push(n.join(` `)),r.map(function(e){return e.indexOf(` `)===-1?e:`'`+e+`'`})}},pa={name:`font-size`,initialValue:`0`,prefix:!1,type:3,format:`length`},ma={name:`font-weight`,initialValue:`normal`,type:0,prefix:!1,parse:function(e,t){if(rr(t))return t.number;if(ir(t))switch(t.value){case`bold`:return 700;default:return 400}return 400}},ha={name:`font-variant`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){return t.filter(ir).map(function(e){return e.value})}},ga={name:`font-style`,initialValue:`normal`,prefix:!1,type:2,parse:function(e,t){switch(t){case`oblique`:return`oblique`;case`italic`:return`italic`;default:return`normal`}}},_a=function(e,t){return(e&t)!==0},va={name:`content`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var n=t[0];return n.type===20&&n.value===`none`?[]:t}},ya={name:`counter-increment`,initialValue:`none`,prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var n=t[0];if(n.type===20&&n.value===`none`)return null;for(var r=[],i=t.filter(sr),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(o.type===20){var c=s&&rr(s)?s.number:1;r.push({counter:o.value,increment:c})}}return r}},ba={name:`counter-reset`,initialValue:`none`,prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var n=[],r=t.filter(sr),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(ir(a)&&a.value!==`none`){var s=o&&rr(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},xa={name:`duration`,initialValue:`0s`,prefix:!1,type:1,parse:function(e,t){return t.filter(nr).map(function(t){return ca.parse(e,t)})}},K={name:`quotes`,initialValue:`none`,prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var n=t[0];if(n.type===20&&n.value===`none`)return null;var r=[],i=t.filter(ar);if(i.length%2!=0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;r.push({open:o,close:s})}return r}},Sa=function(e,t,n){if(!e)return``;var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:``},Ca={name:`box-shadow`,initialValue:`none`,type:1,prefix:!1,parse:function(e,t){return t.length===1&&or(t[0],`none`)?[]:lr(t).map(function(t){for(var n={color:255,offsetX:mr,offsetY:mr,blur:mr,spread:mr,inset:!1},r=0,i=0;i<t.length;i++){var a=t[i];or(a,`inset`)?n.inset=!0:dr(a)?(r===0?n.offsetX=a:r===1?n.offsetY=a:r===2?n.blur=a:n.spread=a,r++):n.color=Er.parse(e,a)}return n})}},wa={name:`paint-order`,initialValue:`normal`,prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],r=[];return t.filter(ir).forEach(function(e){switch(e.value){case`stroke`:r.push(1);break;case`fill`:r.push(0);break;case`markers`:r.push(2);break}}),n.forEach(function(e){r.indexOf(e)===-1&&r.push(e)}),r}},Ta={name:`-webkit-text-stroke-color`,initialValue:`currentcolor`,prefix:!1,type:3,format:`color`},Ea={name:`-webkit-text-stroke-width`,initialValue:`0`,type:0,prefix:!1,parse:function(e,t){return nr(t)?t.number:0}},Da=function(){function e(e,t){this.animationDuration=q(e,xa,t.animationDuration),this.backgroundClip=q(e,Ir,t.backgroundClip),this.backgroundColor=q(e,Lr,t.backgroundColor),this.backgroundImage=q(e,ci,t.backgroundImage),this.backgroundOrigin=q(e,li,t.backgroundOrigin),this.backgroundPosition=q(e,ui,t.backgroundPosition),this.backgroundRepeat=q(e,di,t.backgroundRepeat),this.backgroundSize=q(e,mi,t.backgroundSize),this.borderTopColor=q(e,_i,t.borderTopColor),this.borderRightColor=q(e,vi,t.borderRightColor),this.borderBottomColor=q(e,yi,t.borderBottomColor),this.borderLeftColor=q(e,bi,t.borderLeftColor),this.borderTopLeftRadius=q(e,P,t.borderTopLeftRadius),this.borderTopRightRadius=q(e,F,t.borderTopRightRadius),this.borderBottomRightRadius=q(e,I,t.borderBottomRightRadius),this.borderBottomLeftRadius=q(e,L,t.borderBottomLeftRadius),this.borderTopStyle=q(e,Si,t.borderTopStyle),this.borderRightStyle=q(e,z,t.borderRightStyle),this.borderBottomStyle=q(e,Ci,t.borderBottomStyle),this.borderLeftStyle=q(e,wi,t.borderLeftStyle),this.borderTopWidth=q(e,V,t.borderTopWidth),this.borderRightWidth=q(e,Ti,t.borderRightWidth),this.borderBottomWidth=q(e,Ei,t.borderBottomWidth),this.borderLeftWidth=q(e,H,t.borderLeftWidth),this.boxShadow=q(e,Ca,t.boxShadow),this.color=q(e,Di,t.color),this.direction=q(e,U,t.direction),this.display=q(e,Oi,t.display),this.float=q(e,Ai,t.cssFloat),this.fontFamily=q(e,fa,t.fontFamily),this.fontSize=q(e,pa,t.fontSize),this.fontStyle=q(e,ga,t.fontStyle),this.fontVariant=q(e,ha,t.fontVariant),this.fontWeight=q(e,ma,t.fontWeight),this.letterSpacing=q(e,ji,t.letterSpacing),this.lineBreak=q(e,Ni,t.lineBreak),this.lineHeight=q(e,Pi,t.lineHeight),this.listStyleImage=q(e,Ii,t.listStyleImage),this.listStylePosition=q(e,Li,t.listStylePosition),this.listStyleType=q(e,W,t.listStyleType),this.marginTop=q(e,zi,t.marginTop),this.marginRight=q(e,Bi,t.marginRight),this.marginBottom=q(e,Vi,t.marginBottom),this.marginLeft=q(e,Hi,t.marginLeft),this.opacity=q(e,la,t.opacity);var n=q(e,Ui,t.overflow);this.overflowX=n[0],this.overflowY=n[+(n.length>1)],this.overflowWrap=q(e,Wi,t.overflowWrap),this.paddingTop=q(e,Ki,t.paddingTop),this.paddingRight=q(e,qi,t.paddingRight),this.paddingBottom=q(e,Ji,t.paddingBottom),this.paddingLeft=q(e,Yi,t.paddingLeft),this.paintOrder=q(e,wa,t.paintOrder),this.position=q(e,Zi,t.position),this.textAlign=q(e,Xi,t.textAlign),this.textDecorationColor=q(e,ua,t.textDecorationColor??t.color),this.textDecorationLine=q(e,da,t.textDecorationLine??t.textDecoration),this.textShadow=q(e,Qi,t.textShadow),this.textTransform=q(e,$i,t.textTransform),this.transform=q(e,ea,t.transform),this.transformOrigin=q(e,ra,t.transformOrigin),this.visibility=q(e,ia,t.visibility),this.webkitTextStrokeColor=q(e,Ta,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=q(e,Ea,t.webkitTextStrokeWidth),this.wordBreak=q(e,oa,t.wordBreak),this.zIndex=q(e,sa,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return Dr(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return _a(this.display,4)||_a(this.display,33554432)||_a(this.display,268435456)||_a(this.display,536870912)||_a(this.display,67108864)||_a(this.display,134217728)},e}(),Oa=function(){function e(e,t){this.content=q(e,va,t.content),this.quotes=q(e,K,t.quotes)}return e}(),ka=function(){function e(e,t){this.counterIncrement=q(e,ya,t.counterIncrement),this.counterReset=q(e,ba,t.counterReset)}return e}(),q=function(e,t,n){var r=new tr,i=n==null?t.initialValue:n.toString();r.write(i);var a=new A(r.read());switch(t.type){case 2:var o=a.parseComponentValue();return t.parse(e,ir(o)?o.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case`angle`:return j.parse(e,a.parseComponentValue());case`color`:return Er.parse(e,a.parseComponentValue());case`image`:return ai.parse(e,a.parseComponentValue());case`length`:var s=a.parseComponentValue();return dr(s)?s:mr;case`length-percentage`:var c=a.parseComponentValue();return fr(c)?c:mr;case`time`:return ca.parse(e,a.parseComponentValue())}break}},Aa=`data-html2canvas-debug`,ja=function(e){switch(e.getAttribute(Aa)){case`all`:return 1;case`clone`:return 2;case`parse`:return 3;case`render`:return 4;default:return 0}},Ma=function(e,t){var n=ja(e);return n===1||t===n},Na=function(){function e(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Ma(t,3))debugger;this.styles=new Da(e,window.getComputedStyle(t,null)),ys(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration=`0s`),this.styles.transform!==null&&(t.style.transform=`none`)),this.bounds=s(this.context,t),Ma(t,4)&&(this.flags|=16)}return e}(),Pa=`AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=`,Fa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Ia=typeof Uint8Array>`u`?[]:new Uint8Array(256),La=0;La<Fa.length;La++)Ia[Fa.charCodeAt(La)]=La;for(var J=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);var l=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`&&Uint8Array.prototype.slice!==void 0?new ArrayBuffer(t):Array(t),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<n;r+=4)a=Ia[e.charCodeAt(r)],o=Ia[e.charCodeAt(r+1)],s=Ia[e.charCodeAt(r+2)],c=Ia[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Ra=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},za=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},Ba=5,Va=11,Ha=2,Ua=Va-Ba,Wa=65536>>Ba,Ga=(1<<Ba)-1,Ka=Wa+(1024>>Ba)+32,qa=65536>>Va,Ja=(1<<Ua)-1,Ya=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Xa=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},Za=function(e,t){var n=J(e),r=Array.isArray(n)?za(n):new Uint32Array(n),i=Array.isArray(n)?Ra(n):new Uint16Array(n),a=24,o=Ya(i,a/2,r[4]/2),s=r[5]===2?Ya(i,(a+r[4])/2):Xa(r,Math.ceil((a+r[4])/4));return new Qa(r[0],r[1],r[2],r[3],o,s)},Qa=function(){function e(e,t,n,r,i,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Ba],t=(t<<Ha)+(e&Ga),this.data[t];if(e<=65535)return t=this.index[Wa+(e-55296>>Ba)],t=(t<<Ha)+(e&Ga),this.data[t];if(e<this.highStart)return t=Ka-qa+(e>>Va),t=this.index[t],t+=e>>Ba&Ja,t=this.index[t],t=(t<<Ha)+(e&Ga),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),$a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,eo=typeof Uint8Array>`u`?[]:new Uint8Array(256),to=0;to<$a.length;to++)eo[$a.charCodeAt(to)]=to;var no=1,ro=2,io=3,ao=4,oo=5,so=7,co=8,lo=9,uo=10,fo=11,po=12,mo=13,ho=14,go=15,_o=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t},vo=function(){var e=[...arguments];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return``;for(var n=[],r=-1,i=``;++r<t;){var a=e[r];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(r+1===t||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},yo=Za(Pa),bo=`×`,xo=`÷`,So=function(e){return yo.get(e)},Co=function(e,t,n){var r=n-2,i=t[r],a=t[n-1],o=t[n];if(a===ro&&o===io)return bo;if(a===ro||a===io||a===ao||o===ro||o===io||o===ao)return xo;if(a===co&&[co,lo,fo,po].indexOf(o)!==-1||(a===fo||a===lo)&&(o===lo||o===uo)||(a===po||a===uo)&&o===uo||o===mo||o===oo||o===so||a===no)return bo;if(a===mo&&o===ho){for(;i===oo;)i=t[--r];if(i===ho)return bo}if(a===go&&o===go){for(var s=0;i===go;)s++,i=t[--r];if(s%2==0)return bo}return xo},wo=function(e){var t=_o(e),n=t.length,r=0,i=0,a=t.map(So);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=bo;r<n&&(e=Co(t,a,++r))===bo;);if(e!==bo||r===n){var o=vo.apply(null,t.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},To=function(e){for(var t=wo(e),n=[],r;!(r=t.next()).done;)r.value&&n.push(r.value.slice());return n},Eo=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var r=e.createElement(`boundtest`);r.style.height=t+`px`,r.style.display=`block`,e.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),a=Math.round(i.height);if(e.body.removeChild(r),a===t)return!0}}return!1},Do=function(e){var t=e.createElement(`boundtest`);t.style.width=`50px`,t.style.display=`block`,t.style.fontSize=`12px`,t.style.letterSpacing=`0px`,t.style.wordSpacing=`0px`,e.body.appendChild(t);var n=e.createRange();t.innerHTML=typeof``.repeat==`function`?`👨`.repeat(10):``;var r=t.firstChild,i=l(r.data).map(function(e){return u(e)}),a=0,o={},s=i.every(function(e,t){n.setStart(r,a),n.setEnd(r,a+e.length);var i=n.getBoundingClientRect();a+=e.length;var s=i.x>o.x||i.y>o.y;return o=i,t===0?!0:s});return e.body.removeChild(t),s},Oo=function(){return new Image().crossOrigin!==void 0},ko=function(){return typeof new XMLHttpRequest().responseType==`string`},Ao=function(e){var t=new Image,n=e.createElement(`canvas`),r=n.getContext(`2d`);if(!r)return!1;t.src=`data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>`;try{r.drawImage(t,0,0),n.toDataURL()}catch{return!1}return!0},jo=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},Mo=function(e){var t=e.createElement(`canvas`),n=100;t.width=n,t.height=n;var r=t.getContext(`2d`);if(!r)return Promise.reject(!1);r.fillStyle=`rgb(0, 255, 0)`,r.fillRect(0,0,n,n);var i=new Image,a=t.toDataURL();i.src=a;var o=No(n,n,0,0,i);return r.fillStyle=`red`,r.fillRect(0,0,n,n),Po(o).then(function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle=`red`,r.fillRect(0,0,n,n);var o=e.createElement(`div`);return o.style.backgroundImage=`url(`+a+`)`,o.style.height=n+`px`,jo(i)?Po(No(n,n,0,0,o)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),jo(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},No=function(e,t,n,r,i){var a=`http://www.w3.org/2000/svg`,o=document.createElementNS(a,`svg`),s=document.createElementNS(a,`foreignObject`);return o.setAttributeNS(null,`width`,e.toString()),o.setAttributeNS(null,`height`,t.toString()),s.setAttributeNS(null,`width`,`100%`),s.setAttributeNS(null,`height`,`100%`),s.setAttributeNS(null,`x`,n.toString()),s.setAttributeNS(null,`y`,r.toString()),s.setAttributeNS(null,`externalResourcesRequired`,`true`),o.appendChild(s),s.appendChild(i),o},Po=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Fo={get SUPPORT_RANGE_BOUNDS(){var e=Eo(document);return Object.defineProperty(Fo,`SUPPORT_RANGE_BOUNDS`,{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Fo.SUPPORT_RANGE_BOUNDS&&Do(document);return Object.defineProperty(Fo,`SUPPORT_WORD_BREAKING`,{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Ao(document);return Object.defineProperty(Fo,`SUPPORT_SVG_DRAWING`,{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from==`function`&&typeof window.fetch==`function`?Mo(document):Promise.resolve(!1);return Object.defineProperty(Fo,`SUPPORT_FOREIGNOBJECT_DRAWING`,{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Oo();return Object.defineProperty(Fo,`SUPPORT_CORS_IMAGES`,{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=ko();return Object.defineProperty(Fo,`SUPPORT_RESPONSE_TYPE`,{value:e}),e},get SUPPORT_CORS_XHR(){var e=`withCredentials`in new XMLHttpRequest;return Object.defineProperty(Fo,`SUPPORT_CORS_XHR`,{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<`u`&&Intl.Segmenter);return Object.defineProperty(Fo,`SUPPORT_NATIVE_TEXT_SEGMENTATION`,{value:e}),e}},Io=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Lo=function(e,t,n,r){var i=Ho(t,n),a=[],s=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Fo.SUPPORT_RANGE_BOUNDS){var i=zo(r,s,t.length).getClientRects();if(i.length>1){var c=Bo(t),l=0;c.forEach(function(t){a.push(new Io(t,o.fromDOMRectList(e,zo(r,l+s,t.length).getClientRects()))),l+=t.length})}else a.push(new Io(t,o.fromDOMRectList(e,i)))}else{var u=r.splitText(t.length);a.push(new Io(t,Ro(e,r))),r=u}else Fo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));s+=t.length}),a},Ro=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement(`html2canvaswrapper`);r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var a=s(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},zo=function(e,t,n){var r=e.ownerDocument;if(!r)throw Error(`Node has no owner document`);var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},Bo=function(e){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:`grapheme`});return Array.from(t.segment(e)).map(function(e){return e.segment})}return To(e)},Vo=function(e,t){if(Fo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:`word`});return Array.from(n.segment(e)).map(function(e){return e.segment})}return Wo(e,t)},Ho=function(e,t){return t.letterSpacing===0?Vo(e,t):Bo(e)},Uo=[32,160,4961,65792,65793,4153,4241],Wo=function(e,t){for(var n=ht(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===`break-word`?`break-word`:t.wordBreak}),r=[],i,a=function(){if(i.value){var e=l(i.value.slice()),t=``;e.forEach(function(e){Uo.indexOf(e)===-1?t+=u(e):(t.length&&r.push(t),r.push(u(e)),t=``)}),t.length&&r.push(t)}};!(i=n.next()).done;)a();return r},Go=function(){function e(e,t,n){this.text=Ko(t.data,n.textTransform),this.textBounds=Lo(e,this.text,n,t)}return e}(),Ko=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(qo,Jo);case 2:return e.toUpperCase();default:return e}},qo=/(^|\s|:|-|\(|\))([a-z])/g,Jo=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Yo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return n}(Na),Xo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return n}(Na),Zo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,a=s(t,n);return n.setAttribute(`width`,a.width+`px`),n.setAttribute(`height`,a.height+`px`),r.svg=`data:image/svg+xml,`+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return n}(Na),Qo=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return n}(Na),$o=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed=typeof n.reversed==`boolean`&&n.reversed===!0,r}return n}(Na),es=[{type:15,flags:0,unit:`px`,number:3}],ts=[{type:16,flags:0,number:50}],ns=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},rs=function(e){var t=e.type===os?Array(e.value.length+1).join(`•`):e.value;return t.length===0?e.placeholder||``:t},is=`checkbox`,as=`radio`,os=`password`,ss=707406591,cs=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=rs(n),(r.type===is||r.type===as)&&(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=ns(r.bounds)),r.type){case is:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=es;break;case as:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ts;break}return r}return n}(Na),ls=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||``,r}return n}(Na),us=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return n}(Na),ds=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=hs(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?Pr(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Fr.TRANSPARENT,a=n.contentWindow.document.body?Pr(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):Fr.TRANSPARENT;r.backgroundColor=Dr(i)?Dr(a)?r.styles.backgroundColor:a:i}}catch{}return r}return n}(Na),fs=[`OL`,`UL`,`MENU`],ps=function(e,t,n,r){for(var i=t.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,Y(i)&&i.data.trim().length>0)n.textNodes.push(new Go(e,i,n.styles));else if(vs(i))if(Fs(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return ps(e,t,n,r)});else{var o=ms(e,i);o.styles.isVisible()&&(gs(i,o,r)?o.flags|=4:_s(o.styles)&&(o.flags|=2),fs.indexOf(i.tagName)!==-1&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?ps(e,i.shadowRoot,o,r):!Ns(i)&&!Ts(i)&&!Ps(i)&&ps(e,i,o,r))}},ms=function(e,t){return ks(t)?new Yo(e,t):Ds(t)?new Xo(e,t):Ts(t)?new Zo(e,t):xs(t)?new Qo(e,t):Ss(t)?new $o(e,t):Cs(t)?new cs(e,t):Ps(t)?new ls(e,t):Ns(t)?new us(e,t):As(t)?new ds(e,t):new Na(e,t)},hs=function(e,t){var n=ms(e,t);return n.flags|=4,ps(e,t,n,n),n},gs=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Es(e)&&n.styles.isTransparent()},_s=function(e){return e.isPositioned()||e.isFloating()},Y=function(e){return e.nodeType===Node.TEXT_NODE},vs=function(e){return e.nodeType===Node.ELEMENT_NODE},ys=function(e){return vs(e)&&e.style!==void 0&&!bs(e)},bs=function(e){return typeof e.className==`object`},xs=function(e){return e.tagName===`LI`},Ss=function(e){return e.tagName===`OL`},Cs=function(e){return e.tagName===`INPUT`},ws=function(e){return e.tagName===`HTML`},Ts=function(e){return e.tagName===`svg`},Es=function(e){return e.tagName===`BODY`},Ds=function(e){return e.tagName===`CANVAS`},Os=function(e){return e.tagName===`VIDEO`},ks=function(e){return e.tagName===`IMG`},As=function(e){return e.tagName===`IFRAME`},js=function(e){return e.tagName===`STYLE`},Ms=function(e){return e.tagName===`SCRIPT`},Ns=function(e){return e.tagName===`TEXTAREA`},Ps=function(e){return e.tagName===`SELECT`},Fs=function(e){return e.tagName===`SLOT`},Is=function(e){return e.tagName.indexOf(`-`)>0},Ls=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;n!==null&&n.forEach(function(e){var n=t.counters[e.counter];n&&e.increment!==0&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var a=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];a.push(e.counter),n||=t.counters[e.counter]=[],n.push(e.reset)}),a},e}(),Rs={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:[`M`,`CM`,`D`,`CD`,`C`,`XC`,`L`,`XL`,`X`,`IX`,`V`,`IV`,`I`]},zs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:`Ք.Փ.Ւ.Ց.Ր.Տ.Վ.Ս.Ռ.Ջ.Պ.Չ.Ո.Շ.Ն.Յ.Մ.Ճ.Ղ.Ձ.Հ.Կ.Ծ.Խ.Լ.Ի.Ժ.Թ.Ը.Է.Զ.Ե.Դ.Գ.Բ.Ա`.split(`.`)},Bs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:`י׳.ט׳.ח׳.ז׳.ו׳.ה׳.ד׳.ג׳.ב׳.א׳.ת.ש.ר.ק.צ.פ.ע.ס.נ.מ.ל.כ.יט.יח.יז.טז.טו.י.ט.ח.ז.ו.ה.ד.ג.ב.א`.split(`.`)},Vs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:`ჵ.ჰ.ჯ.ჴ.ხ.ჭ.წ.ძ.ც.ჩ.შ.ყ.ღ.ქ.ფ.ჳ.ტ.ს.რ.ჟ.პ.ო.ჲ.ნ.მ.ლ.კ.ი.თ.ჱ.ზ.ვ.ე.დ.გ.ბ.ა`.split(`.`)},Hs=function(e,t,n,r,i,a){return e<t||e>n?tc(e,i,a.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},``)+a},Us=function(e,t,n,r){var i=``;do n||e--,i=r(e)+i,e/=t;while(e*t>=t);return i},Ws=function(e,t,n,r,i){var a=n-t+1;return(e<0?`-`:``)+(Us(Math.abs(e),a,r,function(e){return u(Math.floor(e%a)+t)})+i)},Gs=function(e,t,n){n===void 0&&(n=`. `);var r=t.length;return Us(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},Ks=1,qs=2,Js=4,Ys=8,Xs=function(e,t,n,r,i,a){if(e<-9999||e>9999)return tc(e,4,i.length>0);var o=Math.abs(e),s=i;if(o===0)return t[0]+s;for(var c=0;o>0&&c<=4;c++){var l=o%10;l===0&&_a(a,Ks)&&s!==``?s=t[l]+s:l>1||l===1&&c===0||l===1&&c===1&&_a(a,qs)||l===1&&c===1&&_a(a,Js)&&e>100||l===1&&c>1&&_a(a,Ys)?s=t[l]+(c>0?n[c-1]:``)+s:l===1&&c>0&&(s=n[c-1]+s),o=Math.floor(o/10)}return(e<0?r:``)+s},Zs=`十百千萬`,Qs=`拾佰仟萬`,$s=`マイナス`,ec=`마이너스`,tc=function(e,t,n){var r=n?`. `:``,i=n?`、`:``,a=n?`, `:``,o=n?` `:``;switch(t){case 0:return`•`+o;case 1:return`◦`+o;case 2:return`◾`+o;case 5:var s=Ws(e,48,57,!0,r);return s.length<4?`0`+s:s;case 4:return Gs(e,`〇一二三四五六七八九`,i);case 6:return Hs(e,1,3999,Rs,3,r).toLowerCase();case 7:return Hs(e,1,3999,Rs,3,r);case 8:return Ws(e,945,969,!1,r);case 9:return Ws(e,97,122,!1,r);case 10:return Ws(e,65,90,!1,r);case 11:return Ws(e,1632,1641,!0,r);case 12:case 49:return Hs(e,1,9999,zs,3,r);case 35:return Hs(e,1,9999,zs,3,r).toLowerCase();case 13:return Ws(e,2534,2543,!0,r);case 14:case 30:return Ws(e,6112,6121,!0,r);case 15:return Gs(e,`子丑寅卯辰巳午未申酉戌亥`,i);case 16:return Gs(e,`甲乙丙丁戊己庚辛壬癸`,i);case 17:case 48:return Xs(e,`零一二三四五六七八九`,Zs,`負`,i,qs|Js|Ys);case 47:return Xs(e,`零壹貳參肆伍陸柒捌玖`,Qs,`負`,i,Ks|qs|Js|Ys);case 42:return Xs(e,`零一二三四五六七八九`,Zs,`负`,i,qs|Js|Ys);case 41:return Xs(e,`零壹贰叁肆伍陆柒捌玖`,Qs,`负`,i,Ks|qs|Js|Ys);case 26:return Xs(e,`〇一二三四五六七八九`,`十百千万`,$s,i,0);case 25:return Xs(e,`零壱弐参四伍六七八九`,`拾百千万`,$s,i,Ks|qs|Js);case 31:return Xs(e,`영일이삼사오육칠팔구`,`십백천만`,ec,a,Ks|qs|Js);case 33:return Xs(e,`零一二三四五六七八九`,`十百千萬`,ec,a,0);case 32:return Xs(e,`零壹貳參四五六七八九`,`拾百千`,ec,a,Ks|qs|Js);case 18:return Ws(e,2406,2415,!0,r);case 20:return Hs(e,1,19999,Vs,3,r);case 21:return Ws(e,2790,2799,!0,r);case 22:return Ws(e,2662,2671,!0,r);case 22:return Hs(e,1,10999,Bs,3,r);case 23:return Gs(e,`あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん`);case 24:return Gs(e,`いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす`);case 27:return Ws(e,3302,3311,!0,r);case 28:return Gs(e,`アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン`,i);case 29:return Gs(e,`イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス`,i);case 34:return Ws(e,3792,3801,!0,r);case 37:return Ws(e,6160,6169,!0,r);case 38:return Ws(e,4160,4169,!0,r);case 39:return Ws(e,2918,2927,!0,r);case 40:return Ws(e,1776,1785,!0,r);case 43:return Ws(e,3046,3055,!0,r);case 44:return Ws(e,3174,3183,!0,r);case 45:return Ws(e,3664,3673,!0,r);case 46:return Ws(e,3872,3881,!0,r);default:return Ws(e,48,57,!0,r)}},nc=`data-html2canvas-ignore`,rc=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ls,this.quoteDepth=0,!t.ownerDocument)throw Error(`Cloned element does not have an owner document`);this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,a=ac(e,t);if(!a.contentWindow)return Promise.reject(`Unable to find iframe window`);var o=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,c=a.contentWindow,l=c.document,u=cc(a).then(function(){return r(n,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(pc),c&&(c.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(c.scrollY!==t.top||c.scrollX!==t.left)&&(this.context.logger.warn(`Unable to restore scroll position for cloned document`),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-t.left,c.scrollY-t.top,0,0))),e=this.options.onclone,n=this.clonedReferenceElement,n===void 0?[2,Promise.reject(`Error finding the `+this.referenceElement.nodeName+` in the cloned document`)]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,sc(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return typeof e==`function`?[2,Promise.resolve().then(function(){return e(l,n)}).then(function(){return a})]:[2,a]}})})});return l.open(),l.write(dc(document.doctype)+`<html></html>`),fc(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},e.prototype.createElementClone=function(e){if(Ma(e,2))debugger;if(Ds(e))return this.createCanvasClone(e);if(Os(e))return this.createVideoClone(e);if(js(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return ks(t)&&(ks(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=``),t.loading===`lazy`&&(t.loading=`eager`)),Is(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement(`html2canvascustomelement`);return uc(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&typeof t.cssText==`string`?e+t.cssText:e},``),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error(`Unable to access cssRules property`,e),e.name!==`SecurityError`)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement(`img`);try{return t.src=e.toDataURL(),t}catch{this.context.logger.info(`Unable to inline canvas contents, canvas is tainted`,e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext(`2d`),i=n.getContext(`2d`);if(i)if(!this.options.allowTaint&&r)i.putImageData(r.getImageData(0,0,e.width,e.height),0,0);else{var a=e.getContext(`webgl2`)??e.getContext(`webgl`);a&&a.getContextAttributes()?.preserveDrawingBuffer===!1&&this.context.logger.warn(`Unable to clone WebGL context as it has preserveDrawingBuffer=false`,e),i.drawImage(e,0,0)}return n}catch{this.context.logger.info(`Unable to clone canvas as it is tainted`,e)}return n},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement(`canvas`);t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext(`2d`);try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info(`Unable to clone video as it is tainted`,e)}var r=e.ownerDocument.createElement(`canvas`);return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){(!vs(t)||!Ms(t)&&!t.hasAttribute(nc)&&(typeof this.options.ignoreElements!=`function`||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!vs(t)||!js(t))&&e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(vs(i)&&Fs(i)&&typeof i.assignedNodes==`function`){var a=i.assignedNodes();a.length&&a.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,i,n)},e.prototype.cloneNode=function(e,t){if(Y(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&vs(e)&&(ys(e)||bs(e))){var r=this.createElementClone(e);r.style.transitionProperty=`none`;var i=n.getComputedStyle(e),a=n.getComputedStyle(e,`:before`),o=n.getComputedStyle(e,`:after`);this.referenceElement===e&&ys(r)&&(this.clonedReferenceElement=r),Es(r)&&yc(r);var s=this.counters.parse(new ka(this.context,i)),c=this.resolvePseudoContent(e,r,a,ic.BEFORE);Is(e)&&(t=!0),Os(e)||this.cloneChildNodes(e,r,t),c&&r.insertBefore(c,r.firstChild);var l=this.resolvePseudoContent(e,r,o,ic.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||bs(e))&&!As(e)||t)&&uc(i,r),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Ns(e)||Ps(e))&&(Ns(r)||Ps(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var a=n.content,o=t.ownerDocument;if(!(!o||!a||a===`none`||a===`-moz-alt-content`||n.display===`none`)){this.counters.parse(new ka(this.context,n));var s=new Oa(this.context,n),c=o.createElement(`html2canvaspseudoelement`);uc(n,c),s.content.forEach(function(t){if(t.type===0)c.appendChild(o.createTextNode(t.value));else if(t.type===22){var n=o.createElement(`img`);n.src=t.value,n.style.opacity=`1`,c.appendChild(n)}else if(t.type===18){if(t.name===`attr`){var r=t.values.filter(ir);r.length&&c.appendChild(o.createTextNode(e.getAttribute(r[0].value)||``))}else if(t.name===`counter`){var a=t.values.filter(cr),l=a[0],u=a[1];if(l&&ir(l)){var d=i.counters.getCounterValue(l.value),f=u&&ir(u)?W.parse(i.context,u.value):3;c.appendChild(o.createTextNode(tc(d,f,!1)))}}else if(t.name===`counters`){var p=t.values.filter(cr),l=p[0],m=p[1],u=p[2];if(l&&ir(l)){var h=i.counters.getCounterValues(l.value),g=u&&ir(u)?W.parse(i.context,u.value):3,_=m&&m.type===0?m.value:``,v=h.map(function(e){return tc(e,g,!1)}).join(_);c.appendChild(o.createTextNode(v))}}}else if(t.type===20)switch(t.value){case`open-quote`:c.appendChild(o.createTextNode(Sa(s.quotes,i.quoteDepth++,!0)));break;case`close-quote`:c.appendChild(o.createTextNode(Sa(s.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(t.value))}}),c.className=gc+` `+_c;var l=r===ic.BEFORE?` `+gc:` `+_c;return bs(t)?t.className.baseValue+=l:t.className+=l,c}}},e.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},e}(),ic;(function(e){e[e.BEFORE=0]=`BEFORE`,e[e.AFTER=1]=`AFTER`})(ic||={});var ac=function(e,t){var n=e.createElement(`iframe`);return n.className=`html2canvas-container`,n.style.visibility=`hidden`,n.style.position=`fixed`,n.style.left=`-10000px`,n.style.top=`0px`,n.style.border=`0`,n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling=`no`,n.setAttribute(nc,`true`),e.body.appendChild(n),n},oc=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},sc=function(e){return Promise.all([].slice.call(e.images,0).map(oc))},cc=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n(`No window assigned for iframe`);var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&i.readyState===`complete`&&(clearInterval(n),t(e))},50)}})},lc=[`all`,`d`,`content`],uc=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);lc.indexOf(r)===-1&&t.style.setProperty(r,e.getPropertyValue(r))}return t},dc=function(e){var t=``;return e&&(t+=`<!DOCTYPE `,e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+=`"`+e.publicId+`"`),e.systemId&&(t+=`"`+e.systemId+`"`),t+=`>`),t},fc=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},pc=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},mc=`:before`,hc=`:after`,gc=`___html2canvas___pseudoelement_before`,_c=`___html2canvas___pseudoelement_after`,vc=`{
|
|
7808
7806
|
content: "" !important;
|
|
7809
7807
|
display: none !important;
|
|
7810
7808
|
}`,yc=function(e){bc(e,`.`+gc+mc+vc+`
|
|
7811
|
-
.`+_c+hc+vc)},bc=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement(`style`);r.textContent=t,e.appendChild(r)}},xc=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):`about:blank`},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement(`a`),e._origin=e.getOrigin(t.location.href)},e._origin=`about:blank`,e}(),Sc=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(kc(e)||Ec(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o=this;return i(this,function(i){switch(i.label){case 0:return t=xc.isSameOrigin(e),n=!Dc(e)&&this._options.useCORS===!0&&Fo.SUPPORT_CORS_IMAGES&&!t,r=!Dc(e)&&!t&&!kc(e)&&typeof this._options.proxy==`string`&&Fo.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Dc(e)&&!kc(e)&&!r&&!n?[2]:(a=e,r?[4,this.proxy(a)]:[3,2]);case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug(`Added image `+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Oc(a)||n)&&(r.crossOrigin=`anonymous`),r.src=a,r.complete===!0&&setTimeout(function(){return e(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return t(`Timed out (`+o._options.imageTimeout+`ms) loading image`)},o._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return this._cache[e]!==void 0},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw Error(`No proxy defined`);var r=e.substring(0,256);return new Promise(function(i,a){var o=Fo.SUPPORT_RESPONSE_TYPE?`blob`:`text`,s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o===`text`)i(s.response);else{var e=new FileReader;e.addEventListener(`load`,function(){return i(e.result)},!1),e.addEventListener(`error`,function(e){return a(e)},!1),e.readAsDataURL(s.response)}else a(`Failed to proxy resource `+r+` with status code `+s.status)},s.onerror=a;var c=n.indexOf(`?`)>-1?`&`:`?`;if(s.open(`GET`,``+n+c+`url=`+encodeURIComponent(e)+`&responseType=`+o),o!==`text`&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a(`Timed out (`+l+`ms) proxying `+r)}}s.send()})},e}(),Cc=/^data:image\/svg\+xml/i,wc=/^data:image\/.*;base64,/i,Tc=/^data:image\/.*/i,Ec=function(e){return Fo.SUPPORT_SVG_DRAWING||!Ac(e)},Dc=function(e){return Tc.test(e)},Oc=function(e){return wc.test(e)},kc=function(e){return e.substr(0,4)===`blob`},Ac=function(e){return e.substr(-3).toLowerCase()===`svg`||Cc.test(e)},X=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),jc=function(e,t,n){return new X(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Mc=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=jc(this.start,this.startControl,t),i=jc(this.startControl,this.endControl,t),a=jc(this.endControl,this.end,t),o=jc(r,i,t),s=jc(i,a,t),c=jc(o,s,t);return n?new e(this.start,r,o,c):new e(c,s,a,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Nc=function(e){return e.type===1},Pc=function(){function e(e){var t=e.styles,n=e.bounds,r=_r(t.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=_r(t.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=_r(t.borderBottomRightRadius,n.width,n.height),u=l[0],d=l[1],f=_r(t.borderBottomLeftRadius,n.width,n.height),p=f[0],m=f[1],h=[];h.push((i+s)/n.width),h.push((p+u)/n.width),h.push((a+m)/n.height),h.push((c+d)/n.height);var g=Math.max.apply(Math,h);g>1&&(i/=g,a/=g,s/=g,c/=g,u/=g,d/=g,p/=g,m/=g);var _=n.width-s,v=n.height-d,y=n.width-u,b=n.height-m,x=t.borderTopWidth,S=t.borderRightWidth,C=t.borderBottomWidth,w=t.borderLeftWidth,T=vr(t.paddingTop,e.bounds.width),E=vr(t.paddingRight,e.bounds.width),ee=vr(t.paddingBottom,e.bounds.width),te=vr(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Ic(n.left+w/3,n.top+x/3,i-w/3,a-x/3,Fc.TOP_LEFT):new X(n.left+w/3,n.top+x/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Ic(n.left+_,n.top+x/3,s-S/3,c-x/3,Fc.TOP_RIGHT):new X(n.left+n.width-S/3,n.top+x/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?Ic(n.left+y,n.top+v,u-S/3,d-C/3,Fc.BOTTOM_RIGHT):new X(n.left+n.width-S/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=p>0||m>0?Ic(n.left+w/3,n.top+b,p-w/3,m-C/3,Fc.BOTTOM_LEFT):new X(n.left+w/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Ic(n.left+w*2/3,n.top+x*2/3,i-w*2/3,a-x*2/3,Fc.TOP_LEFT):new X(n.left+w*2/3,n.top+x*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Ic(n.left+_,n.top+x*2/3,s-S*2/3,c-x*2/3,Fc.TOP_RIGHT):new X(n.left+n.width-S*2/3,n.top+x*2/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?Ic(n.left+y,n.top+v,u-S*2/3,d-C*2/3,Fc.BOTTOM_RIGHT):new X(n.left+n.width-S*2/3,n.top+n.height-C*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||m>0?Ic(n.left+w*2/3,n.top+b,p-w*2/3,m-C*2/3,Fc.BOTTOM_LEFT):new X(n.left+w*2/3,n.top+n.height-C*2/3),this.topLeftBorderStroke=i>0||a>0?Ic(n.left+w/2,n.top+x/2,i-w/2,a-x/2,Fc.TOP_LEFT):new X(n.left+w/2,n.top+x/2),this.topRightBorderStroke=i>0||a>0?Ic(n.left+_,n.top+x/2,s-S/2,c-x/2,Fc.TOP_RIGHT):new X(n.left+n.width-S/2,n.top+x/2),this.bottomRightBorderStroke=u>0||d>0?Ic(n.left+y,n.top+v,u-S/2,d-C/2,Fc.BOTTOM_RIGHT):new X(n.left+n.width-S/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=p>0||m>0?Ic(n.left+w/2,n.top+b,p-w/2,m-C/2,Fc.BOTTOM_LEFT):new X(n.left+w/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||a>0?Ic(n.left,n.top,i,a,Fc.TOP_LEFT):new X(n.left,n.top),this.topRightBorderBox=s>0||c>0?Ic(n.left+_,n.top,s,c,Fc.TOP_RIGHT):new X(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?Ic(n.left+y,n.top+v,u,d,Fc.BOTTOM_RIGHT):new X(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||m>0?Ic(n.left,n.top+b,p,m,Fc.BOTTOM_LEFT):new X(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Ic(n.left+w,n.top+x,Math.max(0,i-w),Math.max(0,a-x),Fc.TOP_LEFT):new X(n.left+w,n.top+x),this.topRightPaddingBox=s>0||c>0?Ic(n.left+Math.min(_,n.width-S),n.top+x,_>n.width+S?0:Math.max(0,s-S),Math.max(0,c-x),Fc.TOP_RIGHT):new X(n.left+n.width-S,n.top+x),this.bottomRightPaddingBox=u>0||d>0?Ic(n.left+Math.min(y,n.width-w),n.top+Math.min(v,n.height-C),Math.max(0,u-S),Math.max(0,d-C),Fc.BOTTOM_RIGHT):new X(n.left+n.width-S,n.top+n.height-C),this.bottomLeftPaddingBox=p>0||m>0?Ic(n.left+w,n.top+Math.min(b,n.height-C),Math.max(0,p-w),Math.max(0,m-C),Fc.BOTTOM_LEFT):new X(n.left+w,n.top+n.height-C),this.topLeftContentBox=i>0||a>0?Ic(n.left+w+te,n.top+x+T,Math.max(0,i-(w+te)),Math.max(0,a-(x+T)),Fc.TOP_LEFT):new X(n.left+w+te,n.top+x+T),this.topRightContentBox=s>0||c>0?Ic(n.left+Math.min(_,n.width+w+te),n.top+x+T,_>n.width+w+te?0:s-w+te,c-(x+T),Fc.TOP_RIGHT):new X(n.left+n.width-(S+E),n.top+x+T),this.bottomRightContentBox=u>0||d>0?Ic(n.left+Math.min(y,n.width-(w+te)),n.top+Math.min(v,n.height+x+T),Math.max(0,u-(S+E)),d-(C+ee),Fc.BOTTOM_RIGHT):new X(n.left+n.width-(S+E),n.top+n.height-(C+ee)),this.bottomLeftContentBox=p>0||m>0?Ic(n.left+w+te,n.top+b,Math.max(0,p-(w+te)),m-(C+ee),Fc.BOTTOM_LEFT):new X(n.left+w+te,n.top+n.height-(C+ee))}return e}(),Fc;(function(e){e[e.TOP_LEFT=0]=`TOP_LEFT`,e[e.TOP_RIGHT=1]=`TOP_RIGHT`,e[e.BOTTOM_RIGHT=2]=`BOTTOM_RIGHT`,e[e.BOTTOM_LEFT=3]=`BOTTOM_LEFT`})(Fc||={});var Ic=function(e,t,n,r,i){var a=4*((Math.sqrt(2)-1)/3),o=n*a,s=r*a,c=e+n,l=t+r;switch(i){case Fc.TOP_LEFT:return new Mc(new X(e,l),new X(e,l-s),new X(c-o,t),new X(c,t));case Fc.TOP_RIGHT:return new Mc(new X(e,t),new X(e+o,t),new X(c,l-s),new X(c,l));case Fc.BOTTOM_RIGHT:return new Mc(new X(c,t),new X(c,t+s),new X(e+o,l),new X(e,l));case Fc.BOTTOM_LEFT:default:return new Mc(new X(c,l),new X(c-o,l),new X(e,t+s),new X(e,t))}},Lc=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Rc=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},zc=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Bc=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Vc=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Hc=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Uc=function(e){return e.type===0},Wc=function(e){return e.type===1},Gc=function(e){return e.type===2},Kc=function(e,t){return e.length===t.length?e.some(function(e,n){return e===t[n]}):!1},qc=function(e,t,n,r,i){return e.map(function(e,a){switch(a){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e})},Jc=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),Yc=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Pc(this.container),this.container.styles.opacity<1&&this.effects.push(new Hc(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Bc(n,r,i))}if(this.container.styles.overflowX!==0){var a=Lc(this.curves),o=zc(this.curves);Kc(a,o)?this.effects.push(new Vc(a,6)):(this.effects.push(new Vc(a,2)),this.effects.push(new Vc(o,4)))}}return e.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!Wc(e)});if(t||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=Lc(n.curves),o=zc(n.curves);Kc(a,o)||r.unshift(new Vc(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return _a(t.target,e)})},e}(),Xc=function(e,t,n,r){e.container.elements.forEach(function(i){var a=_a(i.flags,4),o=_a(i.flags,2),s=new Yc(i,e);_a(i.styles.display,2048)&&r.push(s);var c=_a(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:t,u=new Jc(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var d=i.styles.zIndex.order;if(d<0){var f=0;l.negativeZIndex.some(function(e,t){return d>e.element.container.styles.zIndex.order?(f=t,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(d>0){var p=0;l.positiveZIndex.some(function(e,t){return d>=e.element.container.styles.zIndex.order?(p=t+1,!1):p>0}),l.positiveZIndex.splice(p,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Xc(s,u,a?u:n,c)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Xc(s,t,n,c);_a(i.flags,8)&&Zc(i,c)})},Zc=function(e,t){for(var n=e instanceof $o?e.start:1,r=e instanceof $o?e.reversed:!1,i=0;i<t.length;i++){var a=t[i];a.container instanceof Qo&&typeof a.container.value==`number`&&a.container.value!==0&&(n=a.container.value),a.listValue=tc(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},Qc=function(e){var t=new Yc(e,null),n=new Jc(t),r=[];return Xc(t,n,n,r),Zc(t.container,r),n},$c=function(e,t){switch(t){case 0:return il(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return il(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return il(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return il(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},el=function(e,t){switch(t){case 0:return il(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return il(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return il(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return il(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},tl=function(e,t){switch(t){case 0:return il(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return il(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return il(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return il(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},nl=function(e,t){switch(t){case 0:return rl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return rl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return rl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return rl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},rl=function(e,t){var n=[];return Nc(e)?n.push(e.subdivide(.5,!1)):n.push(e),Nc(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},il=function(e,t,n,r){var i=[];return Nc(e)?i.push(e.subdivide(.5,!1)):i.push(e),Nc(n)?i.push(n.subdivide(.5,!0)):i.push(n),Nc(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Nc(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},al=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},ol=function(e){var t=e.styles,n=e.bounds,r=vr(t.paddingLeft,n.width),i=vr(t.paddingRight,n.width),a=vr(t.paddingTop,n.width),o=vr(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+a+o))},sl=function(e,t){return e===0?t.bounds:e===2?ol(t):al(t)},cl=function(e,t){return e===0?t.bounds:e===2?ol(t):al(t)},ll=function(e,t,n){var r=sl(pl(e.styles.backgroundOrigin,t),e),i=cl(pl(e.styles.backgroundClip,t),e),a=fl(pl(e.styles.backgroundSize,t),n,r),o=a[0],s=a[1],c=_r(pl(e.styles.backgroundPosition,t),r.width-o,r.height-s);return[ml(pl(e.styles.backgroundRepeat,t),c,a,r,i),Math.round(r.left+c[0]),Math.round(r.top+c[1]),o,s]},ul=function(e){return ir(e)&&e.value===pi.AUTO},dl=function(e){return typeof e==`number`},fl=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1];if(!o)return[0,0];if(fr(o)&&s&&fr(s))return[vr(o,n.width),vr(s,n.height)];var c=dl(a);if(ir(o)&&(o.value===pi.CONTAIN||o.value===pi.COVER))return dl(a)?n.width/n.height<a==(o.value===pi.COVER)?[n.height*a,n.height]:[n.width,n.width/a]:[n.width,n.height];var l=dl(r),u=dl(i),d=l||u;if(ul(o)&&(!s||ul(s)))return l&&u?[r,i]:!c&&!d?[n.width,n.height]:d&&c?[l?r:i*a,u?i:r/a]:[l?r:n.width,u?i:n.height];if(c){var f=0,p=0;return fr(o)?f=vr(o,n.width):fr(s)&&(p=vr(s,n.height)),ul(o)?f=p*a:(!s||ul(s))&&(p=f/a),[f,p]}var m=null,h=null;if(fr(o)?m=vr(o,n.width):s&&fr(s)&&(h=vr(s,n.height)),m!==null&&(!s||ul(s))&&(h=l&&u?m/r*i:n.height),h!==null&&ul(o)&&(m=l&&u?h/i*r:n.width),m!==null&&h!==null)return[m,h];throw Error(`Unable to calculate background-size for element`)},pl=function(e,t){var n=e[t];return n===void 0?e[0]:n},ml=function(e,t,n,r,i){var a=t[0],o=t[1],s=n[0],c=n[1];switch(e){case 2:return[new X(Math.round(r.left),Math.round(r.top+o)),new X(Math.round(r.left+r.width),Math.round(r.top+o)),new X(Math.round(r.left+r.width),Math.round(c+r.top+o)),new X(Math.round(r.left),Math.round(c+r.top+o))];case 3:return[new X(Math.round(r.left+a),Math.round(r.top)),new X(Math.round(r.left+a+s),Math.round(r.top)),new X(Math.round(r.left+a+s),Math.round(r.height+r.top)),new X(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new X(Math.round(r.left+a),Math.round(r.top+o)),new X(Math.round(r.left+a+s),Math.round(r.top+o)),new X(Math.round(r.left+a+s),Math.round(r.top+o+c)),new X(Math.round(r.left+a),Math.round(r.top+o+c))];default:return[new X(Math.round(i.left),Math.round(i.top)),new X(Math.round(i.left+i.width),Math.round(i.top)),new X(Math.round(i.left+i.width),Math.round(i.height+i.top)),new X(Math.round(i.left),Math.round(i.height+i.top))]}},hl=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`,gl=`Hidden Text`,_l=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement(`div`),r=this._document.createElement(`img`),i=this._document.createElement(`span`),a=this._document.body;n.style.visibility=`hidden`,n.style.fontFamily=e,n.style.fontSize=t,n.style.margin=`0`,n.style.padding=`0`,n.style.whiteSpace=`nowrap`,a.appendChild(n),r.src=hl,r.width=1,r.height=1,r.style.margin=`0`,r.style.padding=`0`,r.style.verticalAlign=`baseline`,i.style.fontFamily=e,i.style.fontSize=t,i.style.margin=`0`,i.style.padding=`0`,i.appendChild(this._document.createTextNode(gl)),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(gl)),n.style.lineHeight=`normal`,r.style.verticalAlign=`super`;var s=r.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:o,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+` `+t;return this._data[n]===void 0&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),vl=function(){function e(e,t){this.context=e,this.options=t}return e}(),yl=1e4,bl=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement(`canvas`),r.ctx=r.canvas.getContext(`2d`),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+`px`,r.canvas.style.height=n.height+`px`),r.fontMetrics=new _l(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline=`bottom`,r._activeEffects=[],r.context.logger.debug(`Canvas renderer initialized (`+n.width+`x`+n.height+`) with scale `+n.scale),r}return n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),Gc(e)&&(this.ctx.globalAlpha=e.opacity),Uc(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Wc(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:if(_a(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;t===0?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):Bo(e.text).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return e===`normal`||e===`small-caps`}).join(``),n=Tl(e.fontFamily).join(`, `),r=nr(e.fontSize)?``+e.fontSize.number+e.fontSize.unit:e.fontSize.number+`px`;return[[e.fontStyle,t,e.fontWeight,r,n].join(` `),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,a,o,s,c,l,u,d=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[0],a=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=t.direction===1?`rtl`:`ltr`,this.ctx.textAlign=`left`,this.ctx.textBaseline=`alphabetic`,s=this.fontMetrics.getMetrics(a,o),c=s.baseline,l=s.middle,u=t.paintOrder,e.textBounds.forEach(function(e){u.forEach(function(n){switch(n){case 0:d.ctx.fillStyle=Or(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,c);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){d.ctx.shadowColor=Or(n.color),d.ctx.shadowOffsetX=n.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=n.offsetY.number*d.options.scale,d.ctx.shadowBlur=n.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,c)}),d.ctx.shadowColor=``,d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=Or(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+c),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=Or(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?`miter`:`round`,d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+c)),d.ctx.strokeStyle=``,d.ctx.lineWidth=0,d.ctx.lineJoin=`miter`;break}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=ol(e),i=zc(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,a,s,c,l,u,u,d,f,p,m,h,g,_,v,y,b,x,u,S,h,v;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,a=t.styles,s=0,c=t.textNodes,i.label=1;case 1:return s<c.length?(l=c[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Yo))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return u=i.sent(),this.renderReplacedElement(t,r,u),[3,8];case 7:return i.sent(),this.context.logger.error(`Error loading image `+t.src),[3,8];case 8:if(t instanceof Xo&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Zo))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return u=i.sent(),this.renderReplacedElement(t,r,u),[3,12];case 11:return i.sent(),this.context.logger.error(`Error loading svg `+t.svg.substring(0,255)),[3,12];case 12:return t instanceof ds&&t.tree?(d=new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,d.render(t.tree)]):[3,14];case 13:f=i.sent(),t.width&&t.height&&this.ctx.drawImage(f,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof cs&&(p=Math.min(t.bounds.width,t.bounds.height),t.type===is?t.checked&&(this.ctx.save(),this.path([new X(t.bounds.left+p*.39363,t.bounds.top+p*.79),new X(t.bounds.left+p*.16,t.bounds.top+p*.5549),new X(t.bounds.left+p*.27347,t.bounds.top+p*.44071),new X(t.bounds.left+p*.39694,t.bounds.top+p*.5649),new X(t.bounds.left+p*.72983,t.bounds.top+p*.23),new X(t.bounds.left+p*.84,t.bounds.top+p*.34085),new X(t.bounds.left+p*.39363,t.bounds.top+p*.79)]),this.ctx.fillStyle=Or(ss),this.ctx.fill(),this.ctx.restore()):t.type===as&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+p/2,t.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Or(ss),this.ctx.fill(),this.ctx.restore())),xl(t)&&t.value.length){switch(m=this.createFontStyle(a),h=m[0],g=m[1],_=this.fontMetrics.getMetrics(h,g).baseline,this.ctx.font=h,this.ctx.fillStyle=Or(a.color),this.ctx.textBaseline=`alphabetic`,this.ctx.textAlign=Cl(t.styles.textAlign),v=ol(t),y=0,t.styles.textAlign){case 1:y+=v.width/2;break;case 2:y+=v.width;break}b=v.add(y,0,0,-v.height/2+1),this.ctx.save(),this.path([new X(v.left,v.top),new X(v.left+v.width,v.top),new X(v.left+v.width,v.top+v.height),new X(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Io(t.value,b),a.letterSpacing,_),this.ctx.restore(),this.ctx.textBaseline=`alphabetic`,this.ctx.textAlign=`left`}if(!_a(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(x=t.styles.listStyleImage,x.type!==0)return[3,18];u=void 0,S=x.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return u=i.sent(),this.ctx.drawImage(u,t.bounds.left-(u.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error(`Error loading list-style-image `+S),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==-1&&(h=this.createFontStyle(a)[0],this.ctx.font=h,this.ctx.fillStyle=Or(a.color),this.ctx.textBaseline=`middle`,this.ctx.textAlign=`right`,v=new o(t.bounds.left,t.bounds.top+vr(t.styles.paddingTop,t.bounds.width),t.bounds.width,Fi(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Io(e.listValue,v),a.letterSpacing,Fi(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline=`bottom`,this.ctx.textAlign=`left`),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,r,s,c,r,l,u,r,d,f,r,p,m,r,h,g,r;return i(this,function(i){switch(i.label){case 0:if(_a(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?(r=n[t],[4,this.renderStack(r)]):[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),a=0,o=e.nonInlineLevel,i.label=7;case 7:return a<o.length?(r=o[a],[4,this.renderNode(r)]):[3,10];case 8:i.sent(),i.label=9;case 9:return a++,[3,7];case 10:s=0,c=e.nonPositionedFloats,i.label=11;case 11:return s<c.length?(r=c[s],[4,this.renderStack(r)]):[3,14];case 12:i.sent(),i.label=13;case 13:return s++,[3,11];case 14:l=0,u=e.nonPositionedInlineLevel,i.label=15;case 15:return l<u.length?(r=u[l],[4,this.renderStack(r)]):[3,18];case 16:i.sent(),i.label=17;case 17:return l++,[3,15];case 18:d=0,f=e.inlineLevel,i.label=19;case 19:return d<f.length?(r=f[d],[4,this.renderNode(r)]):[3,22];case 20:i.sent(),i.label=21;case 21:return d++,[3,19];case 22:p=0,m=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return p<m.length?(r=m[p],[4,this.renderStack(r)]):[3,26];case 24:i.sent(),i.label=25;case 25:return p++,[3,23];case 26:h=0,g=e.positiveZIndex,i.label=27;case 27:return h<g.length?(r=g[h],[4,this.renderStack(r)]):[3,30];case 28:i.sent(),i.label=29;case 29:return h++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Nc(e)?e.start:e;n===0?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Nc(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){if(e.width===t&&e.height===n)return e;var r=(this.canvas.ownerDocument??document).createElement(`canvas`);return r.width=Math.max(1,t),r.height=Math.max(1,n),r.getContext(`2d`).drawImage(e,0,0,e.width,e.height,0,0,t,n),r},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,s;return i(this,function(c){switch(c.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var a,o,s,c,l,u,d,f,p,m,c,l,u,d,f,h,g,_,v,y,b,x,S,C,p,w,c,T,E,d,f,ee,l,u,te,D,ne,re,ie,O,ae,oe;return i(this,function(i){switch(i.label){case 0:if(n.type!==0)return[3,5];a=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error(`Error loading background-image `+o),[3,4];case 4:return a&&(s=ll(e,t,[a.width,a.height,a.width/a.height]),c=s[0],l=s[1],u=s[2],d=s[3],f=s[4],p=r.ctx.createPattern(r.resizeImage(a,d,f),`repeat`),r.renderRepeat(c,p,l,u)),[3,6];case 5:ri(n)?(m=ll(e,t,[null,null,null]),c=m[0],l=m[1],u=m[2],d=m[3],f=m[4],h=Vr(n.angle,d,f),g=h[0],_=h[1],v=h[2],y=h[3],b=h[4],x=document.createElement(`canvas`),x.width=d,x.height=f,S=x.getContext(`2d`),C=S.createLinearGradient(_,y,v,b),zr(n.stops,g).forEach(function(e){return C.addColorStop(e.stop,Or(e.color))}),S.fillStyle=C,S.fillRect(0,0,d,f),d>0&&f>0&&(p=r.ctx.createPattern(x,`repeat`),r.renderRepeat(c,p,l,u))):ii(n)&&(w=ll(e,t,[null,null,null]),c=w[0],T=w[1],E=w[2],d=w[3],f=w[4],ee=n.position.length===0?[hr]:n.position,l=vr(ee[0],d),u=vr(ee[ee.length-1],f),te=Wr(n,l,u,d,f),D=te[0],ne=te[1],D>0&&ne>0&&(re=r.ctx.createRadialGradient(T+l,E+u,0,T+l,E+u,D),zr(n.stops,D*2).forEach(function(e){return re.addColorStop(e.stop,Or(e.color))}),r.path(c),r.ctx.fillStyle=re,D===ne?r.ctx.fill():(ie=e.bounds.left+.5*e.bounds.width,O=e.bounds.top+.5*e.bounds.height,ae=ne/D,oe=1/ae,r.ctx.save(),r.ctx.translate(ie,O),r.ctx.transform(1,0,0,ae,0,0),r.ctx.translate(-ie,-O),r.ctx.fillRect(T,oe*(E-O)+O,d,f*oe),r.ctx.restore()))),i.label=6;case 6:return t--,[2]}})},r=this,a=0,o=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a<o.length?(s=o[a],[5,n(s)]):[3,4];case 2:c.sent(),c.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path($c(n,t)),this.ctx.fillStyle=Or(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,a){return r(this,void 0,void 0,function(){var r,o;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,a)]:[3,2];case 1:return i.sent(),[2];case 2:return r=el(a,n),this.path(r),this.ctx.fillStyle=Or(e),this.ctx.fill(),o=tl(a,n),this.path(o),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,s,c,l,u=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!Dr(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],a=Sl(pl(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),Dr(t.backgroundColor)||(this.ctx.fillStyle=Or(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n=Lc(e.curves),r=t.inset?0:yl,i=qc(n,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(u.path(n),u.ctx.clip(),u.mask(i)):(u.mask(n),u.ctx.clip(),u.path(i)),u.ctx.shadowOffsetX=t.offsetX.number+r,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=Or(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?Or(t.color):`rgba(0,0,0,1)`,u.ctx.fill(),u.ctx.restore()}),i.label=2;case 2:o=0,s=0,c=r,i.label=3;case 3:return s<c.length?(l=c[s],l.style!==0&&!Dr(l.color)&&l.width>0?l.style===2?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return l.style===3?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)]:[3,7];case 6:return i.sent(),[3,11];case 7:return l.style===4?[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)]:[3,9];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,a,o){return r(this,void 0,void 0,function(){var r,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,b,x;return i(this,function(i){return this.ctx.save(),r=nl(a,n),s=$c(a,n),o===2&&(this.path(s),this.ctx.clip()),Nc(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),Nc(s[1])?(u=s[1].end.x,d=s[1].end.y):(u=s[1].x,d=s[1].y),f=Math.abs(n===0||n===2?c-u:l-d),this.ctx.beginPath(),o===3?this.formatPath(r):this.formatPath(s.slice(0,2)),p=t<3?t*3:t*2,m=t<3?t*2:t,o===3&&(p=t,m=t),h=!0,f<=p*2?h=!1:f<=p*2+m?(g=f/(2*p+m),p*=g,m*=g):(_=Math.floor((f+m)/(p+m)),v=(f-_*p)/(_-1),y=(f-(_+1)*p)/_,m=y<=0||Math.abs(m-v)<Math.abs(m-y)?v:y),h&&(o===3?this.ctx.setLineDash([0,p+m]):this.ctx.setLineDash([p,m])),o===3?(this.ctx.lineCap=`round`,this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=Or(e),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Nc(s[0])&&(b=s[3],x=s[0],this.ctx.beginPath(),this.formatPath([new X(b.end.x,b.end.y),new X(x.start.x,x.start.y)]),this.ctx.stroke()),Nc(s[1])&&(b=s[1],x=s[2],this.ctx.beginPath(),this.formatPath([new X(b.end.x,b.end.y),new X(x.start.x,x.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Or(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Qc(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},n}(vl),xl=function(e){return e instanceof us||e instanceof ls?!0:e instanceof cs&&e.type!==as&&e.type!==is},Sl=function(e,t){switch(e){case 0:return Lc(t);case 2:return Rc(t);default:return zc(t)}},Cl=function(e){switch(e){case 1:return`center`;case 2:return`right`;default:return`left`}},wl=[`-apple-system`,`system-ui`],Tl=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return wl.indexOf(e)===-1}):e},El=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement(`canvas`),r.ctx=r.canvas.getContext(`2d`),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+`px`,r.canvas.style.height=n.height+`px`,r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (`+n.width+`x`+n.height+` at `+n.x+`,`+n.y+`) with scale `+n.scale),r}return n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=No(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Dl(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Or(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(vl),Dl=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Ol=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){var e=[...arguments];this.enabled&&(typeof window<`u`&&window.console&&typeof console.debug==`function`?console.debug.apply(console,a([this.id,this.getTime()+`ms`],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){var e=[...arguments];this.enabled&&typeof window<`u`&&window.console&&typeof console.info==`function`&&console.info.apply(console,a([this.id,this.getTime()+`ms`],e))},e.prototype.warn=function(){var e=[...arguments];this.enabled&&(typeof window<`u`&&window.console&&typeof console.warn==`function`?console.warn.apply(console,a([this.id,this.getTime()+`ms`],e)):this.info.apply(this,e))},e.prototype.error=function(){var e=[...arguments];this.enabled&&(typeof window<`u`&&window.console&&typeof console.error==`function`?console.error.apply(console,a([this.id,this.getTime()+`ms`],e)):this.info.apply(this,e))},e.instances={},e}(),kl=function(){function e(t,n){this.windowBounds=n,this.instanceName=`#`+ e.instanceCount++,this.logger=new Ol({id:this.instanceName,enabled:t.logging}),this.cache=t.cache??new Sc(this,t)}return e.instanceCount=1,e}(),Al=function(e,t){return t===void 0&&(t={}),jl(e,t)};typeof window<`u`&&xc.setContext(window);var jl=function(e,t){return r(void 0,void 0,void 0,function(){var r,a,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,ee,te,ee;return i(this,function(i){switch(i.label){case 0:if(!e||typeof e!=`object`)return[2,Promise.reject(`Invalid element provided as first argument`)];if(r=e.ownerDocument,!r)throw Error(`Element is not attached to a Document`);if(a=r.defaultView,!a)throw Error(`Document is not attached to a Window`);return l={allowTaint:t.allowTaint??!1,imageTimeout:t.imageTimeout??15e3,proxy:t.proxy,useCORS:t.useCORS??!1},u=n({logging:t.logging??!0,cache:t.cache},l),d={windowWidth:t.windowWidth??a.innerWidth,windowHeight:t.windowHeight??a.innerHeight,scrollX:t.scrollX??a.pageXOffset,scrollY:t.scrollY??a.pageYOffset},f=new o(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),p=new kl(u,f),m=t.foreignObjectRendering??!1,h={allowTaint:t.allowTaint??!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:m,copyStyles:m},p.logger.debug(`Starting document clone with size `+f.width+`x`+f.height+` scrolled to `+-f.left+`,`+-f.top),g=new rc(p,e,h),_=g.clonedReferenceElement,_?[4,g.toIFrame(r,f)]:[2,Promise.reject(`Unable to find element in cloned iframe`)];case 1:return v=i.sent(),y=Es(_)||ws(_)?c(_.ownerDocument):s(p,_),b=y.width,x=y.height,S=y.left,C=y.top,w=Ml(p,_,t.backgroundColor),T={canvas:t.canvas,backgroundColor:w,scale:t.scale??a.devicePixelRatio??1,x:(t.x??0)+S,y:(t.y??0)+C,width:t.width??Math.ceil(b),height:t.height??Math.ceil(x)},m?(p.logger.debug(`Document cloned, using foreign object rendering`),ee=new El(p,T),[4,ee.render(_)]):[3,3];case 2:return E=i.sent(),[3,5];case 3:return p.logger.debug(`Document cloned, element located at `+S+`,`+C+` with size `+b+`x`+x+` using computed rendering`),p.logger.debug(`Starting DOM parsing`),te=hs(p,_),w===te.styles.backgroundColor&&(te.styles.backgroundColor=Fr.TRANSPARENT),p.logger.debug(`Starting renderer for element at `+T.x+`,`+T.y+` with size `+T.width+`x`+T.height),ee=new bl(p,T),[4,ee.render(te)];case 4:E=i.sent(),i.label=5;case 5:return(t.removeContainer??!0)&&(rc.destroy(v)||p.logger.error(`Cannot detach cloned iframe as it is not in the DOM anymore`)),p.logger.debug(`Finished rendering`),[2,E]}})})},Ml=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?Pr(e,getComputedStyle(r.documentElement).backgroundColor):Fr.TRANSPARENT,a=r.body?Pr(e,getComputedStyle(r.body).backgroundColor):Fr.TRANSPARENT,o=typeof n==`string`?Pr(e,n):n===null?Fr.TRANSPARENT:4294967295;return t===r.documentElement?Dr(i)?Dr(a)?o:a:i:o};return Al}))})),iv=[`data-editable`,`data-mode`,`data-fullscreen`,`data-presentation`,`data-outline-open`,`data-outline-placement`,`data-comments-enabled`,`data-comments-open`,`data-drag-insert-active`],av={key:0,class:`norio-office-rich-editor__toolbar`},ov={class:`norio-office-rich-editor__toolbar-shell`},sv={class:`norio-office-rich-editor__toolbar-scroll`},cv={class:`norio-office-rich-editor__toolbar-track`},lv={key:0,class:`norio-office-rich-toolbar__group`},uv=[`disabled`],dv=[`disabled`],fv=[`disabled`],pv={key:1,class:`norio-office-rich-toolbar__group`},mv=[`disabled`],hv={key:2,class:`norio-office-rich-toolbar__group norio-office-rich-toolbar__group--insert`},gv={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--insert`},_v={class:`norio-office-rich-insert-menu__main`},vv={class:`norio-office-rich-insert-menu__quick-grid`},yv=[`onClick`],bv={key:0,class:`norio-office-rich-insert-menu__quick-text`},xv={key:0,class:`norio-office-rich-insert-menu__section`},Sv=[`onMouseenter`,`onFocus`,`onClick`],Cv={class:`norio-office-rich-insert-menu__icon`},wv={class:`norio-office-rich-insert-menu__label`},Tv={key:1,class:`norio-office-rich-insert-menu__section`},Ev=[`onClick`],Dv={class:`norio-office-rich-insert-menu__icon`},Ov={class:`norio-office-rich-insert-menu__label`},kv={key:2,class:`norio-office-rich-insert-menu__section`},Av=[`onClick`],jv={class:`norio-office-rich-insert-menu__icon`},Mv={class:`norio-office-rich-insert-menu__label`},Nv={class:`norio-office-rich-insert-submenu__title norio-office-rich-insert-submenu__title--preview`},Pv={class:`norio-office-rich-table-grid`},Fv=[`onMouseenter`,`onFocus`,`onClick`],Iv={key:1,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--emoji`},Lv={class:`norio-office-rich-insert-submenu__title norio-office-rich-insert-submenu__title--preview`},Rv={class:`norio-office-rich-columns-picker`},zv={class:`norio-office-rich-columns-picker__grid`},Bv=[`onMouseenter`,`onFocus`,`onClick`],Vv={class:`norio-office-rich-countdown-settings`},Hv={class:`norio-office-rich-countdown-settings__header`},Uv={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--deadline`},Wv={class:`norio-office-rich-countdown-settings__radio`},Gv=[`disabled`],Kv={class:`norio-office-rich-countdown-settings__picker-top`},qv=[`value`],Jv=[`value`],Yv=[`value`],Xv=[`value`],Zv={class:`norio-office-rich-countdown-settings__weekdays`},Qv={class:`norio-office-rich-countdown-settings__calendar`},$v=[`disabled`,`onClick`],ey={class:`norio-office-rich-countdown-settings__time-section`},ty={class:`norio-office-rich-countdown-settings__time-panel`},ny=[`min`],ry={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--duration`},iy={class:`norio-office-rich-countdown-settings__radio`},ay={class:`norio-office-rich-countdown-settings__duration`},oy=[`disabled`],sy=[`disabled`],cy=[`disabled`],ly=[`disabled`],uy={class:`norio-office-rich-countdown-settings__actions`},dy={class:`norio-office-rich-toolbar__group`},fy=[`disabled`],py={class:`norio-office-rich-toolbar__heading-label`},my={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--heading`},hy=[`disabled`,`onClick`],gy={key:1,class:`norio-office-rich-toolbar__menu-check`},_y={class:`norio-office-rich-toolbar__menu-type`},vy={class:`norio-office-rich-toolbar__menu-label`},yy=[`disabled`],by={class:`norio-office-rich-toolbar__label`},xy={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--font-family`},Sy=[`disabled`,`onClick`],Cy={key:1,class:`norio-office-rich-toolbar__menu-check`},wy=[`disabled`],Ty={class:`norio-office-rich-toolbar__label`},Ey={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--font-size`},Dy=[`disabled`,`onClick`],Oy={key:1,class:`norio-office-rich-toolbar__menu-check`},ky={class:`norio-office-rich-toolbar__menu-label`},Ay={class:`norio-office-rich-toolbar__group`},jy=[`disabled`],My={class:`norio-office-rich-toolbar__color-trigger`},Ny=[`disabled`],Py={class:`norio-office-rich-toolbar__color-trigger`},Fy=[`disabled`],Iy=[`disabled`],Ly=[`disabled`],Ry=[`disabled`],zy=[`disabled`],By={key:1,class:`norio-office-rich-toolbar__text-icon`},Vy={key:0,class:`norio-office-rich-toolbar__menu`},Hy=[`disabled`],Uy={key:1,class:`norio-office-rich-toolbar__menu-check`},Wy=[`disabled`],Gy={key:1,class:`norio-office-rich-toolbar__menu-check`},Ky={class:`norio-office-rich-toolbar__group`},qy=[`disabled`],Jy=[`disabled`],Yy=[`disabled`],Xy=[`disabled`],Zy={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--align`},Qy=[`disabled`],$y={key:1,class:`norio-office-rich-toolbar__menu-check`},eb=[`disabled`],tb={key:1,class:`norio-office-rich-toolbar__menu-check`},nb=[`disabled`],rb={key:1,class:`norio-office-rich-toolbar__menu-check`},ib=[`disabled`],ab=[`disabled`],ob=[`disabled`],sb={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--quote`},cb={class:`norio-office-rich-color-menu__section`},lb=[`disabled`],ub={class:`norio-office-rich-color-menu__section`},db={class:`norio-office-rich-color-menu__row`},fb=[`disabled`,`onClick`],pb={class:`norio-office-rich-color-menu__section`},mb={class:`norio-office-rich-color-menu__row`},hb=[`disabled`,`onClick`],gb=[`disabled`],_b=[`disabled`],vb={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--emoji`},yb={class:`norio-office-rich-editor__main`},bb=[`data-placement`,`title`,`aria-label`],xb=[`data-open`,`data-placement`],Sb={class:`norio-office-rich-editor__workspace`},Cb={class:`norio-office-rich-table-bubble-menu__toolbar`},wb={key:0,class:`norio-office-rich-table-bubble-menu__menu`},Tb={key:0,class:`norio-office-rich-table-bubble-menu__menu`},Eb={class:`norio-office-rich-toolbar__color-trigger norio-office-rich-toolbar__color-trigger--compact`},Db={key:0,class:`norio-office-rich-table-bubble-menu__menu norio-office-rich-table-bubble-menu__menu--palette`},Ob={class:`norio-office-rich-color-menu__grid`},kb=[`onClick`],Ab={key:0,class:`norio-office-rich-table-bubble-menu__menu norio-office-rich-table-bubble-menu__menu--palette`},jb={class:`norio-office-rich-color-menu__grid`},Mb=[`onClick`],Nb={class:`norio-office-rich-table-bubble-menu__actions`},Pb=[`disabled`],Fb=[`disabled`],Ib=[`disabled`],Lb={key:0,class:`norio-office-rich-table-bubble-menu__menu norio-office-rich-table-bubble-menu__menu--palette`},Rb={class:`norio-office-rich-table-bubble-menu__color-grid`},zb=[`onClick`],Bb=[`disabled`,`aria-expanded`],Vb=[`disabled`],Hb=[`disabled`],Ub=[`disabled`],Wb=[`disabled`],Gb=[`disabled`],Kb={class:`norio-office-rich-countdown-bubble-menu__toolbar`},qb={key:0,class:`norio-office-rich-countdown-bubble-menu__panel`},Jb={class:`norio-office-rich-countdown-settings`},Yb={class:`norio-office-rich-countdown-settings__header`},Xb={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--deadline`},Zb={class:`norio-office-rich-countdown-settings__radio`},Qb=[`disabled`],$b={class:`norio-office-rich-countdown-settings__picker-top`},ex=[`value`],tx=[`value`],nx=[`value`],rx=[`value`],ix={class:`norio-office-rich-countdown-settings__weekdays`},ax={class:`norio-office-rich-countdown-settings__calendar`},ox=[`onClick`],sx={class:`norio-office-rich-countdown-settings__time-section`},cx={class:`norio-office-rich-countdown-settings__time-panel`},lx=[`min`],ux={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--duration`},dx={class:`norio-office-rich-countdown-settings__radio`},fx={class:`norio-office-rich-countdown-settings__duration`},px=[`disabled`],mx=[`disabled`],hx=[`disabled`],gx=[`disabled`],_x={class:`norio-office-rich-countdown-settings__actions`},vx={class:`norio-office-rich-mention-panel__tabs`},yx=[`onClick`],bx={key:0,class:`norio-office-rich-mention-panel__empty`},xx={key:1,class:`norio-office-rich-mention-panel__empty`},Sx=[`onClick`,`onDblclick`],Cx=[`data-type`],wx=[`src`],Tx=[`src`],Ex={key:2},Dx={class:`norio-office-rich-mention-panel__content`},Ox={class:`norio-office-rich-mention-panel__title-row`},kx={class:`norio-office-rich-mention-panel__name`},Ax={key:0,class:`norio-office-rich-mention-panel__tag`},jx={key:0,class:`norio-office-rich-mention-panel__meta`},Mx={class:`norio-office-rich-mention-panel__footer`},Nx=[`disabled`],Px=[`data-active`],Fx=[`title`],Ix={key:1},Lx={class:`norio-office-rich-block-side-menu__section`},Rx={class:`norio-office-rich-block-side-menu__quick`},zx=[`onClick`],Bx={key:1},Vx={class:`norio-office-rich-block-side-menu__section`},Hx=[`onClick`],Ux={key:0,class:`norio-office-rich-block-side-menu__section norio-office-rich-block-side-menu__section--grid`},Wx=[`title`,`aria-label`,`aria-pressed`,`onClick`],Gx={key:1},Kx=[`aria-expanded`],qx=[`disabled`],Jx=[`aria-expanded`],Yx=[`aria-expanded`],Xx=[`aria-expanded`],Zx=[`aria-expanded`],Qx=[`aria-expanded`],$x=[`aria-expanded`],eS=[`aria-expanded`],tS=[`aria-expanded`],nS=[`disabled`,`aria-pressed`,`onClick`],rS={key:0,"aria-hidden":`true`},iS=[`aria-checked`],aS=[`data-checked`],oS=[`aria-label`,`title`,`aria-pressed`,`onClick`],sS={"aria-hidden":`true`},cS={class:`norio-office-rich-block-side-menu__section`},lS={class:`norio-office-rich-block-side-menu__quick`},uS=[`onClick`],dS={key:1},fS={class:`norio-office-rich-block-side-menu__section`},pS=[`onClick`],mS=[`aria-label`],hS={class:`norio-office-rich-color-menu__section`},gS=[`onClick`],_S=[`onClick`],vS=[`onClick`],yS=[`onClick`],bS={class:`norio-office-rich-comment-panel__header`},xS={key:0,class:`norio-office-rich-comment-panel__empty`},SS={key:1,class:`norio-office-rich-comment-panel__list`},CS=[`onClick`],wS={class:`norio-office-rich-comment-card__anchor`},TS={class:`norio-office-rich-comment-card__actions`},ES=[`disabled`,`onClick`],DS={key:0,class:`norio-office-rich-comment-card__items`},OS=[`src`],kS={key:1},AS={class:`norio-office-rich-comment-item__body`},jS={class:`norio-office-rich-comment-item__meta`},MS=[`value`,`onKeydown`],NS={class:`norio-office-rich-comment-composer__actions`},PS=[`onClick`],FS={class:`norio-office-rich-comment-item__content`},IS={key:0,class:`norio-office-rich-comment-images`},LS=[`onClick`],RS=[`src`,`alt`],zS={class:`norio-office-rich-comment-item__actions`},BS=[`onClick`],VS=[`onClick`],HS=[`onClick`],US={key:2,class:`norio-office-rich-comment-replies`},WS=[`src`],GS={key:1},KS={class:`norio-office-rich-comment-item__body`},qS={class:`norio-office-rich-comment-item__meta`},JS=[`value`,`onKeydown`],YS={class:`norio-office-rich-comment-composer__actions`},XS=[`onClick`],ZS={class:`norio-office-rich-comment-item__content`},QS={key:0,class:`norio-office-rich-comment-images`},$S=[`onClick`],eC=[`src`,`alt`],tC={class:`norio-office-rich-comment-item__actions`},nC=[`onClick`],rC=[`onClick`],iC=[`onClick`],aC={key:0,class:`norio-office-rich-comment-draft-images`},oC=[`src`,`alt`],sC=[`onClick`],cC=[`placeholder`,`value`,`onInput`,`onKeydown`],lC={class:`norio-office-rich-comment-composer__actions`},uC=[`onClick`],dC=[`onClick`],fC=[`disabled`,`onClick`],pC={key:1,class:`norio-office-rich-comment-card__empty`},mC={key:0,class:`norio-office-rich-comment-draft-images`},hC=[`src`,`alt`],gC=[`onClick`],_C=[`placeholder`,`value`,`onInput`,`onKeydown`],vC={class:`norio-office-rich-comment-composer__actions`},yC=[`onClick`],bC=[`onClick`],xC=[`disabled`,`onClick`],SC={class:`norio-office-rich-mention-panel__tabs`},CC=[`onClick`],wC={key:0,class:`norio-office-rich-mention-panel__empty`},TC={key:1,class:`norio-office-rich-mention-panel__empty`},EC=[`onClick`,`onDblclick`],DC=[`data-type`],OC=[`src`],kC=[`src`],AC={key:2},jC={class:`norio-office-rich-mention-panel__content`},MC={class:`norio-office-rich-mention-panel__title-row`},NC={class:`norio-office-rich-mention-panel__name`},PC={key:0,class:`norio-office-rich-mention-panel__tag`},FC={key:0,class:`norio-office-rich-mention-panel__meta`},IC={class:`norio-office-rich-mention-panel__footer`},LC=[`disabled`],RC=[`innerHTML`],zC={class:`norio-office-rich-comment-image-viewer__stage`},BC=[`src`,`alt`],VC={key:0,class:`norio-office-rich-comment-image-viewer__meta`},HC={key:0,class:`norio-office-rich-comment-image-viewer__name`},UC={key:1,class:`norio-office-rich-comment-image-viewer__desc`},WC={key:3,class:`norio-office-rich-upload-panel`,"aria-live":`polite`},GC={key:0,class:`norio-office-rich-upload-spinner`,"aria-hidden":`true`},KC={key:1,class:`norio-office-rich-upload-panel__error-dot`,"aria-hidden":`true`},qC={class:`norio-office-rich-upload-panel__content`},JC={class:`norio-office-rich-upload-panel__title`},YC={class:`norio-office-rich-upload-panel__meta`},XC=[`onClick`],ZC=[`onClick`],QC={class:`norio-office-rich-editor__statusbar`},$C={class:`norio-office-rich-statusbar__side norio-office-rich-statusbar__side--counts`},ew={class:`norio-office-rich-statusbar__item norio-office-rich-statusbar__word-count`},tw={class:`norio-office-rich-statusbar__item norio-office-rich-statusbar__line-count`},nw={class:`norio-office-rich-statusbar__side norio-office-rich-statusbar__side--right`},rw={class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--view`},iw=[`title`,`aria-label`,`aria-pressed`],aw={class:`norio-office-rich-statusbar__label norio-office-rich-statusbar__label--presentation`},ow=[`title`,`aria-label`,`aria-pressed`],sw={class:`norio-office-rich-statusbar__label norio-office-rich-statusbar__label--fullscreen`},cw={class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--zoom`},lw=[`disabled`],uw={class:`norio-office-rich-statusbar__zoom`},dw=[`disabled`],fw=[`title`,`aria-label`,`aria-expanded`,`disabled`],pw={class:`norio-office-rich-statusbar__label`},mw=[`aria-label`],hw=[`disabled`,`onClick`],gw={key:1,class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--print`},_w=[`title`,`aria-label`,`disabled`],vw={class:`norio-office-rich-statusbar__label`},yw=1060,bw=1120,xw=360,Sw=420,Cw=8,ww=4,Tw=`application/x-office-word-blocks+json`,Ew=8,Dw=10,Ow=4,kw=`#f3c389`,Aw=`#fff8ef`,jw=246,Mw=8,Nw=510,Pw=10,Fw=26,Iw=26,Lw=48,Rw=560,zw=220,Bw=(0,t.defineComponent)({__name:`RichTextEditor`,props:{modelValue:{default:null},documentName:{default:``},editable:{type:Boolean,default:!0},mode:{default:`edit`},showToolbar:{type:Boolean,default:!0},watermark:{default:null},showOutline:{type:Boolean,default:!0},outlinePlacement:{default:`right`},messages:{default:null},featureCodes:{default:null},enabledFeatureItems:{default:null},enabledExportItems:{},enabledInsertMenuItems:{},enabledToolbarActions:{},placeholder:{default:``},mention:{type:Boolean,default:!1},collaboration:{},comments:{default:null},commentUser:{default:null},showComments:{type:Boolean,default:!1},commentMention:{type:Boolean,default:!0},uploadImage:{type:[Function,null],default:null},uploadVideo:{type:[Function,null],default:null},uploadFile:{type:[Function,null],default:null},uploadCommentImage:{type:[Function,null],default:null},onUploadError:{type:[Function,null],default:null},commentMentionProvider:{type:[Function,null],default:null},onCommentMentionSearch:{type:[Function,null],default:null},mentionProvider:{},onMentionSearch:{}},emits:[`update:modelValue`,`change`,`local-file-upload`,`local-file-click`,`local-file-download`,`upload-error`,`mention-item-click`,`mention-submit`,`outline-change`,`comment-create`,`comment-reply`,`comment-update`,`comment-delete`,`comment-resolve`,`comment-select`,`comment-submit`,`comment-mention-search`,`comment-mention-item-click`,`comment-mention-submit`],setup(e,{expose:c,emit:l}){let u=e,d=l,f=(0,t.toRef)(u,`uploadImage`),p=(0,t.toRef)(u,`uploadVideo`),m=(0,t.toRef)(u,`uploadFile`),h=(0,t.toRef)(u,`uploadCommentImage`),g=(0,t.toRef)(u,`onUploadError`),_=(0,t.ref)(null),v=(0,t.ref)(null),y=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)(null),S=(0,t.ref)(null),C=(0,t.ref)(null),w=(0,t.ref)(null),T=(0,t.ref)(null),E=(0,t.ref)(null),ee=(0,t.ref)(null),te=(0,t.ref)(null),D=(0,t.ref)(null),ne=(0,t.ref)(null),re=(0,t.ref)(null),ie=(0,t.ref)(0),O=(0,t.ref)(null),ae=(0,t.ref)(null),oe=(0,t.ref)(null),se=(0,t.ref)(null),le=(0,t.ref)(null),ue=(0,t.ref)(null),de=(0,t.ref)(null),fe=(0,t.ref)(null),pe=(0,t.ref)(null),me=(0,t.ref)(null),he=(0,t.ref)(null),ge=(0,t.ref)(null),_e=(0,t.ref)(null),ve=(0,t.ref)(null),ye=(0,t.ref)(null),be=(0,t.ref)(null),xe=(0,t.ref)(null),Se=(0,t.ref)(null),Ce=(0,t.ref)(null),we=(0,t.ref)(null),Te=(0,t.ref)(null),Ee=(0,t.ref)(null),De=(0,t.ref)(null),Oe=(0,t.ref)(null),ke=(0,t.ref)(null),Ae=(0,t.ref)(null),je=(0,t.ref)(null),Me=(0,t.ref)(null),Ne=(0,t.ref)(null),Pe=(0,t.ref)(!1),Fe=(0,t.ref)(!1),Ie=(0,t.ref)(!1),Le=(0,t.ref)(null),Re=`norio-office-rich-outline-${(0,t.useId)()}`,ze=(0,t.ref)(typeof window>`u`?780:window.innerWidth),Be=(0,t.ref)(typeof window>`u`?900:window.innerHeight),Ve=(0,t.ref)(!1),He=(0,t.ref)(!1),Ue=(0,t.ref)(!1),We=(0,t.ref)(!1),Ge=(0,t.ref)(360),Ke=(0,t.ref)(0),qe=(0,t.ref)(!1),Je=(0,t.ref)(!1),Ye=(0,t.ref)(!1),Xe=(0,t.ref)(!1),Ze=(0,t.ref)(!1),Qe=(0,t.ref)(!1),$e=(0,t.ref)(!1),et=(0,t.ref)(!1),tt=(0,t.ref)(!1),nt=(0,t.ref)(!1),rt=(0,t.ref)(!1),it=(0,t.ref)(!1),at=(0,t.ref)(!1),ot=(0,t.ref)(!1),st=(0,t.ref)(!1),ct=(0,t.ref)(``),lt=(0,t.ref)(`all`),ut=(0,t.ref)([]),dt=(0,t.ref)(0),ft=(0,t.ref)(null),pt=(0,t.ref)({left:0,top:0}),mt=(0,t.ref)(null),ht=(0,t.ref)([]),gt=(0,t.ref)(null),_t=(0,t.ref)({}),vt=(0,t.ref)({}),yt=(0,t.ref)({}),bt=(0,t.ref)(null),xt=(0,t.ref)(``),St=(0,t.ref)([]),Ct=(0,t.ref)(null),wt=(0,t.ref)(null),Tt=(0,t.ref)(null),Et=(0,t.ref)({}),Dt=new Map,Ot=(0,t.ref)(!1),kt=(0,t.ref)(!1),At=(0,t.ref)(``),jt=(0,t.ref)(`all`),Mt=(0,t.ref)([]),Nt=(0,t.ref)(0),Pt=(0,t.ref)({left:0,top:0}),Ft=(0,t.ref)(null),It=(0,t.ref)(0),Lt=(0,t.ref)(null),Rt=(0,t.ref)(100),zt=[{key:`paragraph`,label:`正文`},{key:`h1`,label:`标题一`,level:1},{key:`h2`,label:`标题二`,level:2},{key:`h3`,label:`标题三`,level:3},{key:`h4`,label:`标题四`,level:4},{key:`h5`,label:`标题五`,level:5},{key:`h6`,label:`标题六`,level:6}],Bt=[`highlight-border`,`highlight-fill`,`quote-border`,`quote-background`],Vt=[`properties`,`color`,`add-above`,`add-below`,...Bt],Ht=[{key:`all`,label:`全部`},{key:1,label:`人`},{key:2,label:`文档`}],Ut=(0,t.ref)(null),Wt=(0,t.ref)(!1),Gt=(0,t.ref)(``),Kt=(0,t.ref)(0),qt=(0,t.ref)(0),Jt=(0,t.ref)(0),Yt=(0,t.ref)(`deadline`),Xt=(0,t.ref)(``),Zt=(0,t.ref)(`0`),Qt=(0,t.ref)(`0`),$t=(0,t.ref)(`1`),en=(0,t.ref)(`0`),tn=(0,t.ref)(!1),nn=(0,t.ref)(!1),rn=(0,t.ref)(`bottom`),on=(0,t.ref)(new Date().getFullYear()),cn=(0,t.ref)(new Date().getMonth()),ln=(0,t.ref)(`00:00`),un=[`一`,`二`,`三`,`四`,`五`,`六`,`日`],dn=(0,t.computed)(()=>Kt.value>0&&qt.value>0?`${Kt.value} x ${qt.value}`:`插入表格`);(0,t.computed)(()=>`选择${Jt.value}栏`);let fn=(0,t.computed)(()=>Jt.value>0?`选择${Jt.value}栏`:`选择栏数`);function pn(e){if(ie.value,!S.value||!e)return;let t=S.value.getBoundingClientRect(),n=e.getBoundingClientRect();return{top:`${n.top-t.top+n.height/2}px`}}let mn=(0,t.computed)(()=>pn(ne.value)),hn=(0,t.computed)(()=>pn(re.value)),gn=(0,t.computed)(()=>{let e=Xt.value,t=e?new Date(e):null;return t&&Number.isFinite(t.getTime())?t:null}),_n=(0,t.computed)(()=>{let e=gn.value;return e?`${e.getFullYear()}/${String(e.getMonth()+1).padStart(2,`0`)}/${String(e.getDate()).padStart(2,`0`)} ${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`:`请选择时间`}),vn=(0,t.computed)(()=>new Date(Os())),yn=(0,t.computed)(()=>{let e=gn.value,t=vn.value;return!e||!(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())?`00:00`:`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}`}),bn=(0,t.computed)(()=>Array.from({length:200},(e,t)=>1900+t)),Sn=(0,t.computed)(()=>Array.from({length:12},(e,t)=>t)),Cn=(0,t.computed)(()=>{let e=on.value,t=cn.value,n=(new Date(e,t,1).getDay()+6)%7,r=new Date(e,t+1,0).getDate(),i=new Date(e,t,0).getDate(),a=gn.value,o=new Date,s=vn.value,c=[];for(let l=0;l<42;l+=1){let u=e,d=t,f=0,p=!0;l<n?(d=t-1,d<0&&(d=11,--u),f=i-n+l+1,p=!1):l>=n+r?(d=t+1,d>11&&(d=0,u+=1),f=l-n-r+1,p=!1):f=l-n+1;let m=o.getFullYear()===u&&o.getMonth()===d&&o.getDate()===f,h=new Date(u,d,f,23,59,59,999).getTime()<s.getTime(),g=!!a&&a.getFullYear()===u&&a.getMonth()===d&&a.getDate()===f;c.push({key:`${u}-${d}-${f}`,year:u,month:d,day:f,label:f,isCurrentMonth:p,isToday:m,isSelected:g,isDisabled:h})}return c}),wn=(0,t.ref)(null),Tn=(0,t.ref)(null),En=(0,t.ref)(null),On=(0,t.ref)(null),kn=(0,t.ref)(null),An=(0,t.ref)([]),jn=(0,t.ref)([]),Mn=(0,t.ref)([]),Nn=(0,t.ref)([]),Pn=(0,t.ref)(null),Fn=(0,t.ref)(null),In=[{label:`初号`,value:`42px`},{label:`小初`,value:`36px`},{label:`一号`,value:`28px`},{label:`小一`,value:`26px`},{label:`二号`,value:`24px`},{label:`小二`,value:`22px`},{label:`三号`,value:`21px`},{label:`小三`,value:`20px`},{label:`四号`,value:`18px`},{label:`小四`,value:`16px`},{label:`五号`,value:`14px`},{label:`小五`,value:`12px`}],Ln=[{label:`默认`,value:``},{label:`微软雅黑`,value:`"Microsoft YaHei", "PingFang SC", sans-serif`},{label:`宋体`,value:`"SimSun", serif`},{label:`黑体`,value:`"SimHei", sans-serif`},{label:`楷体`,value:`"KaiTi", serif`},{label:`仿宋`,value:`"FangSong", serif`},{label:`Arial`,value:`Arial, sans-serif`},{label:`Georgia`,value:`Georgia, serif`},{label:`Monospace`,value:`"Consolas", "SFMono-Regular", monospace`}],Rn=[{key:`paragraph`,label:`T`,type:`text`,action:`paragraph`},{key:`h1`,label:`H1`,type:`text`,action:`heading-1`},{key:`h2`,label:`H2`,type:`text`,action:`heading-2`},{key:`h3`,label:`H3`,type:`text`,action:`heading-3`},{key:`h4`,label:`H4`,type:`text`,action:`heading-4`},{key:`h5`,label:`H5`,type:`text`,action:`heading-5`},{key:`h6`,label:`H6`,type:`text`,action:`heading-6`},{key:`bullet`,label:`无序列表`,type:`icon`,iconName:`wuxuliebiao`,action:`bullet-list`},{key:`ordered`,label:`有序列表`,type:`icon`,iconName:`youxuliebiao`,action:`ordered-list`},{key:`task`,label:`待办`,type:`icon`,iconName:`To-do`,action:`task-list`}],zn=[{key:`image`,label:`图片`,colorIconName:`tupian`,action:`image`},{key:`video`,label:`视频`,colorIconName:`shipin`,action:`video`},{key:`table`,label:`表格`,colorIconName:`biaoge`,action:`table`,comingSoon:!0},{key:`local-file`,label:`本地文件`,colorIconName:`file`,action:`local-file`},{key:`columns`,label:`分栏`,colorIconName:`fenlan`,action:`columns`},{key:`highlight-block`,label:`高亮块`,colorIconName:`gaoliangkuai1`,action:`highlight-block`},{key:`code-block`,label:`代码块`,colorIconName:`daimakuai`,action:`code-block`},{key:`formula`,label:`公式`,colorIconName:`jisuangongshi`,action:`formula`},{key:`blockquote`,label:`引用`,colorIconName:`yinyong`,action:`blockquote`},{key:`emoji`,label:`表情符号`,action:`emoji`},{key:`link`,label:`超链接`,colorIconName:`wangye`,action:`link`},{key:`divider`,label:`分隔线`,colorIconName:`fengexian`,action:`divider`}],Hn=[{key:`countdown`,label:`倒计时`,colorIconName:`daojishi`,action:`countdown`}],Un=[{key:`markdown-import`,label:`Markdown导入`,colorIconName:`markdown`,action:`markdown-import`}],Wn=[...zn.filter(e=>![`local-file`,`markdown-import`].includes(e.action)),...Hn],Gn=Rn,Kn=[{key:`align-left`,label:`左对齐`,iconName:`zuoduiqi`,action:`align-left`},{key:`align-center`,label:`居中对齐`,iconName:`juzhongduiqi`,action:`align-center`},{key:`align-right`,label:`右对齐`,iconName:`youduiqi`,action:`align-right`},{key:`indent-more`,label:`增加缩进`,iconName:`yousuojin`,action:`indent-more`},{key:`indent-less`,label:`减少缩进`,iconName:`zuosuojin`,action:`indent-less`}],qn=new Set([`paragraph`,`heading`,`bulletList`,`orderedList`,`taskList`]),Jn=new Set([`paragraph`,`heading`,`bulletList`,`orderedList`]),Yn=new Set([`paragraph`,`heading`,`bulletList`,`orderedList`,`taskList`,`blockquote`,`highlightBlock`]),Xn=(0,t.computed)(()=>u.featureCodes??u.enabledFeatureItems),Zn=(0,t.computed)(()=>u.featureCodes??u.enabledExportItems),Qn=(0,t.computed)(()=>u.featureCodes??u.enabledInsertMenuItems),$n=(0,t.computed)(()=>u.featureCodes??u.enabledToolbarActions);function er(e){return og(e,Xn.value)}let A=(0,t.computed)(()=>lg(u.messages));function nr(e){return A.value[e]??cg[e]??e}function rr(e){switch(e){case`image`:return nr(`insert.image`);case`video`:return nr(`insert.video`);case`table`:return nr(`insert.table`);case`local-file`:return nr(`insert.localFile`);case`columns`:return nr(`insert.columns`);case`highlight-block`:return nr(`insert.highlightBlock`);case`date`:return nr(`insert.date`);case`code-block`:return nr(`insert.codeBlock`);case`formula`:return nr(`insert.formula`);case`blockquote`:return nr(`insert.blockquote`);case`emoji`:return nr(`insert.emoji`);case`link`:return nr(`insert.link`);case`divider`:return nr(`insert.divider`);case`countdown`:return nr(`insert.countdown`);case`markdown-import`:return nr(`insert.markdownImport`);default:return e}}let ir=[`#C084FC`,`#F472B6`,`#FB7185`,`#F97316`,`#F59E0B`,`#10B981`,`#14B8A6`,`#3B82F6`,`#6366F1`,`#64748B`],ar=[`#FCF5FF`,`#FDF2F8`,`#FFF1F2`,`#FFF7ED`,`#FFFBEB`,`#ECFDF5`,`#F0FDFA`,`#EFF6FF`,`#EEF2FF`,`#F8FAFC`],or=[...ir,`#06B6D4`,`#84CC16`,`#EAB308`,`#94A3B8`,`#334155`],sr=[...ar,`#ECFEFF`,`#F7FEE7`,`#FEFCE8`,`#F1F5F9`,`#E2E8F0`],cr=(0,t.ref)([`#38A169`,`#1DA1F2`]),lr=(0,t.ref)([`#FFF3C4`,`#D8F4E5`]),ur=(0,t.ref)([]),dr=(0,t.ref)(null),fr=new Set,pr=``,mr=(0,t.ref)(0),hr=(0,t.ref)(0),gr=(0,t.ref)(null),_r=(0,t.ref)(null),vr=(0,t.ref)(!1),yr=(0,t.ref)([]),br=(0,t.ref)(null),xr=(0,t.ref)(null),Sr=(0,t.ref)(null),Cr=(0,t.ref)(null),wr=(0,t.ref)(null),j=(0,t.ref)(null),Tr=(0,t.ref)(null),Er=(0,t.ref)(null),Dr=(0,t.ref)(null);(0,t.watch)(j,()=>{Dr.value=null});let Or=(0,t.ref)(null),M=null,kr=(0,t.ref)(null),Ar=(0,t.ref)(null),jr=[null,`#F3F4F6`,`#FDE2E2`,`#FCEFD8`,`#FEF3C7`,`#D9F99D`,`#DCFCE7`,`#DBEAFE`,`#E9D5FF`,`#E5E7EB`,`#D1D5DB`,`#F8B4B4`,`#FCD9BD`,`#FDE68A`,`#BEF264`,`#86EFAC`,`#A5B4FC`,`#C4B5FD`],Mr=(0,t.computed)(()=>u.modelValue?u.modelValue:u.collaboration&&er(`collaboration`)?{type:`doc`,content:[{type:`paragraph`}]}:{type:`doc`,content:[{type:`paragraph`,content:[{type:`text`,text:`分隔符苟富贵下饭`}]}]}),Nr=(0,t.computed)(()=>Fe.value||u.mode===`preview`),Pr=(0,t.computed)(()=>u.editable&&!Nr.value),Fr=(0,t.computed)(()=>u.showToolbar&&!Nr.value),Ir=(0,t.computed)(()=>er(`comments`)),Lr=(0,t.computed)(()=>u.showOutline?sg(u.outlinePlacement,Xn.value):null),Rr=(0,t.computed)(()=>Lr.value??u.outlinePlacement),zr=(0,t.computed)(()=>!!Lr.value),Br=(0,t.computed)(()=>er(`watermark`)),Vr=(0,t.computed)(()=>er(`collaboration`)),Hr=(0,t.computed)(()=>Vr.value?u.collaboration:null),Ur=(0,t.computed)(()=>u.mention&&er(`mention`)),Wr=(0,t.computed)(()=>u.commentMention!==!1&&er(`mention`)),Gr=(0,t.computed)(()=>(Ir.value?u.comments??[]:[]).filter(e=>!!e&&typeof e.id==`string`&&!!e.id.trim()).map(e=>({...e,comments:Array.isArray(e.comments)?e.comments:[]}))),Kr=(0,t.computed)(()=>Gr.value.filter(e=>e.status!==`resolved`)),qr=(0,t.computed)(()=>{if(u.commentUser?.id&&u.commentUser.name)return u.commentUser;let e=Hr.value?.user;if(!e)return null;let t=e,n=String(t.id??t.userId??t.clientUniqueCode??e.name??``).trim(),r=String(t.name??t.userName??t.displayName??n).trim();return!n||!r?null:{...t,id:n,name:r,color:typeof t.color==`string`&&t.color?t.color:`#4c7dff`}}),Jr=(0,t.computed)(()=>{let e=[...Kr.value],t=wt.value;return t&&!e.some(e=>e.id===t.id)&&e.unshift({id:t.id,anchorText:t.anchorText,status:`open`,comments:[]}),e}),Yr=(0,t.computed)(()=>Ir.value&&u.showComments),N=(0,t.computed)(()=>`评论 (${Kr.value.length})`),Xr=(0,t.computed)(()=>{if(gt.value){let e=Jr.value.find(e=>e.id===gt.value);if(e)return e}return Jr.value[0]??null}),Zr=(0,t.computed)(()=>zn.filter(e=>ag(e.key,Qn.value)).map(e=>({...e,label:rr(e.key)}))),Qr=(0,t.computed)(()=>Hn.filter(e=>ag(e.key,Qn.value)).map(e=>({...e,label:rr(e.key)}))),$r=(0,t.computed)(()=>Un.filter(e=>ag(e.key,Qn.value)).map(e=>({...e,label:rr(e.key)}))),ei=(0,t.computed)(()=>Zr.value.length>0||Qr.value.length>0||$r.value.length>0),ti=(0,t.computed)(()=>ag(`emoji`,Qn.value)),ni=(0,t.computed)(()=>ag(`blockquote`,$n.value)),ri=(0,t.computed)(()=>[{key:`pdf`,label:nr(`export.pdf`),iconName:`pdfdaochu`,loadingLabel:nr(`export.pdf.loading`),onClick:xs},{key:`html`,label:nr(`export.html`),iconName:`wangye`,loadingLabel:nr(`export.html.loading`),onClick:Ts},{key:`image`,label:nr(`export.image`),iconName:`tupiandaochu`,loadingLabel:nr(`export.image.loading`),onClick:bs}].filter(e=>ag(e.key,Zn.value))),ii=(0,t.computed)(()=>ag(`print`,Zn.value)),ai=(0,t.computed)(()=>ri.value.length>0);(0,t.computed)(()=>nr(`countdown.settingsTitle`)),(0,t.computed)(()=>nr(`formula.insertTitle`));let oi=(0,t.computed)(()=>nr(`insert.label`)),si=(0,t.computed)(()=>nr(`insert.section.general`)),ci=(0,t.computed)(()=>nr(`insert.section.apps`)),li=(0,t.computed)(()=>nr(`insert.section.external`)),ui=(0,t.computed)(()=>V.value?.isActive(`blockquote`)?nr(`quote.cancel`):nr(`quote.apply`)),di=(0,t.computed)(()=>nr(`quote.borderColor`)),fi=(0,t.computed)(()=>nr(`quote.backgroundColor`)),pi=(0,t.computed)(()=>nr(`export.label`)),mi=(0,t.computed)(()=>Lt.value===`print`?nr(`print.loading`):nr(`print.label`)),hi=(0,t.computed)(()=>nr(`outline.label`)),gi=(0,t.computed)(()=>nr(`outline.collapse`)),_i=(0,t.computed)(()=>nr(`outline.empty.description`)),vi=(0,t.computed)(()=>nr(`outline.empty.tip`)),yi=(0,t.computed)(()=>`字数: ${Va.value}`),bi=(0,t.computed)(()=>`行数: ${Ha.value}`),xi=(0,t.computed)(()=>Fe.value?nr(`status.presentation.exit`):nr(`status.presentation.enter`)),P=(0,t.computed)(()=>Pe.value?nr(`status.fullscreen.exit`):nr(`status.fullscreen.enter`)),F=(0,t.computed)(()=>{if(!Nr.value)return 1;let e=Math.max(320,ze.value-32);return Math.min(1,e/yw)}),I=(0,t.computed)(()=>({left:`${mr.value}px`,top:`${hr.value}px`})),L=(0,t.computed)(()=>{if(!v.value||!gr.value||!_r.value)return null;let e=v.value.getBoundingClientRect(),t=ha.value||1,n=(Math.min(gr.value.x,_r.value.x)-e.left)/t,r=(Math.min(gr.value.y,_r.value.y)-e.top)/t,i=(Math.max(gr.value.x,_r.value.x)-e.left)/t,a=(Math.max(gr.value.y,_r.value.y)-e.top)/t,o=Math.max(0,Math.min(yw,n)),s=Math.max(0,Math.min(Math.max(v.value.scrollHeight,bw),r)),c=Math.max(0,Math.min(yw,i)),l=Math.max(0,Math.min(Math.max(v.value.scrollHeight,bw),a));return{left:Math.min(o,c),top:Math.min(s,l),width:Math.max(0,Math.abs(c-o)),height:Math.max(0,Math.abs(l-s))}}),R=(0,t.computed)(()=>{if(!V.value||!v.value||!yr.value.length)return[];let e=new Set(yr.value),t=v.value.getBoundingClientRect(),n=ha.value||1,r=[];return V.value.state.doc.forEach((i,a)=>{if(!e.has(a))return;let o=V.value?.view.nodeDOM(a);if(!(o instanceof HTMLElement))return;let s=o.getBoundingClientRect();r.push({pos:a,from:a,to:a+i.nodeSize,node:i,dom:o,rect:{left:(s.left-t.left)/n,top:(s.top-t.top)/n,width:s.width/n,height:s.height/n}})}),r.sort((e,t)=>e.pos-t.pos)}),Si=(0,t.computed)(()=>R.value.length>0),z=(0,t.computed)(()=>lt.value===`all`?ut.value:ut.value.filter(e=>e.type===lt.value)),Ci=(0,t.computed)(()=>z.value[dt.value]??null),wi=(0,t.computed)(()=>({left:`${pt.value.left}px`,top:`${pt.value.top}px`})),B=(0,t.computed)(()=>jt.value===`all`?Mt.value:Mt.value.filter(e=>e.type===jt.value)),Ti=(0,t.computed)(()=>B.value[Nt.value]??null),Ei=(0,t.computed)(()=>({left:`${Pt.value.left}px`,top:`${Pt.value.top}px`})),V=eg({content:Mr.value,editable:Pr.value,placeholder:u.placeholder,collaboration:Hr.value,uploadImage:f,uploadVideo:p,onUploadError:Jo,mention:Ur,onLocalFileClick:e=>{d(`local-file-click`,e)},onLocalFileDownload:e=>{d(`local-file-download`,e)},onMentionClick:e=>{Ur.value&&d(`mention-item-click`,e)},onMentionTrigger:()=>{Ur.value&&Pi()},onMentionKeyDown:e=>Vi(e),onUpdate:e=>{d(`update:modelValue`,e),d(`change`,e)}}),H=0;function Di(e){let t=String(e?.id??``).trim(),n=String(e?.name??``).trim(),r=Number(e?.type??1)===2?2:1;return!t||!n?null:{...e,id:t,name:n,type:r,avatar:e.avatar?String(e.avatar):void 0,icon:e.icon?String(e.icon):void 0,tag:e.tag?String(e.tag):void 0,updatedAt:e.updatedAt?String(e.updatedAt):void 0}}function U(e){return{...e,type:Number(e.type)===2?2:1}}function Oi(e){return e.type===1?ef(e.name):`文`}function ki(e){return e.type===1?nf(e.id):void 0}function Ai(){if(!V.value)return null;let{selection:e,doc:t}=V.value.state;if(!e.empty)return null;let n=e.$from;if(!n.parent.isTextblock)return null;let r=n.start(),i=t.textBetween(r,n.pos,`
|
|
7809
|
+
.`+_c+hc+vc)},bc=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement(`style`);r.textContent=t,e.appendChild(r)}},xc=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):`about:blank`},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement(`a`),e._origin=e.getOrigin(t.location.href)},e._origin=`about:blank`,e}(),Sc=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(kc(e)||Ec(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o=this;return i(this,function(i){switch(i.label){case 0:return t=xc.isSameOrigin(e),n=!Dc(e)&&this._options.useCORS===!0&&Fo.SUPPORT_CORS_IMAGES&&!t,r=!Dc(e)&&!t&&!kc(e)&&typeof this._options.proxy==`string`&&Fo.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Dc(e)&&!kc(e)&&!r&&!n?[2]:(a=e,r?[4,this.proxy(a)]:[3,2]);case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug(`Added image `+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Oc(a)||n)&&(r.crossOrigin=`anonymous`),r.src=a,r.complete===!0&&setTimeout(function(){return e(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return t(`Timed out (`+o._options.imageTimeout+`ms) loading image`)},o._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return this._cache[e]!==void 0},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw Error(`No proxy defined`);var r=e.substring(0,256);return new Promise(function(i,a){var o=Fo.SUPPORT_RESPONSE_TYPE?`blob`:`text`,s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o===`text`)i(s.response);else{var e=new FileReader;e.addEventListener(`load`,function(){return i(e.result)},!1),e.addEventListener(`error`,function(e){return a(e)},!1),e.readAsDataURL(s.response)}else a(`Failed to proxy resource `+r+` with status code `+s.status)},s.onerror=a;var c=n.indexOf(`?`)>-1?`&`:`?`;if(s.open(`GET`,``+n+c+`url=`+encodeURIComponent(e)+`&responseType=`+o),o!==`text`&&s instanceof XMLHttpRequest&&(s.responseType=o),t._options.imageTimeout){var l=t._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a(`Timed out (`+l+`ms) proxying `+r)}}s.send()})},e}(),Cc=/^data:image\/svg\+xml/i,wc=/^data:image\/.*;base64,/i,Tc=/^data:image\/.*/i,Ec=function(e){return Fo.SUPPORT_SVG_DRAWING||!Ac(e)},Dc=function(e){return Tc.test(e)},Oc=function(e){return wc.test(e)},kc=function(e){return e.substr(0,4)===`blob`},Ac=function(e){return e.substr(-3).toLowerCase()===`svg`||Cc.test(e)},X=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),jc=function(e,t,n){return new X(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Mc=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=jc(this.start,this.startControl,t),i=jc(this.startControl,this.endControl,t),a=jc(this.endControl,this.end,t),o=jc(r,i,t),s=jc(i,a,t),c=jc(o,s,t);return n?new e(this.start,r,o,c):new e(c,s,a,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Nc=function(e){return e.type===1},Pc=function(){function e(e){var t=e.styles,n=e.bounds,r=_r(t.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=_r(t.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=_r(t.borderBottomRightRadius,n.width,n.height),u=l[0],d=l[1],f=_r(t.borderBottomLeftRadius,n.width,n.height),p=f[0],m=f[1],h=[];h.push((i+s)/n.width),h.push((p+u)/n.width),h.push((a+m)/n.height),h.push((c+d)/n.height);var g=Math.max.apply(Math,h);g>1&&(i/=g,a/=g,s/=g,c/=g,u/=g,d/=g,p/=g,m/=g);var _=n.width-s,v=n.height-d,y=n.width-u,b=n.height-m,x=t.borderTopWidth,S=t.borderRightWidth,C=t.borderBottomWidth,w=t.borderLeftWidth,T=vr(t.paddingTop,e.bounds.width),E=vr(t.paddingRight,e.bounds.width),ee=vr(t.paddingBottom,e.bounds.width),te=vr(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Ic(n.left+w/3,n.top+x/3,i-w/3,a-x/3,Fc.TOP_LEFT):new X(n.left+w/3,n.top+x/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Ic(n.left+_,n.top+x/3,s-S/3,c-x/3,Fc.TOP_RIGHT):new X(n.left+n.width-S/3,n.top+x/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?Ic(n.left+y,n.top+v,u-S/3,d-C/3,Fc.BOTTOM_RIGHT):new X(n.left+n.width-S/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=p>0||m>0?Ic(n.left+w/3,n.top+b,p-w/3,m-C/3,Fc.BOTTOM_LEFT):new X(n.left+w/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Ic(n.left+w*2/3,n.top+x*2/3,i-w*2/3,a-x*2/3,Fc.TOP_LEFT):new X(n.left+w*2/3,n.top+x*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Ic(n.left+_,n.top+x*2/3,s-S*2/3,c-x*2/3,Fc.TOP_RIGHT):new X(n.left+n.width-S*2/3,n.top+x*2/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?Ic(n.left+y,n.top+v,u-S*2/3,d-C*2/3,Fc.BOTTOM_RIGHT):new X(n.left+n.width-S*2/3,n.top+n.height-C*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||m>0?Ic(n.left+w*2/3,n.top+b,p-w*2/3,m-C*2/3,Fc.BOTTOM_LEFT):new X(n.left+w*2/3,n.top+n.height-C*2/3),this.topLeftBorderStroke=i>0||a>0?Ic(n.left+w/2,n.top+x/2,i-w/2,a-x/2,Fc.TOP_LEFT):new X(n.left+w/2,n.top+x/2),this.topRightBorderStroke=i>0||a>0?Ic(n.left+_,n.top+x/2,s-S/2,c-x/2,Fc.TOP_RIGHT):new X(n.left+n.width-S/2,n.top+x/2),this.bottomRightBorderStroke=u>0||d>0?Ic(n.left+y,n.top+v,u-S/2,d-C/2,Fc.BOTTOM_RIGHT):new X(n.left+n.width-S/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=p>0||m>0?Ic(n.left+w/2,n.top+b,p-w/2,m-C/2,Fc.BOTTOM_LEFT):new X(n.left+w/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||a>0?Ic(n.left,n.top,i,a,Fc.TOP_LEFT):new X(n.left,n.top),this.topRightBorderBox=s>0||c>0?Ic(n.left+_,n.top,s,c,Fc.TOP_RIGHT):new X(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?Ic(n.left+y,n.top+v,u,d,Fc.BOTTOM_RIGHT):new X(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||m>0?Ic(n.left,n.top+b,p,m,Fc.BOTTOM_LEFT):new X(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Ic(n.left+w,n.top+x,Math.max(0,i-w),Math.max(0,a-x),Fc.TOP_LEFT):new X(n.left+w,n.top+x),this.topRightPaddingBox=s>0||c>0?Ic(n.left+Math.min(_,n.width-S),n.top+x,_>n.width+S?0:Math.max(0,s-S),Math.max(0,c-x),Fc.TOP_RIGHT):new X(n.left+n.width-S,n.top+x),this.bottomRightPaddingBox=u>0||d>0?Ic(n.left+Math.min(y,n.width-w),n.top+Math.min(v,n.height-C),Math.max(0,u-S),Math.max(0,d-C),Fc.BOTTOM_RIGHT):new X(n.left+n.width-S,n.top+n.height-C),this.bottomLeftPaddingBox=p>0||m>0?Ic(n.left+w,n.top+Math.min(b,n.height-C),Math.max(0,p-w),Math.max(0,m-C),Fc.BOTTOM_LEFT):new X(n.left+w,n.top+n.height-C),this.topLeftContentBox=i>0||a>0?Ic(n.left+w+te,n.top+x+T,Math.max(0,i-(w+te)),Math.max(0,a-(x+T)),Fc.TOP_LEFT):new X(n.left+w+te,n.top+x+T),this.topRightContentBox=s>0||c>0?Ic(n.left+Math.min(_,n.width+w+te),n.top+x+T,_>n.width+w+te?0:s-w+te,c-(x+T),Fc.TOP_RIGHT):new X(n.left+n.width-(S+E),n.top+x+T),this.bottomRightContentBox=u>0||d>0?Ic(n.left+Math.min(y,n.width-(w+te)),n.top+Math.min(v,n.height+x+T),Math.max(0,u-(S+E)),d-(C+ee),Fc.BOTTOM_RIGHT):new X(n.left+n.width-(S+E),n.top+n.height-(C+ee)),this.bottomLeftContentBox=p>0||m>0?Ic(n.left+w+te,n.top+b,Math.max(0,p-(w+te)),m-(C+ee),Fc.BOTTOM_LEFT):new X(n.left+w+te,n.top+n.height-(C+ee))}return e}(),Fc;(function(e){e[e.TOP_LEFT=0]=`TOP_LEFT`,e[e.TOP_RIGHT=1]=`TOP_RIGHT`,e[e.BOTTOM_RIGHT=2]=`BOTTOM_RIGHT`,e[e.BOTTOM_LEFT=3]=`BOTTOM_LEFT`})(Fc||={});var Ic=function(e,t,n,r,i){var a=4*((Math.sqrt(2)-1)/3),o=n*a,s=r*a,c=e+n,l=t+r;switch(i){case Fc.TOP_LEFT:return new Mc(new X(e,l),new X(e,l-s),new X(c-o,t),new X(c,t));case Fc.TOP_RIGHT:return new Mc(new X(e,t),new X(e+o,t),new X(c,l-s),new X(c,l));case Fc.BOTTOM_RIGHT:return new Mc(new X(c,t),new X(c,t+s),new X(e+o,l),new X(e,l));case Fc.BOTTOM_LEFT:default:return new Mc(new X(c,l),new X(c-o,l),new X(e,t+s),new X(e,t))}},Lc=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Rc=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},zc=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Bc=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Vc=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Hc=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Uc=function(e){return e.type===0},Wc=function(e){return e.type===1},Gc=function(e){return e.type===2},Kc=function(e,t){return e.length===t.length?e.some(function(e,n){return e===t[n]}):!1},qc=function(e,t,n,r,i){return e.map(function(e,a){switch(a){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e})},Jc=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),Yc=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Pc(this.container),this.container.styles.opacity<1&&this.effects.push(new Hc(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Bc(n,r,i))}if(this.container.styles.overflowX!==0){var a=Lc(this.curves),o=zc(this.curves);Kc(a,o)?this.effects.push(new Vc(a,6)):(this.effects.push(new Vc(a,2)),this.effects.push(new Vc(o,4)))}}return e.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!Wc(e)});if(t||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=Lc(n.curves),o=zc(n.curves);Kc(a,o)||r.unshift(new Vc(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return _a(t.target,e)})},e}(),Xc=function(e,t,n,r){e.container.elements.forEach(function(i){var a=_a(i.flags,4),o=_a(i.flags,2),s=new Yc(i,e);_a(i.styles.display,2048)&&r.push(s);var c=_a(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:t,u=new Jc(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var d=i.styles.zIndex.order;if(d<0){var f=0;l.negativeZIndex.some(function(e,t){return d>e.element.container.styles.zIndex.order?(f=t,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(d>0){var p=0;l.positiveZIndex.some(function(e,t){return d>=e.element.container.styles.zIndex.order?(p=t+1,!1):p>0}),l.positiveZIndex.splice(p,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Xc(s,u,a?u:n,c)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Xc(s,t,n,c);_a(i.flags,8)&&Zc(i,c)})},Zc=function(e,t){for(var n=e instanceof $o?e.start:1,r=e instanceof $o?e.reversed:!1,i=0;i<t.length;i++){var a=t[i];a.container instanceof Qo&&typeof a.container.value==`number`&&a.container.value!==0&&(n=a.container.value),a.listValue=tc(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},Qc=function(e){var t=new Yc(e,null),n=new Jc(t),r=[];return Xc(t,n,n,r),Zc(t.container,r),n},$c=function(e,t){switch(t){case 0:return il(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return il(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return il(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return il(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},el=function(e,t){switch(t){case 0:return il(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return il(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return il(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return il(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},tl=function(e,t){switch(t){case 0:return il(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return il(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return il(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return il(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},nl=function(e,t){switch(t){case 0:return rl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return rl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return rl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return rl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},rl=function(e,t){var n=[];return Nc(e)?n.push(e.subdivide(.5,!1)):n.push(e),Nc(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},il=function(e,t,n,r){var i=[];return Nc(e)?i.push(e.subdivide(.5,!1)):i.push(e),Nc(n)?i.push(n.subdivide(.5,!0)):i.push(n),Nc(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Nc(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},al=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},ol=function(e){var t=e.styles,n=e.bounds,r=vr(t.paddingLeft,n.width),i=vr(t.paddingRight,n.width),a=vr(t.paddingTop,n.width),o=vr(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+a+o))},sl=function(e,t){return e===0?t.bounds:e===2?ol(t):al(t)},cl=function(e,t){return e===0?t.bounds:e===2?ol(t):al(t)},ll=function(e,t,n){var r=sl(pl(e.styles.backgroundOrigin,t),e),i=cl(pl(e.styles.backgroundClip,t),e),a=fl(pl(e.styles.backgroundSize,t),n,r),o=a[0],s=a[1],c=_r(pl(e.styles.backgroundPosition,t),r.width-o,r.height-s);return[ml(pl(e.styles.backgroundRepeat,t),c,a,r,i),Math.round(r.left+c[0]),Math.round(r.top+c[1]),o,s]},ul=function(e){return ir(e)&&e.value===pi.AUTO},dl=function(e){return typeof e==`number`},fl=function(e,t,n){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1];if(!o)return[0,0];if(fr(o)&&s&&fr(s))return[vr(o,n.width),vr(s,n.height)];var c=dl(a);if(ir(o)&&(o.value===pi.CONTAIN||o.value===pi.COVER))return dl(a)?n.width/n.height<a==(o.value===pi.COVER)?[n.height*a,n.height]:[n.width,n.width/a]:[n.width,n.height];var l=dl(r),u=dl(i),d=l||u;if(ul(o)&&(!s||ul(s)))return l&&u?[r,i]:!c&&!d?[n.width,n.height]:d&&c?[l?r:i*a,u?i:r/a]:[l?r:n.width,u?i:n.height];if(c){var f=0,p=0;return fr(o)?f=vr(o,n.width):fr(s)&&(p=vr(s,n.height)),ul(o)?f=p*a:(!s||ul(s))&&(p=f/a),[f,p]}var m=null,h=null;if(fr(o)?m=vr(o,n.width):s&&fr(s)&&(h=vr(s,n.height)),m!==null&&(!s||ul(s))&&(h=l&&u?m/r*i:n.height),h!==null&&ul(o)&&(m=l&&u?h/i*r:n.width),m!==null&&h!==null)return[m,h];throw Error(`Unable to calculate background-size for element`)},pl=function(e,t){var n=e[t];return n===void 0?e[0]:n},ml=function(e,t,n,r,i){var a=t[0],o=t[1],s=n[0],c=n[1];switch(e){case 2:return[new X(Math.round(r.left),Math.round(r.top+o)),new X(Math.round(r.left+r.width),Math.round(r.top+o)),new X(Math.round(r.left+r.width),Math.round(c+r.top+o)),new X(Math.round(r.left),Math.round(c+r.top+o))];case 3:return[new X(Math.round(r.left+a),Math.round(r.top)),new X(Math.round(r.left+a+s),Math.round(r.top)),new X(Math.round(r.left+a+s),Math.round(r.height+r.top)),new X(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new X(Math.round(r.left+a),Math.round(r.top+o)),new X(Math.round(r.left+a+s),Math.round(r.top+o)),new X(Math.round(r.left+a+s),Math.round(r.top+o+c)),new X(Math.round(r.left+a),Math.round(r.top+o+c))];default:return[new X(Math.round(i.left),Math.round(i.top)),new X(Math.round(i.left+i.width),Math.round(i.top)),new X(Math.round(i.left+i.width),Math.round(i.height+i.top)),new X(Math.round(i.left),Math.round(i.height+i.top))]}},hl=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`,gl=`Hidden Text`,_l=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement(`div`),r=this._document.createElement(`img`),i=this._document.createElement(`span`),a=this._document.body;n.style.visibility=`hidden`,n.style.fontFamily=e,n.style.fontSize=t,n.style.margin=`0`,n.style.padding=`0`,n.style.whiteSpace=`nowrap`,a.appendChild(n),r.src=hl,r.width=1,r.height=1,r.style.margin=`0`,r.style.padding=`0`,r.style.verticalAlign=`baseline`,i.style.fontFamily=e,i.style.fontSize=t,i.style.margin=`0`,i.style.padding=`0`,i.appendChild(this._document.createTextNode(gl)),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(gl)),n.style.lineHeight=`normal`,r.style.verticalAlign=`super`;var s=r.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:o,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+` `+t;return this._data[n]===void 0&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),vl=function(){function e(e,t){this.context=e,this.options=t}return e}(),yl=1e4,bl=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement(`canvas`),r.ctx=r.canvas.getContext(`2d`),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+`px`,r.canvas.style.height=n.height+`px`),r.fontMetrics=new _l(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline=`bottom`,r._activeEffects=[],r.context.logger.debug(`Canvas renderer initialized (`+n.width+`x`+n.height+`) with scale `+n.scale),r}return n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),Gc(e)&&(this.ctx.globalAlpha=e.opacity),Uc(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Wc(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:if(_a(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;t===0?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):Bo(e.text).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return e===`normal`||e===`small-caps`}).join(``),n=Tl(e.fontFamily).join(`, `),r=nr(e.fontSize)?``+e.fontSize.number+e.fontSize.unit:e.fontSize.number+`px`;return[[e.fontStyle,t,e.fontWeight,r,n].join(` `),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,a,o,s,c,l,u,d=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[0],a=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=t.direction===1?`rtl`:`ltr`,this.ctx.textAlign=`left`,this.ctx.textBaseline=`alphabetic`,s=this.fontMetrics.getMetrics(a,o),c=s.baseline,l=s.middle,u=t.paintOrder,e.textBounds.forEach(function(e){u.forEach(function(n){switch(n){case 0:d.ctx.fillStyle=Or(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,c);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){d.ctx.shadowColor=Or(n.color),d.ctx.shadowOffsetX=n.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=n.offsetY.number*d.options.scale,d.ctx.shadowBlur=n.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,c)}),d.ctx.shadowColor=``,d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=Or(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+c),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+l),e.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=Or(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?`miter`:`round`,d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+c)),d.ctx.strokeStyle=``,d.ctx.lineWidth=0,d.ctx.lineJoin=`miter`;break}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=ol(e),i=zc(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,a,s,c,l,u,u,d,f,p,m,h,g,_,v,y,b,x,u,S,h,v;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,a=t.styles,s=0,c=t.textNodes,i.label=1;case 1:return s<c.length?(l=c[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof Yo))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return u=i.sent(),this.renderReplacedElement(t,r,u),[3,8];case 7:return i.sent(),this.context.logger.error(`Error loading image `+t.src),[3,8];case 8:if(t instanceof Xo&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Zo))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return u=i.sent(),this.renderReplacedElement(t,r,u),[3,12];case 11:return i.sent(),this.context.logger.error(`Error loading svg `+t.svg.substring(0,255)),[3,12];case 12:return t instanceof ds&&t.tree?(d=new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,d.render(t.tree)]):[3,14];case 13:f=i.sent(),t.width&&t.height&&this.ctx.drawImage(f,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof cs&&(p=Math.min(t.bounds.width,t.bounds.height),t.type===is?t.checked&&(this.ctx.save(),this.path([new X(t.bounds.left+p*.39363,t.bounds.top+p*.79),new X(t.bounds.left+p*.16,t.bounds.top+p*.5549),new X(t.bounds.left+p*.27347,t.bounds.top+p*.44071),new X(t.bounds.left+p*.39694,t.bounds.top+p*.5649),new X(t.bounds.left+p*.72983,t.bounds.top+p*.23),new X(t.bounds.left+p*.84,t.bounds.top+p*.34085),new X(t.bounds.left+p*.39363,t.bounds.top+p*.79)]),this.ctx.fillStyle=Or(ss),this.ctx.fill(),this.ctx.restore()):t.type===as&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+p/2,t.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Or(ss),this.ctx.fill(),this.ctx.restore())),xl(t)&&t.value.length){switch(m=this.createFontStyle(a),h=m[0],g=m[1],_=this.fontMetrics.getMetrics(h,g).baseline,this.ctx.font=h,this.ctx.fillStyle=Or(a.color),this.ctx.textBaseline=`alphabetic`,this.ctx.textAlign=Cl(t.styles.textAlign),v=ol(t),y=0,t.styles.textAlign){case 1:y+=v.width/2;break;case 2:y+=v.width;break}b=v.add(y,0,0,-v.height/2+1),this.ctx.save(),this.path([new X(v.left,v.top),new X(v.left+v.width,v.top),new X(v.left+v.width,v.top+v.height),new X(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Io(t.value,b),a.letterSpacing,_),this.ctx.restore(),this.ctx.textBaseline=`alphabetic`,this.ctx.textAlign=`left`}if(!_a(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(x=t.styles.listStyleImage,x.type!==0)return[3,18];u=void 0,S=x.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return u=i.sent(),this.ctx.drawImage(u,t.bounds.left-(u.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error(`Error loading list-style-image `+S),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==-1&&(h=this.createFontStyle(a)[0],this.ctx.font=h,this.ctx.fillStyle=Or(a.color),this.ctx.textBaseline=`middle`,this.ctx.textAlign=`right`,v=new o(t.bounds.left,t.bounds.top+vr(t.styles.paddingTop,t.bounds.width),t.bounds.width,Fi(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Io(e.listValue,v),a.letterSpacing,Fi(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline=`bottom`,this.ctx.textAlign=`left`),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,r,s,c,r,l,u,r,d,f,r,p,m,r,h,g,r;return i(this,function(i){switch(i.label){case 0:if(_a(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?(r=n[t],[4,this.renderStack(r)]):[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),a=0,o=e.nonInlineLevel,i.label=7;case 7:return a<o.length?(r=o[a],[4,this.renderNode(r)]):[3,10];case 8:i.sent(),i.label=9;case 9:return a++,[3,7];case 10:s=0,c=e.nonPositionedFloats,i.label=11;case 11:return s<c.length?(r=c[s],[4,this.renderStack(r)]):[3,14];case 12:i.sent(),i.label=13;case 13:return s++,[3,11];case 14:l=0,u=e.nonPositionedInlineLevel,i.label=15;case 15:return l<u.length?(r=u[l],[4,this.renderStack(r)]):[3,18];case 16:i.sent(),i.label=17;case 17:return l++,[3,15];case 18:d=0,f=e.inlineLevel,i.label=19;case 19:return d<f.length?(r=f[d],[4,this.renderNode(r)]):[3,22];case 20:i.sent(),i.label=21;case 21:return d++,[3,19];case 22:p=0,m=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return p<m.length?(r=m[p],[4,this.renderStack(r)]):[3,26];case 24:i.sent(),i.label=25;case 25:return p++,[3,23];case 26:h=0,g=e.positiveZIndex,i.label=27;case 27:return h<g.length?(r=g[h],[4,this.renderStack(r)]):[3,30];case 28:i.sent(),i.label=29;case 29:return h++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Nc(e)?e.start:e;n===0?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Nc(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){if(e.width===t&&e.height===n)return e;var r=(this.canvas.ownerDocument??document).createElement(`canvas`);return r.width=Math.max(1,t),r.height=Math.max(1,n),r.getContext(`2d`).drawImage(e,0,0,e.width,e.height,0,0,t,n),r},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,s;return i(this,function(c){switch(c.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var a,o,s,c,l,u,d,f,p,m,c,l,u,d,f,h,g,_,v,y,b,x,S,C,p,w,c,T,E,d,f,ee,l,u,te,D,ne,re,ie,O,ae,oe;return i(this,function(i){switch(i.label){case 0:if(n.type!==0)return[3,5];a=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error(`Error loading background-image `+o),[3,4];case 4:return a&&(s=ll(e,t,[a.width,a.height,a.width/a.height]),c=s[0],l=s[1],u=s[2],d=s[3],f=s[4],p=r.ctx.createPattern(r.resizeImage(a,d,f),`repeat`),r.renderRepeat(c,p,l,u)),[3,6];case 5:ri(n)?(m=ll(e,t,[null,null,null]),c=m[0],l=m[1],u=m[2],d=m[3],f=m[4],h=Vr(n.angle,d,f),g=h[0],_=h[1],v=h[2],y=h[3],b=h[4],x=document.createElement(`canvas`),x.width=d,x.height=f,S=x.getContext(`2d`),C=S.createLinearGradient(_,y,v,b),zr(n.stops,g).forEach(function(e){return C.addColorStop(e.stop,Or(e.color))}),S.fillStyle=C,S.fillRect(0,0,d,f),d>0&&f>0&&(p=r.ctx.createPattern(x,`repeat`),r.renderRepeat(c,p,l,u))):ii(n)&&(w=ll(e,t,[null,null,null]),c=w[0],T=w[1],E=w[2],d=w[3],f=w[4],ee=n.position.length===0?[hr]:n.position,l=vr(ee[0],d),u=vr(ee[ee.length-1],f),te=Wr(n,l,u,d,f),D=te[0],ne=te[1],D>0&&ne>0&&(re=r.ctx.createRadialGradient(T+l,E+u,0,T+l,E+u,D),zr(n.stops,D*2).forEach(function(e){return re.addColorStop(e.stop,Or(e.color))}),r.path(c),r.ctx.fillStyle=re,D===ne?r.ctx.fill():(ie=e.bounds.left+.5*e.bounds.width,O=e.bounds.top+.5*e.bounds.height,ae=ne/D,oe=1/ae,r.ctx.save(),r.ctx.translate(ie,O),r.ctx.transform(1,0,0,ae,0,0),r.ctx.translate(-ie,-O),r.ctx.fillRect(T,oe*(E-O)+O,d,f*oe),r.ctx.restore()))),i.label=6;case 6:return t--,[2]}})},r=this,a=0,o=e.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a<o.length?(s=o[a],[5,n(s)]):[3,4];case 2:c.sent(),c.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path($c(n,t)),this.ctx.fillStyle=Or(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,a){return r(this,void 0,void 0,function(){var r,o;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,a)]:[3,2];case 1:return i.sent(),[2];case 2:return r=el(a,n),this.path(r),this.ctx.fillStyle=Or(e),this.ctx.fill(),o=tl(a,n),this.path(o),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,a,o,s,c,l,u=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!Dr(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],a=Sl(pl(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),Dr(t.backgroundColor)||(this.ctx.fillStyle=Or(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n=Lc(e.curves),r=t.inset?0:yl,i=qc(n,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(u.path(n),u.ctx.clip(),u.mask(i)):(u.mask(n),u.ctx.clip(),u.path(i)),u.ctx.shadowOffsetX=t.offsetX.number+r,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=Or(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?Or(t.color):`rgba(0,0,0,1)`,u.ctx.fill(),u.ctx.restore()}),i.label=2;case 2:o=0,s=0,c=r,i.label=3;case 3:return s<c.length?(l=c[s],l.style!==0&&!Dr(l.color)&&l.width>0?l.style===2?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return l.style===3?[4,this.renderDashedDottedBorder(l.color,l.width,o,e.curves,3)]:[3,7];case 6:return i.sent(),[3,11];case 7:return l.style===4?[4,this.renderDoubleBorder(l.color,l.width,o,e.curves)]:[3,9];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,e.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,a,o){return r(this,void 0,void 0,function(){var r,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,b,x;return i(this,function(i){return this.ctx.save(),r=nl(a,n),s=$c(a,n),o===2&&(this.path(s),this.ctx.clip()),Nc(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),Nc(s[1])?(u=s[1].end.x,d=s[1].end.y):(u=s[1].x,d=s[1].y),f=Math.abs(n===0||n===2?c-u:l-d),this.ctx.beginPath(),o===3?this.formatPath(r):this.formatPath(s.slice(0,2)),p=t<3?t*3:t*2,m=t<3?t*2:t,o===3&&(p=t,m=t),h=!0,f<=p*2?h=!1:f<=p*2+m?(g=f/(2*p+m),p*=g,m*=g):(_=Math.floor((f+m)/(p+m)),v=(f-_*p)/(_-1),y=(f-(_+1)*p)/_,m=y<=0||Math.abs(m-v)<Math.abs(m-y)?v:y),h&&(o===3?this.ctx.setLineDash([0,p+m]):this.ctx.setLineDash([p,m])),o===3?(this.ctx.lineCap=`round`,this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=Or(e),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Nc(s[0])&&(b=s[3],x=s[0],this.ctx.beginPath(),this.formatPath([new X(b.end.x,b.end.y),new X(x.start.x,x.start.y)]),this.ctx.stroke()),Nc(s[1])&&(b=s[1],x=s[2],this.ctx.beginPath(),this.formatPath([new X(b.end.x,b.end.y),new X(x.start.x,x.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Or(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Qc(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},n}(vl),xl=function(e){return e instanceof us||e instanceof ls?!0:e instanceof cs&&e.type!==as&&e.type!==is},Sl=function(e,t){switch(e){case 0:return Lc(t);case 2:return Rc(t);default:return zc(t)}},Cl=function(e){switch(e){case 1:return`center`;case 2:return`right`;default:return`left`}},wl=[`-apple-system`,`system-ui`],Tl=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return wl.indexOf(e)===-1}):e},El=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement(`canvas`),r.ctx=r.canvas.getContext(`2d`),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+`px`,r.canvas.style.height=n.height+`px`,r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug(`EXPERIMENTAL ForeignObject renderer initialized (`+n.width+`x`+n.height+` at `+n.x+`,`+n.y+`) with scale `+n.scale),r}return n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=No(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Dl(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Or(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(vl),Dl=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Ol=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){var e=[...arguments];this.enabled&&(typeof window<`u`&&window.console&&typeof console.debug==`function`?console.debug.apply(console,a([this.id,this.getTime()+`ms`],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){var e=[...arguments];this.enabled&&typeof window<`u`&&window.console&&typeof console.info==`function`&&console.info.apply(console,a([this.id,this.getTime()+`ms`],e))},e.prototype.warn=function(){var e=[...arguments];this.enabled&&(typeof window<`u`&&window.console&&typeof console.warn==`function`?console.warn.apply(console,a([this.id,this.getTime()+`ms`],e)):this.info.apply(this,e))},e.prototype.error=function(){var e=[...arguments];this.enabled&&(typeof window<`u`&&window.console&&typeof console.error==`function`?console.error.apply(console,a([this.id,this.getTime()+`ms`],e)):this.info.apply(this,e))},e.instances={},e}(),kl=function(){function e(t,n){this.windowBounds=n,this.instanceName=`#`+ e.instanceCount++,this.logger=new Ol({id:this.instanceName,enabled:t.logging}),this.cache=t.cache??new Sc(this,t)}return e.instanceCount=1,e}(),Al=function(e,t){return t===void 0&&(t={}),jl(e,t)};typeof window<`u`&&xc.setContext(window);var jl=function(e,t){return r(void 0,void 0,void 0,function(){var r,a,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,ee,te,ee;return i(this,function(i){switch(i.label){case 0:if(!e||typeof e!=`object`)return[2,Promise.reject(`Invalid element provided as first argument`)];if(r=e.ownerDocument,!r)throw Error(`Element is not attached to a Document`);if(a=r.defaultView,!a)throw Error(`Document is not attached to a Window`);return l={allowTaint:t.allowTaint??!1,imageTimeout:t.imageTimeout??15e3,proxy:t.proxy,useCORS:t.useCORS??!1},u=n({logging:t.logging??!0,cache:t.cache},l),d={windowWidth:t.windowWidth??a.innerWidth,windowHeight:t.windowHeight??a.innerHeight,scrollX:t.scrollX??a.pageXOffset,scrollY:t.scrollY??a.pageYOffset},f=new o(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),p=new kl(u,f),m=t.foreignObjectRendering??!1,h={allowTaint:t.allowTaint??!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:m,copyStyles:m},p.logger.debug(`Starting document clone with size `+f.width+`x`+f.height+` scrolled to `+-f.left+`,`+-f.top),g=new rc(p,e,h),_=g.clonedReferenceElement,_?[4,g.toIFrame(r,f)]:[2,Promise.reject(`Unable to find element in cloned iframe`)];case 1:return v=i.sent(),y=Es(_)||ws(_)?c(_.ownerDocument):s(p,_),b=y.width,x=y.height,S=y.left,C=y.top,w=Ml(p,_,t.backgroundColor),T={canvas:t.canvas,backgroundColor:w,scale:t.scale??a.devicePixelRatio??1,x:(t.x??0)+S,y:(t.y??0)+C,width:t.width??Math.ceil(b),height:t.height??Math.ceil(x)},m?(p.logger.debug(`Document cloned, using foreign object rendering`),ee=new El(p,T),[4,ee.render(_)]):[3,3];case 2:return E=i.sent(),[3,5];case 3:return p.logger.debug(`Document cloned, element located at `+S+`,`+C+` with size `+b+`x`+x+` using computed rendering`),p.logger.debug(`Starting DOM parsing`),te=hs(p,_),w===te.styles.backgroundColor&&(te.styles.backgroundColor=Fr.TRANSPARENT),p.logger.debug(`Starting renderer for element at `+T.x+`,`+T.y+` with size `+T.width+`x`+T.height),ee=new bl(p,T),[4,ee.render(te)];case 4:E=i.sent(),i.label=5;case 5:return(t.removeContainer??!0)&&(rc.destroy(v)||p.logger.error(`Cannot detach cloned iframe as it is not in the DOM anymore`)),p.logger.debug(`Finished rendering`),[2,E]}})})},Ml=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?Pr(e,getComputedStyle(r.documentElement).backgroundColor):Fr.TRANSPARENT,a=r.body?Pr(e,getComputedStyle(r.body).backgroundColor):Fr.TRANSPARENT,o=typeof n==`string`?Pr(e,n):n===null?Fr.TRANSPARENT:4294967295;return t===r.documentElement?Dr(i)?Dr(a)?o:a:i:o};return Al}))})),iv=[`data-editable`,`data-mode`,`data-fullscreen`,`data-presentation`,`data-outline-open`,`data-outline-placement`,`data-comments-enabled`,`data-comments-open`,`data-drag-insert-active`],av={key:0,class:`norio-office-rich-editor__toolbar`},ov={class:`norio-office-rich-editor__toolbar-shell`},sv={class:`norio-office-rich-editor__toolbar-scroll`},cv={class:`norio-office-rich-editor__toolbar-track`},lv={key:0,class:`norio-office-rich-toolbar__group`},uv=[`disabled`],dv=[`disabled`],fv=[`disabled`],pv={key:1,class:`norio-office-rich-toolbar__group`},mv=[`disabled`],hv={key:2,class:`norio-office-rich-toolbar__group norio-office-rich-toolbar__group--insert`},gv={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--insert`},_v={class:`norio-office-rich-insert-menu__main`},vv={class:`norio-office-rich-insert-menu__quick-grid`},yv=[`onClick`],bv={key:0,class:`norio-office-rich-insert-menu__quick-text`},xv={key:0,class:`norio-office-rich-insert-menu__section`},Sv=[`onMouseenter`,`onFocus`,`onClick`],Cv={class:`norio-office-rich-insert-menu__icon`},wv={class:`norio-office-rich-insert-menu__label`},Tv={key:1,class:`norio-office-rich-insert-menu__section`},Ev=[`onClick`],Dv={class:`norio-office-rich-insert-menu__icon`},Ov={class:`norio-office-rich-insert-menu__label`},kv={key:2,class:`norio-office-rich-insert-menu__section`},Av=[`onClick`],jv={class:`norio-office-rich-insert-menu__icon`},Mv={class:`norio-office-rich-insert-menu__label`},Nv={class:`norio-office-rich-insert-submenu__title norio-office-rich-insert-submenu__title--preview`},Pv={class:`norio-office-rich-table-grid`},Fv=[`onMouseenter`,`onFocus`,`onClick`],Iv={key:1,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--emoji`},Lv={class:`norio-office-rich-insert-submenu__title norio-office-rich-insert-submenu__title--preview`},Rv={class:`norio-office-rich-columns-picker`},zv={class:`norio-office-rich-columns-picker__grid`},Bv=[`onMouseenter`,`onFocus`,`onClick`],Vv={class:`norio-office-rich-countdown-settings`},Hv={class:`norio-office-rich-countdown-settings__header`},Uv={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--deadline`},Wv={class:`norio-office-rich-countdown-settings__radio`},Gv=[`disabled`],Kv={class:`norio-office-rich-countdown-settings__picker-top`},qv=[`value`],Jv=[`value`],Yv=[`value`],Xv=[`value`],Zv={class:`norio-office-rich-countdown-settings__weekdays`},Qv={class:`norio-office-rich-countdown-settings__calendar`},$v=[`disabled`,`onClick`],ey={class:`norio-office-rich-countdown-settings__time-section`},ty={class:`norio-office-rich-countdown-settings__time-panel`},ny=[`min`],ry={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--duration`},iy={class:`norio-office-rich-countdown-settings__radio`},ay={class:`norio-office-rich-countdown-settings__duration`},oy=[`disabled`],sy=[`disabled`],cy=[`disabled`],ly=[`disabled`],uy={class:`norio-office-rich-countdown-settings__actions`},dy={class:`norio-office-rich-toolbar__group`},fy=[`disabled`],py={class:`norio-office-rich-toolbar__heading-label`},my={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--heading`},hy=[`disabled`,`onClick`],gy={key:1,class:`norio-office-rich-toolbar__menu-check`},_y={class:`norio-office-rich-toolbar__menu-type`},vy={class:`norio-office-rich-toolbar__menu-label`},yy=[`disabled`],by={class:`norio-office-rich-toolbar__label`},xy={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--font-family`},Sy=[`disabled`,`onClick`],Cy={key:1,class:`norio-office-rich-toolbar__menu-check`},wy=[`disabled`],Ty={class:`norio-office-rich-toolbar__label`},Ey={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--font-size`},Dy=[`disabled`,`onClick`],Oy={key:1,class:`norio-office-rich-toolbar__menu-check`},ky={class:`norio-office-rich-toolbar__menu-label`},Ay={class:`norio-office-rich-toolbar__group`},jy=[`disabled`],My={class:`norio-office-rich-toolbar__color-trigger`},Ny=[`disabled`],Py={class:`norio-office-rich-toolbar__color-trigger`},Fy=[`disabled`],Iy=[`disabled`],Ly=[`disabled`],Ry=[`disabled`],zy=[`disabled`],By={key:1,class:`norio-office-rich-toolbar__text-icon`},Vy={key:0,class:`norio-office-rich-toolbar__menu`},Hy=[`disabled`],Uy={key:1,class:`norio-office-rich-toolbar__menu-check`},Wy=[`disabled`],Gy={key:1,class:`norio-office-rich-toolbar__menu-check`},Ky={class:`norio-office-rich-toolbar__group`},qy=[`disabled`],Jy=[`disabled`],Yy=[`disabled`],Xy=[`disabled`],Zy={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--align`},Qy=[`disabled`],$y={key:1,class:`norio-office-rich-toolbar__menu-check`},eb=[`disabled`],tb={key:1,class:`norio-office-rich-toolbar__menu-check`},nb=[`disabled`],rb={key:1,class:`norio-office-rich-toolbar__menu-check`},ib=[`disabled`],ab=[`disabled`],ob=[`disabled`],sb={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--quote`},cb={class:`norio-office-rich-color-menu__section`},lb=[`disabled`],ub={class:`norio-office-rich-color-menu__section`},db={class:`norio-office-rich-color-menu__row`},fb=[`disabled`,`onClick`],pb={class:`norio-office-rich-color-menu__section`},mb={class:`norio-office-rich-color-menu__row`},hb=[`disabled`,`onClick`],gb=[`disabled`],_b=[`disabled`],vb={key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--emoji`},yb={class:`norio-office-rich-editor__main`},bb=[`data-placement`,`title`,`aria-label`],xb=[`data-open`,`data-placement`],Sb={class:`norio-office-rich-editor__workspace`},Cb={class:`norio-office-rich-table-bubble-menu__actions`},wb=[`disabled`],Tb=[`disabled`],Eb=[`disabled`],Db={key:0,class:`norio-office-rich-table-bubble-menu__menu norio-office-rich-table-bubble-menu__menu--palette`},Ob={class:`norio-office-rich-table-bubble-menu__color-grid`},kb=[`onClick`],Ab=[`disabled`,`aria-expanded`],jb=[`disabled`],Mb=[`disabled`],Nb=[`disabled`],Pb=[`disabled`],Fb=[`disabled`],Ib={class:`norio-office-rich-countdown-bubble-menu__toolbar`},Lb={key:0,class:`norio-office-rich-countdown-bubble-menu__panel`},Rb={class:`norio-office-rich-countdown-settings`},zb={class:`norio-office-rich-countdown-settings__header`},Bb={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--deadline`},Vb={class:`norio-office-rich-countdown-settings__radio`},Hb=[`disabled`],Ub={class:`norio-office-rich-countdown-settings__picker-top`},Wb=[`value`],Gb=[`value`],Kb=[`value`],qb=[`value`],Jb={class:`norio-office-rich-countdown-settings__weekdays`},Yb={class:`norio-office-rich-countdown-settings__calendar`},Xb=[`onClick`],Zb={class:`norio-office-rich-countdown-settings__time-section`},Qb={class:`norio-office-rich-countdown-settings__time-panel`},$b=[`min`],ex={class:`norio-office-rich-countdown-settings__row norio-office-rich-countdown-settings__row--duration`},tx={class:`norio-office-rich-countdown-settings__radio`},nx={class:`norio-office-rich-countdown-settings__duration`},rx=[`disabled`],ix=[`disabled`],ax=[`disabled`],ox=[`disabled`],sx={class:`norio-office-rich-countdown-settings__actions`},cx={class:`norio-office-rich-mention-panel__tabs`},lx=[`onClick`],ux={key:0,class:`norio-office-rich-mention-panel__empty`},dx={key:1,class:`norio-office-rich-mention-panel__empty`},fx=[`onClick`,`onDblclick`],px=[`data-type`],mx=[`src`],hx=[`src`],gx={key:2},_x={class:`norio-office-rich-mention-panel__content`},vx={class:`norio-office-rich-mention-panel__title-row`},yx={class:`norio-office-rich-mention-panel__name`},bx={key:0,class:`norio-office-rich-mention-panel__tag`},xx={key:0,class:`norio-office-rich-mention-panel__meta`},Sx={class:`norio-office-rich-mention-panel__footer`},Cx=[`disabled`],wx=[`data-active`],Tx=[`title`],Ex={key:1},Dx={class:`norio-office-rich-block-side-menu__section`},Ox={class:`norio-office-rich-block-side-menu__quick`},kx=[`onClick`],Ax={key:1},jx={class:`norio-office-rich-block-side-menu__section`},Mx=[`onClick`],Nx={key:0,class:`norio-office-rich-block-side-menu__section norio-office-rich-block-side-menu__section--grid`},Px=[`title`,`aria-label`,`aria-pressed`,`onClick`],Fx={key:1},Ix=[`aria-expanded`],Lx=[`disabled`],Rx=[`aria-expanded`],zx=[`aria-expanded`],Bx=[`aria-expanded`],Vx=[`aria-expanded`],Hx=[`aria-expanded`],Ux=[`aria-expanded`],Wx=[`aria-expanded`],Gx=[`aria-expanded`],Kx=[`disabled`,`aria-pressed`,`onClick`],qx={key:0,"aria-hidden":`true`},Jx=[`aria-checked`],Yx=[`data-checked`],Xx=[`aria-label`,`title`,`aria-pressed`,`onClick`],Zx={"aria-hidden":`true`},Qx={class:`norio-office-rich-block-side-menu__section`},$x={class:`norio-office-rich-block-side-menu__quick`},eS=[`onClick`],tS={key:1},nS={class:`norio-office-rich-block-side-menu__section`},rS=[`onClick`],iS=[`aria-label`],aS={class:`norio-office-rich-color-menu__section`},oS=[`onClick`],sS=[`onClick`],cS=[`onClick`],lS=[`onClick`],uS={class:`norio-office-rich-comment-panel__header`},dS={key:0,class:`norio-office-rich-comment-panel__empty`},fS={key:1,class:`norio-office-rich-comment-panel__list`},pS=[`onClick`],mS={class:`norio-office-rich-comment-card__anchor`},hS={class:`norio-office-rich-comment-card__actions`},gS=[`disabled`,`onClick`],_S={key:0,class:`norio-office-rich-comment-card__items`},vS=[`src`],yS={key:1},bS={class:`norio-office-rich-comment-item__body`},xS={class:`norio-office-rich-comment-item__meta`},SS=[`value`,`onKeydown`],CS={class:`norio-office-rich-comment-composer__actions`},wS=[`onClick`],TS={class:`norio-office-rich-comment-item__content`},ES={key:0,class:`norio-office-rich-comment-images`},DS=[`onClick`],OS=[`src`,`alt`],kS={class:`norio-office-rich-comment-item__actions`},AS=[`onClick`],jS=[`onClick`],MS=[`onClick`],NS={key:2,class:`norio-office-rich-comment-replies`},PS=[`src`],FS={key:1},IS={class:`norio-office-rich-comment-item__body`},LS={class:`norio-office-rich-comment-item__meta`},RS=[`value`,`onKeydown`],zS={class:`norio-office-rich-comment-composer__actions`},BS=[`onClick`],VS={class:`norio-office-rich-comment-item__content`},HS={key:0,class:`norio-office-rich-comment-images`},US=[`onClick`],WS=[`src`,`alt`],GS={class:`norio-office-rich-comment-item__actions`},KS=[`onClick`],qS=[`onClick`],JS=[`onClick`],YS={key:0,class:`norio-office-rich-comment-draft-images`},XS=[`src`,`alt`],ZS=[`onClick`],QS=[`placeholder`,`value`,`onInput`,`onKeydown`],$S={class:`norio-office-rich-comment-composer__actions`},eC=[`onClick`],tC=[`onClick`],nC=[`disabled`,`onClick`],rC={key:1,class:`norio-office-rich-comment-card__empty`},iC={key:0,class:`norio-office-rich-comment-draft-images`},aC=[`src`,`alt`],oC=[`onClick`],sC=[`placeholder`,`value`,`onInput`,`onKeydown`],cC={class:`norio-office-rich-comment-composer__actions`},lC=[`onClick`],uC=[`onClick`],dC=[`disabled`,`onClick`],fC={class:`norio-office-rich-mention-panel__tabs`},pC=[`onClick`],mC={key:0,class:`norio-office-rich-mention-panel__empty`},hC={key:1,class:`norio-office-rich-mention-panel__empty`},gC=[`onClick`,`onDblclick`],_C=[`data-type`],vC=[`src`],yC=[`src`],bC={key:2},xC={class:`norio-office-rich-mention-panel__content`},SC={class:`norio-office-rich-mention-panel__title-row`},CC={class:`norio-office-rich-mention-panel__name`},wC={key:0,class:`norio-office-rich-mention-panel__tag`},TC={key:0,class:`norio-office-rich-mention-panel__meta`},EC={class:`norio-office-rich-mention-panel__footer`},DC=[`disabled`],OC=[`innerHTML`],kC={class:`norio-office-rich-comment-image-viewer__stage`},AC=[`src`,`alt`],jC={key:0,class:`norio-office-rich-comment-image-viewer__meta`},MC={key:0,class:`norio-office-rich-comment-image-viewer__name`},NC={key:1,class:`norio-office-rich-comment-image-viewer__desc`},PC={key:3,class:`norio-office-rich-upload-panel`,"aria-live":`polite`},FC={key:0,class:`norio-office-rich-upload-spinner`,"aria-hidden":`true`},IC={key:1,class:`norio-office-rich-upload-panel__error-dot`,"aria-hidden":`true`},LC={class:`norio-office-rich-upload-panel__content`},RC={class:`norio-office-rich-upload-panel__title`},zC={class:`norio-office-rich-upload-panel__meta`},BC=[`onClick`],VC=[`onClick`],HC={class:`norio-office-rich-editor__statusbar`},UC={class:`norio-office-rich-statusbar__side norio-office-rich-statusbar__side--counts`},WC={class:`norio-office-rich-statusbar__item norio-office-rich-statusbar__word-count`},GC={class:`norio-office-rich-statusbar__item norio-office-rich-statusbar__line-count`},KC={class:`norio-office-rich-statusbar__side norio-office-rich-statusbar__side--right`},qC={class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--view`},JC=[`title`,`aria-label`,`aria-pressed`],YC={class:`norio-office-rich-statusbar__label norio-office-rich-statusbar__label--presentation`},XC=[`title`,`aria-label`,`aria-pressed`],ZC={class:`norio-office-rich-statusbar__label norio-office-rich-statusbar__label--fullscreen`},QC={class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--zoom`},$C=[`disabled`],ew={class:`norio-office-rich-statusbar__zoom`},tw=[`disabled`],nw=[`title`,`aria-label`,`aria-expanded`,`disabled`],rw={class:`norio-office-rich-statusbar__label`},iw=[`aria-label`],aw=[`disabled`,`onClick`],ow={key:1,class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--print`},sw=[`title`,`aria-label`,`disabled`],cw={class:`norio-office-rich-statusbar__label`},lw=1060,uw=1120,dw=360,fw=420,pw=8,mw=4,hw=`application/x-office-word-blocks+json`,gw=8,_w=10,vw=4,yw=`#f3c389`,bw=`#fff8ef`,xw=246,Sw=8,Cw=510,ww=10,Tw=26,Ew=26,Dw=48,Ow=560,kw=220,Aw=(0,t.defineComponent)({__name:`RichTextEditor`,props:{modelValue:{default:null},documentName:{default:``},editable:{type:Boolean,default:!0},mode:{default:`edit`},showToolbar:{type:Boolean,default:!0},watermark:{default:null},showOutline:{type:Boolean,default:!0},outlinePlacement:{default:`right`},messages:{default:null},featureCodes:{default:null},enabledFeatureItems:{default:null},enabledExportItems:{},enabledInsertMenuItems:{},enabledToolbarActions:{},placeholder:{default:``},mention:{type:Boolean,default:!1},collaboration:{},comments:{default:null},commentUser:{default:null},showComments:{type:Boolean,default:!1},commentMention:{type:Boolean,default:!0},uploadImage:{type:[Function,null],default:null},uploadVideo:{type:[Function,null],default:null},uploadFile:{type:[Function,null],default:null},uploadCommentImage:{type:[Function,null],default:null},onUploadError:{type:[Function,null],default:null},commentMentionProvider:{type:[Function,null],default:null},onCommentMentionSearch:{type:[Function,null],default:null},mentionProvider:{},onMentionSearch:{}},emits:[`update:modelValue`,`change`,`local-file-upload`,`local-file-click`,`local-file-download`,`upload-error`,`mention-item-click`,`mention-submit`,`outline-change`,`comment-create`,`comment-reply`,`comment-update`,`comment-delete`,`comment-resolve`,`comment-select`,`comment-submit`,`comment-mention-search`,`comment-mention-item-click`,`comment-mention-submit`],setup(e,{expose:c,emit:l}){let u=e,d=l,f=(0,t.toRef)(u,`uploadImage`),p=(0,t.toRef)(u,`uploadVideo`),m=(0,t.toRef)(u,`uploadFile`),h=(0,t.toRef)(u,`uploadCommentImage`),g=(0,t.toRef)(u,`onUploadError`),_=(0,t.ref)(null),v=(0,t.ref)(null),y=(0,t.ref)(null),b=(0,t.ref)(null),x=(0,t.ref)(null),S=(0,t.ref)(null),C=(0,t.ref)(null),w=(0,t.ref)(null),T=(0,t.ref)(null),E=(0,t.ref)(null),ee=(0,t.ref)(null),te=(0,t.ref)(null),D=(0,t.ref)(null),ne=(0,t.ref)(null),re=(0,t.ref)(null),ie=(0,t.ref)(0),O=(0,t.ref)(null),ae=(0,t.ref)(null),oe=(0,t.ref)(null),se=(0,t.ref)(null),le=(0,t.ref)(null),ue=(0,t.ref)(null),de=(0,t.ref)(null),fe=(0,t.ref)(null),pe=(0,t.ref)(null),me=(0,t.ref)(null),he=(0,t.ref)(null),ge=(0,t.ref)(null),_e=(0,t.ref)(null),ve=(0,t.ref)(null),ye=(0,t.ref)(null),be=(0,t.ref)(null),xe=(0,t.ref)(null),Se=(0,t.ref)(null),Ce=(0,t.ref)(null),we=(0,t.ref)(null),Te=(0,t.ref)(null),Ee=(0,t.ref)(null),De=(0,t.ref)(null),Oe=(0,t.ref)(null),ke=(0,t.ref)(null),Ae=(0,t.ref)(!1),je=(0,t.ref)(!1),Me=(0,t.ref)(!1),Ne=(0,t.ref)(null),Pe=`norio-office-rich-outline-${(0,t.useId)()}`,Fe=(0,t.ref)(typeof window>`u`?780:window.innerWidth),Ie=(0,t.ref)(typeof window>`u`?900:window.innerHeight),Le=(0,t.ref)(!1),Re=(0,t.ref)(!1),ze=(0,t.ref)(!1),Be=(0,t.ref)(!1),Ve=(0,t.ref)(360),He=(0,t.ref)(0),Ue=(0,t.ref)(!1),We=(0,t.ref)(!1),Ge=(0,t.ref)(!1),Ke=(0,t.ref)(!1),qe=(0,t.ref)(!1),Je=(0,t.ref)(!1),Ye=(0,t.ref)(!1),Xe=(0,t.ref)(!1),Ze=(0,t.ref)(!1),Qe=(0,t.ref)(!1),$e=(0,t.ref)(!1),et=(0,t.ref)(``),tt=(0,t.ref)(`all`),nt=(0,t.ref)([]),rt=(0,t.ref)(0),it=(0,t.ref)(null),at=(0,t.ref)({left:0,top:0}),ot=(0,t.ref)(null),st=(0,t.ref)([]),ct=(0,t.ref)(null),lt=(0,t.ref)({}),ut=(0,t.ref)({}),dt=(0,t.ref)({}),ft=(0,t.ref)(null),pt=(0,t.ref)(``),mt=(0,t.ref)([]),ht=(0,t.ref)(null),gt=(0,t.ref)(null),_t=(0,t.ref)(null),vt=(0,t.ref)({}),yt=new Map,bt=(0,t.ref)(!1),xt=(0,t.ref)(!1),St=(0,t.ref)(``),Ct=(0,t.ref)(`all`),wt=(0,t.ref)([]),Tt=(0,t.ref)(0),Et=(0,t.ref)({left:0,top:0}),Dt=(0,t.ref)(null),Ot=(0,t.ref)(0),kt=(0,t.ref)(null),At=(0,t.ref)(100),jt=[{key:`paragraph`,label:`正文`},{key:`h1`,label:`标题一`,level:1},{key:`h2`,label:`标题二`,level:2},{key:`h3`,label:`标题三`,level:3},{key:`h4`,label:`标题四`,level:4},{key:`h5`,label:`标题五`,level:5},{key:`h6`,label:`标题六`,level:6}],Mt=[`highlight-border`,`highlight-fill`,`quote-border`,`quote-background`],Nt=[`properties`,`color`,`add-above`,`add-below`,...Mt],Pt=[{key:`all`,label:`全部`},{key:1,label:`人`},{key:2,label:`文档`}],Ft=(0,t.ref)(null),It=(0,t.ref)(!1),Lt=(0,t.ref)(``),Rt=(0,t.ref)(0),zt=(0,t.ref)(0),Bt=(0,t.ref)(0),Vt=(0,t.ref)(`deadline`),Ht=(0,t.ref)(``),Ut=(0,t.ref)(`0`),Wt=(0,t.ref)(`0`),Gt=(0,t.ref)(`1`),Kt=(0,t.ref)(`0`),qt=(0,t.ref)(!1),Jt=(0,t.ref)(!1),Yt=(0,t.ref)(`bottom`),Xt=(0,t.ref)(new Date().getFullYear()),Zt=(0,t.ref)(new Date().getMonth()),Qt=(0,t.ref)(`00:00`),$t=[`一`,`二`,`三`,`四`,`五`,`六`,`日`],en=(0,t.computed)(()=>Rt.value>0&&zt.value>0?`${Rt.value} x ${zt.value}`:`插入表格`);(0,t.computed)(()=>`选择${Bt.value}栏`);let tn=(0,t.computed)(()=>Bt.value>0?`选择${Bt.value}栏`:`选择栏数`);function nn(e){if(ie.value,!S.value||!e)return;let t=S.value.getBoundingClientRect(),n=e.getBoundingClientRect();return{top:`${n.top-t.top+n.height/2}px`}}let rn=(0,t.computed)(()=>nn(ne.value)),on=(0,t.computed)(()=>nn(re.value)),sn=(0,t.computed)(()=>{let e=Ht.value,t=e?new Date(e):null;return t&&Number.isFinite(t.getTime())?t:null}),cn=(0,t.computed)(()=>{let e=sn.value;return e?`${e.getFullYear()}/${String(e.getMonth()+1).padStart(2,`0`)}/${String(e.getDate()).padStart(2,`0`)} ${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`:`请选择时间`}),ln=(0,t.computed)(()=>new Date(ks())),un=(0,t.computed)(()=>{let e=sn.value,t=ln.value;return!e||!(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())?`00:00`:`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}`}),dn=(0,t.computed)(()=>Array.from({length:200},(e,t)=>1900+t)),fn=(0,t.computed)(()=>Array.from({length:12},(e,t)=>t)),pn=(0,t.computed)(()=>{let e=Xt.value,t=Zt.value,n=(new Date(e,t,1).getDay()+6)%7,r=new Date(e,t+1,0).getDate(),i=new Date(e,t,0).getDate(),a=sn.value,o=new Date,s=ln.value,c=[];for(let l=0;l<42;l+=1){let u=e,d=t,f=0,p=!0;l<n?(d=t-1,d<0&&(d=11,--u),f=i-n+l+1,p=!1):l>=n+r?(d=t+1,d>11&&(d=0,u+=1),f=l-n-r+1,p=!1):f=l-n+1;let m=o.getFullYear()===u&&o.getMonth()===d&&o.getDate()===f,h=new Date(u,d,f,23,59,59,999).getTime()<s.getTime(),g=!!a&&a.getFullYear()===u&&a.getMonth()===d&&a.getDate()===f;c.push({key:`${u}-${d}-${f}`,year:u,month:d,day:f,label:f,isCurrentMonth:p,isToday:m,isSelected:g,isDisabled:h})}return c}),mn=(0,t.ref)(null),hn=(0,t.ref)(null),gn=(0,t.ref)(null),_n=(0,t.ref)(null),vn=(0,t.ref)(null),yn=(0,t.ref)([]),bn=(0,t.ref)([]),Sn=(0,t.ref)([]),Cn=(0,t.ref)([]),wn=(0,t.ref)(null),Tn=(0,t.ref)(null),En=[{label:`初号`,value:`42px`},{label:`小初`,value:`36px`},{label:`一号`,value:`28px`},{label:`小一`,value:`26px`},{label:`二号`,value:`24px`},{label:`小二`,value:`22px`},{label:`三号`,value:`21px`},{label:`小三`,value:`20px`},{label:`四号`,value:`18px`},{label:`小四`,value:`16px`},{label:`五号`,value:`14px`},{label:`小五`,value:`12px`}],On=[{label:`默认`,value:``},{label:`微软雅黑`,value:`"Microsoft YaHei", "PingFang SC", sans-serif`},{label:`宋体`,value:`"SimSun", serif`},{label:`黑体`,value:`"SimHei", sans-serif`},{label:`楷体`,value:`"KaiTi", serif`},{label:`仿宋`,value:`"FangSong", serif`},{label:`Arial`,value:`Arial, sans-serif`},{label:`Georgia`,value:`Georgia, serif`},{label:`Monospace`,value:`"Consolas", "SFMono-Regular", monospace`}],kn=[{key:`paragraph`,label:`T`,type:`text`,action:`paragraph`},{key:`h1`,label:`H1`,type:`text`,action:`heading-1`},{key:`h2`,label:`H2`,type:`text`,action:`heading-2`},{key:`h3`,label:`H3`,type:`text`,action:`heading-3`},{key:`h4`,label:`H4`,type:`text`,action:`heading-4`},{key:`h5`,label:`H5`,type:`text`,action:`heading-5`},{key:`h6`,label:`H6`,type:`text`,action:`heading-6`},{key:`bullet`,label:`无序列表`,type:`icon`,iconName:`wuxuliebiao`,action:`bullet-list`},{key:`ordered`,label:`有序列表`,type:`icon`,iconName:`youxuliebiao`,action:`ordered-list`},{key:`task`,label:`待办`,type:`icon`,iconName:`To-do`,action:`task-list`}],An=[{key:`image`,label:`图片`,colorIconName:`tupian`,action:`image`},{key:`video`,label:`视频`,colorIconName:`shipin`,action:`video`},{key:`table`,label:`表格`,colorIconName:`biaoge`,action:`table`,comingSoon:!0},{key:`local-file`,label:`本地文件`,colorIconName:`file`,action:`local-file`},{key:`columns`,label:`分栏`,colorIconName:`fenlan`,action:`columns`},{key:`highlight-block`,label:`高亮块`,colorIconName:`gaoliangkuai1`,action:`highlight-block`},{key:`code-block`,label:`代码块`,colorIconName:`daimakuai`,action:`code-block`},{key:`formula`,label:`公式`,colorIconName:`jisuangongshi`,action:`formula`},{key:`blockquote`,label:`引用`,colorIconName:`yinyong`,action:`blockquote`},{key:`emoji`,label:`表情符号`,action:`emoji`},{key:`link`,label:`超链接`,colorIconName:`wangye`,action:`link`},{key:`divider`,label:`分隔线`,colorIconName:`fengexian`,action:`divider`}],jn=[{key:`countdown`,label:`倒计时`,colorIconName:`daojishi`,action:`countdown`}],Mn=[{key:`markdown-import`,label:`Markdown导入`,colorIconName:`markdown`,action:`markdown-import`}],Nn=[...An.filter(e=>![`local-file`,`markdown-import`].includes(e.action)),...jn],Pn=kn,Fn=[{key:`align-left`,label:`左对齐`,iconName:`zuoduiqi`,action:`align-left`},{key:`align-center`,label:`居中对齐`,iconName:`juzhongduiqi`,action:`align-center`},{key:`align-right`,label:`右对齐`,iconName:`youduiqi`,action:`align-right`},{key:`indent-more`,label:`增加缩进`,iconName:`yousuojin`,action:`indent-more`},{key:`indent-less`,label:`减少缩进`,iconName:`zuosuojin`,action:`indent-less`}],In=new Set([`paragraph`,`heading`,`bulletList`,`orderedList`,`taskList`]),Ln=new Set([`paragraph`,`heading`,`bulletList`,`orderedList`]),Rn=new Set([`paragraph`,`heading`,`bulletList`,`orderedList`,`taskList`,`blockquote`,`highlightBlock`]),zn=(0,t.computed)(()=>u.featureCodes??u.enabledFeatureItems),Hn=(0,t.computed)(()=>u.featureCodes??u.enabledExportItems),Un=(0,t.computed)(()=>u.featureCodes??u.enabledInsertMenuItems),Wn=(0,t.computed)(()=>u.featureCodes??u.enabledToolbarActions);function Gn(e){return og(e,zn.value)}let Kn=(0,t.computed)(()=>lg(u.messages));function qn(e){return Kn.value[e]??cg[e]??e}function Jn(e){switch(e){case`image`:return qn(`insert.image`);case`video`:return qn(`insert.video`);case`table`:return qn(`insert.table`);case`local-file`:return qn(`insert.localFile`);case`columns`:return qn(`insert.columns`);case`highlight-block`:return qn(`insert.highlightBlock`);case`date`:return qn(`insert.date`);case`code-block`:return qn(`insert.codeBlock`);case`formula`:return qn(`insert.formula`);case`blockquote`:return qn(`insert.blockquote`);case`emoji`:return qn(`insert.emoji`);case`link`:return qn(`insert.link`);case`divider`:return qn(`insert.divider`);case`countdown`:return qn(`insert.countdown`);case`markdown-import`:return qn(`insert.markdownImport`);default:return e}}let Yn=[`#C084FC`,`#F472B6`,`#FB7185`,`#F97316`,`#F59E0B`,`#10B981`,`#14B8A6`,`#3B82F6`,`#6366F1`,`#64748B`],Xn=[`#FCF5FF`,`#FDF2F8`,`#FFF1F2`,`#FFF7ED`,`#FFFBEB`,`#ECFDF5`,`#F0FDFA`,`#EFF6FF`,`#EEF2FF`,`#F8FAFC`],Zn=[...Yn,`#06B6D4`,`#84CC16`,`#EAB308`,`#94A3B8`,`#334155`],Qn=[...Xn,`#ECFEFF`,`#F7FEE7`,`#FEFCE8`,`#F1F5F9`,`#E2E8F0`],$n=(0,t.ref)([`#38A169`,`#1DA1F2`]),er=(0,t.ref)([`#FFF3C4`,`#D8F4E5`]),A=(0,t.ref)([]),nr=(0,t.ref)(null),rr=new Set,ir=``,ar=(0,t.ref)(0),or=(0,t.ref)(0),sr=(0,t.ref)(null),cr=(0,t.ref)(null),lr=(0,t.ref)(!1),ur=(0,t.ref)([]),dr=(0,t.ref)(null),fr=(0,t.ref)(null),pr=(0,t.ref)(null),mr=(0,t.ref)(!1),hr=(0,t.ref)(!1),gr=(0,t.ref)(!1),_r=(0,t.ref)(!1),vr=(0,t.ref)(!1),yr=(0,t.ref)(!1),br=null,xr=(0,t.ref)(null),Sr=(0,t.ref)(null),j=(0,t.ref)(null),Cr=(0,t.ref)(null),wr=(0,t.ref)(null),Tr=(0,t.ref)(null);(0,t.watch)(j,()=>{Tr.value=null});let Er=(0,t.ref)(null),Dr=null,Or=(0,t.ref)(null),M=(0,t.ref)(null),kr=[null,`#F3F4F6`,`#FDE2E2`,`#FCEFD8`,`#FEF3C7`,`#D9F99D`,`#DCFCE7`,`#DBEAFE`,`#E9D5FF`,`#E5E7EB`,`#D1D5DB`,`#F8B4B4`,`#FCD9BD`,`#FDE68A`,`#BEF264`,`#86EFAC`,`#A5B4FC`,`#C4B5FD`],Ar=(0,t.computed)(()=>u.modelValue?u.modelValue:u.collaboration&&Gn(`collaboration`)?{type:`doc`,content:[{type:`paragraph`}]}:{type:`doc`,content:[{type:`paragraph`,content:[{type:`text`,text:`分隔符苟富贵下饭`}]}]}),jr=(0,t.computed)(()=>je.value||u.mode===`preview`),Mr=(0,t.computed)(()=>u.editable&&!jr.value),Nr=(0,t.computed)(()=>u.showToolbar&&!jr.value),Pr=(0,t.computed)(()=>Gn(`comments`)),Fr=(0,t.computed)(()=>u.showOutline?sg(u.outlinePlacement,zn.value):null),Ir=(0,t.computed)(()=>Fr.value??u.outlinePlacement),Lr=(0,t.computed)(()=>!!Fr.value),Rr=(0,t.computed)(()=>Gn(`watermark`)),zr=(0,t.computed)(()=>Gn(`collaboration`)),Br=(0,t.computed)(()=>zr.value?u.collaboration:null),Vr=(0,t.computed)(()=>u.mention&&Gn(`mention`)),Hr=(0,t.computed)(()=>u.commentMention!==!1&&Gn(`mention`)),Ur=(0,t.computed)(()=>(Pr.value?u.comments??[]:[]).filter(e=>!!e&&typeof e.id==`string`&&!!e.id.trim()).map(e=>({...e,comments:Array.isArray(e.comments)?e.comments:[]}))),Wr=(0,t.computed)(()=>Ur.value.filter(e=>e.status!==`resolved`)),Gr=(0,t.computed)(()=>{if(u.commentUser?.id&&u.commentUser.name)return u.commentUser;let e=Br.value?.user;if(!e)return null;let t=e,n=String(t.id??t.userId??t.clientUniqueCode??e.name??``).trim(),r=String(t.name??t.userName??t.displayName??n).trim();return!n||!r?null:{...t,id:n,name:r,color:typeof t.color==`string`&&t.color?t.color:`#4c7dff`}}),Kr=(0,t.computed)(()=>{let e=[...Wr.value],t=gt.value;return t&&!e.some(e=>e.id===t.id)&&e.unshift({id:t.id,anchorText:t.anchorText,status:`open`,comments:[]}),e}),qr=(0,t.computed)(()=>Pr.value&&u.showComments),Jr=(0,t.computed)(()=>`评论 (${Wr.value.length})`),Yr=(0,t.computed)(()=>{if(ct.value){let e=Kr.value.find(e=>e.id===ct.value);if(e)return e}return Kr.value[0]??null}),N=(0,t.computed)(()=>An.filter(e=>ag(e.key,Un.value)).map(e=>({...e,label:Jn(e.key)}))),Xr=(0,t.computed)(()=>jn.filter(e=>ag(e.key,Un.value)).map(e=>({...e,label:Jn(e.key)}))),Zr=(0,t.computed)(()=>Mn.filter(e=>ag(e.key,Un.value)).map(e=>({...e,label:Jn(e.key)}))),Qr=(0,t.computed)(()=>N.value.length>0||Xr.value.length>0||Zr.value.length>0),$r=(0,t.computed)(()=>ag(`emoji`,Un.value)),ei=(0,t.computed)(()=>ag(`blockquote`,Wn.value)),ti=(0,t.computed)(()=>[{key:`pdf`,label:qn(`export.pdf`),iconName:`pdfdaochu`,loadingLabel:qn(`export.pdf.loading`),onClick:Ss},{key:`html`,label:qn(`export.html`),iconName:`wangye`,loadingLabel:qn(`export.html.loading`),onClick:Es},{key:`image`,label:qn(`export.image`),iconName:`tupiandaochu`,loadingLabel:qn(`export.image.loading`),onClick:xs}].filter(e=>ag(e.key,Hn.value))),ni=(0,t.computed)(()=>ag(`print`,Hn.value)),ri=(0,t.computed)(()=>ti.value.length>0);(0,t.computed)(()=>qn(`countdown.settingsTitle`)),(0,t.computed)(()=>qn(`formula.insertTitle`));let ii=(0,t.computed)(()=>qn(`insert.label`)),ai=(0,t.computed)(()=>qn(`insert.section.general`)),oi=(0,t.computed)(()=>qn(`insert.section.apps`)),si=(0,t.computed)(()=>qn(`insert.section.external`)),ci=(0,t.computed)(()=>V.value?.isActive(`blockquote`)?qn(`quote.cancel`):qn(`quote.apply`)),li=(0,t.computed)(()=>qn(`quote.borderColor`)),ui=(0,t.computed)(()=>qn(`quote.backgroundColor`)),di=(0,t.computed)(()=>qn(`export.label`)),fi=(0,t.computed)(()=>kt.value===`print`?qn(`print.loading`):qn(`print.label`)),pi=(0,t.computed)(()=>qn(`outline.label`)),mi=(0,t.computed)(()=>qn(`outline.collapse`)),hi=(0,t.computed)(()=>qn(`outline.empty.description`)),gi=(0,t.computed)(()=>qn(`outline.empty.tip`)),_i=(0,t.computed)(()=>`字数: ${Ba.value}`),vi=(0,t.computed)(()=>`行数: ${Va.value}`),yi=(0,t.computed)(()=>je.value?qn(`status.presentation.exit`):qn(`status.presentation.enter`)),bi=(0,t.computed)(()=>Ae.value?qn(`status.fullscreen.exit`):qn(`status.fullscreen.enter`)),xi=(0,t.computed)(()=>{if(!jr.value)return 1;let e=Math.max(320,Fe.value-32);return Math.min(1,e/lw)}),P=(0,t.computed)(()=>({left:`${ar.value}px`,top:`${or.value}px`})),F=(0,t.computed)(()=>{if(!v.value||!sr.value||!cr.value)return null;let e=v.value.getBoundingClientRect(),t=pa.value||1,n=(Math.min(sr.value.x,cr.value.x)-e.left)/t,r=(Math.min(sr.value.y,cr.value.y)-e.top)/t,i=(Math.max(sr.value.x,cr.value.x)-e.left)/t,a=(Math.max(sr.value.y,cr.value.y)-e.top)/t,o=Math.max(0,Math.min(lw,n)),s=Math.max(0,Math.min(Math.max(v.value.scrollHeight,uw),r)),c=Math.max(0,Math.min(lw,i)),l=Math.max(0,Math.min(Math.max(v.value.scrollHeight,uw),a));return{left:Math.min(o,c),top:Math.min(s,l),width:Math.max(0,Math.abs(c-o)),height:Math.max(0,Math.abs(l-s))}}),I=(0,t.computed)(()=>{if(!V.value||!v.value||!ur.value.length)return[];let e=new Set(ur.value),t=v.value.getBoundingClientRect(),n=pa.value||1,r=[];return V.value.state.doc.forEach((i,a)=>{if(!e.has(a))return;let o=V.value?.view.nodeDOM(a);if(!(o instanceof HTMLElement))return;let s=o.getBoundingClientRect();r.push({pos:a,from:a,to:a+i.nodeSize,node:i,dom:o,rect:{left:(s.left-t.left)/n,top:(s.top-t.top)/n,width:s.width/n,height:s.height/n}})}),r.sort((e,t)=>e.pos-t.pos)}),L=(0,t.computed)(()=>I.value.length>0),R=(0,t.computed)(()=>tt.value===`all`?nt.value:nt.value.filter(e=>e.type===tt.value)),Si=(0,t.computed)(()=>R.value[rt.value]??null),z=(0,t.computed)(()=>({left:`${at.value.left}px`,top:`${at.value.top}px`})),Ci=(0,t.computed)(()=>Ct.value===`all`?wt.value:wt.value.filter(e=>e.type===Ct.value)),wi=(0,t.computed)(()=>Ci.value[Tt.value]??null),B=(0,t.computed)(()=>({left:`${Et.value.left}px`,top:`${Et.value.top}px`})),V=eg({content:Ar.value,editable:Mr.value,placeholder:u.placeholder,collaboration:Br.value,uploadImage:f,uploadVideo:p,onUploadError:Yo,mention:Vr,onLocalFileClick:e=>{d(`local-file-click`,e)},onLocalFileDownload:e=>{d(`local-file-download`,e)},onMentionClick:e=>{Vr.value&&d(`mention-item-click`,e)},onMentionTrigger:()=>{Vr.value&&Mi()},onMentionKeyDown:e=>zi(e),onUpdate:e=>{d(`update:modelValue`,e),d(`change`,e)}}),Ti=0;function Ei(e){let t=String(e?.id??``).trim(),n=String(e?.name??``).trim(),r=Number(e?.type??1)===2?2:1;return!t||!n?null:{...e,id:t,name:n,type:r,avatar:e.avatar?String(e.avatar):void 0,icon:e.icon?String(e.icon):void 0,tag:e.tag?String(e.tag):void 0,updatedAt:e.updatedAt?String(e.updatedAt):void 0}}function H(e){return{...e,type:Number(e.type)===2?2:1}}function Di(e){return e.type===1?ef(e.name):`文`}function U(e){return e.type===1?nf(e.id):void 0}function Oi(){if(!V.value)return null;let{selection:e,doc:t}=V.value.state;if(!e.empty)return null;let n=e.$from;if(!n.parent.isTextblock)return null;let r=n.start(),i=t.textBetween(r,n.pos,`
|
|
7812
7810
|
`,`
|
|
7813
|
-
`),a=i.lastIndexOf(`@`);if(a<0)return null;let o=i.slice(a+1);return/[\s@]/.test(o)?null:{from:r+a,to:n.pos,query:o}}function ji(){if(!V.value||!ft.value||!v.value)return;let e=V.value.view.coordsAtPos(ft.value.from),t=v.value.getBoundingClientRect(),n=ha.value||1,r=Ne.value?.offsetWidth||xw,i=Ne.value?.offsetHeight||Sw,a=r*n,o=i*n,s=window.innerWidth||ze.value,c=window.innerHeight||Be.value,l=Math.max(Cw,s-a-Cw),u=Math.max(Cw,c-o-Cw),d=e.bottom+ww,f=e.top-o-ww,p=d+o>c-Cw&&f>=Cw,m=Math.max(Cw,Math.min(l,e.left)),h=Math.max(Cw,Math.min(u,p?f:d));pt.value={left:Math.max(Cw,Math.min(yw-r-Cw,(m-t.left)/n)),top:Math.max(Cw,(h-t.top)/n)}}async function Mi(e){if(!Ur.value)return;let t=++H;st.value=!0;try{let n=u.onMentionSearch??u.mentionProvider,r=n?await n(e):[];if(t!==H)return;ut.value=(Array.isArray(r)?r:[]).map(Di).filter(e=>!!e),dt.value=0}catch{t===H&&(ut.value=[],dt.value=0)}finally{t===H&&(st.value=!1)}}function Ni(){ot.value=!1,ft.value=null,ct.value=``,ut.value=[],dt.value=0,H+=1,st.value=!1}function Pi(){if(!Ur.value||!V.value||!Pr.value)return;let e=Ai();if(!e){Ni();return}ft.value={from:e.from,to:e.to},ct.value=e.query,lt.value=`all`,ot.value=!0,ji(),(0,t.nextTick)(ji),Mi({query:e.query,type:lt.value})}function Fi(){if(!Ur.value){(ot.value||ft.value||ut.value.length||st.value)&&Ni();return}if(!ot.value)return;let e=Ai();if(!e){Ni();return}ft.value={from:e.from,to:e.to},ji(),(0,t.nextTick)(ji),e.query!==ct.value&&(ct.value=e.query,Mi({query:e.query,type:lt.value}))}function Ii(e){Ur.value&&(lt.value=e,dt.value=0,Mi({query:ct.value,type:e}))}function Li(e,t){Ur.value&&(dt.value=t,d(`mention-item-click`,U(e)))}function W(e){let t=z.value.length;t&&(dt.value=(dt.value+e+t)%t)}function Ri(e){if(!Ur.value||!V.value||!ft.value)return!1;let t=U(e),n=V.value.chain().focus().deleteRange(ft.value).insertContent([{type:`mention`,attrs:t},{type:`text`,text:` `}]).run();return n&&(d(`mention-submit`,t),Ni()),n}function zi(e){let t=Di(e);return!Ur.value||!t||!V.value?!1:V.value.chain().focus().insertContent([{type:`mention`,attrs:U(t)},{type:`text`,text:` `}]).run()}function Bi(){!Ur.value||!Ci.value||Ri(Ci.value)}function Vi(e){return!Ur.value||!ot.value?!1:e.key===`Escape`?(Ni(),!0):e.key===`ArrowDown`?(W(1),!0):e.key===`ArrowUp`?(W(-1),!0):e.key===`Enter`&&Ci.value?(Bi(),!0):!1}let Hi=0;function Ui(e){return Di(e)}function Wi(e){return U(e)}function Gi(e){return`@${e.name}`}function Ki(e){return`${e.type}:${e.id}`}function qi(e,t){let n=Wi(t),r=Ki(n);return[...e.filter(e=>Ki(e)!==r),n]}function Ji(e,t){return t.filter(t=>e.includes(Gi(t)))}function Yi(e,t){return yt.value[Ku(e,t)]??[]}function Xi(e,t,n){let r=Ku(e,n);yt.value={...yt.value,[r]:t}}function Zi(e){let t=e.selectionStart??0;if(t!==(e.selectionEnd??t))return null;let n=e.value.slice(0,t),r=n.lastIndexOf(`@`);if(r<0)return null;let i=n.slice(r+1);return/[\s@]/.test(i)?null:{from:r,to:t,query:i}}function Qi(){let e=Ft.value;if(!e)return;let t=e.textarea.getBoundingClientRect(),n=b.value?.offsetWidth||xw,r=b.value?.offsetHeight||Sw,i=window.innerWidth||ze.value,a=window.innerHeight||Be.value,o=t.bottom+ww,s=t.top-r-ww,c=o+r>a-Cw&&s>=Cw;Pt.value={left:Math.max(Cw,Math.min(i-n-Cw,t.left)),top:Math.max(Cw,Math.min(a-r-Cw,c?s:o))}}function $i(){Ot.value=!1,Ft.value=null,At.value=``,Mt.value=[],Nt.value=0,Hi+=1,kt.value=!1}async function ea(e){if(!Wr.value)return;d(`comment-mention-search`,e);let t=++Hi;kt.value=!0;try{let n=u.onCommentMentionSearch??u.commentMentionProvider,r=n?await n(e):[];if(t!==Hi)return;Mt.value=(Array.isArray(r)?r:[]).map(Ui).filter(e=>!!e),Nt.value=0}catch{t===Hi&&(Mt.value=[],Nt.value=0)}finally{t===Hi&&(kt.value=!1)}}function ta(e,n){if(!Wr.value||!e||!Pr.value){$i();return}let r=Zi(e);if(!r){$i();return}let i=n.mode===`edit`?xt.value:qu(n.threadId,n.parentId);Ft.value={...n,textarea:e,range:r},At.value=r.query,jt.value=`all`,Ot.value=!0,Qi(),(0,t.nextTick)(Qi),ea({query:r.query,type:jt.value,threadId:n.threadId,commentId:n.commentId,parentId:n.parentId,content:i})}function G(e){if(!Wr.value||!Ft.value)return;let t=Ft.value,n=t.mode===`edit`?xt.value:qu(t.threadId,t.parentId);jt.value=e,Nt.value=0,ea({query:At.value,type:e,threadId:t.threadId,commentId:t.commentId,parentId:t.parentId,content:n})}function na(e,t){Wr.value&&(Nt.value=t,d(`comment-mention-item-click`,Wi(e)))}function ra(e){let t=B.value.length;t&&(Nt.value=(Nt.value+e+t)%t)}function ia(e){let n=Ft.value;if(!Wr.value||!n)return!1;let r=Wi(e),i=n.mode===`edit`?xt.value:qu(n.threadId,n.parentId),a=`${Gi(r)} `,o=`${i.slice(0,n.range.from)}${a}${i.slice(n.range.to)}`,s=n.range.from+a.length;return n.mode===`edit`?(xt.value=o,St.value=qi(St.value,r)):(Ju(n.threadId,o,n.parentId),Xi(n.threadId,qi(Yi(n.threadId,n.parentId),r),n.parentId)),d(`comment-mention-submit`,r),$i(),(0,t.nextTick)(()=>{n.textarea.focus(),n.textarea.setSelectionRange(s,s)}),!0}function aa(){!Wr.value||!Ti.value||ia(Ti.value)}function oa(e){return!Wr.value||!Ot.value?!1:e.key===`Escape`?($i(),!0):e.key===`ArrowDown`?(ra(1),!0):e.key===`ArrowUp`?(ra(-1),!0):(e.key===`Enter`||e.key===`Tab`)&&Ti.value?(aa(),!0):!1}function sa(e){return e.replace(/\s+/g,` `).trim()||`未命名标题`}function ca(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants((t,n)=>{t.type.name===`heading`&&e.push({pos:n,level:Math.min(6,Math.max(1,Number(t.attrs.level??1))),text:sa(t.textContent)})}),e}function la(e){if(!V.value)return null;let t=V.value.state.selection.from,n=null;for(let r of e){if(r.pos>t)break;n=r.pos}return n}function ua(){return{items:ur.value.map(e=>({...e})),activePos:dr.value}}function da(){let e=ua(),t=JSON.stringify(e);t!==pr&&(pr=t,d(`outline-change`,e),fr.forEach(t=>t(e)))}function fa(){let e=ca();ur.value=e,dr.value=la(e),da()}function pa(){ze.value=window.innerWidth,Be.value=window.innerHeight}function ma(){if(!_.value)return;let e=_.value.querySelector(`.norio-office-rich-toolbar__group--insert .norio-office-rich-toolbar__button--select .norio-office-rich-toolbar__label`);e&&(e.textContent=oi.value);let t=_.value.querySelectorAll(`.norio-office-rich-insert-menu__title`),n=0;Zr.value.length&&t[n]&&(t[n].textContent=si.value,n+=1),Qr.value.length&&t[n]&&(t[n].textContent=ci.value,n+=1),$r.value.length&&t[n]&&(t[n].textContent=li.value);let r=_.value.querySelector(`.norio-office-rich-toolbar__menu--quote .norio-office-rich-color-menu__current`);r&&(r.textContent=ui.value);let i=_.value.querySelectorAll(`.norio-office-rich-toolbar__menu--quote .norio-office-rich-color-menu__label`);i[0]&&(i[0].textContent=di.value),i[1]&&(i[1].textContent=fi.value);let a=_.value.querySelector(`.norio-office-rich-statusbar__label--presentation`);a&&(a.textContent=xi.value);let o=_.value.querySelector(`.norio-office-rich-statusbar__label--fullscreen`);o&&(o.textContent=P.value);let s=_.value.querySelector(`.norio-office-rich-statusbar__word-count span`);s&&(s.textContent=yi.value);let c=_.value.querySelector(`.norio-office-rich-statusbar__line-count span`);c&&(c.textContent=bi.value)}let ha=(0,t.computed)(()=>Rt.value/100*F.value),ga=(0,t.computed)(()=>({"--norio-office-rich-page-width":`${yw}px`,"--norio-office-rich-page-height":`${bw}px`,"--norio-office-rich-page-scale":String(ha.value)})),_a=(0,t.computed)(()=>{if(!Br.value)return null;let e=String(u.watermark?.text??``).trim();return e?{text:e,color:u.watermark?.color||`rgba(15, 23, 42, 0.12)`,fontSize:Math.max(12,Math.min(96,Number(u.watermark?.fontSize??18)||18)),rotate:Math.max(-90,Math.min(90,Number(u.watermark?.rotate??-24)||-24)),showInEdit:u.watermark?.showInEdit??!0}:null}),va=(0,t.computed)(()=>_a.value?!Pr.value||_a.value.showInEdit:!1),ya=(0,t.computed)(()=>{let e=_a.value;return e?{"--norio-office-rich-watermark-color":e.color,"--norio-office-rich-watermark-font-size":`${e.fontSize}px`,"--norio-office-rich-watermark-rotate":`${e.rotate}deg`}:{}}),ba=Array.from({length:96},(e,t)=>t),xa=(0,t.computed)(()=>Pr.value?Sr.value??xr.value:null),K=(0,t.computed)(()=>{let e=xa.value;return e&&bc(e)?Gn:[]}),Sa=(0,t.computed)(()=>{let e=xa.value?.node;return e?e.type.name===`heading`?`heading-${e.attrs.level}`:{paragraph:`paragraph`,bulletList:`bullet-list`,orderedList:`ordered-list`,taskList:`task-list`}[e.type.name]??null:null}),Ca=(0,t.computed)(()=>{let e=xa.value;return e&&xc(e)?Kn:[]}),wa=(0,t.computed)(()=>{let e=xa.value;return!e||!j.value?!1:j.value===`properties`?Ca.value.length>0:j.value===`color`?Cc(e):j.value===`table-theme`?e.node.type.name===`table`&&Tr.value!==null:j.value===`divider-style`||j.value===`divider-color`?e.node.type.name===`horizontalRule`:j.value?.startsWith(`highlight-`)?e.node.type.name===`highlightBlock`&&Er.value!==null:j.value?.startsWith(`quote-`)?e.node.type.name===`blockquote`&&Er.value!==null:!0}),Ta=(0,t.ref)(0),Ea=null;(0,t.watch)(ue,e=>{if(Ea?.disconnect(),Ea=null,Ta.value=0,!e)return;let t=()=>{let t=e.getBoundingClientRect().height/(ha.value||1);t>0&&(Ta.value=t)};t(),Ea=new ResizeObserver(t),Ea.observe(e)},{flush:`post`});let Da=(0,t.computed)(()=>(Ke.value,Math.min(ze.value,_.value?.clientWidth??ze.value)<(jw+528+32)*ha.value)),Oa=(0,t.computed)(()=>Ta.value?Ta.value:Cr.value===`actions`?380:Cr.value===`insert`?680:Nw),ka=(0,t.computed)(()=>[`color`,`divider-color`,...Bt].includes(j.value??``)?264:jw),q=(0,t.computed)(()=>j.value===`properties`?Math.max(56,Ca.value.length*48):j.value===`color`||j.value===`divider-color`?j.value===`color`?290:438:j.value===`divider-style`?134:Bt.includes(j.value??``)?180:j.value===`highlight-settings`?64:680),Aa=(0,t.computed)(()=>{Ke.value;let e=xa.value;if(!e)return null;let t=e.node.isTextblock?Number.parseFloat(getComputedStyle(e.dom).lineHeight):Fw,n=e.isEmpty?e.rect.height:Math.min(e.rect.height,t||Fw),r=e.isEmpty?Iw:Lw,i=V.value?.view.dom,a=i?.getBoundingClientRect(),o=a?nc(a.left,a.top):null,s=i&&o?o.x+(Number.parseFloat(getComputedStyle(i).paddingLeft)||0):e.rect.left;return{left:Math.max(s-(v.value?.clientLeft??0)-r-Pw,8),top:Math.max(e.rect.top-(v.value?.clientTop??0)+(n-Fw)/2,8)}}),ja=(0,t.computed)(()=>{let e=Aa.value;return e?{left:`${e.left}px`,top:`${e.top}px`}:{}});function Ma(){let e=_.value?.querySelector(`.norio-office-rich-editor__main`);if(e instanceof HTMLElement){let t=e.getBoundingClientRect(),n=Math.max(0,t.left),r=Math.max(0,t.top),i=Math.min(ze.value,t.right),a=Math.min(Be.value,t.bottom);return new DOMRect(n,r,Math.max(0,i-n),Math.max(0,a-r))}return{left:0,top:0,right:ze.value,bottom:Be.value,width:ze.value,height:Be.value}}function Na(e){if(!v.value)return e;v.value.getBoundingClientRect();let t=Ma(),n=ha.value||1,r=Math.max((t.bottom-t.top-16)/n,120);return Math.min(e,r)}function Pa(e,t,n=jw,r=Nw,i=!0){if(!v.value)return{left:e,top:t};let a=v.value.getBoundingClientRect(),o=Ma(),s=ha.value||1,c=i?Na(r):r,l=a.left+v.value.clientLeft*s,u=a.top+v.value.clientTop*s,d=(o.left+8-l)/s,f=(o.right-8-l)/s-n,p=(o.top+8-u)/s,m=(o.bottom-8-u)/s-c;return{left:Math.min(Math.max(e,Math.min(d,f)),Math.max(d,f)),top:i?Math.min(Math.max(t,Math.min(p,m)),Math.max(p,m)):Math.max(p,Math.min(t,Math.max(p,m)))}}let Fa=(0,t.computed)(()=>{Ke.value;let e=xa.value,t=Cr.value===`actions`?wr.value??Aa.value:Aa.value;if(!e||!t)return null;let n=e.isEmpty?Iw:Lw,r=t.left,i=t.top,a=r-jw-Mw,o=r+n+Mw,s=v.value?.getBoundingClientRect(),c=ha.value||1;return Pa((s?s.left+a*c>=8:a>=8)?a:o,Cr.value===`actions`?i+(Fw-Oa.value)/2:e.isEmpty?i+Fw+Mw:i,jw,Oa.value,!1)}),Ia=(0,t.computed)(()=>Fa.value?{left:`${Fa.value.left}px`,top:`${Fa.value.top}px`}:{}),La=(0,t.computed)(()=>{Ke.value;let e=xa.value,t=Fa.value;if(!e||!t||!v.value)return{};let n=v.value.getBoundingClientRect(),r=ha.value||1,i=ka.value;if(Da.value&&Vt.includes(j.value??``))return J(i,q.value+42);if([`properties`,`color`,`divider-style`,`divider-color`,`highlight-settings`,...Bt].includes(j.value??``)){let e={properties:Oe.value,color:ke.value,"divider-style":_e.value,"divider-color":ve.value,"highlight-border":de.value,"highlight-fill":fe.value,"quote-border":de.value,"quote-background":fe.value,"highlight-settings":pe.value}[j.value]?.getBoundingClientRect();return e?Ra(e,i,q.value):{}}let a=Pa(n.left+(t.left+jw)*r+i*r<=Ma().right-8?t.left+jw:t.left-i,[`add-above`,`add-below`].includes(j.value??``)?t.top:t.top+42,i,q.value);return{left:`${a.left}px`,top:`${a.top}px`,width:`${i}px`,maxHeight:`${Na(q.value)}px`}});function J(e,t){let n=Fa.value;if(!v.value||!n)return{};let r=v.value.getBoundingClientRect(),i=ha.value||1,a=Ma(),o=Math.max(0,a.left)+8,s=Math.min(ze.value,a.right)-8,c=Math.max(0,a.top)+8,l=Math.min(Be.value,a.bottom)-8,u=Math.min(e,Math.max(0,(s-o)/i)),d=Math.max(0,(l-c)/i),f=Math.max(o,Math.min(r.left+n.left*i,s-u*i)),p=Math.max(c,Math.min(r.top+n.top*i,l-Math.min(t,d)*i));return{left:`${(f-r.left)/i}px`,top:`${(p-r.top)/i}px`,width:`${u}px`,maxHeight:`${d}px`}}function Ra(e,t,n){if(!v.value)return{};let r=v.value.getBoundingClientRect(),i=ha.value||1,a=Ma(),o=Math.max(0,a.left)+8,s=Math.min(ze.value,a.right)-8,c=Math.max(0,a.top)+8,l=Math.min(Be.value,a.bottom)-8,u=Math.min(t,Math.max(0,(s-o)/i)),d=Math.max(0,(l-c)/i),f=Math.min(n,d),p=e.right+Mw*i,m=p+u*i<=s?p:e.left-(u+Mw)*i,h=Math.max(o,Math.min(m,s-u*i)),g=Math.max(c,Math.min(e.top,l-f*i));return{left:`${(h-r.left)/i}px`,top:`${(g-r.top)/i}px`,width:`${u}px`,maxHeight:`${d}px`}}let za=(0,t.computed)(()=>{if(Ke.value,Da.value)return J(264,460);let e=Ae.value?.getBoundingClientRect();return e?Ra(e,264,400):{}}),Ba=(0,t.computed)(()=>{let e=Ar.value;return e?{left:`${e.left}px`,top:`${e.top}px`,width:`${e.width}px`,height:`${e.height}px`,"--norio-office-rich-block-drag-ghost-scale":String(e.scale),"--norio-office-rich-block-drag-ghost-source-width":`${e.sourceWidth}px`,"--norio-office-rich-block-drag-ghost-source-height":`${e.sourceHeight}px`}:{}}),Va=(0,t.computed)(()=>(V.value?.getText()??``).replace(/\s+/g,``).length),Ha=(0,t.computed)(()=>{let e=V.value?.getText()??``;return Math.max(1,e.split(/\n+/).filter(Boolean).length)}),Ua=(0,t.computed)(()=>{if(It.value,!V.value)return`正文`;for(let e of zt)if(e.level&&V.value.isActive(`heading`,{level:e.level}))return`标题 ${e.level}`;return`正文`}),Wa=(0,t.computed)(()=>(It.value,V.value?.isActive(`superscript`)?{icon:`shangbiao`,text:``}:V.value?.isActive(`subscript`)?{icon:`xiabiao`,text:``}:{icon:``,text:`AV`})),Ga=(0,t.computed)(()=>{It.value;let e=V.value?.getAttributes(`textStyle`).fontSize;return e?In.find(t=>t.value===e)?.label??e.replace(`px`,``):`小四`}),Ka=(0,t.computed)(()=>{It.value;let e=V.value?.getAttributes(`textStyle`).fontFamily;return e?Ln.find(t=>t.value===e)?.label??`默认`:`默认`}),qa=(0,t.computed)(()=>(It.value,V.value?.isActive(`heading`)?V.value.getAttributes(`heading`).textAlign||`left`:V.value?.getAttributes(`paragraph`).textAlign||`left`)),Ja=(0,t.computed)(()=>(It.value,V.value?.getAttributes(`textStyle`).color||`#333333`)),Ya=(0,t.computed)(()=>(It.value,V.value?.getAttributes(`textStyle`).backgroundColor||`#FFF3C4`)),Xa=(0,t.computed)(()=>V.value?.getAttributes(`blockquote`).quoteBorderColor||ir[0]),Za=(0,t.computed)(()=>V.value?.getAttributes(`blockquote`).quoteBackgroundColor||ar[0]),Qa=(0,t.computed)(()=>{if(!V.value?.isActive(`table`))return{isCellSelection:!1,isRowSelection:!1,isColumnSelection:!1};let e=V.value.state.selection,t=e instanceof s.CellSelection;return{isCellSelection:t,isRowSelection:t&&e.isRowSelection(),isColumnSelection:t&&e.isColSelection()}}),$a=(0,t.computed)(()=>{if(!V.value?.isActive(`table`))return null;try{return(0,s.selectionCell)(V.value.state).nodeAfter?.attrs.backgroundColor||null}catch{return null}}),eo=(0,t.computed)(()=>(It.value,ml(V.value?.getAttributes(`table`).tableTheme))),to=(0,t.computed)(()=>{It.value;let e=Tr.value,t=e===null?null:V.value?.state.doc.nodeAt(e);return t?.type.name===`table`?ml(t.attrs.tableTheme):null}),no=(0,t.computed)(()=>{if(It.value,Ke.value,j.value!==`table-theme`||!ge.value||!v.value)return{};let e=ge.value.getBoundingClientRect(),t=v.value.getBoundingClientRect(),n=Ma(),r=Math.max(0,n.left)+8,i=Math.min(ze.value,n.right)-8,a=Math.max(0,n.top)+8,o=Math.min(Be.value,n.bottom)-8,s=ha.value||1,c=Math.min(360,(i-r)/s),l=Math.max(120,(o-a)/s),u=Math.min(Ge.value,l),d=e.right+8*s,f=d+c*s<=i?d:e.left-(c+8)*s,p=Math.max(r,Math.min(f,i-c*s)),m=Math.max(a,Math.min(e.top,o-u*s));return{left:`${(p-t.left)/s}px`,top:`${(m-t.top)/s}px`,width:`${c}px`,maxHeight:`${l}px`}}),ro=(0,t.computed)(()=>{if(It.value,Ke.value,!We.value||!he.value)return{};let e=he.value.getBoundingClientRect(),t=Ma(),n={left:Math.max(0,t.left),right:Math.min(ze.value,t.right),top:Math.max(0,t.top),bottom:Math.min(Be.value,t.bottom)},r=ha.value||1,i=Math.min(360,(n.right-n.left-16)/r),a=Math.max(120,(n.bottom-n.top-16)/r),o=Math.min(Ge.value,a),s=e.bottom+8*r,c=s+o*r<=n.bottom-8?s:e.top-(o+8)*r,l=Math.max(n.top+8,Math.min(c,n.bottom-8-o*r));return{left:`${(Math.max(n.left+8,Math.min(e.left,n.right-8-i*r))-e.left)/r}px`,top:`${(l-e.top)/r}px`,width:`${i}px`,maxHeight:`${a}px`}}),io=(0,t.computed)(()=>{It.value;let e=Er.value,t=e===null?null:V.value?.state.doc.nodeAt(e),n=t?.type.name===`highlightBlock`?t.attrs:{};return{borderColor:String(n.borderColor??kw),backgroundColor:String(n.backgroundColor??Aw),emojiEnabled:n.emojiEnabled!==!1}}),ao=(0,t.computed)(()=>{It.value;let e=Sr.value,t=e&&V.value?.state.doc.nodeAt(e.pos),n={text:null,background:null},r=!1;return t?.descendants(e=>{if(!e.isText||r)return;let t=e.marks.find(e=>e.type.name===`textStyle`);n.text=t?.attrs.color??null,n.background=t?.attrs.backgroundColor??null,r=!0}),n}),oo=(0,t.computed)(()=>{let e=xa.value;return e?Sc(e):[]}),so=(0,t.computed)(()=>{let e=oo.value.map(({node:e})=>e.attrs.textAlign||`left`);return e.every(t=>t===e[0])?e[0]||`left`:``}),co=(0,t.computed)(()=>oo.value.some(({node:e})=>Number(e.attrs.indent??0)<8)),lo=(0,t.computed)(()=>oo.value.some(({node:e})=>Number(e.attrs.indent??0)>0)),uo=(0,t.computed)(()=>kf(xa.value?.node.attrs.lineStyle)),fo=(0,t.computed)(()=>Af(xa.value?.node.attrs.lineColor)??`#dfe5ee`),po=(0,t.computed)(()=>{let e=V.value?.getAttributes(`countdownBlock`)??{};return{mode:e.mode===`duration`?`duration`:`deadline`,targetTimestamp:Number(e.targetTimestamp??0)||0}});function mo(e){It.value;try{return!!V.value&&e(V.value)}catch{return!1}}function ho(e){try{return e()}catch{return!1}}let go=(0,t.computed)(()=>!!V.value&&ho(()=>V.value.can().chain().focus().mergeCells().run())),_o=(0,t.computed)(()=>!!V.value&&ho(()=>V.value.can().chain().focus().splitCell().run())),vo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().undo().run())),yo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().redo().run())),bo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().unsetAllMarks().clearNodes().run())),xo=(0,t.computed)(()=>(It.value,Ir.value&&u.showComments&&!!V.value&&Pr.value&&!!qr.value)),So=(0,t.computed)(()=>mo(e=>e.can().chain().focus().setParagraph().run())||mo(e=>e.can().chain().focus().toggleHeading({level:1}).run())),Co=(0,t.computed)(()=>mo(e=>e.can().chain().focus().setFontFamily(Ln[1]?.value??``).run())||mo(e=>e.can().chain().focus().unsetFontFamily().run())),wo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().setFontSize(In[0]?.value??`16px`).run())),To=(0,t.computed)(()=>mo(e=>e.can().chain().focus().setColor(`#333333`).run())),Eo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().setBackgroundColor(`#FFF3C4`).run())),Do=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleBold().run())),Oo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleItalic().run())),ko=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleUnderline().run())),Ao=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleStrike().run())),jo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleSuperscript().run())||mo(e=>e.can().chain().focus().toggleSubscript().run())),Mo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleBulletList().run())),No=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleOrderedList().run())),Po=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleTaskList().run())),Fo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().setTextAlign(`left`).run())||mo(e=>e.can().chain().focus().setTextAlign(`center`).run())||mo(e=>e.can().chain().focus().setTextAlign(`right`).run())),Io=(0,t.computed)(()=>mo(e=>e.can().chain().focus().decreaseIndent().run())),Lo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().increaseIndent().run())),Ro=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleBlockquote().run())),zo=(0,t.computed)(()=>Ro.value||!!V.value?.isActive(`blockquote`)),Bo=(0,t.computed)(()=>mo(e=>e.can().chain().focus().toggleCode().run())),Vo=(0,t.computed)(()=>{It.value;let e=e=>!!V.value?.isActive(e),t=t=>{let n=t?!!V.value?.isActive(`heading`,{level:t}):e(`paragraph`)&&![`bulletList`,`orderedList`,`taskList`,`blockquote`,`highlightBlock`].some(e);return{key:t?`heading-${t}`:`paragraph`,label:t?`${[`一`,`二`,`三`,`四`,`五`,`六`][t-1]}级标题`:`正文`,text:t?`H${t}`:`T`,active:n,disabled:!n&&!Ff(t),run:()=>$d(t)}},n=[t(),t(1),t(2),t(3),{key:`other-headings`,label:`其他标题`,text:`Hn`,active:[4,5,6].some(e=>!!V.value?.isActive(`heading`,{level:e})),options:[t(4),t(5),t(6)]},{key:`orderedList`,label:`有序列表`,icon:`youxuliebiao`,active:e(`orderedList`),disabled:!No.value,run:Cf},{key:`bulletList`,label:`无序列表`,icon:`wuxuliebiao`,active:e(`bulletList`),disabled:!Mo.value,run:Sf},{key:`taskList`,label:`任务`,icon:`To-do`,active:e(`taskList`),disabled:!Po.value,run:wf}];ag(`code-block`,Qn.value)&&n.push({key:`codeBlock`,label:`代码块`,icon:`codeblock`,active:e(`codeBlock`),disabled:!mo(e=>e.can().chain().focus().toggleCodeBlock().run()),run:()=>cl()?.toggleCodeBlock().run()});let r=[];ni.value&&r.push({key:`blockquote`,label:`引用`,icon:`yinyong`,active:e(`blockquote`),disabled:!Ro.value,run:()=>cl()?.toggleBlockquote().run()}),ag(`highlight-block`,Qn.value)&&r.push({key:`highlightBlock`,label:`高亮块`,icon:`gaoliangkuai`,active:e(`highlightBlock`),disabled:!mo(e=>e.can().chain().focus().toggleWrap(`highlightBlock`).run()),run:()=>cl()?.toggleWrap(`highlightBlock`).run()}),r[0]&&(r[0].divider=!0),n.push(...r);let i=n.find(e=>e.active&&e.key!==`other-headings`);return[{key:`heading`,label:`正文和标题`,icon:i?.icon,text:i?.text||(V.value?.isActive(`heading`)?`H${V.value.getAttributes(`heading`).level}`:`T`),disabled:!n.some(e=>e.options?e.options.some(e=>!e.disabled):!e.disabled),options:n},{key:`font`,label:`字体`,text:Ka.value,disabled:!Co.value,options:Ln.map(e=>({key:e.label,label:e.label,fontFamily:e.value,active:Ka.value===e.label,disabled:!If(e.value),run:()=>of(e.value)}))},{key:`size`,label:`字号`,text:Ga.value,disabled:!wo.value,options:In.map(e=>({key:e.label,label:e.label,active:Ga.value===e.label,disabled:!Lf(e.value),run:()=>lf(e.value)}))},{key:`text-color`,label:`文字颜色`,color:Ja.value,defaultColor:`#333333`,recentColors:cr.value,setColor:df,disabled:!To.value},{key:`background-color`,label:`文字背景颜色`,icon:`beijingse`,color:Ya.value,defaultColor:`#FFF3C4`,recentColors:lr.value,setColor:pf,disabled:!Eo.value},{key:`bold`,label:`加粗`,icon:`jiacu`,active:e(`bold`),disabled:!Do.value,run:_f},{key:`italic`,label:`斜体`,icon:`xieti`,active:e(`italic`),disabled:!Oo.value,run:vf},{key:`underline`,label:`下划线`,icon:`xiahuaxian`,active:e(`underline`),disabled:!ko.value,run:yf},{key:`strike`,label:`删除线`,text:`S`,active:e(`strike`),disabled:!Ao.value,run:bf},{key:`script`,label:`上下标`,icon:Wa.value.icon||void 0,text:Wa.value.text,active:e(`superscript`)||e(`subscript`),disabled:!jo.value,options:[{key:`superscript`,label:`上标`,icon:`shangbiao`,active:e(`superscript`),disabled:!zf(),run:Mf},{key:`subscript`,label:`下标`,icon:`xiabiao`,active:e(`subscript`),disabled:!Bf(),run:Nf}]},{key:`alignment`,label:`对齐和缩进`,icon:qa.value===`center`?`juzhongduiqi`:qa.value===`right`?`youduiqi`:`zuoduiqi`,disabled:!Fo.value,options:[...[`left`,`center`,`right`].map((e,t)=>({key:e,label:[`左对齐`,`居中对齐`,`右对齐`][t],icon:[`zuoduiqi`,`juzhongduiqi`,`youduiqi`][t],active:qa.value===e,disabled:!Rf(e),run:()=>xl(e)})),{key:`indent-more`,label:`增加缩进`,icon:`yousuojin`,divider:!0,disabled:!Lo.value,run:tf},{key:`indent-less`,label:`减少缩进`,icon:`zuosuojin`,disabled:!Io.value,run:rf}]},{key:`code`,label:`行内代码`,icon:`code`,active:e(`code`),disabled:!Bo.value,run:xf},{key:`clear`,label:`清除格式`,icon:`rubber`,disabled:!bo.value,run:Pf}]}),Ho=(0,t.computed)(()=>!!V.value?.isActive(`table`)),Uo=(0,t.computed)(()=>Qa.value.isRowSelection),Wo=(0,t.computed)(()=>Qa.value.isColumnSelection),Go=(0,t.computed)(()=>!!V.value?.isActive(`table`)&&(Qa.value.isRowSelection||Qa.value.isColumnSelection||Qa.value.isCellSelection));(0,t.computed)(()=>{let e=kn.value;if(e)return{left:`${e.left+e.width/2}px`,top:`${e.top+e.height+12}px`}});function Ko(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`image-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function qo(e,t){return{assetId:t.assetId,url:t.url,name:t.name||e.name,size:t.size??e.size,mimeType:t.mimeType||e.type||``,alt:t.alt,description:t.description}}function Jo(e){g.value?.(e),d(`upload-error`,e)}function Yo(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`upload-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function Xo(e){return e instanceof Error&&e.message?e.message:`上传失败,请重试。`}function Zo(e){return e===`image`?`图片`:e===`video`?`视频`:`文件`}function Qo(e){return`${Zo(e.kind)}${e.status===`uploading`?`上传中`:`上传失败`}`}function $o(e){ht.value=ht.value.filter(t=>t.id!==e)}function es(e,t){ht.value=ht.value.map(n=>n.id===e?{...n,...t}:n)}async function ts(e,t,n,r){let i=Yo(),a={id:i,kind:e,fileName:t,status:`uploading`,retry:()=>void 0},o=async()=>{es(i,{status:`uploading`,message:void 0});try{let e=await n();return $o(i),e}catch(e){return es(i,{status:`error`,message:Xo(e)}),r(e),null}};return a.retry=()=>{o()},ht.value=[a,...ht.value],await o()}async function ns(e,t){let n=t===`image`?f.value:t===`video`?p.value:m.value;if(n)return qo(e,await n({file:e,kind:t}));throw Error(`Missing upload${t[0].toUpperCase()}${t.slice(1)} hook.`)}function rs(e){let t=e,n=t.detail;!n?.file||!n.kind||(t.stopPropagation(),n.handled=!0,ns(n.file,n.kind).then(n.resolve,n.reject))}function is(e){return`${String(u.documentName??`未命名文档`).trim().replace(/[\\/:*?"<>|]/g,`-`).replace(/\.+$/g,``)||`未命名文档`}.${e}`}function as(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function os(){if(!v.value)return null;let e=v.value.cloneNode(!0);return e.querySelectorAll(`.norio-office-rich-image-block__image-link[data-image-link]`).forEach(e=>{let t=document.createElement(`a`);t.className=e.className,t.href=e.dataset.imageLink??``,t.target=e.dataset.imageLinkTarget===`_self`?`_self`:`_blank`,t.rel=`noreferrer noopener`,t.append(...Array.from(e.childNodes)),e.replaceWith(t)}),e.querySelectorAll(`.norio-office-rich-image-block__caption-desc`).forEach(e=>{e.removeAttribute(`hidden`),e.textContent||e.closest(`.norio-office-rich-image-block__caption`)?.remove()}),e.style.transform=`none`,e.style.transformOrigin=`top left`,e.style.boxShadow=`none`,e.style.margin=`0`,e.style.width=`${yw}px`,e.style.minHeight=`${Math.max(v.value.scrollHeight,bw)}px`,e.style.height=`auto`,e.querySelectorAll(`.norio-office-rich-table-column-track,.norio-office-rich-table-row-track,.norio-office-rich-table-add-row,.norio-office-rich-table-add-column,.norio-office-rich-columns__overlay,.norio-office-rich-table-bubble-menu,.norio-office-rich-countdown-bubble-menu,.norio-office-rich-code-block__toolbar,.norio-office-rich-code-block__menu,.norio-office-rich-code-block__settings-menu,.norio-office-rich-code-block__line-numbers,.norio-office-rich-image-block__toolbar,.norio-office-rich-video-block__toolbar,.norio-office-rich-link-block__toolbar,.norio-office-rich-local-file-block__actions,.norio-office-rich-countdown-block__actions,.norio-office-rich-block-side-control,.norio-office-rich-block-side-menu,.norio-office-rich-block-side-submenu,.norio-office-rich-drag-insert-indicator,.norio-office-rich-upload-panel,.column-resize-handle,.ProseMirror-gapcursor,.norio-office-rich-video-block,[data-type="video-block"],.norio-office-rich-formula-editor,.norio-office-rich-marquee-selection-layer,.collaboration-carets__caret,.collaboration-carets__label,[aria-hidden="true"],button,input,textarea,select`.split(`,`).join(`, `)).forEach(e=>{e.remove()}),e.querySelectorAll(`[contenteditable]`).forEach(e=>{e.removeAttribute(`contenteditable`),e.removeAttribute(`tabindex`),e.removeAttribute(`spellcheck`),e.removeAttribute(`autocapitalize`),e.removeAttribute(`autocorrect`),e.removeAttribute(`data-placeholder`)}),e.querySelectorAll(`.ProseMirror-selectednode`).forEach(e=>{e.classList.remove(`ProseMirror-selectednode`)}),e.querySelectorAll(`.norio-office-rich-formula-block--selected`).forEach(e=>{e.classList.remove(`norio-office-rich-formula-block--selected`)}),e.querySelectorAll(`.collaboration-carets__selection`).forEach(e=>{e.classList.remove(`collaboration-carets__selection`),e.removeAttribute(`data-user`),e.removeAttribute(`style`)}),e}async function ss(){let e=os();if(!e)return null;let n=document.createElement(`div`);n.style.position=`fixed`,n.style.left=`-20000px`,n.style.top=`0`,n.style.padding=`0`,n.style.margin=`0`,n.style.background=`#ffffff`,n.style.zIndex=`-1`,n.appendChild(e),document.body.appendChild(n);try{await(0,t.nextTick)();let{default:n}=await Promise.resolve().then(()=>ce(rv(),1));return await n(e,{backgroundColor:`#ffffff`,scale:2,useCORS:!0,logging:!1,width:yw,height:e.scrollHeight,windowWidth:yw,windowHeight:e.scrollHeight})}finally{n.remove()}}function cs(){ai.value&&(it.value=!it.value)}function ls(e){[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),it.value=!0,(0,t.nextTick)(()=>{let t=Array.from(te.value?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]);if(!t.length)return;let n=t.indexOf(document.activeElement);t[e.key===`Home`?0:e.key===`End`?t.length-1:e.key===`ArrowUp`?n<=0?t.length-1:n-1:(n+1)%t.length]?.focus({preventScroll:!0})}))}function us(e,t){let n=URL.createObjectURL(t),r=document.createElement(`a`);r.download=e,r.href=n,r.click(),window.setTimeout(()=>{URL.revokeObjectURL(n)},1e3)}function ds(e,t,n){return new Promise(r=>{e.toBlob(e=>r(e),t,n)})}async function fs(e={}){let t=await ss();return t?await ds(t,e.type===`image/jpeg`?`image/jpeg`:`image/png`,typeof e.quality==`number`?Math.max(0,Math.min(1,e.quality)):void 0):null}function ps(e){return Number(e.toFixed(2)).toString()}function ms(e){return Array.from(e||` `).map(e=>{let t=e.codePointAt(0)??32;return(t<=65535?t:9633).toString(16).padStart(4,`0`).toUpperCase()}).join(``)}function hs(e){return Array.from(e||` `).map(e=>(e.codePointAt(0)??32)&255).map(e=>e.toString(16).padStart(2,`0`).toUpperCase()).join(``)}function gs(e){if(!e)return null;let t=e.trim().toLowerCase();if(!t||t===`transparent`)return null;let n=t.match(/^rgba?\(([^)]+)\)$/);if(n){let e=n[1].split(`,`).map(e=>e.trim());return(e[3]===void 0?1:Number(e[3]))<=0?null:{r:Math.max(0,Math.min(255,Number.parseFloat(e[0])||0))/255,g:Math.max(0,Math.min(255,Number.parseFloat(e[1])||0))/255,b:Math.max(0,Math.min(255,Number.parseFloat(e[2])||0))/255}}let r=t.startsWith(`#`)?t.slice(1):t;return/^[0-9a-f]{3}$/i.test(r)?{r:Number.parseInt(r[0]+r[0],16)/255,g:Number.parseInt(r[1]+r[1],16)/255,b:Number.parseInt(r[2]+r[2],16)/255}:/^[0-9a-f]{6}$/i.test(r)?{r:Number.parseInt(r.slice(0,2),16)/255,g:Number.parseInt(r.slice(2,4),16)/255,b:Number.parseInt(r.slice(4,6),16)/255}:null}function _s(e){let t=window.getComputedStyle(e);return t.display!==`none`&&t.visibility!==`hidden`&&Number(t.opacity||`1`)>0}function Y(e){let t=gs(e);return t?!(t.r>.995&&t.g>.995&&t.b>.995):!1}function vs(e){let t=e.getBoundingClientRect(),n=yw,r=Math.max(e.scrollHeight,bw),i=[{commands:[]}],a=()=>i[i.length-1],o=e=>e-t.left,s=e=>e-t.top,c=(e,t,n,i,o={})=>{if(n<=0||i<=0)return;let s=gs(o.fill);s&&a().commands.push(`q ${ps(s.r)} ${ps(s.g)} ${ps(s.b)} rg ${ps(e)} ${ps(r-t-i)} ${ps(n)} ${ps(i)} re f Q`);let c=gs(o.stroke);c&&a().commands.push(`q ${ps(c.r)} ${ps(c.g)} ${ps(c.b)} RG ${ps(e)} ${ps(r-t-i)} ${ps(n)} ${ps(i)} re S Q`)},l=(e,t,n,i,o)=>{if(!e)return;let s=gs(o)??{r:15/255,g:23/255,b:42/255},c=Array.from(e).every(e=>(e.codePointAt(0)??0)<=255),l=c?`F2`:`F1`,u=c?hs(e):ms(e);a().commands.push(`BT /${l} ${ps(i)} Tf ${ps(s.r)} ${ps(s.g)} ${ps(s.b)} rg ${ps(t)} ${ps(r-n)} Td <${u}> Tj ET`)};e.querySelectorAll(`*`).forEach(e=>{if(!_s(e))return;let t=window.getComputedStyle(e),n=e.getBoundingClientRect(),r=o(n.left),i=s(n.top),a=t.backgroundColor,l=t.borderColor,u=[`Top`,`Right`,`Bottom`,`Left`].some(e=>Number.parseFloat(t[`border${e}Width`])>0);(Y(a)||u)&&c(r,i,n.width,n.height,{fill:Y(a)?a:null,stroke:u?l:null})});let u=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){if(!(e.textContent??``).trim())return NodeFilter.FILTER_REJECT;let t=e.parentElement;return!t||!_s(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),d=document.createRange();for(;u.nextNode();){let e=u.currentNode,t=e.textContent??``,n=e.parentElement;if(!n)continue;let r=window.getComputedStyle(n),i=Number.parseFloat(r.fontSize||`14`)||14,a=Number.parseFloat(r.lineHeight||``),c=Number.isFinite(a)?a:i*1.4,f=r.color||`#0f172a`,p=``,m=0,h=0,g=0,_=0,v=()=>{if(!p.trim()){p=``;return}l(p,m,g,i,f),p=``};Array.from(t).forEach((t,n)=>{if(!t.trim()){v();return}d.setStart(e,n),d.setEnd(e,n+t.length);let r=d.getBoundingClientRect();if(r.width<=0||r.height<=0){v();return}let a=o(r.left),l=s(r.top),u=l+Math.min(c,r.height)*.82,f=p&&Math.abs(l-h)<2&&Math.abs(a-_)<Math.max(i*.8,8),y=!p||Array.from(p).every(e=>(e.codePointAt(0)??0)<=255)===(t.codePointAt(0)??0)<=255;(!f||!y)&&(v(),m=a,h=l,g=u),p||(m=a,h=l,g=u),p+=t,_=o(r.right)}),v()}d.detach();let f=[],p=(e=``)=>(f.push(e),f.length),m=(e,t)=>{f[e-1]=t},h=p(),g=p(`<< /Type /Font /Subtype /Type0 /BaseFont /STSong-Light /Encoding /UniGB-UCS2-H /DescendantFonts [${p(`<< /Type /Font /Subtype /CIDFontType0 /BaseFont /STSong-Light /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 2 >> >>`)} 0 R] >>`),_=p(`<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>`),v=i.map(e=>{let t=e.commands.join(`
|
|
7814
|
-
`),i=p(`<< /Length ${t.length} >>\nstream\n${t}\nendstream`);return p(`<< /Type /Page /Parent ${h} 0 R /MediaBox [0 0 ${
|
|
7811
|
+
`),a=i.lastIndexOf(`@`);if(a<0)return null;let o=i.slice(a+1);return/[\s@]/.test(o)?null:{from:r+a,to:n.pos,query:o}}function ki(){if(!V.value||!it.value||!v.value)return;let e=V.value.view.coordsAtPos(it.value.from),t=v.value.getBoundingClientRect(),n=pa.value||1,r=ke.value?.offsetWidth||dw,i=ke.value?.offsetHeight||fw,a=r*n,o=i*n,s=window.innerWidth||Fe.value,c=window.innerHeight||Ie.value,l=Math.max(pw,s-a-pw),u=Math.max(pw,c-o-pw),d=e.bottom+mw,f=e.top-o-mw,p=d+o>c-pw&&f>=pw,m=Math.max(pw,Math.min(l,e.left)),h=Math.max(pw,Math.min(u,p?f:d));at.value={left:Math.max(pw,Math.min(lw-r-pw,(m-t.left)/n)),top:Math.max(pw,(h-t.top)/n)}}async function Ai(e){if(!Vr.value)return;let t=++Ti;$e.value=!0;try{let n=u.onMentionSearch??u.mentionProvider,r=n?await n(e):[];if(t!==Ti)return;nt.value=(Array.isArray(r)?r:[]).map(Ei).filter(e=>!!e),rt.value=0}catch{t===Ti&&(nt.value=[],rt.value=0)}finally{t===Ti&&($e.value=!1)}}function ji(){Qe.value=!1,it.value=null,et.value=``,nt.value=[],rt.value=0,Ti+=1,$e.value=!1}function Mi(){if(!Vr.value||!V.value||!Mr.value)return;let e=Oi();if(!e){ji();return}it.value={from:e.from,to:e.to},et.value=e.query,tt.value=`all`,Qe.value=!0,ki(),(0,t.nextTick)(ki),Ai({query:e.query,type:tt.value})}function Ni(){if(!Vr.value){(Qe.value||it.value||nt.value.length||$e.value)&&ji();return}if(!Qe.value)return;let e=Oi();if(!e){ji();return}it.value={from:e.from,to:e.to},ki(),(0,t.nextTick)(ki),e.query!==et.value&&(et.value=e.query,Ai({query:e.query,type:tt.value}))}function Pi(e){Vr.value&&(tt.value=e,rt.value=0,Ai({query:et.value,type:e}))}function Fi(e,t){Vr.value&&(rt.value=t,d(`mention-item-click`,H(e)))}function Ii(e){let t=R.value.length;t&&(rt.value=(rt.value+e+t)%t)}function Li(e){if(!Vr.value||!V.value||!it.value)return!1;let t=H(e),n=V.value.chain().focus().deleteRange(it.value).insertContent([{type:`mention`,attrs:t},{type:`text`,text:` `}]).run();return n&&(d(`mention-submit`,t),ji()),n}function W(e){let t=Ei(e);return!Vr.value||!t||!V.value?!1:V.value.chain().focus().insertContent([{type:`mention`,attrs:H(t)},{type:`text`,text:` `}]).run()}function Ri(){!Vr.value||!Si.value||Li(Si.value)}function zi(e){return!Vr.value||!Qe.value?!1:e.key===`Escape`?(ji(),!0):e.key===`ArrowDown`?(Ii(1),!0):e.key===`ArrowUp`?(Ii(-1),!0):e.key===`Enter`&&Si.value?(Ri(),!0):!1}let Bi=0;function Vi(e){return Ei(e)}function Hi(e){return H(e)}function Ui(e){return`@${e.name}`}function Wi(e){return`${e.type}:${e.id}`}function Gi(e,t){let n=Hi(t),r=Wi(n);return[...e.filter(e=>Wi(e)!==r),n]}function Ki(e,t){return t.filter(t=>e.includes(Ui(t)))}function qi(e,t){return dt.value[Lu(e,t)]??[]}function Ji(e,t,n){let r=Lu(e,n);dt.value={...dt.value,[r]:t}}function Yi(e){let t=e.selectionStart??0;if(t!==(e.selectionEnd??t))return null;let n=e.value.slice(0,t),r=n.lastIndexOf(`@`);if(r<0)return null;let i=n.slice(r+1);return/[\s@]/.test(i)?null:{from:r,to:t,query:i}}function Xi(){let e=Dt.value;if(!e)return;let t=e.textarea.getBoundingClientRect(),n=b.value?.offsetWidth||dw,r=b.value?.offsetHeight||fw,i=window.innerWidth||Fe.value,a=window.innerHeight||Ie.value,o=t.bottom+mw,s=t.top-r-mw,c=o+r>a-pw&&s>=pw;Et.value={left:Math.max(pw,Math.min(i-n-pw,t.left)),top:Math.max(pw,Math.min(a-r-pw,c?s:o))}}function Zi(){bt.value=!1,Dt.value=null,St.value=``,wt.value=[],Tt.value=0,Bi+=1,xt.value=!1}async function Qi(e){if(!Hr.value)return;d(`comment-mention-search`,e);let t=++Bi;xt.value=!0;try{let n=u.onCommentMentionSearch??u.commentMentionProvider,r=n?await n(e):[];if(t!==Bi)return;wt.value=(Array.isArray(r)?r:[]).map(Vi).filter(e=>!!e),Tt.value=0}catch{t===Bi&&(wt.value=[],Tt.value=0)}finally{t===Bi&&(xt.value=!1)}}function $i(e,n){if(!Hr.value||!e||!Mr.value){Zi();return}let r=Yi(e);if(!r){Zi();return}let i=n.mode===`edit`?pt.value:Ru(n.threadId,n.parentId);Dt.value={...n,textarea:e,range:r},St.value=r.query,Ct.value=`all`,bt.value=!0,Xi(),(0,t.nextTick)(Xi),Qi({query:r.query,type:Ct.value,threadId:n.threadId,commentId:n.commentId,parentId:n.parentId,content:i})}function ea(e){if(!Hr.value||!Dt.value)return;let t=Dt.value,n=t.mode===`edit`?pt.value:Ru(t.threadId,t.parentId);Ct.value=e,Tt.value=0,Qi({query:St.value,type:e,threadId:t.threadId,commentId:t.commentId,parentId:t.parentId,content:n})}function ta(e,t){Hr.value&&(Tt.value=t,d(`comment-mention-item-click`,Hi(e)))}function G(e){let t=Ci.value.length;t&&(Tt.value=(Tt.value+e+t)%t)}function na(e){let n=Dt.value;if(!Hr.value||!n)return!1;let r=Hi(e),i=n.mode===`edit`?pt.value:Ru(n.threadId,n.parentId),a=`${Ui(r)} `,o=`${i.slice(0,n.range.from)}${a}${i.slice(n.range.to)}`,s=n.range.from+a.length;return n.mode===`edit`?(pt.value=o,mt.value=Gi(mt.value,r)):(zu(n.threadId,o,n.parentId),Ji(n.threadId,Gi(qi(n.threadId,n.parentId),r),n.parentId)),d(`comment-mention-submit`,r),Zi(),(0,t.nextTick)(()=>{n.textarea.focus(),n.textarea.setSelectionRange(s,s)}),!0}function ra(){!Hr.value||!wi.value||na(wi.value)}function ia(e){return!Hr.value||!bt.value?!1:e.key===`Escape`?(Zi(),!0):e.key===`ArrowDown`?(G(1),!0):e.key===`ArrowUp`?(G(-1),!0):(e.key===`Enter`||e.key===`Tab`)&&wi.value?(ra(),!0):!1}function aa(e){return e.replace(/\s+/g,` `).trim()||`未命名标题`}function oa(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants((t,n)=>{t.type.name===`heading`&&e.push({pos:n,level:Math.min(6,Math.max(1,Number(t.attrs.level??1))),text:aa(t.textContent)})}),e}function sa(e){if(!V.value)return null;let t=V.value.state.selection.from,n=null;for(let r of e){if(r.pos>t)break;n=r.pos}return n}function ca(){return{items:A.value.map(e=>({...e})),activePos:nr.value}}function la(){let e=ca(),t=JSON.stringify(e);t!==ir&&(ir=t,d(`outline-change`,e),rr.forEach(t=>t(e)))}function ua(){let e=oa();A.value=e,nr.value=sa(e),la()}function da(){Fe.value=window.innerWidth,Ie.value=window.innerHeight}function fa(){if(!_.value)return;let e=_.value.querySelector(`.norio-office-rich-toolbar__group--insert .norio-office-rich-toolbar__button--select .norio-office-rich-toolbar__label`);e&&(e.textContent=ii.value);let t=_.value.querySelectorAll(`.norio-office-rich-insert-menu__title`),n=0;N.value.length&&t[n]&&(t[n].textContent=ai.value,n+=1),Xr.value.length&&t[n]&&(t[n].textContent=oi.value,n+=1),Zr.value.length&&t[n]&&(t[n].textContent=si.value);let r=_.value.querySelector(`.norio-office-rich-toolbar__menu--quote .norio-office-rich-color-menu__current`);r&&(r.textContent=ci.value);let i=_.value.querySelectorAll(`.norio-office-rich-toolbar__menu--quote .norio-office-rich-color-menu__label`);i[0]&&(i[0].textContent=li.value),i[1]&&(i[1].textContent=ui.value);let a=_.value.querySelector(`.norio-office-rich-statusbar__label--presentation`);a&&(a.textContent=yi.value);let o=_.value.querySelector(`.norio-office-rich-statusbar__label--fullscreen`);o&&(o.textContent=bi.value);let s=_.value.querySelector(`.norio-office-rich-statusbar__word-count span`);s&&(s.textContent=_i.value);let c=_.value.querySelector(`.norio-office-rich-statusbar__line-count span`);c&&(c.textContent=vi.value)}let pa=(0,t.computed)(()=>At.value/100*xi.value),ma=(0,t.computed)(()=>({"--norio-office-rich-page-width":`${lw}px`,"--norio-office-rich-page-height":`${uw}px`,"--norio-office-rich-page-scale":String(pa.value)})),ha=(0,t.computed)(()=>{if(!Rr.value)return null;let e=String(u.watermark?.text??``).trim();return e?{text:e,color:u.watermark?.color||`rgba(15, 23, 42, 0.12)`,fontSize:Math.max(12,Math.min(96,Number(u.watermark?.fontSize??18)||18)),rotate:Math.max(-90,Math.min(90,Number(u.watermark?.rotate??-24)||-24)),showInEdit:u.watermark?.showInEdit??!0}:null}),ga=(0,t.computed)(()=>ha.value?!Mr.value||ha.value.showInEdit:!1),_a=(0,t.computed)(()=>{let e=ha.value;return e?{"--norio-office-rich-watermark-color":e.color,"--norio-office-rich-watermark-font-size":`${e.fontSize}px`,"--norio-office-rich-watermark-rotate":`${e.rotate}deg`}:{}}),va=Array.from({length:96},(e,t)=>t),ya=(0,t.computed)(()=>{Ot.value;let e=V.value?.state.selection,t=e&&!(e instanceof a.NodeSelection)&&!e.empty,n=e instanceof a.NodeSelection&&[`imageBlock`,`videoBlock`,`linkBlock`,`table`].includes(e.node.type.name);return!Mr.value||mr.value||hr.value||gr.value||_r.value||vr.value||yr.value||!!sr.value||L.value||!!t||n}),ba=(0,t.computed)(()=>ya.value?null:pr.value??fr.value);(0,t.watch)(ya,e=>{e&&(vc(),fr.value=null)},{flush:`sync`}),(0,t.watch)(yr,e=>{e||(ze.value=!1,Be.value=!1)});let xa=(0,t.computed)(()=>{let e=ba.value;return e&&wc(e)?Pn:[]}),K=(0,t.computed)(()=>{let e=ba.value?.node;return e?e.type.name===`heading`?`heading-${e.attrs.level}`:{paragraph:`paragraph`,bulletList:`bullet-list`,orderedList:`ordered-list`,taskList:`task-list`}[e.type.name]??null:null}),Sa=(0,t.computed)(()=>{let e=ba.value;return e&&Tc(e)?Fn:[]}),Ca=(0,t.computed)(()=>{let e=ba.value;return!e||!j.value?!1:j.value===`properties`?Sa.value.length>0:j.value===`color`?Dc(e):j.value===`table-theme`?e.node.type.name===`table`&&Cr.value!==null:j.value===`divider-style`||j.value===`divider-color`?e.node.type.name===`horizontalRule`:j.value?.startsWith(`highlight-`)?e.node.type.name===`highlightBlock`&&wr.value!==null:j.value?.startsWith(`quote-`)?e.node.type.name===`blockquote`&&wr.value!==null:!0}),wa=(0,t.ref)(0),Ta=null;(0,t.watch)(ue,e=>{if(Ta?.disconnect(),Ta=null,wa.value=0,!e)return;let t=()=>{let t=e.getBoundingClientRect().height/(pa.value||1);t>0&&(wa.value=t)};t(),Ta=new ResizeObserver(t),Ta.observe(e)},{flush:`post`});let Ea=(0,t.computed)(()=>(He.value,Math.min(Fe.value,_.value?.clientWidth??Fe.value)<(xw+528+32)*pa.value)),Da=(0,t.computed)(()=>wa.value?wa.value:xr.value===`actions`?380:xr.value===`insert`?680:Cw),Oa=(0,t.computed)(()=>[`color`,`divider-color`,...Mt].includes(j.value??``)?264:xw),ka=(0,t.computed)(()=>j.value===`properties`?Math.max(56,Sa.value.length*48):j.value===`color`||j.value===`divider-color`?j.value===`color`?290:438:j.value===`divider-style`?134:Mt.includes(j.value??``)?180:j.value===`highlight-settings`?64:680),q=(0,t.computed)(()=>{He.value;let e=ba.value;if(!e)return null;let t=e.node.isTextblock?Number.parseFloat(getComputedStyle(e.dom).lineHeight):Tw,n=e.isEmpty?e.rect.height:Math.min(e.rect.height,t||Tw),r=e.isEmpty?Ew:Dw,i=V.value?.view.dom,a=i?.getBoundingClientRect(),o=a?rc(a.left,a.top):null,s=i&&o?o.x+(Number.parseFloat(getComputedStyle(i).paddingLeft)||0):e.rect.left;return{left:Math.max(s-(v.value?.clientLeft??0)-r-ww,8),top:Math.max(e.rect.top-(v.value?.clientTop??0)+(n-Tw)/2,8)}}),Aa=(0,t.computed)(()=>{let e=q.value;return e?{left:`${e.left}px`,top:`${e.top}px`}:{}});function ja(){let e=_.value?.querySelector(`.norio-office-rich-editor__main`);if(e instanceof HTMLElement){let t=e.getBoundingClientRect(),n=Math.max(0,t.left),r=Math.max(0,t.top),i=Math.min(Fe.value,t.right),a=Math.min(Ie.value,t.bottom);return new DOMRect(n,r,Math.max(0,i-n),Math.max(0,a-r))}return{left:0,top:0,right:Fe.value,bottom:Ie.value,width:Fe.value,height:Ie.value}}function Ma(e){if(!v.value)return e;v.value.getBoundingClientRect();let t=ja(),n=pa.value||1,r=Math.max((t.bottom-t.top-16)/n,120);return Math.min(e,r)}function Na(e,t,n=xw,r=Cw,i=!0){if(!v.value)return{left:e,top:t};let a=v.value.getBoundingClientRect(),o=ja(),s=pa.value||1,c=i?Ma(r):r,l=a.left+v.value.clientLeft*s,u=a.top+v.value.clientTop*s,d=(o.left+8-l)/s,f=(o.right-8-l)/s-n,p=(o.top+8-u)/s,m=(o.bottom-8-u)/s-c;return{left:Math.min(Math.max(e,Math.min(d,f)),Math.max(d,f)),top:i?Math.min(Math.max(t,Math.min(p,m)),Math.max(p,m)):Math.max(p,Math.min(t,Math.max(p,m)))}}let Pa=(0,t.computed)(()=>{He.value;let e=ba.value,t=xr.value===`actions`?Sr.value??q.value:q.value;if(!e||!t)return null;let n=e.isEmpty?Ew:Dw,r=t.left,i=t.top,a=r-xw-Sw,o=r+n+Sw,s=v.value?.getBoundingClientRect(),c=pa.value||1;return Na((s?s.left+a*c>=8:a>=8)?a:o,xr.value===`actions`?i+(Tw-Da.value)/2:e.isEmpty?i+Tw+Sw:i,xw,Da.value,!1)}),Fa=(0,t.computed)(()=>Pa.value?{left:`${Pa.value.left}px`,top:`${Pa.value.top}px`}:{}),Ia=(0,t.computed)(()=>{He.value;let e=ba.value,t=Pa.value;if(!e||!t||!v.value)return{};let n=v.value.getBoundingClientRect(),r=pa.value||1,i=Oa.value;if(Ea.value&&Nt.includes(j.value??``))return La(i,ka.value+42);if([`properties`,`color`,`divider-style`,`divider-color`,`highlight-settings`,...Mt].includes(j.value??``)){let e={properties:we.value,color:Te.value,"divider-style":_e.value,"divider-color":ve.value,"highlight-border":de.value,"highlight-fill":fe.value,"quote-border":de.value,"quote-background":fe.value,"highlight-settings":pe.value}[j.value]?.getBoundingClientRect();return e?J(e,i,ka.value):{}}let a=Na(n.left+(t.left+xw)*r+i*r<=ja().right-8?t.left+xw:t.left-i,[`add-above`,`add-below`].includes(j.value??``)?t.top:t.top+42,i,ka.value);return{left:`${a.left}px`,top:`${a.top}px`,width:`${i}px`,maxHeight:`${Ma(ka.value)}px`}});function La(e,t){let n=Pa.value;if(!v.value||!n)return{};let r=v.value.getBoundingClientRect(),i=pa.value||1,a=ja(),o=Math.max(0,a.left)+8,s=Math.min(Fe.value,a.right)-8,c=Math.max(0,a.top)+8,l=Math.min(Ie.value,a.bottom)-8,u=Math.min(e,Math.max(0,(s-o)/i)),d=Math.max(0,(l-c)/i),f=Math.max(o,Math.min(r.left+n.left*i,s-u*i)),p=Math.max(c,Math.min(r.top+n.top*i,l-Math.min(t,d)*i));return{left:`${(f-r.left)/i}px`,top:`${(p-r.top)/i}px`,width:`${u}px`,maxHeight:`${d}px`}}function J(e,t,n){if(!v.value)return{};let r=v.value.getBoundingClientRect(),i=pa.value||1,a=ja(),o=Math.max(0,a.left)+8,s=Math.min(Fe.value,a.right)-8,c=Math.max(0,a.top)+8,l=Math.min(Ie.value,a.bottom)-8,u=Math.min(t,Math.max(0,(s-o)/i)),d=Math.max(0,(l-c)/i),f=Math.min(n,d),p=e.right+Sw*i,m=p+u*i<=s?p:e.left-(u+Sw)*i,h=Math.max(o,Math.min(m,s-u*i)),g=Math.max(c,Math.min(e.top,l-f*i));return{left:`${(h-r.left)/i}px`,top:`${(g-r.top)/i}px`,width:`${u}px`,maxHeight:`${d}px`}}let Ra=(0,t.computed)(()=>{if(He.value,Ea.value)return La(264,460);let e=Ee.value?.getBoundingClientRect();return e?J(e,264,400):{}}),za=(0,t.computed)(()=>{let e=M.value;return e?{left:`${e.left}px`,top:`${e.top}px`,width:`${e.width}px`,height:`${e.height}px`,"--norio-office-rich-block-drag-ghost-scale":String(e.scale),"--norio-office-rich-block-drag-ghost-source-width":`${e.sourceWidth}px`,"--norio-office-rich-block-drag-ghost-source-height":`${e.sourceHeight}px`}:{}}),Ba=(0,t.computed)(()=>(V.value?.getText()??``).replace(/\s+/g,``).length),Va=(0,t.computed)(()=>{let e=V.value?.getText()??``;return Math.max(1,e.split(/\n+/).filter(Boolean).length)}),Ha=(0,t.computed)(()=>{if(Ot.value,!V.value)return`正文`;for(let e of jt)if(e.level&&V.value.isActive(`heading`,{level:e.level}))return`标题 ${e.level}`;return`正文`}),Ua=(0,t.computed)(()=>(Ot.value,V.value?.isActive(`superscript`)?{icon:`shangbiao`,text:``}:V.value?.isActive(`subscript`)?{icon:`xiabiao`,text:``}:{icon:``,text:`AV`})),Wa=(0,t.computed)(()=>{Ot.value;let e=V.value?.getAttributes(`textStyle`).fontSize;return e?En.find(t=>t.value===e)?.label??e.replace(`px`,``):`小四`}),Ga=(0,t.computed)(()=>{Ot.value;let e=V.value?.getAttributes(`textStyle`).fontFamily;return e?On.find(t=>t.value===e)?.label??`默认`:`默认`}),Ka=(0,t.computed)(()=>(Ot.value,V.value?.isActive(`heading`)?V.value.getAttributes(`heading`).textAlign||`left`:V.value?.getAttributes(`paragraph`).textAlign||`left`)),qa=(0,t.computed)(()=>(Ot.value,V.value?.getAttributes(`textStyle`).color||`#333333`)),Ja=(0,t.computed)(()=>(Ot.value,V.value?.getAttributes(`textStyle`).backgroundColor||`#FFF3C4`)),Ya=(0,t.computed)(()=>V.value?.getAttributes(`blockquote`).quoteBorderColor||Yn[0]),Xa=(0,t.computed)(()=>V.value?.getAttributes(`blockquote`).quoteBackgroundColor||Xn[0]),Za=(0,t.computed)(()=>{if(Ot.value,!V.value?.isActive(`table`))return{isCellSelection:!1,isRowSelection:!1,isColumnSelection:!1};let e=V.value.state.selection,t=e instanceof s.CellSelection;return{isCellSelection:t,isRowSelection:t&&e.isRowSelection(),isColumnSelection:t&&e.isColSelection()}}),Qa=(0,t.computed)(()=>{if(Ot.value,!V.value?.isActive(`table`))return null;try{return(0,s.selectionCell)(V.value.state).nodeAfter?.attrs.backgroundColor||null}catch{return null}}),$a=(0,t.computed)(()=>(Ot.value,ml(V.value?.getAttributes(`table`).tableTheme))),eo=(0,t.computed)(()=>{Ot.value;let e=Cr.value,t=e===null?null:V.value?.state.doc.nodeAt(e);return t?.type.name===`table`?ml(t.attrs.tableTheme):null}),to=(0,t.computed)(()=>{if(Ot.value,He.value,j.value!==`table-theme`||!ge.value||!v.value)return{};let e=ge.value.getBoundingClientRect(),t=v.value.getBoundingClientRect(),n=ja(),r=Math.max(0,n.left)+8,i=Math.min(Fe.value,n.right)-8,a=Math.max(0,n.top)+8,o=Math.min(Ie.value,n.bottom)-8,s=pa.value||1,c=Math.min(360,(i-r)/s),l=Math.max(120,(o-a)/s),u=Math.min(Ve.value,l),d=e.right+8*s,f=d+c*s<=i?d:e.left-(c+8)*s,p=Math.max(r,Math.min(f,i-c*s)),m=Math.max(a,Math.min(e.top,o-u*s));return{left:`${(p-t.left)/s}px`,top:`${(m-t.top)/s}px`,width:`${c}px`,maxHeight:`${l}px`}}),no=(0,t.computed)(()=>{if(Ot.value,He.value,!Be.value||!he.value)return{};let e=he.value.getBoundingClientRect(),t=ja(),n={left:Math.max(0,t.left),right:Math.min(Fe.value,t.right),top:Math.max(0,t.top),bottom:Math.min(Ie.value,t.bottom)},r=pa.value||1,i=Math.min(360,(n.right-n.left-16)/r),a=Math.max(120,(n.bottom-n.top-16)/r),o=Math.min(Ve.value,a),s=e.bottom+8*r,c=s+o*r<=n.bottom-8?s:e.top-(o+8)*r,l=Math.max(n.top+8,Math.min(c,n.bottom-8-o*r));return{left:`${(Math.max(n.left+8,Math.min(e.left,n.right-8-i*r))-e.left)/r}px`,top:`${(l-e.top)/r}px`,width:`${i}px`,maxHeight:`${a}px`}}),ro=(0,t.computed)(()=>{Ot.value;let e=wr.value,t=e===null?null:V.value?.state.doc.nodeAt(e),n=t?.type.name===`highlightBlock`?t.attrs:{};return{borderColor:String(n.borderColor??yw),backgroundColor:String(n.backgroundColor??bw),emojiEnabled:n.emojiEnabled!==!1}}),io=(0,t.computed)(()=>{Ot.value;let e=pr.value,t=e&&V.value?.state.doc.nodeAt(e.pos),n={text:null,background:null},r=!1;return t?.descendants(e=>{if(!e.isText||r)return;let t=e.marks.find(e=>e.type.name===`textStyle`);n.text=t?.attrs.color??null,n.background=t?.attrs.backgroundColor??null,r=!0}),n}),ao=(0,t.computed)(()=>{let e=ba.value;return e?Ec(e):[]}),oo=(0,t.computed)(()=>{let e=ao.value.map(({node:e})=>e.attrs.textAlign||`left`);return e.every(t=>t===e[0])?e[0]||`left`:``}),so=(0,t.computed)(()=>ao.value.some(({node:e})=>Number(e.attrs.indent??0)<8)),co=(0,t.computed)(()=>ao.value.some(({node:e})=>Number(e.attrs.indent??0)>0)),lo=(0,t.computed)(()=>kf(ba.value?.node.attrs.lineStyle)),uo=(0,t.computed)(()=>Af(ba.value?.node.attrs.lineColor)??`#dfe5ee`),fo=(0,t.computed)(()=>{let e=V.value?.getAttributes(`countdownBlock`)??{};return{mode:e.mode===`duration`?`duration`:`deadline`,targetTimestamp:Number(e.targetTimestamp??0)||0}});function po(e){Ot.value;try{return!!V.value&&e(V.value)}catch{return!1}}function mo(e){Ot.value;try{return e()}catch{return!1}}let ho=(0,t.computed)(()=>!!V.value&&mo(()=>V.value.can().chain().focus().mergeCells().run())),go=(0,t.computed)(()=>!!V.value&&mo(()=>V.value.can().chain().focus().splitCell().run())),_o=(0,t.computed)(()=>po(e=>e.can().chain().focus().undo().run())),vo=(0,t.computed)(()=>po(e=>e.can().chain().focus().redo().run())),yo=(0,t.computed)(()=>po(e=>e.can().chain().focus().unsetAllMarks().clearNodes().run())),bo=(0,t.computed)(()=>(Ot.value,Pr.value&&u.showComments&&!!V.value&&Mr.value&&!!Gr.value)),xo=(0,t.computed)(()=>po(e=>e.can().chain().focus().setParagraph().run())||po(e=>e.can().chain().focus().toggleHeading({level:1}).run())),So=(0,t.computed)(()=>po(e=>e.can().chain().focus().setFontFamily(On[1]?.value??``).run())||po(e=>e.can().chain().focus().unsetFontFamily().run())),Co=(0,t.computed)(()=>po(e=>e.can().chain().focus().setFontSize(En[0]?.value??`16px`).run())),wo=(0,t.computed)(()=>po(e=>e.can().chain().focus().setColor(`#333333`).run())),To=(0,t.computed)(()=>po(e=>e.can().chain().focus().setBackgroundColor(`#FFF3C4`).run())),Eo=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleBold().run())),Do=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleItalic().run())),Oo=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleUnderline().run())),ko=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleStrike().run())),Ao=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleSuperscript().run())||po(e=>e.can().chain().focus().toggleSubscript().run())),jo=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleBulletList().run())),Mo=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleOrderedList().run())),No=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleTaskList().run())),Po=(0,t.computed)(()=>po(e=>e.can().chain().focus().setTextAlign(`left`).run())||po(e=>e.can().chain().focus().setTextAlign(`center`).run())||po(e=>e.can().chain().focus().setTextAlign(`right`).run())),Fo=(0,t.computed)(()=>po(e=>e.can().chain().focus().decreaseIndent().run())),Io=(0,t.computed)(()=>po(e=>e.can().chain().focus().increaseIndent().run())),Lo=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleBlockquote().run())),Ro=(0,t.computed)(()=>Lo.value||!!V.value?.isActive(`blockquote`)),zo=(0,t.computed)(()=>po(e=>e.can().chain().focus().toggleCode().run())),Bo=(0,t.computed)(()=>{Ot.value;let e=e=>!!V.value?.isActive(e),t=t=>{let n=t?!!V.value?.isActive(`heading`,{level:t}):e(`paragraph`)&&![`bulletList`,`orderedList`,`taskList`,`blockquote`,`highlightBlock`].some(e);return{key:t?`heading-${t}`:`paragraph`,label:t?`${[`一`,`二`,`三`,`四`,`五`,`六`][t-1]}级标题`:`正文`,text:t?`H${t}`:`T`,active:n,disabled:!n&&!Sf(t),run:()=>Wd(t)}},n=[t(),t(1),t(2),t(3),{key:`other-headings`,label:`其他标题`,text:`Hn`,active:[4,5,6].some(e=>!!V.value?.isActive(`heading`,{level:e})),options:[t(4),t(5),t(6)]},{key:`orderedList`,label:`有序列表`,icon:`youxuliebiao`,active:e(`orderedList`),disabled:!Mo.value,run:mf},{key:`bulletList`,label:`无序列表`,icon:`wuxuliebiao`,active:e(`bulletList`),disabled:!jo.value,run:pf},{key:`taskList`,label:`任务`,icon:`To-do`,active:e(`taskList`),disabled:!No.value,run:hf}];ag(`code-block`,Un.value)&&n.push({key:`codeBlock`,label:`代码块`,icon:`codeblock`,active:e(`codeBlock`),disabled:!po(e=>e.can().chain().focus().toggleCodeBlock().run()),run:()=>pl()?.toggleCodeBlock().run()});let r=[];ei.value&&r.push({key:`blockquote`,label:`引用`,icon:`yinyong`,active:e(`blockquote`),disabled:!Lo.value,run:()=>pl()?.toggleBlockquote().run()}),ag(`highlight-block`,Un.value)&&r.push({key:`highlightBlock`,label:`高亮块`,icon:`gaoliangkuai`,active:e(`highlightBlock`),disabled:!po(e=>e.can().chain().focus().toggleWrap(`highlightBlock`).run()),run:()=>pl()?.toggleWrap(`highlightBlock`).run()}),r[0]&&(r[0].divider=!0),n.push(...r);let i=n.find(e=>e.active&&e.key!==`other-headings`);return[{key:`heading`,label:`正文和标题`,icon:i?.icon,text:i?.text||(V.value?.isActive(`heading`)?`H${V.value.getAttributes(`heading`).level}`:`T`),disabled:!n.some(e=>e.options?e.options.some(e=>!e.disabled):!e.disabled),options:n},{key:`font`,label:`字体`,text:Ga.value,disabled:!So.value,options:On.map(e=>({key:e.label,label:e.label,fontFamily:e.value,active:Ga.value===e.label,disabled:!Cf(e.value),run:()=>Jd(e.value)}))},{key:`size`,label:`字号`,text:Wa.value,disabled:!Co.value,options:En.map(e=>({key:e.label,label:e.label,active:Wa.value===e.label,disabled:!wf(e.value),run:()=>Zd(e.value)}))},{key:`text-color`,label:`文字颜色`,color:qa.value,defaultColor:`#333333`,recentColors:$n.value,setColor:$d,disabled:!wo.value},{key:`background-color`,label:`文字背景颜色`,icon:`beijingse`,color:Ja.value,defaultColor:`#FFF3C4`,recentColors:er.value,setColor:rf,disabled:!To.value},{key:`bold`,label:`加粗`,icon:`jiacu`,active:e(`bold`),disabled:!Eo.value,run:cf},{key:`italic`,label:`斜体`,icon:`xieti`,active:e(`italic`),disabled:!Do.value,run:lf},{key:`underline`,label:`下划线`,icon:`xiahuaxian`,active:e(`underline`),disabled:!Oo.value,run:uf},{key:`strike`,label:`删除线`,text:`S`,active:e(`strike`),disabled:!ko.value,run:df},{key:`script`,label:`上下标`,icon:Ua.value.icon||void 0,text:Ua.value.text,active:e(`superscript`)||e(`subscript`),disabled:!Ao.value,options:[{key:`superscript`,label:`上标`,icon:`shangbiao`,active:e(`superscript`),disabled:!Ef(),run:yf},{key:`subscript`,label:`下标`,icon:`xiabiao`,active:e(`subscript`),disabled:!jf(),run:bf}]},{key:`alignment`,label:`对齐和缩进`,icon:Ka.value===`center`?`juzhongduiqi`:Ka.value===`right`?`youduiqi`:`zuoduiqi`,disabled:!Po.value,options:[...[`left`,`center`,`right`].map((e,t)=>({key:e,label:[`左对齐`,`居中对齐`,`右对齐`][t],icon:[`zuoduiqi`,`juzhongduiqi`,`youduiqi`][t],active:Ka.value===e,disabled:!Tf(e),run:()=>Ol(e)})),{key:`indent-more`,label:`增加缩进`,icon:`yousuojin`,divider:!0,disabled:!Io.value,run:Gd},{key:`indent-less`,label:`减少缩进`,icon:`zuosuojin`,disabled:!Fo.value,run:Kd}]},{key:`code`,label:`行内代码`,icon:`code`,active:e(`code`),disabled:!zo.value,run:ff},{key:`clear`,label:`清除格式`,icon:`rubber`,disabled:!yo.value,run:xf}]}),Vo=(0,t.computed)(()=>Bo.value.filter(e=>![`heading`,`script`,`code`,`clear`].includes(e.key))),Ho=(0,t.computed)(()=>!!V.value?.isActive(`table`)),Uo=(0,t.computed)(()=>(Ot.value,V.value?.state.selection instanceof a.TextSelection&&!V.value.state.selection.empty&&V.value.isActive(`table`))),Wo=(0,t.computed)(()=>Za.value.isRowSelection||Uo.value),Go=(0,t.computed)(()=>Za.value.isColumnSelection||Uo.value),Ko=(0,t.computed)(()=>!!V.value?.isActive(`table`)&&(Za.value.isRowSelection||Za.value.isColumnSelection||Za.value.isCellSelection));(0,t.computed)(()=>{let e=vn.value;if(e)return{left:`${e.left+e.width/2}px`,top:`${e.top+e.height+12}px`}});function qo(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`image-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function Jo(e,t){return{assetId:t.assetId,url:t.url,name:t.name||e.name,size:t.size??e.size,mimeType:t.mimeType||e.type||``,alt:t.alt,description:t.description}}function Yo(e){g.value?.(e),d(`upload-error`,e)}function Xo(){return typeof crypto<`u`&&`randomUUID`in crypto?crypto.randomUUID():`upload-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function Zo(e){return e instanceof Error&&e.message?e.message:`上传失败,请重试。`}function Qo(e){return e===`image`?`图片`:e===`video`?`视频`:`文件`}function $o(e){return`${Qo(e.kind)}${e.status===`uploading`?`上传中`:`上传失败`}`}function es(e){st.value=st.value.filter(t=>t.id!==e)}function ts(e,t){st.value=st.value.map(n=>n.id===e?{...n,...t}:n)}async function ns(e,t,n,r){let i=Xo(),a={id:i,kind:e,fileName:t,status:`uploading`,retry:()=>void 0},o=async()=>{ts(i,{status:`uploading`,message:void 0});try{let e=await n();return es(i),e}catch(e){return ts(i,{status:`error`,message:Zo(e)}),r(e),null}};return a.retry=()=>{o()},st.value=[a,...st.value],await o()}async function rs(e,t){let n=t===`image`?f.value:t===`video`?p.value:m.value;if(n)return Jo(e,await n({file:e,kind:t}));throw Error(`Missing upload${t[0].toUpperCase()}${t.slice(1)} hook.`)}function is(e){let t=e,n=t.detail;!n?.file||!n.kind||(t.stopPropagation(),n.handled=!0,rs(n.file,n.kind).then(n.resolve,n.reject))}function as(e){return`${String(u.documentName??`未命名文档`).trim().replace(/[\\/:*?"<>|]/g,`-`).replace(/\.+$/g,``)||`未命名文档`}.${e}`}function os(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function ss(){if(!v.value)return null;let e=v.value.cloneNode(!0);return e.querySelectorAll(`.norio-office-rich-image-block__image-link[data-image-link]`).forEach(e=>{let t=document.createElement(`a`);t.className=e.className,t.href=e.dataset.imageLink??``,t.target=e.dataset.imageLinkTarget===`_self`?`_self`:`_blank`,t.rel=`noreferrer noopener`,t.append(...Array.from(e.childNodes)),e.replaceWith(t)}),e.querySelectorAll(`.norio-office-rich-image-block__caption-desc`).forEach(e=>{e.removeAttribute(`hidden`),e.textContent||e.closest(`.norio-office-rich-image-block__caption`)?.remove()}),e.style.transform=`none`,e.style.transformOrigin=`top left`,e.style.boxShadow=`none`,e.style.margin=`0`,e.style.width=`${lw}px`,e.style.minHeight=`${Math.max(v.value.scrollHeight,uw)}px`,e.style.height=`auto`,e.querySelectorAll(`.norio-office-rich-table-column-track,.norio-office-rich-table-row-track,.norio-office-rich-table-add-row,.norio-office-rich-table-add-column,.norio-office-rich-columns__overlay,.norio-office-rich-table-bubble-menu,.norio-office-rich-countdown-bubble-menu,.norio-office-rich-code-block__toolbar,.norio-office-rich-code-block__menu,.norio-office-rich-code-block__settings-menu,.norio-office-rich-code-block__line-numbers,.norio-office-rich-image-block__toolbar,.norio-office-rich-video-block__toolbar,.norio-office-rich-link-block__toolbar,.norio-office-rich-local-file-block__actions,.norio-office-rich-countdown-block__actions,.norio-office-rich-block-side-control,.norio-office-rich-block-side-menu,.norio-office-rich-block-side-submenu,.norio-office-rich-drag-insert-indicator,.norio-office-rich-upload-panel,.column-resize-handle,.ProseMirror-gapcursor,.norio-office-rich-video-block,[data-type="video-block"],.norio-office-rich-formula-editor,.norio-office-rich-marquee-selection-layer,.collaboration-carets__caret,.collaboration-carets__label,[aria-hidden="true"],button,input,textarea,select`.split(`,`).join(`, `)).forEach(e=>{e.remove()}),e.querySelectorAll(`[contenteditable]`).forEach(e=>{e.removeAttribute(`contenteditable`),e.removeAttribute(`tabindex`),e.removeAttribute(`spellcheck`),e.removeAttribute(`autocapitalize`),e.removeAttribute(`autocorrect`),e.removeAttribute(`data-placeholder`)}),e.querySelectorAll(`.ProseMirror-selectednode`).forEach(e=>{e.classList.remove(`ProseMirror-selectednode`)}),e.querySelectorAll(`.norio-office-rich-formula-block--selected`).forEach(e=>{e.classList.remove(`norio-office-rich-formula-block--selected`)}),e.querySelectorAll(`.collaboration-carets__selection`).forEach(e=>{e.classList.remove(`collaboration-carets__selection`),e.removeAttribute(`data-user`),e.removeAttribute(`style`)}),e}async function cs(){let e=ss();if(!e)return null;let n=document.createElement(`div`);n.style.position=`fixed`,n.style.left=`-20000px`,n.style.top=`0`,n.style.padding=`0`,n.style.margin=`0`,n.style.background=`#ffffff`,n.style.zIndex=`-1`,n.appendChild(e),document.body.appendChild(n);try{await(0,t.nextTick)();let{default:n}=await Promise.resolve().then(()=>ce(rv(),1));return await n(e,{backgroundColor:`#ffffff`,scale:2,useCORS:!0,logging:!1,width:lw,height:e.scrollHeight,windowWidth:lw,windowHeight:e.scrollHeight})}finally{n.remove()}}function ls(){ri.value&&(Xe.value=!Xe.value)}function us(e){[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),Xe.value=!0,(0,t.nextTick)(()=>{let t=Array.from(te.value?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]);if(!t.length)return;let n=t.indexOf(document.activeElement);t[e.key===`Home`?0:e.key===`End`?t.length-1:e.key===`ArrowUp`?n<=0?t.length-1:n-1:(n+1)%t.length]?.focus({preventScroll:!0})}))}function ds(e,t){let n=URL.createObjectURL(t),r=document.createElement(`a`);r.download=e,r.href=n,r.click(),window.setTimeout(()=>{URL.revokeObjectURL(n)},1e3)}function fs(e,t,n){return new Promise(r=>{e.toBlob(e=>r(e),t,n)})}async function ps(e={}){let t=await cs();return t?await fs(t,e.type===`image/jpeg`?`image/jpeg`:`image/png`,typeof e.quality==`number`?Math.max(0,Math.min(1,e.quality)):void 0):null}function ms(e){return Number(e.toFixed(2)).toString()}function hs(e){return Array.from(e||` `).map(e=>{let t=e.codePointAt(0)??32;return(t<=65535?t:9633).toString(16).padStart(4,`0`).toUpperCase()}).join(``)}function gs(e){return Array.from(e||` `).map(e=>(e.codePointAt(0)??32)&255).map(e=>e.toString(16).padStart(2,`0`).toUpperCase()).join(``)}function _s(e){if(!e)return null;let t=e.trim().toLowerCase();if(!t||t===`transparent`)return null;let n=t.match(/^rgba?\(([^)]+)\)$/);if(n){let e=n[1].split(`,`).map(e=>e.trim());return(e[3]===void 0?1:Number(e[3]))<=0?null:{r:Math.max(0,Math.min(255,Number.parseFloat(e[0])||0))/255,g:Math.max(0,Math.min(255,Number.parseFloat(e[1])||0))/255,b:Math.max(0,Math.min(255,Number.parseFloat(e[2])||0))/255}}let r=t.startsWith(`#`)?t.slice(1):t;return/^[0-9a-f]{3}$/i.test(r)?{r:Number.parseInt(r[0]+r[0],16)/255,g:Number.parseInt(r[1]+r[1],16)/255,b:Number.parseInt(r[2]+r[2],16)/255}:/^[0-9a-f]{6}$/i.test(r)?{r:Number.parseInt(r.slice(0,2),16)/255,g:Number.parseInt(r.slice(2,4),16)/255,b:Number.parseInt(r.slice(4,6),16)/255}:null}function Y(e){let t=window.getComputedStyle(e);return t.display!==`none`&&t.visibility!==`hidden`&&Number(t.opacity||`1`)>0}function vs(e){let t=_s(e);return t?!(t.r>.995&&t.g>.995&&t.b>.995):!1}function ys(e){let t=e.getBoundingClientRect(),n=lw,r=Math.max(e.scrollHeight,uw),i=[{commands:[]}],a=()=>i[i.length-1],o=e=>e-t.left,s=e=>e-t.top,c=(e,t,n,i,o={})=>{if(n<=0||i<=0)return;let s=_s(o.fill);s&&a().commands.push(`q ${ms(s.r)} ${ms(s.g)} ${ms(s.b)} rg ${ms(e)} ${ms(r-t-i)} ${ms(n)} ${ms(i)} re f Q`);let c=_s(o.stroke);c&&a().commands.push(`q ${ms(c.r)} ${ms(c.g)} ${ms(c.b)} RG ${ms(e)} ${ms(r-t-i)} ${ms(n)} ${ms(i)} re S Q`)},l=(e,t,n,i,o)=>{if(!e)return;let s=_s(o)??{r:15/255,g:23/255,b:42/255},c=Array.from(e).every(e=>(e.codePointAt(0)??0)<=255),l=c?`F2`:`F1`,u=c?gs(e):hs(e);a().commands.push(`BT /${l} ${ms(i)} Tf ${ms(s.r)} ${ms(s.g)} ${ms(s.b)} rg ${ms(t)} ${ms(r-n)} Td <${u}> Tj ET`)};e.querySelectorAll(`*`).forEach(e=>{if(!Y(e))return;let t=window.getComputedStyle(e),n=e.getBoundingClientRect(),r=o(n.left),i=s(n.top),a=t.backgroundColor,l=t.borderColor,u=[`Top`,`Right`,`Bottom`,`Left`].some(e=>Number.parseFloat(t[`border${e}Width`])>0);(vs(a)||u)&&c(r,i,n.width,n.height,{fill:vs(a)?a:null,stroke:u?l:null})});let u=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){if(!(e.textContent??``).trim())return NodeFilter.FILTER_REJECT;let t=e.parentElement;return!t||!Y(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),d=document.createRange();for(;u.nextNode();){let e=u.currentNode,t=e.textContent??``,n=e.parentElement;if(!n)continue;let r=window.getComputedStyle(n),i=Number.parseFloat(r.fontSize||`14`)||14,a=Number.parseFloat(r.lineHeight||``),c=Number.isFinite(a)?a:i*1.4,f=r.color||`#0f172a`,p=``,m=0,h=0,g=0,_=0,v=()=>{if(!p.trim()){p=``;return}l(p,m,g,i,f),p=``};Array.from(t).forEach((t,n)=>{if(!t.trim()){v();return}d.setStart(e,n),d.setEnd(e,n+t.length);let r=d.getBoundingClientRect();if(r.width<=0||r.height<=0){v();return}let a=o(r.left),l=s(r.top),u=l+Math.min(c,r.height)*.82,f=p&&Math.abs(l-h)<2&&Math.abs(a-_)<Math.max(i*.8,8),y=!p||Array.from(p).every(e=>(e.codePointAt(0)??0)<=255)===(t.codePointAt(0)??0)<=255;(!f||!y)&&(v(),m=a,h=l,g=u),p||(m=a,h=l,g=u),p+=t,_=o(r.right)}),v()}d.detach();let f=[],p=(e=``)=>(f.push(e),f.length),m=(e,t)=>{f[e-1]=t},h=p(),g=p(`<< /Type /Font /Subtype /Type0 /BaseFont /STSong-Light /Encoding /UniGB-UCS2-H /DescendantFonts [${p(`<< /Type /Font /Subtype /CIDFontType0 /BaseFont /STSong-Light /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 2 >> >>`)} 0 R] >>`),_=p(`<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>`),v=i.map(e=>{let t=e.commands.join(`
|
|
7812
|
+
`),i=p(`<< /Length ${t.length} >>\nstream\n${t}\nendstream`);return p(`<< /Type /Page /Parent ${h} 0 R /MediaBox [0 0 ${ms(n)} ${ms(r)}] /Resources << /Font << /F1 ${g} 0 R /F2 ${_} 0 R >> >> /Contents ${i} 0 R >>`)});m(h,`<< /Type /Pages /Kids [${v.map(e=>`${e} 0 R`).join(` `)}] /Count ${v.length} >>`);let y=p(`<< /Type /Catalog /Pages ${h} 0 R >>`),b=`%PDF-1.4
|
|
7815
7813
|
`,x=[0];f.forEach((e,t)=>{x[t+1]=b.length,b+=`${t+1} 0 obj\n${e}\nendobj\n`});let S=b.length;b+=`xref\n0 ${f.length+1}\n`,b+=`0000000000 65535 f
|
|
7816
|
-
`;for(let e=1;e<=f.length;e+=1)b+=`${String(x[e]).padStart(10,`0`)} 00000 n \n`;return b+=`trailer\n<< /Size ${f.length+1} /Root ${y} 0 R >>\nstartxref\n${S}\n%%EOF`,new Blob([b],{type:`application/pdf`})}async function
|
|
7814
|
+
`;for(let e=1;e<=f.length;e+=1)b+=`${String(x[e]).padStart(10,`0`)} 00000 n \n`;return b+=`trailer\n<< /Size ${f.length+1} /Root ${y} 0 R >>\nstartxref\n${S}\n%%EOF`,new Blob([b],{type:`application/pdf`})}async function bs(){let e=ss();if(!e)return null;let n=document.createElement(`div`);n.style.position=`fixed`,n.style.left=`-20000px`,n.style.top=`0`,n.style.padding=`0`,n.style.margin=`0`,n.style.background=`#ffffff`,n.style.zIndex=`-1`,n.appendChild(e),document.body.appendChild(n);try{return await(0,t.nextTick)(),ys(e)}finally{n.remove()}}async function xs(){if(!kt.value){Xe.value=!1,kt.value=`image`;try{let e=await ps();if(!e)return;ds(as(`png`),e)}finally{kt.value=null}}}async function Ss(){if(!kt.value){Xe.value=!1,kt.value=`pdf`;try{let e=await bs();if(!e)return;ds(as(`pdf`),e)}finally{kt.value=null}}}function Cs(e){return`<!doctype html>
|
|
7817
7815
|
<html lang="zh-CN">
|
|
7818
7816
|
<head>
|
|
7819
7817
|
<meta charset="utf-8" />
|
|
@@ -7849,12 +7847,12 @@ body {
|
|
|
7849
7847
|
${e}
|
|
7850
7848
|
</div>
|
|
7851
7849
|
</body>
|
|
7852
|
-
</html>`}function
|
|
7850
|
+
</html>`}function ws(){let e=ss();return e?Cs(e.outerHTML):null}function Ts(e,t=`Office Word Print`){return`<!doctype html>
|
|
7853
7851
|
<html lang="zh-CN">
|
|
7854
7852
|
<head>
|
|
7855
7853
|
<meta charset="utf-8" />
|
|
7856
7854
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7857
|
-
<title>${
|
|
7855
|
+
<title>${os(t)}</title>
|
|
7858
7856
|
<style>
|
|
7859
7857
|
${El}
|
|
7860
7858
|
${Dl}
|
|
@@ -7889,4 +7887,4 @@ body {
|
|
|
7889
7887
|
${e}
|
|
7890
7888
|
</div>
|
|
7891
7889
|
</body>
|
|
7892
|
-
</html>`}async function Ts(){if(!Lt.value){it.value=!1,Lt.value=`html`;try{let e=Cs();if(!e)return;us(is(`html`),new Blob([e],{type:`text/html;charset=utf-8`}))}finally{Lt.value=null}}}async function Es(){if(Lt.value)return;it.value=!1,Lt.value=`print`;let e=os();if(!e){Lt.value=null;return}let t=document.createElement(`iframe`);t.style.position=`fixed`,t.style.right=`0`,t.style.bottom=`0`,t.style.width=`0`,t.style.height=`0`,t.style.border=`0`,t.style.opacity=`0`,t.setAttribute(`aria-hidden`,`true`),document.body.appendChild(t);let n=()=>{t.remove(),Lt.value=null};try{let r=t.contentWindow;if(!r){n();return}let i=r.document;i.open(),i.write(ws(e.outerHTML)),i.close(),await new Promise(e=>{let n=()=>window.setTimeout(e,60);if(t.contentDocument?.readyState===`complete`){n();return}t.addEventListener(`load`,n,{once:!0})}),r.focus(),r.print()}finally{window.setTimeout(n,300)}}function Ds(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}T${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`}function Os(){let e=new Date;return e.setSeconds(0,0),e.setMinutes(e.getMinutes()+1),Ds(e)}function ks(e,t){let n=new Date(e),r=`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}`,[i,a]=String(t||r).split(`:`);n.setHours(js(i,23),js(a,59),0,0);let o=vn.value;n.getTime()<o.getTime()&&n.setTime(o.getTime()),Xt.value=Ds(n),on.value=n.getFullYear(),cn.value=n.getMonth(),ln.value=`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}`}function As(){Yt.value=`deadline`,tn.value=!1,nn.value=!1,ks(new Date(Os())),Zt.value=`0`,Qt.value=`0`,$t.value=`1`,en.value=`0`}function js(e,t){let n=Number.parseInt(e||`0`,10);return!Number.isFinite(n)||n<0?0:typeof t==`number`?Math.min(t,n):n}function Ms(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=t%60;Zt.value=String(n),Qt.value=String(r),$t.value=String(i),en.value=String(a)}function Ns(e){let t=Number(e.targetTimestamp??0)||Date.now()+6e4;Yt.value=e.mode===`duration`?`duration`:`deadline`,ks(new Date(t)),Ms(Math.max(1e3,t-Date.now())),tn.value=!1}function Ps(e,t,n){let r=new Date(e,t,n);new Date(e,t,n,23,59,59,999).getTime()<vn.value.getTime()||ks(r,ln.value)}function Fs(){ks(new Date,yn.value)}function Is(e){on.value=Number.parseInt(e,10)||new Date().getFullYear()}function Ls(e){cn.value=Number.parseInt(e,10)||0}function Rs(e){ks(gn.value??new Date,e)}function zs(){Rs(ln.value),tn.value=!1}function Bs(){if(!V.value?.isActive(`countdownBlock`))return;let e=!nn.value;nn.value=e,tn.value=!1,e&&Ns(po.value)}function Vs(){if(!O.value){rn.value=`bottom`;return}let e=O.value.getBoundingClientRect(),t=ae.value?.offsetHeight??420,n=window.innerHeight-e.bottom-16,r=e.top-16;rn.value=n>=t||n>=r?`bottom`:`top`}function Hs(){Yt.value===`deadline`&&(tn.value=!tn.value,tn.value&&(0,t.nextTick)(Vs))}function Us(){if(!V.value)return null;let{state:e}=V.value,{$from:t}=e.selection,n=t.depth;if(n<=0)return{from:e.selection.from,to:e.selection.from,isEmpty:!1};let r=t.node(n),i=r.isTextblock&&r.textContent.trim().length===0;return{from:t.before(n),to:i?t.after(n):t.before(n),isEmpty:i}}function Ws(){Pe.value=document.fullscreenElement===_.value,Pe.value||(Fe.value=!1)}async function Gs(){if(_.value){if(document.fullscreenElement===_.value){await document.exitFullscreen();return}await _.value.requestFullscreen()}}async function Ks(){if(_.value){try{document.fullscreenElement!==_.value&&(document.fullscreenElement&&await document.exitFullscreen(),await _.value.requestFullscreen())}catch{return}mr.value=window.innerWidth/2,hr.value=window.innerHeight/2,Fe.value=document.fullscreenElement===_.value,it.value=!1,V.value?.commands.blur()}}async function qs(){Fe.value=!1,document.fullscreenElement===_.value&&await document.exitFullscreen()}async function Js(){if(Fe.value){await qs();return}await Ks()}function Ys(e){Rt.value=Math.max(50,Math.min(200,e))}function Xs(){zr.value&&(Ie.value=!Ie.value,(0,t.nextTick)(()=>{window.requestAnimationFrame(()=>{(Ie.value?_.value?.querySelector(`.norio-office-rich-outline--internal .norio-office-rich-outline__collapse`):Le.value)?.focus({preventScroll:!0})})}))}function Zs(e){return V.value?(V.value.chain().focus(e+1).run(),fa(),(0,t.nextTick)(()=>{let t=V.value?.view.nodeDOM(e),n=hd();t instanceof HTMLElement&&n&&gd(t,n)}),!0):!1}function Qs(){yr.value=[]}function $s(){gr.value=null,_r.value=null,vr.value=!1}function ec(e){let t=e instanceof Element?e:null;return t?!!t.closest(`button,input,textarea,select,a,.norio-office-rich-outline,.norio-office-rich-statusbar__button,.norio-office-rich-toolbar__button,.norio-office-rich-table-column-track,.norio-office-rich-table-row-track,.norio-office-rich-table-track__dot,.norio-office-rich-columns__overlay,.norio-office-rich-columns__divider-hitbox,.norio-office-rich-columns__add-button,.norio-office-rich-video-block__toolbar,.norio-office-rich-video-block__handle,.norio-office-rich-video-block__bottom-bar,.norio-office-rich-image-block__toolbar,.norio-office-rich-image-block__handle,.norio-office-rich-image-block__bottom-bar,.norio-office-rich-image-block__side-tools,.norio-office-rich-link-block__toolbar,.norio-office-rich-link-block__handle,.norio-office-rich-link-block__bottom-bar,.norio-office-rich-block-side-control,.norio-office-rich-block-side-menu,.norio-office-rich-block-side-submenu,.norio-office-rich-formula-editor`.split(`,`).join(`, `)):!1}function tc(e){let t=e instanceof Element?e:e?.parentElement??null;return t?!!t.closest([`.norio-office-rich-editor__toolbar`,`.norio-office-rich-toolbar__menu`,`.norio-office-rich-block-side-control`,`.norio-office-rich-block-side-menu`,`.norio-office-rich-block-side-submenu`].join(`, `)):!1}function nc(e,t){if(!v.value)return null;let n=v.value.getBoundingClientRect(),r=ha.value||1;return{x:(e-n.left)/r,y:(t-n.top)/r}}function rc(e,t){return e.left<t.left+t.width&&e.left+e.width>t.left&&e.top<t.top+t.height&&e.top+e.height>t.top}function ic(){if(!V.value||!v.value)return[];let e=v.value.getBoundingClientRect(),t=ha.value||1,n=[];return V.value.state.doc.forEach((r,i)=>{let a=V.value?.view.nodeDOM(i);if(!(a instanceof HTMLElement))return;let o=a.getBoundingClientRect();o.width<=0||o.height<=0||n.push({pos:i,from:i,to:i+r.nodeSize,node:r,dom:a,rect:{left:(o.left-e.left)/t,top:(o.top-e.top)/t,width:o.width/t,height:o.height/t}})}),n}function ac(e){let{node:t}=e,n=t.type.name,r=n===`paragraph`&&t.textContent.trim().length===0&&t.childCount===0;if(r)return{isEmpty:r,textIcon:`+`,label:`插入`};if(n===`heading`){let e=Number(t.attrs.level??1);return{isEmpty:r,textIcon:`H${e}`,label:`标题 ${e}`}}return{isEmpty:r,...{paragraph:{textIcon:`T`,label:`正文`},bulletList:{iconName:`wuxuliebiao`,label:`无序列表`},orderedList:{iconName:`youxuliebiao`,label:`有序列表`},taskList:{iconName:`To-do`,label:`任务`},blockquote:{iconName:`yinyong`,label:`引用`},codeBlock:{iconName:`codeblock`,label:`代码块`},horizontalRule:{textIcon:`—`,label:`分隔线`},imageBlock:{iconName:`image`,label:`图片`},videoBlock:{textIcon:`▶`,label:`视频`},localFileBlock:{iconName:`attachment`,label:`本地文件`},linkBlock:{iconName:`link`,label:`链接`},countdownBlock:{iconName:`days`,label:`倒计时`},highlightBlock:{iconName:`gaoliangkuai`,label:`高亮块`},formulaBlock:{textIcon:`fx`,label:`公式`},columnsBlock:{iconName:`split`,label:`分栏`},table:{textIcon:`▦`,label:`表格`}}[n]??{textIcon:`T`,label:`块`}}}function oc(e){return{...e,...ac(e)}}function sc(e,t){let n=nc(e,t);if(!n)return null;let r=ic(),i=tl(),a=i?i.left-Lw-Pw-12:0,o=i?i.left+i.width+28:yw;return r.map(oc).find(e=>n.y>=e.rect.top-8&&n.y<=e.rect.top+e.rect.height+8&&n.x>=a&&n.x<=o)??null}function cc(e){return ic().map(oc).find(t=>e>=t.from&&e<=t.to)??null}function lc(){if(!V.value||!Pr.value||Fe.value||Cr.value||j.value||kr.value)return;let e=cc(V.value.state.selection.from);e&&(xr.value=e)}function uc(e){if(!Pr.value||Fe.value||kr.value){xr.value=null;return}let t=e.target;t instanceof Element&&t.closest(`.norio-office-rich-block-side-control, .norio-office-rich-block-side-menu, .norio-office-rich-block-side-submenu, .norio-office-rich-block-side-table-theme`)||(xr.value=sc(e.clientX,e.clientY))}function dc(e){let t=e.relatedTarget;t instanceof Element&&t.closest(`.norio-office-rich-block-side-control, .norio-office-rich-block-side-menu, .norio-office-rich-block-side-submenu, .norio-office-rich-block-side-table-theme`)||!Cr.value&&!j.value&&(xr.value=null)}function fc(e){xr.value=e,Sr.value=e}function pc(e,t){let n=t===`actions`&&Cr.value===t&&Sr.value?.pos===e.pos&&wr.value;fc(e),n||(wr.value=t===`actions`?Aa.value:null),Cr.value=t,j.value=null,Tr.value=null,Er.value=t===`actions`&&!e.node.isLeaf?e.pos:null,Dr.value=null}function mc(){Cr.value=null,wr.value=null,j.value=null,Tr.value=null,Er.value=null,Dr.value=null,Ae.value=null,Sr.value=null}function hc(e,t){return t===`add-above`?{from:e.from,to:e.from}:t===`add-below`?{from:e.to,to:e.to}:e.isEmpty?{from:e.from,to:e.to}:{from:e.to,to:e.to}}function gc(e){return e===`image`?{type:`imageBlock`,attrs:{images:[{id:Ko()}],widthPercent:100}}:e===`video`?{type:`videoBlock`,attrs:{src:``,name:``,description:``,mimeType:`video/mp4`,align:`left`,widthPercent:100,height:220}}:e===`link`?{type:`linkBlock`,attrs:{title:``,url:``,displayMode:`preview`,align:`left`,widthPercent:100,height:420}}:e===`countdown`?{type:`countdownBlock`,attrs:{targetTimestamp:0,mode:`duration`,color:`#ff8b00`,reminderEnabled:!0}}:e===`emoji`?{type:`paragraph`,content:[{type:`text`,text:`😀`}]}:e===`columns`?Cu(2):e===`formula`?{type:`formulaBlock`,attrs:{latex:``}}:wu(e)}function _c(e){if(!V.value||!Sr.value||!Cr.value)return;let t=Sr.value,n=hc(t,j.value===`add-above`||j.value===`add-below`?j.value:Cr.value);if(e===`table`){V.value.chain().focus().insertContentAt(n,(0,i.createTable)(V.value.schema,3,3,!1).toJSON(),{updateSelection:!0}).run(),mc(),Il();return}let r=gc(e);if(!r){mc();return}V.value.chain().focus().insertContentAt(n,r,{updateSelection:!0}).run(),mc(),Il()}function vc(e){if(!V.value)return!1;let t=Math.min(e.from+1,Math.max(e.from,e.to-1));return V.value.chain().focus(t).run(),!0}function yc(e){return e.node.type.name}function bc(e){return qn.has(yc(e))}function xc(e){return Jn.has(yc(e))}function Sc(e){let t=[];return[`paragraph`,`heading`].includes(e.node.type.name)?[{pos:e.pos,node:e.node}]:(xc(e)&&e.node.descendants((n,r)=>{if([`paragraph`,`heading`].includes(n.type.name))return t.push({pos:e.pos+1+r,node:n}),!1}),t)}function Cc(e){return Yn.has(yc(e))}function wc(e,t){if(!V.value)return!1;let{state:n,view:r}=V.value;return r.dispatch(n.tr.setMeta(`officeBlockSideAttrs`,e.pos).setNodeMarkup(e.pos,void 0,{...e.node.attrs,...t})),!0}function Tc(e){let t=Er.value,n=Sr.value,r=t===null?null:V.value?.state.doc.nodeAt(t);return!Pr.value||!V.value?.isEditable||!n||t===null||r?.type.name!==`highlightBlock`?!1:wc({...n,pos:t,node:r},e)}let Ec=(0,t.computed)(()=>{let e=j.value;if(!Bt.includes(e??``))return null;let t=e===`quote-border`||e===`quote-background`,n=e===`highlight-border`||e===`quote-border`,r=t?n?`quoteBorderColor`:`quoteBackgroundColor`:n?`borderColor`:`backgroundColor`,i=t?(n?ir[0]:ar[0]).toLowerCase():n?kw:Aw,a=Sr.value?.node;return{nodeType:t?`blockquote`:`highlightBlock`,attribute:r,kind:n?`border`:`fill`,label:n?`边框颜色`:t?`背景颜色`:`填充颜色`,color:String(a?.attrs[r]??i),defaultColor:i,presetColors:t?n?or:sr:void 0}});function Dc(e){let t=Ec.value,n=Er.value,r=Sr.value,i=n===null?null:V.value?.state.doc.nodeAt(n);!t||!Pr.value||!V.value?.isEditable||!r||n===null||i?.type.name!==t.nodeType||wc({...r,pos:n,node:i},{[t.attribute]:e})&&e!==`transparent`&&(cr.value=[e,...cr.value.filter(t=>t.toLowerCase()!==e.toLowerCase())].slice(0,10))}function Oc(){Tc({emojiEnabled:!io.value.emojiEnabled})}function kc(e){let t=Sr.value,n=t&&V.value?.state.doc.nodeAt(t.pos);!Pr.value||!t||n?.type.name!==`horizontalRule`||(wc({...t,node:n},e),fc({...t,node:V.value.state.doc.nodeAt(t.pos)}))}function Ac(e){let t=Af(e);t&&(kc({lineColor:t===`#dfe5ee`?null:t}),cr.value=[t,...cr.value.filter(e=>e.toLowerCase()!==t)].slice(0,10))}function X(e){let t=Sr.value;if(!(!V.value||!t||!K.value.some(t=>t.action===e))){if(vc(t),e===`paragraph`)V.value.chain().focus().setParagraph().run();else if(e.startsWith(`heading-`)){let t=Number(e.replace(`heading-`,``));V.value.chain().focus().toggleHeading({level:t}).run()}else e===`bullet-list`?V.value.chain().focus().toggleBulletList().run():e===`ordered-list`?V.value.chain().focus().toggleOrderedList().run():e===`task-list`&&V.value.chain().focus().toggleTaskList().run();mc(),Il()}}function jc(e){let t=Sr.value,n=t&&V.value?.state.doc.nodeAt(t.pos);if(!Pr.value||!V.value?.isEditable||!t||!n||!xc(t))return;let r=e.startsWith(`align-`)?e.slice(6):void 0;if(r!==void 0&&![`left`,`center`,`right`].includes(r)||r===void 0&&e!==`indent-more`&&e!==`indent-less`)return;let i=V.value.state.tr.setMeta(`officeBlockSideAttrs`,t.pos);for(let a of Sc({...t,node:n})){let t={...a.node.attrs};r===void 0?t.indent=Math.max(0,Math.min(8,Number(t.indent??0)+(e===`indent-more`?1:-1))):t.textAlign=r,!(t.textAlign===a.node.attrs.textAlign&&t.indent===a.node.attrs.indent)&&i.setNodeMarkup(a.pos,void 0,t)}i.docChanged&&V.value.view.dispatch(i)}function Mc(e){let t=Sr.value;if(!Pr.value||!V.value?.isEditable||!t||!Cc(t))return;let{state:n,view:r}=V.value,i=n.doc.nodeAt(t.pos),a=n.schema.marks.textStyle;if(!i||i.type.name!==t.node.type.name||!a)return;let o=n.tr;n.doc.nodesBetween(t.pos+1,t.pos+i.nodeSize-1,(t,n)=>{if(!t.isText)return;let r={...t.marks.find(e=>e.type===a)?.attrs,...e};Object.values(r).some(e=>e!=null&&e!==``)?o.addMark(n,n+t.nodeSize,a.create(r)):o.removeMark(n,n+t.nodeSize,a)}),o.docChanged&&r.dispatch(o)}function Nc(e,t){if(!(e!==`text`&&e!==`background`)&&(Mc(e===`text`?{color:t}:{backgroundColor:t}),t)){let n=e===`text`?cr:lr;n.value=[t,...n.value.filter(e=>e.toLowerCase()!==t.toLowerCase())].slice(0,10)}}function Pc(){Mc({color:null,backgroundColor:null})}function Fc(e,t){Ae.value=t,Dr.value=e}function Ic(e){let t=Dr.value;t===`border`||t===`fill`?Dc(e??`transparent`):t&&Nc(t,e)}let Lc=(0,t.computed)(()=>{let e=Dr.value,t=Ec.value;return(e===`border`||e===`fill`)&&t?{label:`自定义${t.label}选择`,color:t.color,defaultColor:t.defaultColor,recentColors:cr.value}:{label:e===`text`?`自定义文字颜色选择`:`自定义背景颜色选择`,color:e===`text`?ao.value.text:ao.value.background,defaultColor:e===`text`?`#273142`:`#FFFFFF`,recentColors:e===`text`?cr.value:lr.value}});function Rc(e){return zc(new o.Slice(o.Fragment.from(e.node),0,0))}function zc(e){if(!V.value)return null;let t=V.value.view.serializeForClipboard(e);return{json:t.slice.openStart===0&&t.slice.openEnd===0?t.slice.content.toJSON():void 0,html:t.dom.innerHTML,text:t.text}}function Bc(e,t){return e.clipboardData?(e.clipboardData.clearData(),e.clipboardData.setData(`text/html`,t.html),e.clipboardData.setData(`text/plain`,t.text),t.json?.length&&e.clipboardData.setData(Tw,JSON.stringify(t.json)),e.preventDefault(),e.stopPropagation(),Or.value=t,!0):!1}async function Vc(e){if(!V.value)return!1;let t=Rc(e);Or.value=t;let n={payload:t,written:!1};M=n;try{V.value.view.focus(),document.execCommand(`copy`)||(n.written=!1)}catch{}finally{M=null}if(n.written)return!0;try{return!navigator.clipboard?.write||typeof ClipboardItem>`u`?!1:(await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([t.html],{type:`text/html`}),"text/plain":new Blob([t.text],{type:`text/plain`})})]),!0)}catch{return!1}}async function Hc(e){if(!V.value||!Pr.value)return;let t=V.value.state.doc;await Vc(e)&&V.value?.state.doc===t&&Gc(e)}async function Uc(){try{if(navigator.clipboard?.read){let e=await navigator.clipboard.read();for(let t of e){let e=t.types.includes(`text/html`)?await(await t.getType(`text/html`)).text():``,n=t.types.includes(`text/plain`)?await(await t.getType(`text/plain`)).text():``;if(e||n)return{html:e,text:n}}return null}if(navigator.clipboard?.readText){let e=await navigator.clipboard.readText();return e?{html:``,text:e}:null}}catch{}return Or.value}async function Wc(e){if(!V.value||!Pr.value)return;let t=V.value.state.doc,n=await Uc();if(!n||!V.value||V.value.state.doc!==t)return;let r=n.json?.length?n.json:n.html||n.text.split(/\r\n?|\n/).map(e=>({type:`paragraph`,content:e?[{type:`text`,text:e}]:[]}));V.value.chain().focus().insertContentAt({from:e.to,to:e.to},r,{updateSelection:!0}).run(),mc()}function Gc(e){!V.value||!Pr.value||(V.value.chain().focus().deleteRange({from:e.from,to:e.to}).run(),mc(),xr.value=null)}function Kc(e,t){if(!V.value||!Pr.value||Fe.value)return;e.preventDefault(),e.stopPropagation(),fc(t),Cr.value=null,j.value=null,Er.value=null,Dr.value=null,kr.value={from:t.from,to:t.to,content:t.node.toJSON()};let n=t.dom.getBoundingClientRect(),r=Math.min(1,Rw/Math.max(n.width,1),zw/Math.max(n.height,1)),i=(e.clientX-n.left)*r,a=(e.clientY-n.top)*r;Ar.value={html:t.dom.outerHTML,left:e.clientX-i,top:e.clientY-a,width:n.width*r,height:n.height*r,sourceWidth:n.width,sourceHeight:n.height,scale:r,offsetX:i,offsetY:a};let o=e=>{Ar.value&&={...Ar.value,left:e.clientX-Ar.value.offsetX,top:e.clientY-Ar.value.offsetY};let t=nl(e.clientX,e.clientY);if(!t){br.value=null;return}br.value=t},s=e=>{document.removeEventListener(`mousemove`,o),document.removeEventListener(`mouseup`,s);let t=kr.value,n=br.value??nl(e.clientX,e.clientY);if(br.value=null,kr.value=null,Ar.value=null,!t||!n||n.range.from>=t.from&&n.range.from<=t.to)return;let r=n.range.from;r>t.from&&(r-=t.to-t.from),V.value?.chain().focus().deleteRange({from:t.from,to:t.to}).insertContentAt(r,t.content,{updateSelection:!0}).run(),mc(),xr.value=null};document.addEventListener(`mousemove`,o),document.addEventListener(`mouseup`,s),o(e)}function qc(e){return e.type.startsWith(`image/`)}function Jc(e){return e.type.startsWith(`video/`)}function Yc(e){return!qc(e)&&!Jc(e)}function Xc(e){return e?Array.from(e.items??[]).some(e=>e.kind===`file`)?!0:Array.from(e.files??[]).length>0:!1}function Zc(e){return e?Array.from(e.files??[]).filter(qc).slice(0,4):[]}function Qc(e){return e?Array.from(e.files??[]).find(Jc)??null:null}function $c(e){return e?Array.from(e.files??[]).filter(Yc):[]}function tl(){if(!v.value)return null;let e=v.value.getBoundingClientRect(),t=v.value.querySelector(`.norio-office-rich-prosemirror`),n=t?.getBoundingClientRect(),r=ha.value||1,i=t?getComputedStyle(t):null,a=Number.parseFloat(i?.paddingLeft??`0`)||0,o=Number.parseFloat(i?.paddingRight??`0`)||0;return n?{left:(n.left-e.left+a)/r,width:Math.max((n.width-a-o)/r,320)}:{left:98,width:Math.max(yw-196,320)}}function nl(e,t){if(!V.value||!v.value)return null;let n=nc(e,t),r=tl();if(!n||!r)return null;let i=ic();if(!i.length){let i=V.value.view.posAtCoords({left:e,top:t})?.pos??V.value.state.doc.content.size;return{left:r.left,top:Math.max(52,n.y),width:r.width,range:{from:i,to:i}}}for(let e of i){let t=e.rect.top+e.rect.height/2;if(n.y<t)return{left:r.left,top:e.rect.top,width:r.width,range:{from:e.from,to:e.from}}}let a=i[i.length-1];return{left:r.left,top:a.rect.top+a.rect.height,width:r.width,range:{from:a.to,to:a.to}}}function rl(e){if(!Pr.value||Fe.value||V.value?.view.dragging||!Xc(e.dataTransfer))return br.value=null,!1;let t=nl(e.clientX,e.clientY);return t?(e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),br.value=t,!0):(br.value=null,!1)}function il(){!vr.value||!L.value||(yr.value=ic().filter(e=>rc(e.rect,L.value)).map(e=>e.pos))}function al(){return V.value?zc(new o.Slice(o.Fragment.fromArray(R.value.map(e=>e.node)),0,0)):null}function ol(){if(!V.value)return null;if(R.value.length){let e=[...R.value].sort((e,t)=>e.from-t.from);return{from:e[0].from,to:e[e.length-1].to}}let e=V.value.state.selection;return{from:e.from,to:e.to}}function sl(){if(!V.value||!R.value.length)return null;let e=[...R.value].sort((e,t)=>e.from-t.from),t=Math.max(0,Math.min(V.value.state.doc.content.size,e[0].from+1)),n=Math.max(t,Math.min(V.value.state.doc.content.size,e[e.length-1].to-1));return t<n?{from:t,to:n}:null}function cl(){let e=V.value?.chain().focus(),t=sl();return e&&t?e.setTextSelection(t):e}function ll(e){if(!V.value||!Pr.value||!e.length)return!1;let t=ol();if(!t)return!1;let n=V.value.chain().focus().insertContentAt(t,e,{updateSelection:!0}).run();return n&&Qs(),n}function ul(){if(!V.value||!Pr.value||!R.value.length)return;let e=R.value.map(e=>({from:e.from,to:e.to})).sort((e,t)=>t.from-e.from),t=V.value.chain().focus();e.forEach(e=>{t=t.deleteRange(e)}),t.run(),Qs()}function dl(e){if(!Pr.value||Fe.value||e.button!==0||!v.value||!v.value.contains(e.target)||ec(e.target))return;$s(),Qs();let t=V.value?.view.dom;if(!t)return;let n=v.value.getBoundingClientRect(),r=t.getBoundingClientRect(),i=getComputedStyle(t),a=t.offsetWidth>0?r.width/t.offsetWidth:ha.value||1,o=r.left+(Number.parseFloat(i.paddingLeft)||0)*a,s=r.right-(Number.parseFloat(i.paddingRight)||0)*a;!(e.clientX>=n.left&&e.clientX<=n.right&&e.clientY>=n.top&&e.clientY<=n.bottom)||e.clientX>=o&&e.clientX<=s||(e.preventDefault(),gr.value={x:e.clientX,y:e.clientY},_r.value={x:e.clientX,y:e.clientY})}function pl(e){rl(e)}function hl(e){rl(e)}function gl(e){if(!v.value||!br.value)return;let t=v.value.getBoundingClientRect();e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=t.top&&e.clientY<=t.bottom||(br.value=null)}async function _l(e){if(!V.value||!Pr.value||Fe.value||V.value.view.dragging||!Xc(e.dataTransfer)){br.value=null;return}e.preventDefault(),e.stopPropagation();let t=Qc(e.dataTransfer),n=Zc(e.dataTransfer),r=$c(e.dataTransfer),i=br.value??nl(e.clientX,e.clientY);if(br.value=null,!(!t&&!n.length&&!r.length||!i)){if(t){await ts(`video`,t.name,async()=>{let e=await ns(t,`video`);return V.value?.chain().focus().insertContentAt(i.range,{type:`videoBlock`,attrs:{assetId:e.assetId||``,src:e.url,name:e.name,description:e.description||``,mimeType:e.mimeType||`video/mp4`,align:`left`,widthPercent:100,height:220}},{updateSelection:!0}).run(),!0},e=>Jo({kind:`video`,fileName:t.name,error:e}));return}n.length&&await ts(`image`,n.length>1?`${n[0]?.name||`图片`} 等 ${n.length} 张图片`:n[0]?.name||`图片`,async()=>{let e=await Promise.all(n.map(async e=>{let t=await ns(e,`image`);return{assetId:t.assetId,src:t.url,alt:t.alt||t.name,name:t.name,description:t.description||``,link:``,rotation:0}}));return V.value?.chain().focus().insertContentAt(i.range,{type:`imageBlock`,attrs:{images:e.map(Iu),widthPercent:100,align:`left`,height:146}},{updateSelection:!0}).run(),!0},e=>Jo({kind:`image`,fileName:n[0]?.name||``,error:e})),r.length&&await ts(`file`,r.length>1?`${r[0]?.name||`文件`} 等 ${r.length} 个文件`:r[0]?.name||`文件`,async()=>{let e=await Promise.all(r.map(async e=>{let t=await ns(e,`file`);return{assetId:t.assetId,url:t.url,name:t.name,size:t.size,mimeType:t.mimeType}})),t=V.value?.state.selection.from??i.range.from,a=n.length?{from:t,to:t}:i.range;return V.value?.chain().focus().insertContentAt(a,e.map(e=>({type:`localFileBlock`,attrs:{assetId:e.assetId||``,url:e.url,name:e.name,size:Math.max(0,Number(e.size??0)||0),mimeType:e.mimeType||``}})),{updateSelection:!0}).run()&&e.forEach(e=>d(`local-file-upload`,e)),!0},e=>Jo({kind:`file`,fileName:r[0]?.name||``,error:e}))}}function vl(){if(gr.value){if(!vr.value&&!yr.value.length){$s();return}il(),$s()}}function yl(){ei.value&&(Ve.value=!Ve.value,Ve.value?As():(Ut.value=null,Kt.value=0,qt.value=0,Jt.value=0,As()),Ze.value=!1,Qe.value=!1,$e.value=!1,et.value=!1,tt.value=!1,nt.value=!1,rt.value=!1)}function bl(){Fo.value&&(He.value=!He.value,Ve.value=!1)}function xl(e){cl()?.setTextAlign(e).run(),He.value=!1}function Sl(e){Ut.value=e,e!==`table`&&(Kt.value=0,qt.value=0),e!==`columns`&&(Jt.value=0),e!==`countdown`&&(tn.value=!1),e===`countdown`&&!Xt.value&&As()}function Cl(e,t){Kt.value=e,qt.value=t}function wl(){Kt.value=0,qt.value=0}function Ol(e){Jt.value=e}function kl(){Jt.value=0}function Al(e){if(e instanceof HTMLElement){ne.value=e;return}let t=e&&`$el`in e?e.$el:null;ne.value=t instanceof HTMLElement?t:null}function jl(e){let t=e.target;ie.value=t instanceof HTMLElement?t.scrollTop:0}function Ml(e,t){return(e instanceof Element?e:e?.parentElement??null)?.closest(t)??null}function Nl(){Yf?.(),Yf=null,Tn.value?.classList.remove(`norio-office-rich-table-wrapper--active`),wn.value=null,Tn.value=null,kn.value=null,An.value=[],jn.value=[],Mn.value=[],Nn.value=[],Pn.value=null,Fn.value=null}function Pl(){if(!V.value?.isActive(`countdownBlock`)){En.value=null,On.value=null,nn.value=!1;return}let e=V.value.state.selection;if(e instanceof a.NodeSelection&&e.node.type.name===`countdownBlock`){let t=V.value.view.nodeDOM(e.from);En.value=t instanceof HTMLElement?t:null,On.value=e.from;return}En.value=Ml(window.getSelection()?.anchorNode??null,`.norio-office-rich-countdown-block`),On.value=null}function Fl(){if(!V.value?.isActive(`table`)||!v.value){Nl();return}let e=Ml(window.getSelection()?.anchorNode??null,`table`),t=e?.closest(`.tableWrapper`);if(!e||!t){Nl();return}if(Tn.value&&Tn.value!==t&&Tn.value.classList.remove(`norio-office-rich-table-wrapper--active`),Tn.value!==t){Yf?.();let e=()=>{Il()};t.addEventListener(`scroll`,e,{passive:!0}),Yf=()=>{t.removeEventListener(`scroll`,e)}}t.classList.add(`norio-office-rich-table-wrapper--active`),wn.value=e,Tn.value=t;let n=v.value.getBoundingClientRect(),r=t.getBoundingClientRect(),i=ha.value||1;kn.value={left:(r.left-n.left)/i,top:(r.top-n.top)/i,width:r.width/i,height:r.height/i};let a=e.rows.item(0),o=[],s=[];if(a){let e=Array.from(a.cells).map((e,t)=>{let a=e.getBoundingClientRect(),o=Math.max(a.left,r.left),s=Math.min(a.right,r.right)-o;return s<8?null:{index:t,left:(o-n.left)/i,width:s/i,rawLeft:a.left,rawRight:a.right}}).filter(e=>!!e);o.push(...e.map(e=>({index:e.index,left:e.left,width:e.width}))),e.forEach((t,a)=>{t.rawLeft>=r.left-.5&&s.push({key:`column-before-${t.index}`,insertIndex:t.index,left:(t.rawLeft-n.left)/i}),a===e.length-1&&t.rawRight<=r.right+.5&&s.push({key:`column-after-${t.index}`,insertIndex:t.index+1,left:(t.rawRight-n.left)/i})})}let c=[],l=[],u=Array.from(e.rows).map((e,t)=>{let a=(e.cells.item(0)??e).getBoundingClientRect(),o=Math.max(a.top,r.top),s=Math.min(a.bottom,r.bottom)-o;return s<8?null:{index:t,top:(o-n.top)/i,height:s/i,rawTop:a.top,rawBottom:a.bottom}}).filter(e=>!!e);c.push(...u.map(e=>({index:e.index,top:e.top,height:e.height}))),u.forEach((e,t)=>{e.rawTop>=r.top-.5&&l.push({key:`row-before-${e.index}`,insertIndex:e.index,top:(e.rawTop-n.top)/i}),t===u.length-1&&e.rawBottom<=r.bottom+.5&&l.push({key:`row-after-${e.index}`,insertIndex:e.index+1,top:(e.rawBottom-n.top)/i})}),An.value=o,jn.value=c,Mn.value=s,Nn.value=l}function Il(){(0,t.nextTick)(()=>{Fl(),Pl()})}function Ll(){if(!Pr.value||!V.value?.isEditable||!wn.value)return!1;let e=V.value.state.selection;return e instanceof s.CellSelection?!0:e instanceof a.NodeSelection&&V.value.isActive(`table`)}function Rl(){return!1}function zl(){return wn.value?{getBoundingClientRect:()=>wn.value.getBoundingClientRect(),contextElement:wn.value}:null}function Bl(){return En.value?{getBoundingClientRect:()=>En.value.getBoundingClientRect(),contextElement:En.value}:null}function Vl(){qe.value=!qe.value}function Hl(){Je.value=!Je.value}function Ul(){Ye.value=!Ye.value}function Wl(){Xe.value=!Xe.value}function Gl(){We.value=!1,Ue.value=!Ue.value}function Kl(){Ue.value=!1,We.value=!We.value}function ql(){(Cr.value||We.value||[`table-theme`,`properties`,`color`,`divider-style`,`divider-color`,`highlight-settings`,...Bt].includes(j.value??``))&&(Ke.value+=1)}function Jl(){let e=xa.value;!V.value?.isEditable||e?.node.type.name!==`table`||(fc(e),Tr.value=e.from,j.value=`table-theme`,We.value=!1,Ue.value=!1)}function Yl(e){Tr.value!==null&&Ql(Tr.value,e)}function Xl(){j.value=null,Tr.value=null}function Zl(e){if(!V.value?.isEditable)return;let t=V.value.state.selection,n=t instanceof a.NodeSelection&&t.node.type.name===`table`?{node:t.node,pos:t.from,start:t.from+1}:(0,s.findTable)(t.$from);n&&Ql(n.pos,e)}function Ql(e,t){if(!V.value?.isEditable)return;let n=V.value.state.doc.nodeAt(e);if(n?.type.name!==`table`)return;let r=ml(t),i=V.value.state.tr.setNodeMarkup(e,void 0,{...n.attrs,tableTheme:r});n.forEach((t,n)=>{t.forEach((t,r)=>{t.attrs.backgroundColor&&i.setNodeMarkup(e+n+r+2,void 0,{...t.attrs,backgroundColor:null})})}),V.value.view.dispatch(i),Il()}function $l(e){e?Zd(e):Xd(),qe.value=!1}function eu(e){e===`bullet`?V.value?.chain().focus().toggleBulletList().run():e===`ordered`?V.value?.chain().focus().toggleOrderedList().run():V.value?.chain().focus().toggleTaskList().run(),Je.value=!1}function tu(e){df(e),Ye.value=!1}function nu(e){pf(e),Xe.value=!1}function ru(e){V.value&&(V.value.chain().focus().setCellAttribute(`backgroundColor`,e).run(),Ue.value=!1,Il())}function iu(e){if(!V.value||!wn.value)return;let t=(0,s.findTable)(V.value.state.selection.$from);if(!t)return;let n=s.TableMap.get(t.node);if(e<0||e>=n.width)return;let r=t.start+n.positionAt(0,e,t.node),i=t.start+n.positionAt(n.height-1,e,t.node),a=V.value.state.doc.resolve(r),o=V.value.state.doc.resolve(i),c=s.CellSelection.colSelection(a,o);V.value.view.dispatch(V.value.state.tr.setSelection(c).scrollIntoView()),Pn.value=e,Fn.value=null,Il()}function au(e){if(!V.value||!wn.value)return;let t=(0,s.findTable)(V.value.state.selection.$from);if(!t)return;let n=s.TableMap.get(t.node);if(e<0||e>=n.height)return;let r=t.start+n.positionAt(e,0,t.node),i=t.start+n.positionAt(e,n.width-1,t.node),a=V.value.state.doc.resolve(r),o=V.value.state.doc.resolve(i),c=s.CellSelection.rowSelection(a,o);V.value.view.dispatch(V.value.state.tr.setSelection(c).scrollIntoView()),Fn.value=e,Pn.value=null,Il()}function ou(e){if(!V.value||!wn.value)return;let t=wn.value.rows.item(0),n=t?Array.from(t.cells):[];if(n.length!==0){if(e<=0){let e=n[0],t=V.value.view.posAtDOM(e,0)+1;V.value.chain().focus(t).addColumnBefore().run()}else{let t=n[Math.min(e-1,n.length-1)],r=V.value.view.posAtDOM(t,0)+1;V.value.chain().focus(r).addColumnAfter().run()}Pn.value=null,Fn.value=null,Il()}}function su(e){if(!V.value||!wn.value)return;let t=Array.from(wn.value.rows);if(t.length!==0){if(e<=0){let e=t[0].cells.item(0);if(!e)return;let n=V.value.view.posAtDOM(e,0)+1;V.value.chain().focus(n).addRowBefore().run()}else{let n=t[Math.min(e-1,t.length-1)].cells.item(0);if(!n)return;let r=V.value.view.posAtDOM(n,0)+1;V.value.chain().focus(r).addRowAfter().run()}Pn.value=null,Fn.value=null,Il()}}function cu(e,t){if(!V.value)return;let n=Us();if(!n){Ve.value=!1,Ut.value=null,wl();return}V.value.chain().focus().deleteRange(n).insertTable({rows:e,cols:t,withHeaderRow:!1}).run(),Ve.value=!1,Ut.value=null,wl(),Il()}function lu(){V.value?.chain().focus().addRowAfter().run(),Il()}function uu(){Uo.value&&(V.value?.chain().focus().addRowBefore().run(),Il())}function du(){V.value?.chain().focus().addColumnAfter().run(),Il()}function fu(){Uo.value&&(V.value?.chain().focus().addRowAfter().run(),Il())}function pu(){Wo.value&&(V.value?.chain().focus().addColumnBefore().run(),Il())}function mu(){Wo.value&&(V.value?.chain().focus().addColumnAfter().run(),Il())}function hu(){V.value?.chain().focus().deleteRow().run(),Il()}function gu(){V.value?.chain().focus().deleteColumn().run(),Il()}function _u(){V.value?.chain().focus().mergeCells().run(),Il()}function vu(){V.value?.chain().focus().splitCell().run(),Il()}function yu(){V.value?.chain().focus().toggleHeaderRow().run(),Il()}function bu(){V.value?.chain().focus().deleteTable().run(),Il()}function xu(){if(!V.value)return;let e=V.value.state.selection,t=V.value.state.tr;if(e instanceof s.CellSelection){let n=[];e.forEachCell((e,t)=>{n.push({pos:t,node:e})});for(let e=n.length-1;e>=0;--e){let r=n[e];if(!r.node)continue;let i=r.node.type.createAndFill(r.node.attrs);i&&t.replaceWith(r.pos,r.pos+r.node.nodeSize,i)}V.value.view.dispatch(t.scrollIntoView()),Il();return}try{let e=(0,s.selectionCell)(V.value.state),t=e.nodeAfter;if(!t)return;let n=t.type.createAndFill(t.attrs);if(!n)return;let r=V.value.state.tr.replaceWith(e.pos,e.pos+t.nodeSize,n);V.value.view.dispatch(r.scrollIntoView()),Il()}catch{}}function Su(){if(!(!V.value||!Go.value)){if(Qa.value.isRowSelection){hu();return}if(Qa.value.isColumnSelection){gu();return}xu()}}function Cu(e){return{type:`columnsBlock`,attrs:{widths:Array.from({length:e},()=>100/e)},content:Array.from({length:e},()=>({type:`columnsColumn`,content:[{type:`paragraph`}]}))}}function wu(e){switch(e){case`paragraph`:return{type:`paragraph`};case`heading-1`:return{type:`heading`,attrs:{level:1}};case`heading-2`:return{type:`heading`,attrs:{level:2}};case`heading-3`:return{type:`heading`,attrs:{level:3}};case`heading-4`:return{type:`heading`,attrs:{level:4}};case`heading-5`:return{type:`heading`,attrs:{level:5}};case`heading-6`:return{type:`heading`,attrs:{level:6}};case`bullet-list`:return{type:`bulletList`,content:[{type:`listItem`,content:[{type:`paragraph`}]}]};case`ordered-list`:return{type:`orderedList`,content:[{type:`listItem`,content:[{type:`paragraph`}]}]};case`task-list`:return{type:`taskList`,content:[{type:`taskItem`,attrs:{checked:!1},content:[{type:`paragraph`}]}]};case`code-block`:return{type:`codeBlock`,attrs:{language:`plain_text`,wrapLines:!1,darkTheme:!1,fixedHeight:!1}};case`highlight-block`:return{type:`highlightBlock`,attrs:{titleEnabled:!0,emojiEnabled:!0,title:`高亮块`,emoji:`✍️`},content:[{type:`paragraph`}]};case`blockquote`:return{type:`blockquote`,content:[{type:`paragraph`}]};case`divider`:return[{type:`horizontalRule`},{type:`paragraph`}];default:return null}}function Tu(e){V.value&&(V.value.chain().focus().insertContent(e).run(),Ve.value=!1,at.value=!1,Ut.value=null,wl())}function Eu(e){if(!V.value)return;let t=Us();if(!t){Ve.value=!1,Ut.value=null,wl(),kl();return}V.value.chain().focus().insertContentAt({from:t.from,to:t.to},Cu(e),{updateSelection:!0}).run(),Ve.value=!1,Ut.value=null,wl(),kl()}function Du(){if(!V.value)return;let e=Us();if(!e){Ve.value=!1,Ut.value=null,As();return}V.value.chain().focus().insertContentAt({from:e.from,to:e.to},{type:`countdownBlock`,attrs:{targetTimestamp:0,mode:`duration`,color:`#ff8b00`,reminderEnabled:!0}},{updateSelection:!0}).run(),Ve.value=!1,Ut.value=null,As()}function Ou(){if(Yt.value===`deadline`)return new Date(Xt.value).getTime();let e=js(Zt.value),t=js(Qt.value,23),n=js($t.value,59),r=js(en.value,59);return Date.now()+(((e*24+t)*60+n)*60+r)*1e3}function ku(){if(!V.value||On.value===null)return;let e=Ou();!Number.isFinite(e)||e<=Date.now()||(V.value.chain().focus().setNodeSelection(On.value).updateAttributes(`countdownBlock`,{targetTimestamp:Math.floor(e),mode:Yt.value}).run(),tn.value=!1,nn.value=!1,Il())}function Au(){if(!V.value||On.value===null)return;let e=V.value.state.doc.nodeAt(On.value);!e||e.type.name!==`countdownBlock`||(V.value.chain().focus().deleteRange({from:On.value,to:On.value+e.nodeSize}).run(),tn.value=!1,nn.value=!1,En.value=null,On.value=null)}function ju(){Wt.value=!1,Gt.value=``}function Mu(){C.value&&(C.value.value=``,C.value.click())}async function Nu(e){if(!V.value)return;let t=e.target,n=t.files?.[0];if(!n)return;let r=nv(await n.text()),i=Us();i&&(V.value.chain().focus().insertContentAt({from:i.from,to:i.to},r,{updateSelection:!0}).run(),Ve.value=!1,Ut.value=null,wl(),t.value=``)}function Pu(e){if(!V.value)return;let t=Us();if(!t){ju(),Ve.value=!1,Ut.value=null,wl();return}V.value.chain().focus().insertContentAt({from:t.from,to:t.to},{type:`formulaBlock`,attrs:{latex:e}},{updateSelection:!0}).run(),ju(),Ve.value=!1,Ut.value=null,wl()}function Fu(e){if(!V.value)return!1;let t=Us();return t?(V.value.chain().focus().insertContentAt({from:t.from,to:t.to},e,{updateSelection:!0}).run(),!0):!1}function Iu(e){return{id:Ko(),assetId:e.assetId,src:e.src,alt:e.alt||e.name||``,name:e.name||e.alt||``,description:e.description||``,descriptionVisible:e.descriptionVisible,link:e.link||``,linkTarget:e.linkTarget,rotation:Number(e.rotation??0)||0}}function Lu(e){let t=(Array.isArray(e)?e:[e]).filter(e=>e?.src).slice(0,4);return t.length?Fu({type:`imageBlock`,attrs:{images:t.map(Iu),widthPercent:100,align:`left`,height:146}}):!1}function Ru(e){return e.src?Fu({type:`videoBlock`,attrs:{assetId:e.assetId||``,src:e.src,name:e.name||``,description:e.description||``,mimeType:e.mimeType||`video/mp4`,align:e.align||`left`,widthPercent:Math.max(30,Math.min(100,Number(e.widthPercent??100)||100)),height:Math.max(180,Math.min(640,Number(e.height??220)||220))}}):!1}function zu(e){if(!e.url||!e.name)return!1;let t=e.displayMode===`card`||e.displayMode===`preview`?e.displayMode:`text`;return Fu({type:`linkBlock`,attrs:{title:e.name,url:e.url,displayMode:t,align:e.align||`left`,widthPercent:Math.max(30,Math.min(100,Number(e.widthPercent??100)||100)),height:Math.max(240,Math.min(860,Number(e.height??420)||420))}})}function Bu(e){return!e.url||!e.name?!1:Fu({type:`localFileBlock`,attrs:{assetId:e.assetId||``,url:e.url,name:e.name,size:Math.max(0,Number(e.size??0)||0),mimeType:e.mimeType||``}})}function Vu(e){return typeof crypto<`u`&&`randomUUID`in crypto?`${e}-${crypto.randomUUID()}`:`${e}-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function Hu(){return qr.value}function Uu(e){return(e?.name||e?.id||`?`).slice(0,2).toUpperCase()}function Wu(e){return{backgroundColor:e?.color||`#4c7dff`}}function Gu(e){if(!e)return``;let t=new Date(e);if(Number.isNaN(t.getTime()))return``;let n=Date.now()-t.getTime(),r=60*1e3,i=60*r;return 24*i,n<r?`刚刚`:n<i?`${Math.max(1,Math.floor(n/r))} 分钟前`:n<864e5?`${Math.floor(n/i)} 小时前`:t.toLocaleDateString()}function Ku(e,t){return t?`${e}:${t}`:e}function qu(e,t){return _t.value[Ku(e,t)]??``}function Ju(e,t,n){let r=Ku(e,n);_t.value={..._t.value,[r]:t}}function Yu(e,t,n){let r=t.target;Ju(e,r?.value??``,n),ta(r,{mode:`draft`,threadId:e,parentId:n})}function Xu(e,t,n){if(oa(t)){t.preventDefault(),t.stopPropagation();return}(t.ctrlKey||t.metaKey)&&t.key===`Enter`&&(t.preventDefault(),wd(e,n))}function Zu(e,t){return vt.value[Ku(e,t)]??[]}function Qu(e,t,n){let r=Ku(e,n);vt.value={...vt.value,[r]:t}}function $u(e,t){let n=Ku(e,t),{[n]:r,...i}=_t.value,{[n]:a,...o}=vt.value,{[n]:s,...c}=yt.value;_t.value=i,vt.value=o,yt.value=c}function ed(e){return e.comments.filter(e=>!e.parentId)}function td(e,t){let n=[],r=t=>{e.comments.filter(e=>e.parentId===t).forEach(e=>{n.push(e),r(e.id)})};return r(t.id),n}function nd(e,t){return t?e.comments.find(e=>e.id===t)??null:null}function rd(e){return Et.value[e]??null}function id(e){return nd(e,rd(e.id)??void 0)}function ad(e,t){let n=rd(e.id);return n?n===t.id||td(e,t).some(e=>e.id===n):!1}function od(e,t){Et.value={...Et.value,[e.id]:t.id},gt.value=e.id}function sd(e,t){let{[e]:n,...r}=Et.value;Et.value=r,$u(e,t)}function cd(e){return e.anchorText?.trim()||`已标注内容`}function ld(){if(!V.value)return null;let e=V.value.state.selection;if(!e.empty&&!(e instanceof s.CellSelection))return{from:e.from,to:e.to};let t=Us();return t&&t.to>t.from?t:null}function ud(e){return V.value&&V.value.state.doc.textBetween(e.from,e.to,` `).replace(/\s+/g,` `).trim()||`已标注内容`}function dd(e,t){if(!V.value||!e||t.to<=t.from)return!1;let n=V.value.state.schema.marks.commentMark;if(!n)return!1;let r=V.value.state.tr,i=!1,a=n.create({threadId:e});return V.value.state.doc.nodesBetween(t.from,t.to,(e,n)=>{if(!e.isText||!e.textContent.trim())return;let o=Math.max(n,t.from),s=Math.min(n+e.nodeSize,t.to);s<=o||(r=r.addMark(o,s,a),i=!0)}),i?(V.value.view.dispatch(r.scrollIntoView()),V.value.commands.focus(),!0):!1}function fd(e){if(!V.value||!e)return!1;let t=V.value.state.schema.marks.commentMark;if(!t)return!1;let n=V.value.state.tr,r=!1;return V.value.state.doc.descendants((i,a)=>{i.isText&&i.marks.some(n=>n.type===t&&n.attrs.threadId===e)&&(n=n.removeMark(a,a+i.nodeSize,t),r=!0)}),r&&V.value.view.dispatch(n),r}function pd(e,t){if(t instanceof HTMLElement){Dt.set(e,t);return}Dt.delete(e)}function md(){return y.value?.querySelector(`.norio-office-rich-comment-panel__scroll`)??null}function hd(){return _.value?.querySelector(`.norio-office-rich-editor__scroll`)??null}function gd(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.top-r.top,a=Math.max(12,(r.height-n.height)/2),o=Math.max(0,t.scrollTop+i-a);t.scrollTo({top:o,behavior:`smooth`})}function _d(e){let t=v.value?.querySelectorAll(`[data-comment-thread-id]`)??[];return Array.from(t).find(t=>t.dataset.commentThreadId===e)??null}function vd(e){(0,t.nextTick)(()=>{let t=()=>{let t=_d(e),n=hd();!t||!n||gd(t,n)};if(typeof window<`u`&&typeof window.requestAnimationFrame==`function`){window.requestAnimationFrame(()=>window.requestAnimationFrame(t)),typeof window.setTimeout==`function`&&window.setTimeout(t,120);return}t()})}function yd(e){(0,t.nextTick)(()=>{let t=Dt.get(e),n=md();!t||!n||gd(t,n)})}function bd(e){if(!V.value||!e)return!1;let t=V.value.state.schema.marks.commentMark;if(!t)return!1;let n=null,r=null;if(V.value.state.doc.descendants((i,a)=>{if(n!==null||!i.isText)return!1;if(i.marks.some(n=>n.type===t&&n.attrs.threadId===e))return n=a,r=a+i.nodeSize,!1}),n===null||r===null)return!1;gt.value=e;let i=a.TextSelection.create(V.value.state.doc,n,r);return V.value.view.dispatch(V.value.state.tr.setSelection(i)),V.value.view.dom.focus({preventScroll:!0}),vd(e),!0}function xd(e,t={}){gt.value=e.id,t.focusEditor!==!1&&(bd(e.id)||vd(e.id)),t.scrollCommentCard&&yd(e.id),d(`comment-select`,e)}function Sd(){let e=Hu();if(!V.value||!e||!xo.value)return;let t=ld();if(!t)return;let n=Vu(`comment-thread`),r=ud(t);dd(n,t)&&(wt.value={id:n,anchorText:r},gt.value=n,Ju(n,``),Qu(n,[]))}function Cd(e){if(wt.value?.id!==e){$u(e);return}fd(e),wt.value=null,gt.value=Jr.value[0]?.id??null,$u(e)}function wd(e,t){let n=Hu(),r=qu(e,t).trim(),i=Zu(e,t),a=Ji(r,Yi(e,t)),o=Jr.value.find(t=>t.id===e),s=o?nd(o,t):null;if(!n||!r&&!i.length)return;let c=new Date().toISOString();if(wt.value?.id===e){let t=Vu(`comment`);d(`comment-create`,{threadId:e,commentId:t,anchorText:wt.value.anchorText,content:r,images:i,mentions:a,author:n,createdAt:c}),d(`comment-submit`,{action:`create`,threadId:e,commentId:t,content:r,images:i,mentions:a,author:n,createdAt:c}),wt.value=null}else{let o=Vu(`comment`);if(d(`comment-reply`,{threadId:e,commentId:o,parentId:t,targetCommentId:s?.id,targetUserId:s?.author.id,targetUserName:s?.author.name,content:r,images:i,mentions:a,author:n,createdAt:c}),d(`comment-submit`,{action:`reply`,threadId:e,commentId:o,targetCommentId:s?.id,targetUserId:s?.author.id,targetUserName:s?.author.name,content:r,images:i,mentions:a,author:n,createdAt:c}),t){let{[e]:t,...n}=Et.value;Et.value=n}}$u(e,t)}function Td(e,t){bt.value=`${e}:${t.id}`,xt.value=t.content,St.value=t.mentions??[]}function Ed(e,t){return bt.value===`${e}:${t.id}`}function Dd(e){let t=e.target;xt.value=t?.value??``;let[n=``,r=``]=bt.value?.split(`:`)??[];ta(t,{mode:`edit`,threadId:n,commentId:r})}function Od(e,t,n){if(oa(n)){n.preventDefault(),n.stopPropagation();return}(n.ctrlKey||n.metaKey)&&n.key===`Enter`&&(n.preventDefault(),Ad(e,t))}function kd(){bt.value=null,xt.value=``,St.value=[],$i()}function Ad(e,t){let n=xt.value.trim(),r=Ji(n,St.value);if(!n)return;let i=new Date().toISOString();d(`comment-update`,{threadId:e,commentId:t.id,content:n,images:t.images,mentions:r,author:qr.value??void 0,updatedAt:i}),d(`comment-submit`,{action:`update`,threadId:e,commentId:t.id,content:n,images:t.images,mentions:r,author:qr.value??void 0,updatedAt:i}),kd()}function jd(e,t){d(`comment-delete`,{threadId:e,commentId:t?.id}),t||fd(e)}function Md(e){Ct.value=Ku(e,rd(e)??void 0),ee.value&&(ee.value.value=``,ee.value.click())}async function Nd(e){let t=h.value??f.value;if(!t)throw Error(`Missing uploadCommentImage hook.`);return qo(e,await t({file:e,kind:`image`}))}async function Pd(e){let t=e.target,n=t?.files?.[0],r=Ct.value;if(Ct.value=null,!n||!r){t&&(t.value=``);return}if(!n.type.startsWith(`image/`)){Jo({kind:`image`,fileName:n.name,error:Error(`Please select an image file.`)}),t&&(t.value=``);return}await ts(`image`,n.name,async()=>{let e=await Nd(n),[t=``,i]=r.split(`:`);return Qu(t,[...Zu(t,i),e],i),!0},e=>Jo({kind:`image`,fileName:n.name,error:e})),t&&(t.value=``)}function Fd(e,t,n){Qu(e,Zu(e,n).filter((e,n)=>n!==t),n)}function Id(e){e.url&&(Tt.value=e)}function Ld(){Tt.value=null}function Rd(e){if(!Ir.value||!u.showComments)return;let t=(e.target?.closest?.(`[data-comment-thread-id]`))?.dataset.commentThreadId;if(!t)return;let n=Jr.value.find(e=>e.id===t);n?xd(n,{focusEditor:!1,scrollCommentCard:!0}):gt.value=t}function zd(){w.value?.click()}function Bd(e,t){let n=e[t];return typeof n==`string`?n:``}function Vd(e,t,n=0){let r=Number(e[t]??n);return Number.isFinite(r)?r:n}function Hd(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants(t=>{t.type.name===`imageBlock`&&(Array.isArray(t.attrs.images)?t.attrs.images:[]).forEach(t=>{if(!t||typeof t!=`object`)return;let n=t,r=Bd(n,`src`);r&&e.push({src:r,alt:Bd(n,`alt`)||void 0,name:Bd(n,`name`)||void 0,description:Bd(n,`description`)||void 0,descriptionVisible:typeof n.descriptionVisible==`boolean`?n.descriptionVisible:void 0,link:Bd(n,`link`)||void 0,linkTarget:n.linkTarget===`_self`?`_self`:`_blank`,rotation:Vd(n,`rotation`,0)})})}),e}function Ud(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants(t=>{if(t.type.name!==`videoBlock`)return;let n=t.attrs,r=Bd(n,`src`);if(!r)return;let i=Bd(n,`align`);e.push({src:r,name:Bd(n,`name`)||void 0,description:Bd(n,`description`)||void 0,mimeType:Bd(n,`mimeType`)||void 0,align:i===`center`||i===`right`?i:`left`,widthPercent:Vd(n,`widthPercent`,100),height:Vd(n,`height`,220)})}),e}function Wd(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants(t=>{let n=t.attrs;if(t.type.name===`linkBlock`){let t=Bd(n,`url`),r=Bd(n,`title`);if(!t||!r)return;let i=Bd(n,`displayMode`),a=Bd(n,`align`);e.push({kind:`file`,url:t,name:r,displayMode:i===`card`||i===`preview`?i:`text`,align:a===`center`||a===`right`?a:`left`,widthPercent:Vd(n,`widthPercent`,100),height:Vd(n,`height`,420)});return}if(t.type.name===`localFileBlock`){let t=Bd(n,`url`),r=Bd(n,`name`);if(!t||!r)return;e.push({kind:`local-file`,url:t,name:r,size:Vd(n,`size`,0),mimeType:Bd(n,`mimeType`)||void 0})}}),e}function Gd(e){let t=Us();Ve.value=!1,Ut.value=null,wl(),mt.value=t;let n=e===`image`?T.value:E.value;n&&(n.value=``,n.click())}async function Kd(e){let t=e.target,n=t?.files?.[0],r=mt.value??Us();if(mt.value=null,!n){t&&(t.value=``);return}if(!n.type.startsWith(`image/`)){Jo({kind:`image`,fileName:n.name,error:Error(`Please select an image file.`)}),t&&(t.value=``);return}await ts(`image`,n.name,async()=>{let e=await ns(n,`image`),t={type:`imageBlock`,attrs:{images:[Iu({assetId:e.assetId,src:e.url,alt:e.alt||e.name,name:e.name,description:e.description||``,link:``,rotation:0})],widthPercent:100}};return r?(V.value?.chain().focus().insertContentAt({from:r.from,to:r.to},t,{updateSelection:!0}).run(),!0):(V.value?.chain().focus().insertContent(t,{updateSelection:!0}).run(),!0)},e=>Jo({kind:`image`,fileName:n.name,error:e})),t&&(t.value=``)}async function qd(e){let t=e.target,n=t?.files?.[0],r=mt.value??Us();if(mt.value=null,!n){t&&(t.value=``);return}if(!n.type.startsWith(`video/`)){Jo({kind:`video`,fileName:n.name,error:Error(`Please select a video file.`)}),t&&(t.value=``);return}await ts(`video`,n.name,async()=>{let e=await ns(n,`video`),t={type:`videoBlock`,attrs:{assetId:e.assetId||``,src:e.url,name:e.name,description:e.description||``,mimeType:e.mimeType||`video/mp4`,align:`left`,widthPercent:100,height:220}};return r?(V.value?.chain().focus().insertContentAt({from:r.from,to:r.to},t,{updateSelection:!0}).run(),!0):(V.value?.chain().focus().insertContent(t,{updateSelection:!0}).run(),!0)},e=>Jo({kind:`video`,fileName:n.name,error:e})),t&&(t.value=``)}async function Jd(e){let t=e.target,n=t?.files?.[0];if(!n){t&&(t.value=``);return}await ts(`file`,n.name,async()=>{let e=await ns(n,`file`),t={assetId:e.assetId,url:e.url,name:e.name,size:e.size,mimeType:e.mimeType};return Bu(t)&&d(`local-file-upload`,t),t},e=>Jo({kind:`file`,fileName:n.name,error:e})),t&&(t.value=``)}function Yd(e){if(!V.value)return;if(e===`table`){Sl(`table`);return}if(e===`emoji`){Sl(`emoji`);return}if(e===`columns`){Sl(`columns`);return}if(e===`countdown`){Du();return}if(e===`formula`){Gt.value=``,Wt.value=!0,Ve.value=!1,Ut.value=null,wl();return}if(e===`markdown-import`){Ve.value=!1,Ut.value=null,wl(),Mu();return}if(e===`local-file`){Ve.value=!1,Ut.value=null,wl(),zd();return}if(e===`image`){Gd(`image`);return}if(e===`video`){Gd(`video`);return}if(e===`link`){let e=Us();if(!e){Ve.value=!1;return}V.value.chain().focus().insertContentAt({from:e.from,to:e.to},{type:`linkBlock`,attrs:{title:``,url:``,displayMode:`preview`,align:`left`,widthPercent:100,height:420}},{updateSelection:!0}).run(),Ve.value=!1,Ut.value=null,wl();return}let t=wu(e);if(!t){Ve.value=!1,Ut.value=null,wl();return}let n=Us();if(!n){Ve.value=!1,Ut.value=null,wl();return}V.value.chain().focus().insertContentAt({from:n.from,to:n.to},t,{updateSelection:!0}).run(),Ve.value=!1,Ut.value=null,wl()}function Xd(){cl()?.setParagraph().run()}function Zd(e){cl()?.toggleHeading({level:e}).run()}function Qd(){So.value&&(Ze.value=!Ze.value,Qe.value=!1,$e.value=!1,et.value=!1,tt.value=!1,nt.value=!1,rt.value=!1)}function $d(e){e?Zd(e):Xd(),Ze.value=!1}function tf(){cl()?.increaseIndent().run()}function rf(){cl()?.decreaseIndent().run()}function af(){Co.value&&(Qe.value=!Qe.value,Ze.value=!1,$e.value=!1,et.value=!1,tt.value=!1,nt.value=!1,rt.value=!1)}function of(e){let t=cl();t&&(e?t.setFontFamily(e).run():t.unsetFontFamily().run(),Qe.value=!1)}function sf(){jo.value&&($e.value=!$e.value,Ze.value=!1,Qe.value=!1,et.value=!1,tt.value=!1,nt.value=!1,rt.value=!1)}function cf(){wo.value&&(et.value=!et.value,Ze.value=!1,Qe.value=!1,$e.value=!1,tt.value=!1,nt.value=!1,rt.value=!1)}function lf(e){cl()?.setFontSize(e).run(),et.value=!1}function uf(){To.value&&(tt.value=!tt.value,Ze.value=!1,Qe.value=!1,$e.value=!1,et.value=!1,nt.value=!1,rt.value=!1)}function df(e){cl()?.setColor(e).run(),cr.value=[e,...cr.value.filter(t=>t!==e)].slice(0,10)}function ff(){Eo.value&&(nt.value=!nt.value,Ze.value=!1,Qe.value=!1,$e.value=!1,et.value=!1,tt.value=!1,rt.value=!1)}function pf(e){cl()?.setBackgroundColor(e).run(),mf(e)}function mf(e){lr.value=[e,...lr.value.filter(t=>t.toLowerCase()!==e.toLowerCase())].slice(0,10)}function hf(){!ni.value||!zo.value||(rt.value=!rt.value,Ze.value=!1,Qe.value=!1,$e.value=!1,et.value=!1,tt.value=!1,nt.value=!1,it.value=!1,at.value=!1)}function gf(){Pr.value&&(at.value=!at.value,Ve.value=!1,Ut.value=null,Ze.value=!1,Qe.value=!1,$e.value=!1,et.value=!1,tt.value=!1,nt.value=!1,rt.value=!1,it.value=!1)}function _f(){cl()?.toggleBold().run()}function vf(){cl()?.toggleItalic().run()}function yf(){cl()?.toggleUnderline().run()}function bf(){cl()?.toggleStrike().run()}function xf(){cl()?.toggleCode().run()}function Sf(){cl()?.toggleBulletList().run()}function Cf(){cl()?.toggleOrderedList().run()}function wf(){cl()?.toggleTaskList().run()}function Tf(){cl()?.toggleBlockquote().run()}function Ef(e){V.value?.isActive(`blockquote`)&&V.value?.chain().focus().setQuoteStyle({quoteBorderColor:e,quoteBackgroundColor:Za.value}).run()}function jf(e){V.value?.isActive(`blockquote`)&&V.value?.chain().focus().setQuoteStyle({quoteBorderColor:Xa.value,quoteBackgroundColor:e}).run()}function Mf(){cl()?.unsetSubscript().toggleSuperscript().run(),$e.value=!1}function Nf(){cl()?.unsetSuperscript().toggleSubscript().run(),$e.value=!1}function Pf(){cl()?.unsetAllMarks().clearNodes().run()}function Ff(e){return mo(e?t=>t.can().chain().focus().toggleHeading({level:e}).run():e=>e.can().chain().focus().setParagraph().run())}function If(e){return mo(e?t=>t.can().chain().focus().setFontFamily(e).run():e=>e.can().chain().focus().unsetFontFamily().run())}function Lf(e){return mo(t=>t.can().chain().focus().setFontSize(e).run())}function Rf(e){return mo(t=>t.can().chain().focus().setTextAlign(e).run())}function zf(){return mo(e=>e.can().chain().focus().toggleSuperscript().run())}function Bf(){return mo(e=>e.can().chain().focus().toggleSubscript().run())}function Z(e){let t=e.target,n=t instanceof Element?t:null;Si.value&&!v.value?.contains(t)&&!tc(t)&&Qs(),(!t||!x.value?.contains(t))&&(Ve.value=!1,Ut.value=null,wl()),n?.closest(`.norio-office-rich-block-side-control, .norio-office-rich-block-side-menu, .norio-office-rich-block-side-submenu, .norio-office-rich-block-side-table-theme`)||mc(),(!t||!te.value?.contains(t))&&(it.value=!1),tn.value&&t&&!O.value?.contains(t)&&!ae.value?.contains(t)&&!(nn.value&&oe.value?.contains(t))&&!(Ut.value===`countdown`&&x.value?.contains(t))&&(tn.value=!1),nn.value&&t&&!se.value?.contains(t)&&!oe.value?.contains(t)&&(nn.value=!1),(!t||!le.value?.contains(t))&&(He.value=!1),(!t||!Te.value?.contains(t))&&($e.value=!1),(!t||!Ce.value?.contains(t))&&(Ze.value=!1),(!t||!we.value?.contains(t))&&(Qe.value=!1),(!t||!Ee.value?.contains(t))&&(et.value=!1),(!t||!De.value?.contains(t))&&(tt.value=!1),(!t||!je.value?.contains(t))&&(nt.value=!1),(!t||!Me.value?.contains(t))&&(rt.value=!1),(!t||!D.value?.contains(t))&&(at.value=!1),ot.value&&t&&!Ne.value?.contains(t)&&!v.value?.contains(t)&&Ni(),Ot.value&&t&&!b.value?.contains(t)&&!n?.closest?.(`.norio-office-rich-comment-composer`)&&$i(),(!t||!me.value?.contains(t))&&(Ue.value=!1),(!t||!he.value?.contains(t))&&(We.value=!1),Tn.value&&n&&Tn.value.contains(n)&&Qf(),window.setTimeout(()=>{Il()},0)}function Vf(e){if(Fe.value&&(mr.value=e.clientX,hr.value=e.clientY),gr.value){_r.value={x:e.clientX,y:e.clientY};let t=e.clientX-gr.value.x,n=e.clientY-gr.value.y;!vr.value&&Math.abs(t)>=12&&Math.abs(n)>=12&&(vr.value=!0,window.getSelection()?.removeAllRanges()),vr.value&&(e.preventDefault(),il())}if(!e.buttons)return;let t=e.target,n=t instanceof Element?t:null;Tn.value&&n&&Tn.value.contains(n)&&Qf()}function Hf(e){if(e.key===`Escape`&&Fe.value){e.preventDefault(),qs();return}if(e.key===`Escape`&&it.value){it.value=!1,te.value?.querySelector(`button`)?.focus({preventScroll:!0});return}if(e.key===`Escape`&&Dr.value){Dr.value=null;return}if(e.key===`Escape`&&[`properties`,`color`,`divider-style`,`divider-color`,`highlight-settings`,...Bt].includes(j.value??``)){mc();return}if(e.key===`Escape`&&j.value===`table-theme`){Xl();return}if(e.key===`Escape`&&We.value){We.value=!1;return}if(e.key===`Escape`&&Tt.value){Ld();return}if(ot.value&&Vi(e)){e.preventDefault();return}if(Ot.value&&oa(e)){e.preventDefault();return}if(e.key===`Escape`&&Si.value){Qs(),$s();return}if((e.ctrlKey||e.metaKey)&&Si.value&&Uf(e.target)){let t=e.key.toLowerCase();if(t===`c`||t===`x`){e.preventDefault(),document.execCommand(t===`c`?`copy`:`cut`);return}}(e.key===`Delete`||e.key===`Backspace`)&&Si.value&&Pr.value&&(e.preventDefault(),ul())}function Uf(e){if(!V.value||!(e instanceof Node))return!1;let t=e instanceof Element?e:e.parentElement;return t?.closest(`input, textarea, select`)||t?.closest(`[contenteditable]`)?.getAttribute(`contenteditable`)===`false`?!1:V.value.view.dom.contains(e)||Si.value&&(_.value?.contains(e)||e===document.body)}function Wf(e){if(M){M.written=Bc(e,M.payload);return}if(Uf(e.target))if(Si.value){let t=al();t&&Bc(e,t)}else V.value&&!V.value.state.selection.empty&&(Or.value=zc(V.value.state.selection.content()))}function Gf(e){if(!(!Uf(e.target)||!Pr.value))if(Si.value){let t=al();t&&Bc(e,t)&&ul()}else V.value&&!V.value.state.selection.empty&&(Or.value=zc(V.value.state.selection.content()))}function Kf(e){if(!(!e||!V.value))try{let t=JSON.parse(e);if(!Array.isArray(t)||!t.length)return;for(let e of t){let t=V.value.state.schema.nodeFromJSON(e);if(!t.isBlock)return;t.check()}return t}catch{return}}function qf(e){if(!Pr.value||!e.clipboardData||!Uf(e.target))return;let t=e.clipboardData.getData(`text/html`),n=e.clipboardData.getData(`text/plain`),r=Kf(e.clipboardData.getData(Tw));(t||n||r)&&(Or.value={html:t,text:n,json:r}),r&&(Si.value||!t&&!n&&!V.value?.state.selection.$from.parent.type.spec.code)&&(e.preventDefault(),e.stopPropagation(),ll(r))}(0,t.watch)(()=>Hr.value?.user,e=>{!V.value||!e||!Hr.value?.provider||V.value.commands.updateUser(e)},{deep:!0});let Jf=null,Yf=null,Xf=null,Zf=null;function Qf(){Zf?.();let e=()=>{Fl(),Xf=window.requestAnimationFrame(e)},t=()=>{Zf?.(),Fl()};Xf=window.requestAnimationFrame(e),document.addEventListener(`mouseup`,t,{once:!0}),Zf=()=>{Xf!==null&&(window.cancelAnimationFrame(Xf),Xf=null),document.removeEventListener(`mouseup`,t),Zf=null}}function $f(){if(Jf?.(),Jf=null,!V.value)return;let e=({transaction:e}={})=>{e?.getMeta(`textSelectionBubbleMenu`)!==`updatePosition`&&(It.value+=1,V.value?.isActive(`table`)||(We.value=!1),Il(),fa(),Fi(),(0,t.nextTick)(lc))},n=({transaction:e})=>{let n=Er.value;if(n!==null&&e.docChanged){let r=Sr.value?.node.type.name,i=e.mapping.mapResult(n+1,-1),a=i.pos-1,o=a>=0?e.doc.nodeAt(a):null;i.deletedAcross||!o||o.type.name!==r?mc():(Er.value=a,Sr.value&&fc({...Sr.value,pos:a,from:a,to:a+o.nodeSize,node:o}),(0,t.nextTick)(()=>{if(Er.value!==a)return;let e=ic().find(e=>e.pos===a);e&&fc(oc(e))}))}e.docChanged&&Sr.value?.node.type.name===`horizontalRule`&&e.getMeta(`officeBlockSideAttrs`)!==Sr.value.pos&&mc();let r=Tr.value;if(j.value!==`table-theme`||r===null||!e.docChanged)return;let i=e.mapping.mapResult(r+1,-1);i.deletedAcross||i.pos<1||e.doc.nodeAt(i.pos-1)?.type.name!==`table`?mc():(Tr.value=i.pos-1,(0,t.nextTick)(()=>{if(j.value!==`table-theme`)return;let e=ic().find(e=>e.from===Tr.value);e&&fc(oc(e))}))};V.value.on(`transaction`,n),V.value.on(`selectionUpdate`,e),V.value.on(`transaction`,e),V.value.on(`focus`,e),V.value.on(`blur`,e),Jf=()=>{V.value?.off(`transaction`,n),V.value?.off(`selectionUpdate`,e),V.value?.off(`transaction`,e),V.value?.off(`focus`,e),V.value?.off(`blur`,e)},Il(),fa()}return(0,t.onMounted)(()=>{pa(),document.addEventListener(`fullscreenchange`,Ws),document.addEventListener(`mousedown`,Z),document.addEventListener(`mousemove`,Vf),document.addEventListener(`mouseup`,vl),document.addEventListener(`keydown`,Hf),document.addEventListener(`copy`,Wf,!0),document.addEventListener(`cut`,Gf,!0),document.addEventListener(`paste`,qf,!0),window.addEventListener(`resize`,Il),window.addEventListener(`resize`,Vs),window.addEventListener(`resize`,ji),window.addEventListener(`resize`,Qi),window.addEventListener(`resize`,pa),window.addEventListener(`scroll`,ji,!0),window.addEventListener(`scroll`,Qi,!0),window.addEventListener(`scroll`,ql,!0),$f(),(0,t.nextTick)(ma)}),(0,t.onBeforeUnmount)(()=>{Ea?.disconnect(),document.removeEventListener(`fullscreenchange`,Ws),document.removeEventListener(`mousedown`,Z),document.removeEventListener(`mousemove`,Vf),document.removeEventListener(`mouseup`,vl),document.removeEventListener(`keydown`,Hf),document.removeEventListener(`copy`,Wf,!0),document.removeEventListener(`cut`,Gf,!0),document.removeEventListener(`paste`,qf,!0),window.removeEventListener(`resize`,Il),window.removeEventListener(`resize`,Vs),window.removeEventListener(`resize`,ji),window.removeEventListener(`resize`,Qi),window.removeEventListener(`resize`,pa),window.removeEventListener(`scroll`,ji,!0),window.removeEventListener(`scroll`,Qi,!0),window.removeEventListener(`scroll`,ql,!0),Zf?.(),Jf?.(),Nl()}),(0,t.watch)(Pr,e=>{V.value?.setEditable(e,!1),e||(mc(),xr.value=null,$s(),Qs(),Ni(),Ue.value=!1,We.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1,Xe.value=!1)},{flush:`sync`}),(0,t.watch)(Fr,e=>{e||(Ve.value=!1,Ut.value=null,He.value=!1,Ze.value=!1,Qe.value=!1,$e.value=!1,et.value=!1,tt.value=!1,nt.value=!1,rt.value=!1,at.value=!1,tn.value=!1)}),(0,t.watch)(Ur,e=>{e||Ni()}),(0,t.watch)(Wr,e=>{e||$i()}),(0,t.watch)(Jr,e=>{if(!e.length){gt.value=null;return}(!gt.value||!e.some(e=>e.id===gt.value))&&(gt.value=e[0]?.id??null)}),(0,t.watch)(()=>u.modelValue,e=>{if(!V.value||!e||Hr.value)return;let t=V.value.getJSON();JSON.stringify(t)!==JSON.stringify(e)&&(V.value.commands.setContent(e,{emitUpdate:!1}),fa())}),(0,t.watch)(Yt,e=>{e!==`deadline`&&(tn.value=!1)}),(0,t.watch)(tn,e=>{e&&(0,t.nextTick)(Vs)}),(0,t.watch)(ln,e=>{!tn.value||Yt.value!==`deadline`||/^\d{2}:\d{2}$/.test(e)&&Rs(e)}),(0,t.watch)(V,()=>{$f(),fa(),(0,t.nextTick)(ma)}),(0,t.watch)(ha,()=>{Il()}),(0,t.watch)([A,Zr,Qr,$r,Ve,Fr,it,Fe,Pe,Lt,Va,Ha],()=>{(0,t.nextTick)(ma)}),c({exportPdf:ys,exportImage:fs,exportHtml:Cs,insertImage:Lu,insertVideo:Ru,insertFile:zu,insertLocalFile:Bu,insertMention:zi,openLocalFilePicker:zd,focus:()=>{V.value?.commands.focus()},getJSON:()=>V.value?.getJSON()??null,getText:()=>V.value?.getText()??``,getImages:Hd,getVideos:Ud,getFiles:Wd,getOutlineItems:()=>ua().items,getActiveOutlinePos:()=>dr.value,focusOutlineItem:Zs,onOutlineChange:e=>(fr.add(e),e(ua()),()=>{fr.delete(e)}),focusCommentThread:bd}),(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`rootRef`,ref:_,class:`norio-office-rich-editor`,"data-editable":Pr.value,"data-mode":Nr.value?`preview`:`edit`,"data-fullscreen":Pe.value,"data-presentation":Fe.value,"data-outline-open":zr.value&&Ie.value,"data-outline-placement":Rr.value,"data-comments-enabled":Ir.value,"data-comments-open":Yr.value,"data-drag-insert-active":!!br.value,onClickCapture:Rd,onNorioOfficeRichUploadRequest:rs},[Fr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,av,[(0,t.createElementVNode)(`div`,ov,[(0,t.createElementVNode)(`div`,sv,[(0,t.createElementVNode)(`div`,cv,[ai.value||ii.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lv,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!vo.value,onClick:i[0]||=e=>(0,t.unref)(V)?.chain().focus().undo().run()},[(0,t.createVNode)(k,{name:`back`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,uv),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!yo.value,onClick:i[1]||=e=>(0,t.unref)(V)?.chain().focus().redo().run()},[(0,t.createVNode)(k,{name:`redo`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,dv),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!bo.value,onClick:Pf},[(0,t.createVNode)(k,{name:`rubber`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,fv)])):(0,t.createCommentVNode)(``,!0),Ir.value&&u.showComments?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pv,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":!!Xr.value}]),disabled:!xo.value,title:`添加评论`,onClick:Sd},[(0,t.createVNode)(k,{name:`comment`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,mv)])):(0,t.createCommentVNode)(``,!0),ei.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hv,[(0,t.createElementVNode)(`div`,{ref_key:`insertMenuRef`,ref:x,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":Ve.value}]),onClick:yl},[(0,t.createVNode)(k,{name:`add-circle`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[160]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__label`},`插入`,-1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],2),Ve.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,gv,[(0,t.createElementVNode)(`div`,{ref_key:`insertMenuPanelRef`,ref:S,class:`norio-office-rich-insert-menu`},[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-insert-menu__scroll`,"max-height":`calc(100vh - 100px)`,onScroll:jl},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,_v,[(0,t.createElementVNode)(`div`,vv,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Rn,e=>(0,t.createElementVNode)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-insert-menu__quick-item`,onMouseenter:i[2]||=e=>Sl(null),onClick:t=>Yd(e.action)},[e.type===`text`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,bv,(0,t.toDisplayString)(e.label),1)):((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:e.iconName,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`]))],40,yv)),64))]),Zr.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xv,[i[161]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-menu__title`},`通用`,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Zr.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-insert-menu__item`,{"norio-office-rich-insert-menu__item--active":Ut.value===e.key}]),ref_for:!0,ref:e.key===`columns`?Al:void 0,onMouseenter:t=>Sl(e.key===`table`||e.key===`emoji`||e.key===`columns`?e.key:null),onFocus:t=>Sl(e.key===`table`||e.key===`emoji`||e.key===`columns`?e.key:null),onClick:t=>Yd(e.action)},[(0,t.createElementVNode)(`span`,Cv,[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName,size:18,"background-color":`transparent`},null,8,[`name`])):e.key===`emoji`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:`smile`,size:16,color:`#4b5563`,"background-color":`transparent`})):e.monoIconName?((0,t.openBlock)(),(0,t.createBlock)(k,{key:2,name:e.monoIconName,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,wv,(0,t.toDisplayString)(e.label),1),e.key===`table`||e.key===`emoji`||e.key===`columns`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:`youjiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],42,Sv))),128))])):(0,t.createCommentVNode)(``,!0),Qr.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Tv,[i[162]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-menu__title`},`小应用`,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Qr.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-insert-menu__item`,{"norio-office-rich-insert-menu__item--active":Ut.value===e.key}]),onMouseenter:i[3]||=e=>Sl(null),onFocus:i[4]||=e=>Sl(null),onClick:t=>Yd(e.action)},[(0,t.createElementVNode)(`span`,Dv,[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName,size:18,"background-color":`transparent`},null,8,[`name`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Ov,(0,t.toDisplayString)(e.label),1)],42,Ev))),128))])):(0,t.createCommentVNode)(``,!0),$r.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kv,[i[163]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-menu__title`},`外部内容`,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)($r.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-insert-menu__item`,onMouseenter:i[5]||=e=>Sl(null),onFocus:i[6]||=e=>Sl(null),onClick:t=>Yd(e.action)},[(0,t.createElementVNode)(`span`,jv,[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName,size:18,"background-color":`transparent`},null,8,[`name`])):e.monoIconName?((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:e.monoIconName,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Mv,(0,t.toDisplayString)(e.label),1)],40,Av))),128))])):(0,t.createCommentVNode)(``,!0)])]),_:1}),Ut.value===`table`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--table`,onMouseleave:wl},[i[164]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-submenu__title`},`插入表格`,-1),(0,t.createElementVNode)(`div`,Nv,(0,t.toDisplayString)(dn.value),1),(0,t.createElementVNode)(`div`,Pv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Ew*Dw,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-grid__cell`,{"norio-office-rich-table-grid__cell--active":Math.ceil(e/Dw)<=Kt.value&&(e-1)%Dw+1<=qt.value}]),onMouseenter:t=>Cl(Math.ceil(e/Dw),(e-1)%Dw+1),onFocus:t=>Cl(Math.ceil(e/Dw),(e-1)%Dw+1),onClick:t=>cu(Math.ceil(e/Dw),(e-1)%Dw+1)},null,42,Fv))),128))]),i[165]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-submenu__footer`},null,-1)],32)):(0,t.createCommentVNode)(``,!0),Ut.value===`emoji`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Iv,[(0,t.createVNode)(tr,{onSelect:Tu})])):(0,t.createCommentVNode)(``,!0),Ut.value===`columns`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--columns`,style:(0,t.normalizeStyle)(mn.value),onMouseleave:kl},[(0,t.createElementVNode)(`div`,Lv,(0,t.toDisplayString)(fn.value),1),(0,t.createElementVNode)(`div`,Rv,[(0,t.createElementVNode)(`div`,zv,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Ow,e=>(0,t.createElementVNode)(`button`,{key:`columns-count-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-columns-picker__cell`,{"norio-office-rich-columns-picker__cell--active":e<=Jt.value}]),onMouseenter:t=>Ol(e),onFocus:t=>Ol(e),onClick:t=>Eu(e)},null,42,Bv)),64))])])],36)):(0,t.createCommentVNode)(``,!0),Ut.value===`countdown`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--countdown`,style:(0,t.normalizeStyle)(hn.value)},[(0,t.createElementVNode)(`div`,Vv,[(0,t.createElementVNode)(`div`,Hv,[i[166]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__title`},`倒计时设置`,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__close`,onClick:i[7]||=e=>Sl(null)},[(0,t.createVNode)(k,{name:`close`,size:16,color:`#6b7280`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`label`,Uv,[(0,t.createElementVNode)(`span`,Wv,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[8]||=e=>Yt.value=e,type:`radio`,value:`deadline`},null,512),[[t.vModelRadio,Yt.value]]),i[167]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[168]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`截止时间`,-1),(0,t.createElementVNode)(`button`,{ref_key:`countdownDateTriggerRef`,ref:O,type:`button`,class:`norio-office-rich-countdown-settings__datetime`,disabled:Yt.value!==`deadline`,onClick:Hs},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(_n.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#6b7280`,"background-color":`transparent`})],8,Gv)]),Yt.value===`deadline`&&tn.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`countdownPickerRef`,ref:ae,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__picker-panel`,`norio-office-rich-countdown-settings__picker-panel--${rn.value}`])},[(0,t.createElementVNode)(`div`,Kv,[(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--year`,value:String(on.value),onChange:i[9]||=e=>Is(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(bn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e),9,Jv))),128))],40,qv),(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--month`,value:String(cn.value),onChange:i[10]||=e=>Ls(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Sn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e+1),9,Xv))),128))],40,Yv),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__today`,onClick:Fs},` 今 `)]),(0,t.createElementVNode)(`div`,Zv,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(un,e=>(0,t.createElementVNode)(`span`,{key:e,class:`norio-office-rich-countdown-settings__weekday`},(0,t.toDisplayString)(e),1)),64))]),(0,t.createElementVNode)(`div`,Qv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Cn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__day`,{"norio-office-rich-countdown-settings__day--muted":!e.isCurrentMonth,"norio-office-rich-countdown-settings__day--today":e.isToday,"norio-office-rich-countdown-settings__day--selected":e.isSelected,"norio-office-rich-countdown-settings__day--disabled":e.isDisabled}]),disabled:e.isDisabled,onClick:t=>Ps(e.year,e.month,e.day)},(0,t.toDisplayString)(e.label),11,$v))),128))]),(0,t.createElementVNode)(`div`,ey,[i[169]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__time-label`},`设置时间`,-1),(0,t.createElementVNode)(`div`,ty,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[11]||=e=>ln.value=e,class:`norio-office-rich-countdown-settings__time-input`,type:`time`,step:`60`,min:yn.value,onInput:i[12]||=e=>Rs(ln.value),onChange:i[13]||=e=>Rs(ln.value)},null,40,ny),[[t.vModelText,ln.value]]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__time-confirm`,onClick:zs},` 确定 `)])])],2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`label`,ry,[(0,t.createElementVNode)(`span`,iy,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[14]||=e=>Yt.value=e,type:`radio`,value:`duration`},null,512),[[t.vModelRadio,Yt.value]]),i[170]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[175]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`计时长度`,-1),(0,t.createElementVNode)(`div`,ay,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[15]||=e=>Zt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,disabled:Yt.value!==`duration`},null,8,oy),[[t.vModelText,Zt.value]]),i[171]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`天`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[16]||=e=>Qt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`23`,disabled:Yt.value!==`duration`},null,8,sy),[[t.vModelText,Qt.value]]),i[172]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`时`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[17]||=e=>$t.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Yt.value!==`duration`},null,8,cy),[[t.vModelText,$t.value]]),i[173]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`分`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[18]||=e=>en.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Yt.value!==`duration`},null,8,ly),[[t.vModelText,en.value]]),i[174]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`秒`,-1)])]),(0,t.createElementVNode)(`div`,uy,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--secondary`,onClick:i[19]||=e=>Sl(null)},` 取消 `),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--primary`,onClick:Du},` 确定 `)])])],4)):(0,t.createCommentVNode)(``,!0)],512)])):(0,t.createCommentVNode)(``,!0)],512)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,dy,[(0,t.createElementVNode)(`div`,{ref_key:`headingMenuRef`,ref:Ce,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--heading`,disabled:!So.value,onClick:Qd},[(0,t.createElementVNode)(`span`,py,(0,t.toDisplayString)(Ua.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,fy),Ze.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,my,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(zt,e=>(0,t.createElementVNode)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--heading`,{"norio-office-rich-toolbar__menu-item--active":e.level?(0,t.unref)(V)?.isActive(`heading`,{level:e.level}):!(0,t.unref)(V)?.isActive(`heading`)}]),disabled:!Ff(e.level),onClick:t=>$d(e.level)},[(e.level?(0,t.unref)(V)?.isActive(`heading`,{level:e.level}):!(0,t.unref)(V)?.isActive(`heading`))?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gy)),(0,t.createElementVNode)(`span`,_y,(0,t.toDisplayString)(e.level?`H${e.level}`:`T`),1),(0,t.createElementVNode)(`span`,vy,(0,t.toDisplayString)(e.label),1)],10,hy)),64))])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`fontFamilyMenuRef`,ref:we,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--font-family`,disabled:!Co.value,onClick:af},[(0,t.createElementVNode)(`span`,by,(0,t.toDisplayString)(Ka.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,yy),Qe.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xy,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-toolbar__menu-scroll`,"max-height":`360px`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Ln,e=>(0,t.createElementVNode)(`button`,{key:e.label,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--font-family`,{"norio-office-rich-toolbar__menu-item--active":Ka.value===e.label}]),disabled:!If(e.value),onClick:t=>of(e.value)},[Ka.value===e.label?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Cy)),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`,style:(0,t.normalizeStyle)(e.value?{fontFamily:e.value}:void 0)},(0,t.toDisplayString)(e.label),5)],10,Sy)),64))]),_:1})])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`fontSizeMenuRef`,ref:Ee,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--font-size`,disabled:!wo.value,onClick:cf},[(0,t.createElementVNode)(`span`,Ty,(0,t.toDisplayString)(Ga.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,wy),et.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ey,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-toolbar__menu-scroll`,"max-height":`520px`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(In,e=>(0,t.createElementVNode)(`button`,{key:e.label,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--font-size`,{"norio-office-rich-toolbar__menu-item--active":Ga.value===e.label}]),disabled:!Lf(e.value),onClick:t=>lf(e.value)},[Ga.value===e.label?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Oy)),(0,t.createElementVNode)(`span`,ky,(0,t.toDisplayString)(e.label),1)],10,Dy)),64))]),_:1})])):(0,t.createCommentVNode)(``,!0)],512)]),(0,t.createElementVNode)(`div`,Ay,[(0,t.createElementVNode)(`div`,{ref_key:`colorMenuRef`,ref:De,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--color`,disabled:!To.value,onClick:uf},[(0,t.createElementVNode)(`span`,My,[i[176]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-text`},`A`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:Ja.value})},null,4)]),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,jy),tt.value?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--color`,color:Ja.value,"default-color":`#333333`,"recent-colors":cr.value,onChange:df},null,8,[`color`,`recent-colors`])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`highlightMenuRef`,ref:je,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--color`,disabled:!Eo.value,onClick:ff},[(0,t.createElementVNode)(`span`,Py,[(0,t.createVNode)(k,{name:`beijingse`,size:14,color:`#4b5563`,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:Ya.value})},null,4)]),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,Ny),nt.value?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--color`,color:Ya.value,"default-color":`#FFF3C4`,"recent-colors":lr.value,onChange:pf},null,8,[`color`,`recent-colors`])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`bold`)}]),disabled:!Do.value,onClick:_f},[(0,t.createVNode)(k,{name:`jiacu`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Fy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`italic`)}]),disabled:!Oo.value,onClick:vf},[(0,t.createVNode)(k,{name:`xieti`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Iy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`underline`)}]),disabled:!ko.value,onClick:yf},[(0,t.createVNode)(k,{name:`xiahuaxian`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Ly),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`strike`)}]),disabled:!Ao.value,onClick:bf},[...i[177]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__text-icon norio-office-rich-toolbar__text-icon--strike`},`S`,-1)]],10,Ry),(0,t.createElementVNode)(`div`,{ref_key:`scriptMenuRef`,ref:Te,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`superscript`)||(0,t.unref)(V)?.isActive(`subscript`)}]),disabled:!jo.value,onClick:sf},[Wa.value.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:Wa.value.icon,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,By,(0,t.toDisplayString)(Wa.value.text),1)),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],10,zy),$e.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Vy,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item`,{"norio-office-rich-toolbar__menu-item--active":(0,t.unref)(V)?.isActive(`superscript`)}]),disabled:!zf(),onClick:Mf},[(0,t.unref)(V)?.isActive(`superscript`)?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Uy)),(0,t.createVNode)(k,{name:`shangbiao`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[178]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`上标`,-1),i[179]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-shortcut`},`Ctrl+Shift+.`,-1)],10,Hy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item`,{"norio-office-rich-toolbar__menu-item--active":(0,t.unref)(V)?.isActive(`subscript`)}]),disabled:!Bf(),onClick:Nf},[(0,t.unref)(V)?.isActive(`subscript`)?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Gy)),(0,t.createVNode)(k,{name:`xiabiao`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[180]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`下标`,-1),i[181]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-shortcut`},`Ctrl+Shift+,`,-1)],10,Wy)])):(0,t.createCommentVNode)(``,!0)],512)]),(0,t.createElementVNode)(`div`,Ky,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`bulletList`)}]),disabled:!Mo.value,onClick:Sf},[(0,t.createVNode)(k,{name:`wuxuliebiao`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,qy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`orderedList`)}]),disabled:!No.value,onClick:Cf},[(0,t.createVNode)(k,{name:`youxuliebiao`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Jy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`taskList`)}]),disabled:!Po.value,onClick:wf},[(0,t.createVNode)(k,{name:`To-do`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Yy),(0,t.createElementVNode)(`div`,{ref_key:`alignMenuRef`,ref:le,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":He.value}]),disabled:!Fo.value,onClick:bl},[(0,t.createVNode)(k,{name:qa.value===`center`?`juzhongduiqi`:qa.value===`right`?`youduiqi`:`zuoduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`]),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],10,Xy),He.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Zy,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--align`,{"norio-office-rich-toolbar__menu-item--active":qa.value===`left`}]),disabled:!Rf(`left`),onClick:i[20]||=e=>xl(`left`)},[qa.value===`left`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,$y)),(0,t.createVNode)(k,{name:`zuoduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[182]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`左对齐`,-1)],10,Qy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--align`,{"norio-office-rich-toolbar__menu-item--active":qa.value===`center`}]),disabled:!Rf(`center`),onClick:i[21]||=e=>xl(`center`)},[qa.value===`center`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,tb)),(0,t.createVNode)(k,{name:`juzhongduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[183]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`居中对齐`,-1)],10,eb),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--align`,{"norio-office-rich-toolbar__menu-item--active":qa.value===`right`}]),disabled:!Rf(`right`),onClick:i[22]||=e=>xl(`right`)},[qa.value===`right`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rb)),(0,t.createVNode)(k,{name:`youduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[184]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`右对齐`,-1)],10,nb)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!Io.value,onClick:rf},[(0,t.createVNode)(k,{name:`zuosuojin`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,ib),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!Lo.value,onClick:tf},[(0,t.createVNode)(k,{name:`yousuojin`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,ab),ni.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`quoteMenuRef`,ref:Me,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`blockquote`)}]),disabled:!zo.value,onClick:hf},[(0,t.createVNode)(k,{name:`yinyong`,size:16,color:`#4b5563`,"background-color":`transparent`}),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],10,ob),rt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sb,[(0,t.createElementVNode)(`div`,cb,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current`,disabled:!Ro.value,onClick:Tf},(0,t.toDisplayString)((0,t.unref)(V)?.isActive(`blockquote`)?`取消引用`:`应用引用`),9,lb)]),(0,t.createElementVNode)(`div`,ub,[i[185]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`边框颜色`,-1),(0,t.createElementVNode)(`div`,db,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ir,e=>(0,t.createElementVNode)(`button`,{key:`quote-border-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--compact`,{"norio-office-rich-color-menu__swatch--active":Xa.value===e}]),disabled:!(0,t.unref)(V)?.isActive(`blockquote`),style:(0,t.normalizeStyle)({backgroundColor:e}),onClick:t=>Ef(e)},null,14,fb)),64))])]),(0,t.createElementVNode)(`div`,pb,[i[186]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`背景颜色`,-1),(0,t.createElementVNode)(`div`,mb,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ar,e=>(0,t.createElementVNode)(`button`,{key:`quote-bg-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--compact`,{"norio-office-rich-color-menu__swatch--active":Za.value===e}]),disabled:!(0,t.unref)(V)?.isActive(`blockquote`),style:(0,t.normalizeStyle)({backgroundColor:e}),onClick:t=>jf(e)},null,14,hb)),64))])])])):(0,t.createCommentVNode)(``,!0)],512)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`code`)}]),disabled:!Bo.value,onClick:xf},[(0,t.createVNode)(k,{name:`code`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,gb),ti.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`emojiToolbarMenuRef`,ref:D,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":at.value}]),disabled:!Pr.value,title:`表情符号`,onClick:gf},[(0,t.createVNode)(k,{name:`smile`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,_b),at.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vb,[(0,t.createVNode)(tr,{onSelect:Tu})])):(0,t.createCommentVNode)(``,!0)],512)):(0,t.createCommentVNode)(``,!0)])])])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,yb,[zr.value&&!Ie.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_key:`outlineTriggerRef`,ref:Le,type:`button`,class:`norio-office-rich-outline-trigger`,"data-placement":Rr.value,title:hi.value,"aria-label":hi.value,"aria-controls":Re,"aria-expanded":!1,onClick:Xs},[(0,t.createVNode)(k,{name:`dagang`,size:18,color:`currentColor`,"background-color":`transparent`})],8,bb)):(0,t.createCommentVNode)(``,!0),zr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,id:Re,class:`norio-office-rich-outline-shell`,"data-open":Ie.value,"data-placement":Rr.value,onKeydown:i[23]||=(0,t.withKeys)((0,t.withModifiers)(e=>Ie.value&&Xs(),[`prevent`,`stop`]),[`esc`])},[(0,t.createVNode)(fl,{internal:``,open:Ie.value,placement:Rr.value,title:hi.value,"collapse-title":gi.value,"empty-description":_i.value,"empty-tip":vi.value,items:ur.value,"active-pos":dr.value,onToggle:Xs,onSelect:Zs},null,8,[`open`,`placement`,`title`,`collapse-title`,`empty-description`,`empty-tip`,`items`,`active-pos`])],40,xb)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`section`,Sb,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-editor__scroll`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-editor__stage`,style:(0,t.normalizeStyle)(ga.value)},[(0,t.createElementVNode)(`div`,{ref_key:`pageRef`,ref:v,class:`norio-office-rich-editor__page`,onMousedownCapture:dl,onMousemove:uc,onMouseleave:dc,onDragenterCapture:pl,onDragoverCapture:hl,onDragleaveCapture:gl,onDropCapture:_l},[(0,t.unref)(V)?((0,t.openBlock)(),(0,t.createBlock)(Bn,{key:0,editor:(0,t.unref)(V),actions:Vo.value,enabled:Pr.value&&!Fe.value&&!Cr.value&&!Si.value},null,8,[`editor`,`actions`,`enabled`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(V)?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.BubbleMenu),{key:1,"plugin-key":`tableBubbleMenu`,class:`norio-office-rich-table-bubble-menu`,editor:(0,t.unref)(V),"should-show":Ll,"get-referenced-virtual-element":zl,options:{placement:`top-start`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Cb,[(0,t.createElementVNode)(`div`,{ref_key:`tableHeadingMenuRef`,ref:ye,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button norio-office-rich-table-bubble-menu__button--select`,onMousedown:i[24]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Vl},[i[187]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-bubble-menu__text`},`T`,-1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:10,color:`#9ca3af`,"background-color":`transparent`})],32),qe.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wb,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__menu-item`,onMousedown:i[25]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[26]||=e=>$l()},`正文`,32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__menu-item`,onMousedown:i[27]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[28]||=e=>$l(1)},`标题 1`,32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__menu-item`,onMousedown:i[29]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[30]||=e=>$l(2)},`标题 2`,32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__menu-item`,onMousedown:i[31]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[32]||=e=>$l(3)},`标题 3`,32)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`tableListMenuRef`,ref:be,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button norio-office-rich-table-bubble-menu__button--select`,onMousedown:i[33]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Hl},[(0,t.createVNode)(k,{name:`wuxuliebiao`,size:14,color:`#4b5563`,"background-color":`transparent`}),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:10,color:`#9ca3af`,"background-color":`transparent`})],32),Je.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Tb,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__menu-item`,onMousedown:i[34]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[35]||=e=>eu(`bullet`)},`无序列表`,32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__menu-item`,onMousedown:i[36]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[37]||=e=>eu(`ordered`)},`有序列表`,32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__menu-item`,onMousedown:i[38]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[39]||=e=>eu(`task`)},`任务列表`,32)])):(0,t.createCommentVNode)(``,!0)],512),i[190]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-bubble-menu__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":(0,t.unref)(V)?.isActive(`bold`)}]),onMousedown:i[40]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:_f},[(0,t.createVNode)(k,{name:`jiacu`,size:14,color:`#4b5563`,"background-color":`transparent`})],34),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":(0,t.unref)(V)?.isActive(`strike`)}]),onMousedown:i[41]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:bf},[...i[188]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-bubble-menu__text norio-office-rich-table-bubble-menu__text--strike`},`S`,-1)]],34),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":(0,t.unref)(V)?.isActive(`italic`)}]),onMousedown:i[42]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:vf},[(0,t.createVNode)(k,{name:`xieti`,size:14,color:`#4b5563`,"background-color":`transparent`})],34),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":(0,t.unref)(V)?.isActive(`underline`)}]),onMousedown:i[43]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:yf},[(0,t.createVNode)(k,{name:`xiahuaxian`,size:14,color:`#4b5563`,"background-color":`transparent`})],34),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":(0,t.unref)(V)?.isActive(`code`)}]),onMousedown:i[44]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:xf},[(0,t.createVNode)(k,{name:`code`,size:14,color:`#4b5563`,"background-color":`transparent`})],34),(0,t.createElementVNode)(`div`,{ref_key:`tableColorMenuRef`,ref:xe,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button norio-office-rich-table-bubble-menu__button--select`,{"norio-office-rich-table-bubble-menu__button--active":Ye.value}]),onMousedown:i[45]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Ul},[(0,t.createElementVNode)(`span`,Eb,[i[189]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-text`},`A`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:Ja.value})},null,4)]),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:10,color:`#9ca3af`,"background-color":`transparent`})],34),Ye.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Db,[(0,t.createElementVNode)(`div`,Ob,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(sn).flat(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`table-color-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch`,{"norio-office-rich-color-menu__swatch--active":Ja.value===e}]),style:(0,t.normalizeStyle)({backgroundColor:e}),onMousedown:i[46]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>tu(e)},null,46,kb))),128))])])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`tableHighlightMenuRef`,ref:Se,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button norio-office-rich-table-bubble-menu__button--select`,{"norio-office-rich-table-bubble-menu__button--active":Xe.value}]),onMousedown:i[47]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Wl},[(0,t.createVNode)(k,{name:`beijingse`,size:14,color:`#4b5563`,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:Ya.value})},null,4),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:10,color:`#9ca3af`,"background-color":`transparent`})],34),Xe.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ab,[(0,t.createElementVNode)(`div`,jb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(sn).flat(),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`table-highlight-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch`,{"norio-office-rich-color-menu__swatch--active":Ya.value===e}]),style:(0,t.normalizeStyle)({backgroundColor:e}),onMousedown:i[48]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>nu(e)},null,46,Mb))),128))])])):(0,t.createCommentVNode)(``,!0)],512),i[191]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-bubble-menu__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,onMousedown:i[49]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:_u},[(0,t.createVNode)(k,{name:`merge`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,onMousedown:i[50]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:vu},[(0,t.createVNode)(k,{name:`split`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,onMousedown:i[51]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:bu},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#4b5563`,"background-color":`transparent`})],32)]),(0,t.createElementVNode)(`div`,Nb,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!go.value,title:`合并单元格`,onMousedown:i[52]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:_u},[(0,t.createVNode)(k,{name:`merge`,size:14,color:go.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Pb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!_o.value,title:`拆分单元格`,onMousedown:i[53]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:vu},[(0,t.createVNode)(k,{name:`split`,size:14,color:_o.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Fb),(0,t.createElementVNode)(`div`,{ref_key:`tableActionColorMenuRef`,ref:me,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":Ue.value}]),disabled:!Ho.value,title:`设置单元格背景色`,onMousedown:i[54]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Gl},[(0,t.createVNode)(k,{name:`yanse`,size:14,color:Ho.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],42,Ib),Ue.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lb,[i[192]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-table-bubble-menu__menu-title`},`单元格背景颜色`,-1),(0,t.createElementVNode)(`div`,Rb,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(jr,e=>(0,t.createElementVNode)(`button`,{key:`table-cell-${e??`none`}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__color-swatch`,{"norio-office-rich-table-bubble-menu__color-swatch--active":$a.value===e,"norio-office-rich-table-bubble-menu__color-swatch--none":e===null}]),style:(0,t.normalizeStyle)(e?{backgroundColor:e}:void 0),onMousedown:i[55]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>ru(e)},null,46,zb)),64))]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__reset`,onMousedown:i[56]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[57]||=e=>ru(null)},` 恢复默认 `,32)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`tableThemeMenuRef`,ref:he,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":We.value}]),disabled:!Ho.value,title:`表格主题色`,"aria-label":`表格主题色`,"aria-expanded":We.value,onMousedown:i[58]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Kl},[(0,t.createVNode)(k,{name:`zhuti`,size:14,color:Ho.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],42,Bb),We.value?((0,t.openBlock)(),(0,t.createBlock)(Tl,{key:0,theme:eo.value,"recent-colors":lr.value,style:(0,t.normalizeStyle)(ro.value),onChange:Zl,onColorUsed:mf,onClear:i[59]||=e=>Zl(null),onClose:i[60]||=e=>We.value=!1,onResize:i[61]||=e=>Ge.value=e,onReposition:ql},null,8,[`theme`,`recent-colors`,`style`])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Uo.value,title:`上增加一行`,onMousedown:i[62]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:uu},[(0,t.createVNode)(k,{name:`xiangshangcharu`,size:14,color:Uo.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Vb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Uo.value,title:`下增加一行`,onMousedown:i[63]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:fu},[(0,t.createVNode)(k,{name:`xiangxiacharujilu-copy`,size:14,color:Uo.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Hb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Wo.value,title:`左增加一列`,onMousedown:i[64]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:pu},[(0,t.createVNode)(k,{name:`xiangzuocharu`,size:14,color:Wo.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Ub),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Wo.value,title:`右增加一列`,onMousedown:i[65]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:mu},[(0,t.createVNode)(k,{name:`xiangyoucharu`,size:14,color:Wo.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Wb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button norio-office-rich-table-bubble-menu__button--danger`,disabled:!Go.value,title:`删除`,onMousedown:i[66]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Su},[(0,t.createVNode)(k,{name:`delete`,size:14,color:Go.value?`#dc2626`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Gb)]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,title:`合并单元格`,onMousedown:i[67]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:_u},[(0,t.createVNode)(k,{name:`merge`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,title:`拆分单元格`,onMousedown:i[68]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:vu},[(0,t.createVNode)(k,{name:`split`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,title:`添加行`,onMousedown:i[69]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:lu},[(0,t.createVNode)(k,{name:`xiangxiacharujilu-copy`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,title:`添加列`,onMousedown:i[70]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:du},[(0,t.createVNode)(k,{name:`add`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,title:`切换表头`,onMousedown:i[71]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:yu},[(0,t.createVNode)(k,{name:`jiacu`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,title:`删除行`,onMousedown:i[72]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:hu},[(0,t.createVNode)(k,{name:`jianshao`,size:14,color:`#4b5563`,"background-color":`transparent`})],32),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button norio-office-rich-table-bubble-menu__button--danger`,title:`删除表格`,onMousedown:i[73]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:bu},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#dc2626`,"background-color":`transparent`})],32)]),_:1},8,[`editor`])),[[t.vShow,Pr.value]]):(0,t.createCommentVNode)(``,!0),(0,t.unref)(V)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.BubbleMenu),{key:2,"plugin-key":`countdownBlockBubbleMenu`,class:`norio-office-rich-countdown-bubble-menu`,editor:(0,t.unref)(V),"should-show":Rl,"get-referenced-virtual-element":Bl,options:{placement:`top`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Kb,[(0,t.createElementVNode)(`div`,{ref_key:`countdownBubbleMenuRef`,ref:oe,class:`norio-office-rich-countdown-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{ref_key:`countdownBubbleEditButtonRef`,ref:se,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-bubble-menu__button norio-office-rich-countdown-bubble-menu__button--edit`,{"norio-office-rich-countdown-bubble-menu__button--active":nn.value}]),title:`编辑`,"aria-label":`编辑`,onMousedown:i[74]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Bs},[(0,t.createVNode)(k,{name:`edit`,size:14,color:`#374151`,"background-color":`transparent`}),i[193]||=(0,t.createElementVNode)(`span`,null,`编辑`,-1)],34),nn.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qb,[(0,t.createElementVNode)(`div`,Jb,[(0,t.createElementVNode)(`div`,Yb,[i[194]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__title`},`倒计时设置`,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__close`,onClick:i[75]||=e=>nn.value=!1},[(0,t.createVNode)(k,{name:`close`,size:16,color:`#6b7280`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`label`,Xb,[(0,t.createElementVNode)(`span`,Zb,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[76]||=e=>Yt.value=e,type:`radio`,value:`deadline`},null,512),[[t.vModelRadio,Yt.value]]),i[195]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[196]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`截止时间`,-1),(0,t.createElementVNode)(`button`,{ref_key:`countdownDateTriggerRef`,ref:O,type:`button`,class:`norio-office-rich-countdown-settings__datetime`,disabled:Yt.value!==`deadline`,onClick:Hs},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(_n.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#6b7280`,"background-color":`transparent`})],8,Qb)]),Yt.value===`deadline`&&tn.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`countdownPickerRef`,ref:ae,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__picker-panel`,`norio-office-rich-countdown-settings__picker-panel--${rn.value}`])},[(0,t.createElementVNode)(`div`,$b,[(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--year`,value:String(on.value),onChange:i[77]||=e=>Is(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(bn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e),9,tx))),128))],40,ex),(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--month`,value:String(cn.value),onChange:i[78]||=e=>Ls(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Sn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e+1),9,rx))),128))],40,nx),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__today`,onClick:Fs},` 今 `)]),(0,t.createElementVNode)(`div`,ix,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(un,e=>(0,t.createElementVNode)(`span`,{key:e,class:`norio-office-rich-countdown-settings__weekday`},(0,t.toDisplayString)(e),1)),64))]),(0,t.createElementVNode)(`div`,ax,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Cn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__day`,{"norio-office-rich-countdown-settings__day--muted":!e.isCurrentMonth,"norio-office-rich-countdown-settings__day--today":e.isToday,"norio-office-rich-countdown-settings__day--selected":e.isSelected}]),onClick:t=>Ps(e.year,e.month,e.day)},(0,t.toDisplayString)(e.label),11,ox))),128))]),(0,t.createElementVNode)(`div`,sx,[i[197]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__time-label`},`设置时间`,-1),(0,t.createElementVNode)(`div`,cx,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[79]||=e=>ln.value=e,class:`norio-office-rich-countdown-settings__time-input`,type:`time`,step:`60`,min:yn.value,onInput:i[80]||=e=>Rs(ln.value),onChange:i[81]||=e=>Rs(ln.value)},null,40,lx),[[t.vModelText,ln.value]]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__time-confirm`,onClick:zs},` 确定 `)])])],2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`label`,ux,[(0,t.createElementVNode)(`span`,dx,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[82]||=e=>Yt.value=e,type:`radio`,value:`duration`},null,512),[[t.vModelRadio,Yt.value]]),i[198]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[203]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`计时长度`,-1),(0,t.createElementVNode)(`div`,fx,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[83]||=e=>Zt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,disabled:Yt.value!==`duration`},null,8,px),[[t.vModelText,Zt.value]]),i[199]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`天`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[84]||=e=>Qt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`23`,disabled:Yt.value!==`duration`},null,8,mx),[[t.vModelText,Qt.value]]),i[200]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`时`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[85]||=e=>$t.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Yt.value!==`duration`},null,8,hx),[[t.vModelText,$t.value]]),i[201]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`分`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[86]||=e=>en.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Yt.value!==`duration`},null,8,gx),[[t.vModelText,en.value]]),i[202]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`秒`,-1)])]),(0,t.createElementVNode)(`div`,_x,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--secondary`,onClick:i[87]||=e=>nn.value=!1},` 取消 `),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--primary`,onClick:ku},` 确定 `)])])])):(0,t.createCommentVNode)(``,!0)],512),i[204]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-bubble-menu__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-bubble-menu__button norio-office-rich-countdown-bubble-menu__button--danger`,title:`删除`,"aria-label":`删除`,onMousedown:i[88]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Au},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#dc2626`,"background-color":`transparent`})],32)])]),_:1},8,[`editor`])):(0,t.createCommentVNode)(``,!0),va.value&&_a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`norio-office-rich-editor__watermark`,style:(0,t.normalizeStyle)(ya.value),"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(ba),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e,class:`norio-office-rich-editor__watermark-text`},(0,t.toDisplayString)(_a.value.text),1))),128))],4)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(V)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.EditorContent),{key:4,editor:(0,t.unref)(V),class:`norio-office-rich-editor__content`},null,8,[`editor`])):(0,t.createCommentVNode)(``,!0),Ur.value&&ot.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:5,ref_key:`mentionPanelRef`,ref:Ne,class:`norio-office-rich-mention-panel`,style:(0,t.normalizeStyle)(wi.value),onMousedown:i[89]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createElementVNode)(`div`,vx,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Ht,e=>(0,t.createElementVNode)(`button`,{key:String(e.key),type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__tab`,{"norio-office-rich-mention-panel__tab--active":lt.value===e.key}]),onClick:t=>Ii(e.key)},(0,t.toDisplayString)(e.label),11,yx)),64))]),(0,t.createVNode)(Vn,{class:`norio-office-rich-mention-panel__scroll`},{default:(0,t.withCtx)(()=>[st.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bx,`加载中...`)):z.value.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:2},(0,t.renderList)(z.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`${e.type}-${e.id}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__item`,{"norio-office-rich-mention-panel__item--active":n===dt.value}]),onClick:t=>Li(e,n),onDblclick:t=>Ri(e)},[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-mention-panel__avatar`,"data-type":e.type,style:(0,t.normalizeStyle)(ki(e))},[e.type===1&&e.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:e.avatar,alt:``},null,8,wx)):e.type===2&&e.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:e.icon,alt:``},null,8,Tx)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ex,(0,t.toDisplayString)(Oi(e)),1))],12,Cx),(0,t.createElementVNode)(`span`,Dx,[(0,t.createElementVNode)(`span`,Ox,[(0,t.createElementVNode)(`span`,kx,(0,t.toDisplayString)(e.name),1),e.tag?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ax,(0,t.toDisplayString)(e.tag),1)):(0,t.createCommentVNode)(``,!0)]),e.type===2&&e.updatedAt?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,jx,` 最近修改:`+(0,t.toDisplayString)(e.updatedAt),1)):(0,t.createCommentVNode)(``,!0)])],42,Sx))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xx,`暂无可提及内容`))]),_:1}),(0,t.createElementVNode)(`div`,Mx,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-mention-panel__submit`,disabled:!Ci.value,onClick:Bi},` 提及 `,8,Nx)])],36)):(0,t.createCommentVNode)(``,!0),L.value||Si.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:6,class:`norio-office-rich-marquee-selection-layer`,"data-active":vr.value,"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(R.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`marquee-block-${e.pos}`,class:`norio-office-rich-marquee-selection-layer__block`,style:(0,t.normalizeStyle)({left:`${e.rect.left}px`,top:`${e.rect.top}px`,width:`${e.rect.width}px`,height:`${e.rect.height}px`})},null,4))),128)),L.value&&vr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-marquee-selection-layer__box`,style:(0,t.normalizeStyle)({left:`${L.value.left}px`,top:`${L.value.top}px`,width:`${L.value.width}px`,height:`${L.value.height}px`})},null,4)):(0,t.createCommentVNode)(``,!0)],8,Px)):(0,t.createCommentVNode)(``,!0),xa.value&&Pr.value&&!Fe.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:7,class:(0,t.normalizeClass)([`norio-office-rich-block-side-control`,{"norio-office-rich-block-side-control--empty":xa.value.isEmpty}]),style:(0,t.normalizeStyle)(ja.value),onMouseenter:i[97]||=e=>fc(xa.value),onMouseleave:dc},[xa.value.isEmpty?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-block-side-control__button norio-office-rich-block-side-control__button--empty`,title:`插入`,onMousedown:i[90]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[91]||=e=>pc(xa.value,`insert`),onClick:i[92]||=e=>pc(xa.value,`insert`)},[(0,t.createVNode)(k,{name:`add`,size:12,color:`currentColor`,"background-color":`transparent`})],32)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-control__button`,title:xa.value.label,onMousedown:i[93]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[94]||=e=>pc(xa.value,`actions`),onClick:i[95]||=e=>pc(xa.value,`actions`)},[xa.value.iconName?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:xa.value.iconName,size:14,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ix,(0,t.toDisplayString)(xa.value.textIcon),1))],40,Fx),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-control__button norio-office-rich-block-side-control__button--drag`,title:`拖动`,onMousedown:i[96]||=e=>Kc(e,xa.value)},[(0,t.createVNode)(k,{name:`drag`,size:12,color:`#9aa4b2`,"background-color":`transparent`})],32)],64))],38)):(0,t.createCommentVNode)(``,!0),xa.value&&Cr.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:8,ref_key:`blockSideMenuRef`,ref:ue,class:`norio-office-rich-block-side-menu`,style:(0,t.normalizeStyle)(Ia.value),onMouseenter:i[129]||=e=>fc(xa.value),onMouseleave:dc,onMousedown:i[130]||=(0,t.withModifiers)(()=>{},[`stop`])},[Cr.value===`insert`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,Lx,[i[205]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`基础`,-1),(0,t.createElementVNode)(`div`,Rx,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Rn,e=>(0,t.createElementVNode)(`button`,{key:`block-quick-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__quick-button`,onClick:t=>_c(e.action)},[e.type===`icon`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.iconName||``,size:17,color:`#1f2937`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Bx,(0,t.toDisplayString)(e.label),1))],8,zx)),64))])]),(0,t.createElementVNode)(`div`,Vx,[i[206]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`常用`,-1),((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Wn,e=>(0,t.createElementVNode)(`button`,{key:`block-insert-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__item`,onClick:t=>_c(e.action)},[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName},null,8,[`name`])):((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:`smile`,size:17,color:`#64748b`,"background-color":`transparent`})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(rr(e.key)),1)],8,Hx)),64))])],64)):Cr.value===`actions`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[K.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ux,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(K.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`block-transform-${e.key}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__quick-button`,{"norio-office-rich-block-side-menu__quick-button--active":Sa.value===e.action}]),title:e.label,"aria-label":e.label,"aria-pressed":Sa.value===e.action,onMousedown:i[98]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>X(e.action)},[e.type===`icon`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.iconName||``,size:18,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Gx,(0,t.toDisplayString)(e.label),1))],42,Wx))),128))])):(0,t.createCommentVNode)(``,!0),Ca.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,ref_key:`blockSidePropertiesTriggerRef`,ref:Oe,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`properties`}]),onMouseenter:i[99]||=e=>j.value=`properties`,onClick:i[100]||=e=>j.value=`properties`,onMousedown:i[101]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createVNode)(k,{name:`zuoduiqi`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[207]||=(0,t.createElementVNode)(`span`,null,`缩进和对齐`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],34)):(0,t.createCommentVNode)(``,!0),Cc(xa.value)?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,ref_key:`blockSideColorTriggerRef`,ref:ke,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`color`}]),"aria-expanded":j.value===`color`,onMousedown:i[102]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[103]||=e=>j.value=`color`,onClick:i[104]||=e=>j.value=`color`},[(0,t.createVNode)(k,{name:`yanse`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[208]||=(0,t.createElementVNode)(`span`,null,`颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Kx)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--strong":Ca.value.length>0||Cc(xa.value)}]),onClick:i[105]||=e=>Hc(xa.value)},[(0,t.createVNode)(k,{name:`cut`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[209]||=(0,t.createElementVNode)(`span`,null,`剪切`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-menu__item`,onClick:i[106]||=e=>Vc(xa.value)},[(0,t.createVNode)(k,{name:`xiangxiacharujilu-copy`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[210]||=(0,t.createElementVNode)(`span`,null,`复制`,-1)]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-menu__item`,disabled:!Pr.value,onClick:i[107]||=e=>Wc(xa.value)},[(0,t.createVNode)(k,{name:`xiangxiacharujilu-copy`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[211]||=(0,t.createElementVNode)(`span`,null,`粘贴`,-1)],8,qx),xa.value.node.type.name===`table`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,ref_key:`blockSideTableThemeTriggerRef`,ref:ge,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":j.value===`table-theme`}]),"aria-expanded":j.value===`table-theme`,onMousedown:i[108]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:Jl,onClick:Jl},[(0,t.createVNode)(k,{name:`zhuti`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[212]||=(0,t.createElementVNode)(`span`,null,`主题色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Jx)):(0,t.createCommentVNode)(``,!0),[`highlightBlock`,`blockquote`].includes(xa.value.node.type.name)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:4},[(0,t.createElementVNode)(`button`,{ref_key:`blockSideSurfaceBorderTriggerRef`,ref:de,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":[`highlight-border`,`quote-border`].includes(j.value||``)}]),"aria-expanded":[`highlight-border`,`quote-border`].includes(j.value||``),onMousedown:i[109]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[110]||=e=>j.value=xa.value.node.type.name===`blockquote`?`quote-border`:`highlight-border`,onClick:i[111]||=e=>j.value=xa.value.node.type.name===`blockquote`?`quote-border`:`highlight-border`},[(0,t.createVNode)(k,{name:`yanse`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[213]||=(0,t.createElementVNode)(`span`,null,`边框颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Yx),(0,t.createElementVNode)(`button`,{ref_key:`blockSideSurfaceFillTriggerRef`,ref:fe,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":[`highlight-fill`,`quote-background`].includes(j.value||``)}]),"aria-expanded":[`highlight-fill`,`quote-background`].includes(j.value||``),onMousedown:i[112]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[113]||=e=>j.value=xa.value.node.type.name===`blockquote`?`quote-background`:`highlight-fill`,onClick:i[114]||=e=>j.value=xa.value.node.type.name===`blockquote`?`quote-background`:`highlight-fill`},[(0,t.createVNode)(k,{name:`beijingse`,size:18,color:`#4b5563`,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(xa.value.node.type.name===`blockquote`?`背景颜色`:`填充颜色`),1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Xx),xa.value.node.type.name===`highlightBlock`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_key:`blockSideHighlightSettingsTriggerRef`,ref:pe,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`highlight-settings`}]),"aria-expanded":j.value===`highlight-settings`,onMousedown:i[115]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[116]||=e=>j.value=`highlight-settings`,onClick:i[117]||=e=>j.value=`highlight-settings`},[(0,t.createVNode)(k,{name:`shezhi`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[214]||=(0,t.createElementVNode)(`span`,null,`设置`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Zx)):(0,t.createCommentVNode)(``,!0)],64)):(0,t.createCommentVNode)(``,!0),xa.value.node.type.name===`horizontalRule`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:5},[(0,t.createElementVNode)(`button`,{ref_key:`blockSideDividerStyleTriggerRef`,ref:_e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":j.value===`divider-style`}]),"aria-expanded":j.value===`divider-style`,onMousedown:i[118]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[119]||=e=>j.value=`divider-style`,onClick:i[120]||=e=>j.value=`divider-style`},[(0,t.createVNode)(an,{name:`fengexian`,size:18,"background-color":`transparent`}),i[215]||=(0,t.createElementVNode)(`span`,null,`样式`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Qx),(0,t.createElementVNode)(`button`,{ref_key:`blockSideDividerColorTriggerRef`,ref:ve,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`divider-color`}]),"aria-expanded":j.value===`divider-color`,onMousedown:i[121]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[122]||=e=>j.value=`divider-color`,onClick:i[123]||=e=>j.value=`divider-color`},[(0,t.createVNode)(k,{name:`yanse`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[216]||=(0,t.createElementVNode)(`span`,null,`颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,$x)],64)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,onClick:i[124]||=e=>Gc(xa.value)},[(0,t.createVNode)(k,{name:`delete`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[217]||=(0,t.createElementVNode)(`span`,null,`删除`,-1)]),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":j.value===`add-above`}]),"aria-expanded":j.value===`add-above`,"aria-haspopup":`true`,onMouseenter:i[125]||=e=>!Da.value&&(j.value=`add-above`),onClick:i[126]||=e=>j.value=`add-above`},[(0,t.createVNode)(k,{name:`shangfangtianjia`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[218]||=(0,t.createElementVNode)(`span`,null,`在上方添加`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,eS),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`add-below`}]),"aria-expanded":j.value===`add-below`,"aria-haspopup":`true`,onMouseenter:i[127]||=e=>!Da.value&&(j.value=`add-below`),onClick:i[128]||=e=>j.value=`add-below`},[(0,t.createVNode)(k,{name:`xiafangtianjia`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[219]||=(0,t.createElementVNode)(`span`,null,`在下方添加`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,tS)],64)):(0,t.createCommentVNode)(``,!0)],36)),[[t.vShow,!(Da.value&&Vt.includes(j.value||``))]]):(0,t.createCommentVNode)(``,!0),xa.value&&wa.value&&j.value===`table-theme`?((0,t.openBlock)(),(0,t.createBlock)(Tl,{key:9,class:`norio-office-rich-block-side-table-theme`,theme:to.value,"recent-colors":lr.value,style:(0,t.normalizeStyle)(no.value),onChange:Yl,onColorUsed:mf,onClear:i[131]||=e=>Yl(null),onClose:Xl,onResize:i[132]||=e=>Ge.value=e,onReposition:ql,onMouseenter:i[133]||=e=>fc(xa.value),onMouseleave:dc,onMousedown:i[134]||=(0,t.withModifiers)(()=>{},[`stop`])},null,8,[`theme`,`recent-colors`,`style`])):(0,t.createCommentVNode)(``,!0),xa.value&&wa.value&&j.value!==`table-theme`?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:10,class:(0,t.normalizeClass)([`norio-office-rich-block-side-submenu`,{"norio-office-rich-block-side-submenu--properties":j.value===`properties`,"norio-office-rich-block-side-submenu--color":j.value===`divider-color`}]),style:(0,t.normalizeStyle)(La.value),onMouseenter:i[142]||=e=>fc(xa.value),onMouseleave:dc,onMousedown:i[143]||=(0,t.withModifiers)(()=>{},[`stop`])},[Da.value&&Vt.includes(j.value||``)?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-block-side-menu__back`,"aria-label":`返回句柄菜单`,onMousedown:i[135]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[136]||=e=>j.value=null},[(0,t.createVNode)(k,{name:`zuojiantou`,size:14,color:`currentColor`,"background-color":`transparent`}),i[220]||=(0,t.createElementVNode)(`span`,null,`返回`,-1)],32)):(0,t.createCommentVNode)(``,!0),j.value===`properties`?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(Ca.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`block-property-${e.key}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--strong":e.action===`indent-more`,"norio-office-rich-block-side-menu__item--active":e.action===`align-${so.value}`}]),disabled:e.action===`indent-less`?!lo.value:e.action===`indent-more`&&!co.value,"aria-pressed":e.action.startsWith(`align-`)?e.action===`align-${so.value}`:void 0,onMousedown:i[137]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>jc(e.action)},[(0,t.createVNode)(k,{name:e.iconName,size:18,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.label),1),e.action===`align-${so.value}`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rS,`✓`)):(0,t.createCommentVNode)(``,!0)],42,nS))),128)):Ec.value?((0,t.openBlock)(),(0,t.createBlock)(Dn,{key:2,kind:Ec.value.kind,label:Ec.value.label,"preset-colors":Ec.value.presetColors,color:Ec.value.color,"custom-kind":Dr.value,"hover-enabled":!Da.value,onChange:i[138]||=(e,t)=>Dc(t??`transparent`),onCustom:Fc,onReset:i[139]||=e=>Dc(Ec.value.defaultColor)},null,8,[`kind`,`label`,`preset-colors`,`color`,`custom-kind`,`hover-enabled`])):j.value===`highlight-settings`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,type:`button`,class:`norio-office-rich-code-block__setting-row`,role:`switch`,"aria-checked":io.value.emojiEnabled,onMousedown:i[140]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Oc},[i[222]||=(0,t.createElementVNode)(`span`,null,`启用表情`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch`,"data-checked":io.value.emojiEnabled?`true`:`false`,"aria-hidden":`true`},[...i[221]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch-thumb`},null,-1)]],8,aS)],40,iS)):j.value===`divider-style`?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:4},(0,t.renderList)((0,t.unref)(Of),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.value,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-divider-style-option`,{"norio-office-rich-block-side-menu__item--active":uo.value===e.value}]),"aria-label":e.label,title:e.label,"aria-pressed":uo.value===e.value,onMousedown:i[141]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>kc({lineStyle:e.value})},[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-divider-style-option__preview`,style:(0,t.normalizeStyle)({borderTopStyle:e.value}),"aria-hidden":`true`},null,4),(0,t.createElementVNode)(`span`,sS,(0,t.toDisplayString)(uo.value===e.value?`✓`:``),1)],42,oS))),128)):j.value===`divider-color`?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:5,color:fo.value,"default-color":(0,t.unref)(Df),"recent-colors":cr.value,onChange:Ac},null,8,[`color`,`default-color`,`recent-colors`])):j.value===`color`?((0,t.openBlock)(),(0,t.createBlock)(Dn,{key:6,"text-color":ao.value.text,"background-color":ao.value.background,"custom-kind":Dr.value,"hover-enabled":!Da.value,onChange:Nc,onCustom:Fc,onReset:Pc},null,8,[`text-color`,`background-color`,`custom-kind`,`hover-enabled`])):j.value===`add-above`||j.value===`add-below`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:7},[(0,t.createElementVNode)(`div`,cS,[i[223]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`基础`,-1),(0,t.createElementVNode)(`div`,lS,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Rn,e=>(0,t.createElementVNode)(`button`,{key:`block-add-quick-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__quick-button`,onClick:t=>_c(e.action)},[e.type===`icon`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.iconName||``,size:17,color:`#1f2937`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,dS,(0,t.toDisplayString)(e.label),1))],8,uS)),64))])]),(0,t.createElementVNode)(`div`,fS,[i[224]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`常用`,-1),((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Wn,e=>(0,t.createElementVNode)(`button`,{key:`block-add-insert-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__item`,onClick:t=>_c(e.action)},[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName},null,8,[`name`])):((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:`smile`,size:17,color:`#64748b`,"background-color":`transparent`})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(rr(e.key)),1)],8,pS)),64))])],64)):(0,t.createCommentVNode)(``,!0)],38)),[[t.vShow,!(Da.value&&Dr.value)]]):(0,t.createCommentVNode)(``,!0),xa.value&&wa.value&&Dr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:11,class:`norio-office-rich-block-side-submenu norio-office-rich-block-side-submenu--color norio-office-rich-block-side-submenu--tertiary`,style:(0,t.normalizeStyle)(za.value),role:`dialog`,"aria-label":Lc.value.label,onMouseenter:i[148]||=e=>fc(xa.value),onMouseleave:dc,onMousedown:i[149]||=(0,t.withModifiers)(()=>{},[`stop`])},[Da.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-block-side-menu__back norio-office-rich-block-colors__palette-back`,"aria-label":`返回颜色菜单`,onMousedown:i[144]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[145]||=e=>Dr.value=null},[(0,t.createVNode)(k,{name:`zuojiantou`,size:14,color:`currentColor`,"background-color":`transparent`}),i[225]||=(0,t.createElementVNode)(`span`,null,`返回`,-1)],32)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(xn,{color:Lc.value.color||Lc.value.defaultColor,"default-color":Lc.value.defaultColor,"recent-colors":Lc.value.recentColors,onChange:Ic},null,8,[`color`,`default-color`,`recent-colors`]),(0,t.createElementVNode)(`div`,hS,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current`,onMousedown:i[146]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[147]||=e=>Ic(null)},`清除颜色`,32)])],44,mS)):(0,t.createCommentVNode)(``,!0),br.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:12,class:`norio-office-rich-drag-insert-indicator`,style:(0,t.normalizeStyle)({left:`${br.value.left}px`,top:`${br.value.top}px`,width:`${br.value.width}px`}),"aria-hidden":`true`},[...i[226]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-drag-insert-indicator__line`},null,-1)]],4)):(0,t.createCommentVNode)(``,!0),Pr.value&&kn.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:13,class:`norio-office-rich-table-column-track`,style:(0,t.normalizeStyle)({left:`${kn.value.left}px`,top:`${kn.value.top-14}px`,width:`${kn.value.width}px`})},[i[227]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-column-track__line`},null,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(An.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`table-column-segment-${e.index}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-column-track__segment`,{"norio-office-rich-table-column-track__segment--active":Pn.value===e.index}]),style:(0,t.normalizeStyle)({left:`${e.left-kn.value.left}px`,width:`${e.width}px`}),onMousedown:i[150]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>iu(e.index)},null,46,gS))),128)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Mn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-table-track__dot norio-office-rich-table-track__dot--column`,title:`插入列`,"aria-label":`插入列`,style:(0,t.normalizeStyle)({left:`${e.left-kn.value.left}px`}),onMousedown:i[151]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>ou(e.insertIndex)},null,44,_S))),128))],4)):(0,t.createCommentVNode)(``,!0),Pr.value&&kn.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:14,class:`norio-office-rich-table-row-track`,style:(0,t.normalizeStyle)({left:`${kn.value.left-14}px`,top:`${kn.value.top}px`,height:`${kn.value.height}px`})},[i[228]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-row-track__line`},null,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(jn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`table-row-segment-${e.index}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-row-track__segment`,{"norio-office-rich-table-row-track__segment--active":Fn.value===e.index}]),style:(0,t.normalizeStyle)({top:`${e.top-kn.value.top}px`,height:`${e.height}px`}),onMousedown:i[152]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>au(e.index)},null,46,vS))),128)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Nn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-table-track__dot norio-office-rich-table-track__dot--row`,title:`插入行`,"aria-label":`插入行`,style:(0,t.normalizeStyle)({top:`${e.top-kn.value.top}px`}),onMousedown:i[153]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>su(e.insertIndex)},null,44,yS))),128))],4)):(0,t.createCommentVNode)(``,!0),(0,t.createCommentVNode)(``,!0)],544)],4)]),_:1})]),Yr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`aside`,{key:2,ref_key:`commentPanelRef`,ref:y,class:`norio-office-rich-comment-panel`,"aria-label":`评论`},[(0,t.createElementVNode)(`div`,bS,[(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(N.value),1)]),(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-comment-panel__scroll`},{default:(0,t.withCtx)(()=>[Jr.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,SS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Jr.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`article`,{key:e.id,ref_for:!0,ref:t=>pd(e.id,t),class:(0,t.normalizeClass)([`norio-office-rich-comment-card`,{"norio-office-rich-comment-card--active":Xr.value?.id===e.id,"norio-office-rich-comment-card--pending":wt.value?.id===e.id}]),onClick:t=>xd(e)},[i[231]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-comment-card__topline`},null,-1),(0,t.createElementVNode)(`div`,wS,(0,t.toDisplayString)(cd(e)),1),(0,t.createElementVNode)(`div`,TS,[(0,t.createElementVNode)(`button`,{type:`button`,title:`删除`,disabled:wt.value?.id===e.id,onClick:(0,t.withModifiers)(t=>jd(e.id),[`stop`])},[(0,t.createVNode)(k,{name:`delete`,size:13,color:`#dc2626`,"background-color":`transparent`})],8,ES)]),e.comments.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,DS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ed(e),n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.id,class:`norio-office-rich-comment-item`},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-comment-item__avatar`,style:(0,t.normalizeStyle)(Wu(n.author))},[n.author.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:n.author.avatar,alt:``},null,8,OS)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,kS,(0,t.toDisplayString)(Uu(n.author)),1))],4),(0,t.createElementVNode)(`div`,AS,[(0,t.createElementVNode)(`div`,jS,[(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(n.author.name),1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(Gu(n.updatedAt||n.createdAt)),1)]),Ed(e.id,n)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,value:xt.value,rows:`2`,onInput:Dd,onKeydown:t=>Od(e.id,n,t)},null,40,MS),(0,t.createElementVNode)(`div`,NS,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(kd,[`stop`])},`取消`),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,onClick:(0,t.withModifiers)(t=>Ad(e.id,n),[`stop`])},` 保存 `,8,PS)])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,FS,(0,t.toDisplayString)(n.content),1),n.images?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,IS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.images,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.url,type:`button`,class:`norio-office-rich-comment-images__item`,onClick:(0,t.withModifiers)(t=>Id(e),[`stop`])},[(0,t.createElementVNode)(`img`,{src:e.url,alt:e.alt||e.name||``},null,8,RS)],8,LS))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,zS,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(t=>od(e,n),[`stop`])},`回复`,8,BS),n.author.id===qr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,onClick:(0,t.withModifiers)(t=>Td(e.id,n),[`stop`])},`编辑`,8,VS)):(0,t.createCommentVNode)(``,!0),n.author.id===qr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,onClick:(0,t.withModifiers)(t=>jd(e.id,n),[`stop`])},`删除`,8,HS)):(0,t.createCommentVNode)(``,!0)])],64)),td(e,n).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,US,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(td(e,n),n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.id,class:`norio-office-rich-comment-item norio-office-rich-comment-item--reply`},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-comment-item__avatar`,style:(0,t.normalizeStyle)(Wu(n.author))},[n.author.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:n.author.avatar,alt:``},null,8,WS)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,GS,(0,t.toDisplayString)(Uu(n.author)),1))],4),(0,t.createElementVNode)(`div`,KS,[(0,t.createElementVNode)(`div`,qS,[(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(n.author.name),1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(Gu(n.updatedAt||n.createdAt)),1)]),Ed(e.id,n)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,value:xt.value,rows:`2`,onInput:Dd,onKeydown:t=>Od(e.id,n,t)},null,40,JS),(0,t.createElementVNode)(`div`,YS,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(kd,[`stop`])},`取消`),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,onClick:(0,t.withModifiers)(t=>Ad(e.id,n),[`stop`])},` 保存 `,8,XS)])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,ZS,(0,t.toDisplayString)(n.content),1),n.images?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,QS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.images,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.url,type:`button`,class:`norio-office-rich-comment-images__item`,onClick:(0,t.withModifiers)(t=>Id(e),[`stop`])},[(0,t.createElementVNode)(`img`,{src:e.url,alt:e.alt||e.name||``},null,8,eC)],8,$S))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,tC,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(t=>od(e,n),[`stop`])},`回复`,8,nC),n.author.id===qr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,onClick:(0,t.withModifiers)(t=>Td(e.id,n),[`stop`])},`编辑`,8,rC)):(0,t.createCommentVNode)(``,!0),n.author.id===qr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,onClick:(0,t.withModifiers)(t=>jd(e.id,n),[`stop`])},`删除`,8,iC)):(0,t.createCommentVNode)(``,!0)])],64))])]))),128))])):(0,t.createCommentVNode)(``,!0),ad(e,n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`norio-office-rich-comment-composer norio-office-rich-comment-composer--inline`,onClick:i[155]||=(0,t.withModifiers)(()=>{},[`stop`])},[Zu(e.id,rd(e.id)??void 0).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,aC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Zu(e.id,rd(e.id)??void 0),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:`${n.url}-${r}`,class:`norio-office-rich-comment-draft-images__item`},[(0,t.createElementVNode)(`img`,{src:n.url,alt:n.alt||n.name||``},null,8,oC),(0,t.createElementVNode)(`button`,{type:`button`,onClick:t=>Fd(e.id,r,rd(e.id)??void 0)},`x`,8,sC)]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,placeholder:`回复 ${id(e)?.author.name??``}`,value:qu(e.id,rd(e.id)??void 0),rows:`2`,onInput:t=>Yu(e.id,t,rd(e.id)??void 0),onKeydown:t=>Xu(e.id,t,rd(e.id)??void 0)},null,40,cC),(0,t.createElementVNode)(`div`,lC,[(0,t.createElementVNode)(`button`,{type:`button`,title:`上传图片`,onClick:t=>Md(e.id)},[(0,t.createVNode)(k,{name:`image`,size:14,color:`#667085`,"background-color":`transparent`})],8,uC),i[229]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-comment-composer__spacer`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,onClick:t=>sd(e.id,rd(e.id)??``)},`取消`,8,dC),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,disabled:!qr.value||!qu(e.id,rd(e.id)??void 0).trim()&&!Zu(e.id,rd(e.id)??void 0).length,onClick:t=>wd(e.id,rd(e.id)??void 0)},` 回复 `,8,fC)])])):(0,t.createCommentVNode)(``,!0)])]))),128))])):wt.value?.id===e.id?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pC,` 暂无回复 `)),(Xr.value?.id===e.id||wt.value?.id===e.id)&&!id(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`norio-office-rich-comment-composer`,onClick:i[156]||=(0,t.withModifiers)(()=>{},[`stop`])},[Zu(e.id).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Zu(e.id),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:`${n.url}-${r}`,class:`norio-office-rich-comment-draft-images__item`},[(0,t.createElementVNode)(`img`,{src:n.url,alt:n.alt||n.name||``},null,8,hC),(0,t.createElementVNode)(`button`,{type:`button`,onClick:t=>Fd(e.id,r)},`×`,8,gC)]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,placeholder:wt.value?.id===e.id?`输入评论`:`回复`,value:qu(e.id),rows:`2`,onInput:t=>Yu(e.id,t),onKeydown:t=>Xu(e.id,t)},null,40,_C),(0,t.createElementVNode)(`div`,vC,[(0,t.createElementVNode)(`button`,{type:`button`,title:`上传图片`,onClick:t=>Md(e.id)},[(0,t.createVNode)(k,{name:`image`,size:14,color:`#667085`,"background-color":`transparent`})],8,yC),i[230]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-comment-composer__spacer`},null,-1),wt.value?.id===e.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,onClick:t=>Cd(e.id)},` 取消 `,8,bC)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,disabled:!qr.value||!qu(e.id).trim()&&!Zu(e.id).length,onClick:t=>wd(e.id)},(0,t.toDisplayString)(wt.value?.id===e.id?`发布`:`回复`),9,xC)])])):(0,t.createCommentVNode)(``,!0)],10,CS))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xS,` 暂无评论 `))]),_:1})],512)):(0,t.createCommentVNode)(``,!0)]),Wr.value&&Ot.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`commentMentionPanelRef`,ref:b,class:`norio-office-rich-mention-panel norio-office-rich-comment-mention-panel`,style:(0,t.normalizeStyle)(Ei.value),onMousedown:i[157]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createElementVNode)(`div`,SC,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Ht,e=>(0,t.createElementVNode)(`button`,{key:`comment-${String(e.key)}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__tab`,{"norio-office-rich-mention-panel__tab--active":jt.value===e.key}]),onClick:t=>G(e.key)},(0,t.toDisplayString)(e.label),11,CC)),64))]),(0,t.createVNode)(Vn,{class:`norio-office-rich-mention-panel__scroll`},{default:(0,t.withCtx)(()=>[kt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wC,`加载中...`)):B.value.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:2},(0,t.renderList)(B.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`comment-${e.type}-${e.id}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__item`,{"norio-office-rich-mention-panel__item--active":n===Nt.value}]),onClick:t=>na(e,n),onDblclick:t=>ia(e)},[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-mention-panel__avatar`,"data-type":e.type,style:(0,t.normalizeStyle)(ki(e))},[e.type===1&&e.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:e.avatar,alt:``},null,8,OC)):e.type===2&&e.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:e.icon,alt:``},null,8,kC)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,AC,(0,t.toDisplayString)(Oi(e)),1))],12,DC),(0,t.createElementVNode)(`span`,jC,[(0,t.createElementVNode)(`span`,MC,[(0,t.createElementVNode)(`span`,NC,(0,t.toDisplayString)(e.name),1),e.tag?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,PC,(0,t.toDisplayString)(e.tag),1)):(0,t.createCommentVNode)(``,!0)]),e.type===2&&e.updatedAt?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,FC,` 最近修改:`+(0,t.toDisplayString)(e.updatedAt),1)):(0,t.createCommentVNode)(``,!0)])],42,EC))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,TC,`暂无可提及内容`))]),_:1}),(0,t.createElementVNode)(`div`,IC,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-mention-panel__submit`,disabled:!Ti.value,onClick:aa},` 提及 `,8,LC)])],36)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[Ar.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-block-drag-ghost`,style:(0,t.normalizeStyle)(Ba.value),"aria-hidden":`true`},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-drag-ghost__content norio-office-rich-prosemirror`,innerHTML:Ar.value.html},null,8,RC)],4)):(0,t.createCommentVNode)(``,!0)])),(0,t.createVNode)(el,{open:Wt.value,value:Gt.value,title:`插入 LaTeX 公式`,"submit-label":`插入`,onClose:ju,onSubmit:Pu},null,8,[`open`,`value`]),(0,t.createElementVNode)(`input`,{ref_key:`markdownImportInputRef`,ref:C,type:`file`,accept:`.md,.markdown,text/markdown,text/plain`,hidden:``,onChange:Nu},null,544),(0,t.createElementVNode)(`input`,{ref_key:`localFileInputRef`,ref:w,type:`file`,hidden:``,onChange:Jd},null,544),(0,t.createElementVNode)(`input`,{ref_key:`imageUploadInputRef`,ref:T,type:`file`,accept:`image/*`,hidden:``,onChange:Kd},null,544),(0,t.createElementVNode)(`input`,{ref_key:`videoUploadInputRef`,ref:E,type:`file`,accept:`video/*`,hidden:``,onChange:qd},null,544),(0,t.createElementVNode)(`input`,{ref_key:`commentImageInputRef`,ref:ee,type:`file`,accept:`image/*`,hidden:``,onChange:Pd},null,544),Tt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`norio-office-rich-comment-image-viewer`,role:`dialog`,"aria-modal":`true`,onClick:(0,t.withModifiers)(Ld,[`self`])},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-image-viewer__close`,"aria-label":`Close image preview`,onClick:Ld},[(0,t.createVNode)(k,{name:`close`,size:20,color:`#ffffff`,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,zC,[(0,t.createElementVNode)(`img`,{class:`norio-office-rich-comment-image-viewer__image`,src:Tt.value.url,alt:Tt.value.alt||Tt.value.name||``},null,8,BC),Tt.value.name||Tt.value.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,VC,[Tt.value.name?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,HC,(0,t.toDisplayString)(Tt.value.name),1)):(0,t.createCommentVNode)(``,!0),Tt.value.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,UC,(0,t.toDisplayString)(Tt.value.description),1)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)])])):(0,t.createCommentVNode)(``,!0),ht.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,WC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ht.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`norio-office-rich-upload-panel__item`,{"norio-office-rich-upload-panel__item--uploading":e.status===`uploading`,"norio-office-rich-upload-panel__item--error":e.status===`error`}])},[e.status===`uploading`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,GC)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,KC,`!`)),(0,t.createElementVNode)(`div`,qC,[(0,t.createElementVNode)(`div`,JC,(0,t.toDisplayString)(Qo(e)),1),(0,t.createElementVNode)(`div`,YC,(0,t.toDisplayString)(e.message||e.fileName),1)]),e.status===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,type:`button`,class:`norio-office-rich-upload-panel__button`,onClick:e.retry},` 重试 `,8,XC)):(0,t.createCommentVNode)(``,!0),e.status===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,type:`button`,class:`norio-office-rich-upload-panel__button norio-office-rich-upload-panel__button--ghost`,onClick:t=>$o(e.id)},` 关闭 `,8,ZC)):(0,t.createCommentVNode)(``,!0)],2))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`footer`,QC,[(0,t.createElementVNode)(`div`,$C,[(0,t.createElementVNode)(`div`,ew,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(yi.value),1)]),(0,t.createElementVNode)(`div`,tw,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(bi.value),1)])]),(0,t.createElementVNode)(`div`,nw,[(0,t.createElementVNode)(`div`,rw,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__button`,{"norio-office-rich-statusbar__button--active":Fe.value}]),title:xi.value,"aria-label":xi.value,"aria-pressed":Fe.value,onClick:Js},[(0,t.createVNode)(k,{name:`yanshi`,size:17,color:`currentColor`,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,aw,(0,t.toDisplayString)(xi.value),1)],10,iw),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__button`,{"norio-office-rich-statusbar__button--active":Pe.value}]),title:P.value,"aria-label":P.value,"aria-pressed":Pe.value,onClick:Gs},[(0,t.createVNode)(k,{name:Pe.value?`huanyuan`:`quanpingzuidahua`,size:17,color:`currentColor`,"background-color":`transparent`},null,8,[`name`]),(0,t.createElementVNode)(`span`,sw,(0,t.toDisplayString)(P.value),1)],10,ow)]),(0,t.createElementVNode)(`div`,cw,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-statusbar__button norio-office-rich-statusbar__button--icon`,title:`缩小`,"aria-label":`缩小`,disabled:Rt.value<=50,onClick:i[158]||=e=>Ys(Rt.value-10)},[(0,t.createVNode)(k,{name:`jianshao`,size:13,color:`currentColor`,"background-color":`transparent`})],8,lw),(0,t.createElementVNode)(`div`,uw,(0,t.toDisplayString)(Rt.value)+`%`,1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-statusbar__button norio-office-rich-statusbar__button--icon`,title:`放大`,"aria-label":`放大`,disabled:Rt.value>=200,onClick:i[159]||=e=>Ys(Rt.value+10)},[(0,t.createVNode)(k,{name:`add`,size:13,color:`currentColor`,"background-color":`transparent`})],8,dw)]),ai.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`statusbarExportMenuRef`,ref:te,class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--export`,onKeydown:ls},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__button`,{"norio-office-rich-statusbar__button--active":it.value}]),title:pi.value,"aria-label":pi.value,"aria-haspopup":`menu`,"aria-expanded":it.value,disabled:!!Lt.value,onClick:cs},[(0,t.createVNode)(an,{name:`xiazai`,size:19,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,pw,(0,t.toDisplayString)(pi.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:11,color:`currentColor`,"background-color":`transparent`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__caret`,{"norio-office-rich-statusbar__caret--open":it.value}])},null,8,[`class`])],10,fw),it.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-statusbar__export-menu`,role:`menu`,"aria-label":pi.value},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ri.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-statusbar__export-item`,role:`menuitem`,disabled:!!Lt.value,onClick:e.onClick},[(0,t.createVNode)(an,{name:e.iconName,size:20,"background-color":`transparent`},null,8,[`name`]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(Lt.value===e.key?e.loadingLabel:e.label),1)],8,hw))),128))],8,mw)):(0,t.createCommentVNode)(``,!0)],544)):(0,t.createCommentVNode)(``,!0),ii.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,gw,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-statusbar__button`,title:mi.value,"aria-label":mi.value,disabled:!!Lt.value,onClick:Es},[(0,t.createVNode)(an,{name:`dayin`,size:19,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,vw,(0,t.toDisplayString)(mi.value),1)],8,_w)])):(0,t.createCommentVNode)(``,!0)])]),(0,t.withDirectives)((0,t.createElementVNode)(`div`,{class:`norio-office-rich-editor__presentation-pointer`,style:(0,t.normalizeStyle)(I.value),"aria-hidden":`true`},null,4),[[t.vShow,Fe.value]])],40,iv))}}),Vw=(0,t.defineComponent)({__name:`RichTextOutline`,props:{editor:{},open:{type:Boolean,default:!0},placement:{default:`right`},title:{default:`大纲`},collapseTitle:{default:`收起大纲`},emptyDescription:{default:`对文档内容应用“标题”样式,即可自动生成大纲。`},emptyTip:{default:``},showCollapse:{type:Boolean,default:!1}},emits:[`toggle`,`select`,`change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)([]),o=(0,t.ref)(null),s=null;function c(){return(0,t.unref)(r.editor)}function l(e){a.value=e.items,o.value=e.activePos,i(`change`,e)}function u(){let e=c();l({items:e?.getOutlineItems()??[],activePos:e?.getActiveOutlinePos()??null})}function d(){s?.(),s=null;let e=c();if(!e){u();return}s=e.onOutlineChange(l)}function f(e){i(`select`,e),c()?.focusOutlineItem(e)}return(0,t.watch)(()=>c(),d,{immediate:!0}),(0,t.onBeforeUnmount)(()=>{s?.()}),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(fl,{standalone:``,open:e.open,placement:e.placement,title:e.title,"collapse-title":e.collapseTitle,"empty-description":e.emptyDescription,"empty-tip":e.emptyTip,"show-collapse":e.showCollapse,items:a.value,"active-pos":o.value,onToggle:r[0]||=e=>i(`toggle`),onSelect:f},null,8,[`open`,`placement`,`title`,`collapse-title`,`empty-description`,`empty-tip`,`show-collapse`,`items`,`active-pos`]))}}),Hw=Bw;e.OfficeColorIcon=an,e.OfficeIcon=k,e.RICH_TEXT_EDITOR_EXPORT_CODES=ng,e.RICH_TEXT_EDITOR_FEATURE_CODES=tg,e.RICH_TEXT_EDITOR_INSERT_MENU_CODES=rg,e.RICH_TEXT_EDITOR_TOOLBAR_ACTION_CODES=ig,e.RichTextEditor=Bw,e.RichTextOutline=Vw,e.ScrollArea=Vn,e.colorIconNames=nn,e.default=Hw,e.isRichTextCodeEnabled=ag,e.isRichTextFeatureCodeEnabled=og,e.monoIconNames=tn,e.resolveRichTextOutlinePlacement=sg});
|
|
7890
|
+
</html>`}async function Es(){if(!kt.value){Xe.value=!1,kt.value=`html`;try{let e=ws();if(!e)return;ds(as(`html`),new Blob([e],{type:`text/html;charset=utf-8`}))}finally{kt.value=null}}}async function Ds(){if(kt.value)return;Xe.value=!1,kt.value=`print`;let e=ss();if(!e){kt.value=null;return}let t=document.createElement(`iframe`);t.style.position=`fixed`,t.style.right=`0`,t.style.bottom=`0`,t.style.width=`0`,t.style.height=`0`,t.style.border=`0`,t.style.opacity=`0`,t.setAttribute(`aria-hidden`,`true`),document.body.appendChild(t);let n=()=>{t.remove(),kt.value=null};try{let r=t.contentWindow;if(!r){n();return}let i=r.document;i.open(),i.write(Ts(e.outerHTML)),i.close(),await new Promise(e=>{let n=()=>window.setTimeout(e,60);if(t.contentDocument?.readyState===`complete`){n();return}t.addEventListener(`load`,n,{once:!0})}),r.focus(),r.print()}finally{window.setTimeout(n,300)}}function Os(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}T${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`}function ks(){let e=new Date;return e.setSeconds(0,0),e.setMinutes(e.getMinutes()+1),Os(e)}function As(e,t){let n=new Date(e),r=`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}`,[i,a]=String(t||r).split(`:`);n.setHours(Ms(i,23),Ms(a,59),0,0);let o=ln.value;n.getTime()<o.getTime()&&n.setTime(o.getTime()),Ht.value=Os(n),Xt.value=n.getFullYear(),Zt.value=n.getMonth(),Qt.value=`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}`}function js(){Vt.value=`deadline`,qt.value=!1,Jt.value=!1,As(new Date(ks())),Ut.value=`0`,Wt.value=`0`,Gt.value=`1`,Kt.value=`0`}function Ms(e,t){let n=Number.parseInt(e||`0`,10);return!Number.isFinite(n)||n<0?0:typeof t==`number`?Math.min(t,n):n}function Ns(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=t%60;Ut.value=String(n),Wt.value=String(r),Gt.value=String(i),Kt.value=String(a)}function Ps(e){let t=Number(e.targetTimestamp??0)||Date.now()+6e4;Vt.value=e.mode===`duration`?`duration`:`deadline`,As(new Date(t)),Ns(Math.max(1e3,t-Date.now())),qt.value=!1}function Fs(e,t,n){let r=new Date(e,t,n);new Date(e,t,n,23,59,59,999).getTime()<ln.value.getTime()||As(r,Qt.value)}function Is(){As(new Date,un.value)}function Ls(e){Xt.value=Number.parseInt(e,10)||new Date().getFullYear()}function Rs(e){Zt.value=Number.parseInt(e,10)||0}function zs(e){As(sn.value??new Date,e)}function Bs(){zs(Qt.value),qt.value=!1}function Vs(){if(!V.value?.isActive(`countdownBlock`))return;let e=!Jt.value;Jt.value=e,qt.value=!1,e&&Ps(fo.value)}function Hs(){if(!O.value){Yt.value=`bottom`;return}let e=O.value.getBoundingClientRect(),t=ae.value?.offsetHeight??420,n=window.innerHeight-e.bottom-16,r=e.top-16;Yt.value=n>=t||n>=r?`bottom`:`top`}function Us(){Vt.value===`deadline`&&(qt.value=!qt.value,qt.value&&(0,t.nextTick)(Hs))}function Ws(){if(!V.value)return null;let{state:e}=V.value,{$from:t}=e.selection,n=t.depth;if(n<=0)return{from:e.selection.from,to:e.selection.from,isEmpty:!1};let r=t.node(n),i=r.isTextblock&&r.textContent.trim().length===0;return{from:t.before(n),to:i?t.after(n):t.before(n),isEmpty:i}}function Gs(){Ae.value=document.fullscreenElement===_.value,Ae.value||(je.value=!1)}async function Ks(){if(_.value){if(document.fullscreenElement===_.value){await document.exitFullscreen();return}await _.value.requestFullscreen()}}async function qs(){if(_.value){try{document.fullscreenElement!==_.value&&(document.fullscreenElement&&await document.exitFullscreen(),await _.value.requestFullscreen())}catch{return}ar.value=window.innerWidth/2,or.value=window.innerHeight/2,je.value=document.fullscreenElement===_.value,Xe.value=!1,V.value?.commands.blur()}}async function Js(){je.value=!1,document.fullscreenElement===_.value&&await document.exitFullscreen()}async function Ys(){if(je.value){await Js();return}await qs()}function Xs(e){At.value=Math.max(50,Math.min(200,e))}function Zs(){Lr.value&&(Me.value=!Me.value,(0,t.nextTick)(()=>{window.requestAnimationFrame(()=>{(Me.value?_.value?.querySelector(`.norio-office-rich-outline--internal .norio-office-rich-outline__collapse`):Ne.value)?.focus({preventScroll:!0})})}))}function Qs(e){return V.value?(V.value.chain().focus(e+1).run(),ua(),(0,t.nextTick)(()=>{let t=V.value?.view.nodeDOM(e),n=od();t instanceof HTMLElement&&n&&sd(t,n)}),!0):!1}function $s(){ur.value=[]}function ec(){sr.value=null,cr.value=null,lr.value=!1}function tc(e){let t=e instanceof Element?e:null;return t?!!t.closest(`button,input,textarea,select,a,.norio-office-rich-outline,.norio-office-rich-statusbar__button,.norio-office-rich-toolbar__button,.norio-office-rich-table-column-track,.norio-office-rich-table-row-track,.norio-office-rich-table-track__dot,.norio-office-rich-columns__overlay,.norio-office-rich-columns__divider-hitbox,.norio-office-rich-columns__add-button,.norio-office-rich-video-block__toolbar,.norio-office-rich-video-block__handle,.norio-office-rich-video-block__bottom-bar,.norio-office-rich-image-block__toolbar,.norio-office-rich-image-block__handle,.norio-office-rich-image-block__bottom-bar,.norio-office-rich-image-block__side-tools,.norio-office-rich-link-block__toolbar,.norio-office-rich-link-block__handle,.norio-office-rich-link-block__bottom-bar,.norio-office-rich-block-side-control,.norio-office-rich-block-side-menu,.norio-office-rich-block-side-submenu,.norio-office-rich-formula-editor`.split(`,`).join(`, `)):!1}function nc(e){let t=e instanceof Element?e:e?.parentElement??null;return t?!!t.closest([`.norio-office-rich-editor__toolbar`,`.norio-office-rich-toolbar__menu`,`.norio-office-rich-block-side-control`,`.norio-office-rich-block-side-menu`,`.norio-office-rich-block-side-submenu`].join(`, `)):!1}function rc(e,t){if(!v.value)return null;let n=v.value.getBoundingClientRect(),r=pa.value||1;return{x:(e-n.left)/r,y:(t-n.top)/r}}function ic(e,t){return e.left<t.left+t.width&&e.left+e.width>t.left&&e.top<t.top+t.height&&e.top+e.height>t.top}function ac(){if(!V.value||!v.value)return[];let e=v.value.getBoundingClientRect(),t=pa.value||1,n=[];return V.value.state.doc.forEach((r,i)=>{let a=V.value?.view.nodeDOM(i);if(!(a instanceof HTMLElement))return;let o=a.getBoundingClientRect();o.width<=0||o.height<=0||n.push({pos:i,from:i,to:i+r.nodeSize,node:r,dom:a,rect:{left:(o.left-e.left)/t,top:(o.top-e.top)/t,width:o.width/t,height:o.height/t}})}),n}function oc(e){let{node:t}=e,n=t.type.name,r=n===`paragraph`&&t.textContent.trim().length===0&&t.childCount===0;if(r)return{isEmpty:r,textIcon:`+`,label:`插入`};if(n===`heading`){let e=Number(t.attrs.level??1);return{isEmpty:r,textIcon:`H${e}`,label:`标题 ${e}`}}return{isEmpty:r,...{paragraph:{textIcon:`T`,label:`正文`},bulletList:{iconName:`wuxuliebiao`,label:`无序列表`},orderedList:{iconName:`youxuliebiao`,label:`有序列表`},taskList:{iconName:`To-do`,label:`任务`},blockquote:{iconName:`yinyong`,label:`引用`},codeBlock:{iconName:`codeblock`,label:`代码块`},horizontalRule:{textIcon:`—`,label:`分隔线`},imageBlock:{iconName:`image`,label:`图片`},videoBlock:{textIcon:`▶`,label:`视频`},localFileBlock:{iconName:`attachment`,label:`本地文件`},linkBlock:{iconName:`link`,label:`链接`},countdownBlock:{iconName:`days`,label:`倒计时`},highlightBlock:{iconName:`gaoliangkuai`,label:`高亮块`},formulaBlock:{textIcon:`fx`,label:`公式`},columnsBlock:{iconName:`split`,label:`分栏`},table:{textIcon:`▦`,label:`表格`}}[n]??{textIcon:`T`,label:`块`}}}function sc(e){return{...e,...oc(e)}}function cc(e,t){let n=rc(e,t);if(!n)return null;let r=ac(),i=al(),a=i?i.left-Dw-ww-12:0,o=i?i.left+i.width+28:lw;return r.map(sc).find(e=>n.y>=e.rect.top-8&&n.y<=e.rect.top+e.rect.height+8&&n.x>=a&&n.x<=o)??null}function lc(){mr.value=!0,vc(),fr.value=null}function uc(){let e=window.getSelection(),t=V.value?.view.dom;_r.value=!!t&&!!e&&!e.isCollapsed&&!!e.anchorNode&&t.contains(e.anchorNode)&&!!e.focusNode&&t.contains(e.focusNode)}function dc(e){!Mr.value||!(e.target instanceof Node)||!V.value?.view.dom.contains(e.target)||e instanceof KeyboardEvent&&!e.isComposing&&!([`Enter`,`Backspace`,`Delete`,`Tab`].includes(e.key)||e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey)||(lc(),hr.value=!0,br!==null&&clearTimeout(br),br=setTimeout(()=>{hr.value=!1,br=null},300))}function fc(e){!(e.target instanceof Node)||!V.value?.view.dom.contains(e.target)||(gr.value=!0,dc(e))}function pc(e){!(e.target instanceof Node)||!V.value?.view.dom.contains(e.target)||(gr.value=!1,dc(e))}function mc(e){if(!Mr.value||je.value||Or.value){fr.value=null;return}let t=e.target;if(!(t instanceof Element&&t.closest(`.norio-office-rich-block-side-control, .norio-office-rich-block-side-menu, .norio-office-rich-block-side-submenu, .norio-office-rich-block-side-table-theme`))){if(e.buttons||hr.value||gr.value||sr.value||L.value){fr.value=null;return}if(mr.value=!1,uc(),ya.value){fr.value=null;return}fr.value=cc(e.clientX,e.clientY)}}function hc(e){let t=e.relatedTarget;t instanceof Element&&t.closest(`.norio-office-rich-block-side-control, .norio-office-rich-block-side-menu, .norio-office-rich-block-side-submenu, .norio-office-rich-block-side-table-theme`)||!xr.value&&!j.value&&(fr.value=null)}function gc(e){fr.value=e,pr.value=e}function _c(e,t){if(ya.value)return;let n=t===`actions`&&xr.value===t&&pr.value?.pos===e.pos&&Sr.value;gc(e),n||(Sr.value=t===`actions`?q.value:null),xr.value=t,j.value=null,Cr.value=null,wr.value=t===`actions`&&!e.node.isLeaf?e.pos:null,Tr.value=null}function vc(){xr.value=null,Sr.value=null,j.value=null,Cr.value=null,wr.value=null,Tr.value=null,Ee.value=null,pr.value=null}function yc(e,t){return t===`add-above`?{from:e.from,to:e.from}:t===`add-below`?{from:e.to,to:e.to}:e.isEmpty?{from:e.from,to:e.to}:{from:e.to,to:e.to}}function bc(e){return e===`image`?{type:`imageBlock`,attrs:{images:[{id:qo()}],widthPercent:100}}:e===`video`?{type:`videoBlock`,attrs:{src:``,name:``,description:``,mimeType:`video/mp4`,align:`left`,widthPercent:100,height:220}}:e===`link`?{type:`linkBlock`,attrs:{title:``,url:``,displayMode:`preview`,align:`left`,widthPercent:100,height:420}}:e===`countdown`?{type:`countdownBlock`,attrs:{targetTimestamp:0,mode:`duration`,color:`#ff8b00`,reminderEnabled:!0}}:e===`emoji`?{type:`paragraph`,content:[{type:`text`,text:`😀`}]}:e===`columns`?mu(2):e===`formula`?{type:`formulaBlock`,attrs:{latex:``}}:hu(e)}function xc(e){if(!V.value||!pr.value||!xr.value)return;let t=pr.value,n=yc(t,j.value===`add-above`||j.value===`add-below`?j.value:xr.value);if(e===`table`){V.value.chain().focus().insertContentAt(n,(0,i.createTable)(V.value.schema,3,3,!1).toJSON(),{updateSelection:!0}).run(),vc(),Bl();return}let r=bc(e);if(!r){vc();return}V.value.chain().focus().insertContentAt(n,r,{updateSelection:!0}).run(),vc(),Bl()}function Sc(e){if(!V.value)return!1;let t=Math.min(e.from+1,Math.max(e.from,e.to-1));return V.value.chain().focus(t).run(),!0}function Cc(e){return e.node.type.name}function wc(e){return In.has(Cc(e))}function Tc(e){return Ln.has(Cc(e))}function Ec(e){let t=[];return[`paragraph`,`heading`].includes(e.node.type.name)?[{pos:e.pos,node:e.node}]:(Tc(e)&&e.node.descendants((n,r)=>{if([`paragraph`,`heading`].includes(n.type.name))return t.push({pos:e.pos+1+r,node:n}),!1}),t)}function Dc(e){return Rn.has(Cc(e))}function Oc(e,t){if(!V.value)return!1;let{state:n,view:r}=V.value;return r.dispatch(n.tr.setMeta(`officeBlockSideAttrs`,e.pos).setNodeMarkup(e.pos,void 0,{...e.node.attrs,...t})),!0}function kc(e){let t=wr.value,n=pr.value,r=t===null?null:V.value?.state.doc.nodeAt(t);return!Mr.value||!V.value?.isEditable||!n||t===null||r?.type.name!==`highlightBlock`?!1:Oc({...n,pos:t,node:r},e)}let Ac=(0,t.computed)(()=>{let e=j.value;if(!Mt.includes(e??``))return null;let t=e===`quote-border`||e===`quote-background`,n=e===`highlight-border`||e===`quote-border`,r=t?n?`quoteBorderColor`:`quoteBackgroundColor`:n?`borderColor`:`backgroundColor`,i=t?(n?Yn[0]:Xn[0]).toLowerCase():n?yw:bw,a=pr.value?.node;return{nodeType:t?`blockquote`:`highlightBlock`,attribute:r,kind:n?`border`:`fill`,label:n?`边框颜色`:t?`背景颜色`:`填充颜色`,color:String(a?.attrs[r]??i),defaultColor:i,presetColors:t?n?Zn:Qn:void 0}});function X(e){let t=Ac.value,n=wr.value,r=pr.value,i=n===null?null:V.value?.state.doc.nodeAt(n);!t||!Mr.value||!V.value?.isEditable||!r||n===null||i?.type.name!==t.nodeType||Oc({...r,pos:n,node:i},{[t.attribute]:e})&&e!==`transparent`&&($n.value=[e,...$n.value.filter(t=>t.toLowerCase()!==e.toLowerCase())].slice(0,10))}function jc(){kc({emojiEnabled:!ro.value.emojiEnabled})}function Mc(e){let t=pr.value,n=t&&V.value?.state.doc.nodeAt(t.pos);!Mr.value||!t||n?.type.name!==`horizontalRule`||(Oc({...t,node:n},e),gc({...t,node:V.value.state.doc.nodeAt(t.pos)}))}function Nc(e){let t=Af(e);t&&(Mc({lineColor:t===`#dfe5ee`?null:t}),$n.value=[t,...$n.value.filter(e=>e.toLowerCase()!==t)].slice(0,10))}function Pc(e){let t=pr.value;if(!(!V.value||!t||!xa.value.some(t=>t.action===e))){if(Sc(t),e===`paragraph`)V.value.chain().focus().setParagraph().run();else if(e.startsWith(`heading-`)){let t=Number(e.replace(`heading-`,``));V.value.chain().focus().toggleHeading({level:t}).run()}else e===`bullet-list`?V.value.chain().focus().toggleBulletList().run():e===`ordered-list`?V.value.chain().focus().toggleOrderedList().run():e===`task-list`&&V.value.chain().focus().toggleTaskList().run();vc(),Bl()}}function Fc(e){let t=pr.value,n=t&&V.value?.state.doc.nodeAt(t.pos);if(!Mr.value||!V.value?.isEditable||!t||!n||!Tc(t))return;let r=e.startsWith(`align-`)?e.slice(6):void 0;if(r!==void 0&&![`left`,`center`,`right`].includes(r)||r===void 0&&e!==`indent-more`&&e!==`indent-less`)return;let i=V.value.state.tr.setMeta(`officeBlockSideAttrs`,t.pos);for(let a of Ec({...t,node:n})){let t={...a.node.attrs};r===void 0?t.indent=Math.max(0,Math.min(8,Number(t.indent??0)+(e===`indent-more`?1:-1))):t.textAlign=r,!(t.textAlign===a.node.attrs.textAlign&&t.indent===a.node.attrs.indent)&&i.setNodeMarkup(a.pos,void 0,t)}i.docChanged&&V.value.view.dispatch(i)}function Ic(e){let t=pr.value;if(!Mr.value||!V.value?.isEditable||!t||!Dc(t))return;let{state:n,view:r}=V.value,i=n.doc.nodeAt(t.pos),a=n.schema.marks.textStyle;if(!i||i.type.name!==t.node.type.name||!a)return;let o=n.tr;n.doc.nodesBetween(t.pos+1,t.pos+i.nodeSize-1,(t,n)=>{if(!t.isText)return;let r={...t.marks.find(e=>e.type===a)?.attrs,...e};Object.values(r).some(e=>e!=null&&e!==``)?o.addMark(n,n+t.nodeSize,a.create(r)):o.removeMark(n,n+t.nodeSize,a)}),o.docChanged&&r.dispatch(o)}function Lc(e,t){if(!(e!==`text`&&e!==`background`)&&(Ic(e===`text`?{color:t}:{backgroundColor:t}),t)){let n=e===`text`?$n:er;n.value=[t,...n.value.filter(e=>e.toLowerCase()!==t.toLowerCase())].slice(0,10)}}function Rc(){Ic({color:null,backgroundColor:null})}function zc(e,t){Ee.value=t,Tr.value=e}function Bc(e){let t=Tr.value;t===`border`||t===`fill`?X(e??`transparent`):t&&Lc(t,e)}let Vc=(0,t.computed)(()=>{let e=Tr.value,t=Ac.value;return(e===`border`||e===`fill`)&&t?{label:`自定义${t.label}选择`,color:t.color,defaultColor:t.defaultColor,recentColors:$n.value}:{label:e===`text`?`自定义文字颜色选择`:`自定义背景颜色选择`,color:e===`text`?io.value.text:io.value.background,defaultColor:e===`text`?`#273142`:`#FFFFFF`,recentColors:e===`text`?$n.value:er.value}});function Hc(e){return Uc(new o.Slice(o.Fragment.from(e.node),0,0))}function Uc(e){if(!V.value)return null;let t=V.value.view.serializeForClipboard(e);return{json:t.slice.openStart===0&&t.slice.openEnd===0?t.slice.content.toJSON():void 0,html:t.dom.innerHTML,text:t.text}}function Wc(e,t){return e.clipboardData?(e.clipboardData.clearData(),e.clipboardData.setData(`text/html`,t.html),e.clipboardData.setData(`text/plain`,t.text),t.json?.length&&e.clipboardData.setData(hw,JSON.stringify(t.json)),e.preventDefault(),e.stopPropagation(),Er.value=t,!0):!1}async function Gc(e){if(!V.value)return!1;let t=Hc(e);Er.value=t;let n={payload:t,written:!1};Dr=n;try{V.value.view.focus(),document.execCommand(`copy`)||(n.written=!1)}catch{}finally{Dr=null}if(n.written)return!0;try{return!navigator.clipboard?.write||typeof ClipboardItem>`u`?!1:(await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([t.html],{type:`text/html`}),"text/plain":new Blob([t.text],{type:`text/plain`})})]),!0)}catch{return!1}}async function Kc(e){if(!V.value||!Mr.value)return;let t=V.value.state.doc;await Gc(e)&&V.value?.state.doc===t&&Yc(e)}async function qc(){try{if(navigator.clipboard?.read){let e=await navigator.clipboard.read();for(let t of e){let e=t.types.includes(`text/html`)?await(await t.getType(`text/html`)).text():``,n=t.types.includes(`text/plain`)?await(await t.getType(`text/plain`)).text():``;if(e||n)return{html:e,text:n}}return null}if(navigator.clipboard?.readText){let e=await navigator.clipboard.readText();return e?{html:``,text:e}:null}}catch{}return Er.value}async function Jc(e){if(!V.value||!Mr.value)return;let t=V.value.state.doc,n=await qc();if(!n||!V.value||V.value.state.doc!==t)return;let r=n.json?.length?n.json:n.html||n.text.split(/\r\n?|\n/).map(e=>({type:`paragraph`,content:e?[{type:`text`,text:e}]:[]}));V.value.chain().focus().insertContentAt({from:e.to,to:e.to},r,{updateSelection:!0}).run(),vc()}function Yc(e){!V.value||!Mr.value||(V.value.chain().focus().deleteRange({from:e.from,to:e.to}).run(),vc(),fr.value=null)}function Xc(e,t){if(!V.value||!Mr.value||je.value)return;e.preventDefault(),e.stopPropagation(),gc(t),xr.value=null,j.value=null,wr.value=null,Tr.value=null,Or.value={from:t.from,to:t.to,content:t.node.toJSON()};let n=t.dom.getBoundingClientRect(),r=Math.min(1,Ow/Math.max(n.width,1),kw/Math.max(n.height,1)),i=(e.clientX-n.left)*r,a=(e.clientY-n.top)*r;M.value={html:t.dom.outerHTML,left:e.clientX-i,top:e.clientY-a,width:n.width*r,height:n.height*r,sourceWidth:n.width,sourceHeight:n.height,scale:r,offsetX:i,offsetY:a};let o=e=>{M.value&&={...M.value,left:e.clientX-M.value.offsetX,top:e.clientY-M.value.offsetY};let t=ol(e.clientX,e.clientY);if(!t){dr.value=null;return}dr.value=t},s=e=>{document.removeEventListener(`mousemove`,o),document.removeEventListener(`mouseup`,s);let t=Or.value,n=dr.value??ol(e.clientX,e.clientY);if(dr.value=null,Or.value=null,M.value=null,!t||!n||n.range.from>=t.from&&n.range.from<=t.to)return;let r=n.range.from;r>t.from&&(r-=t.to-t.from),V.value?.chain().focus().deleteRange({from:t.from,to:t.to}).insertContentAt(r,t.content,{updateSelection:!0}).run(),vc(),fr.value=null};document.addEventListener(`mousemove`,o),document.addEventListener(`mouseup`,s),o(e)}function Zc(e){return e.type.startsWith(`image/`)}function Qc(e){return e.type.startsWith(`video/`)}function $c(e){return!Zc(e)&&!Qc(e)}function tl(e){return e?Array.from(e.items??[]).some(e=>e.kind===`file`)?!0:Array.from(e.files??[]).length>0:!1}function nl(e){return e?Array.from(e.files??[]).filter(Zc).slice(0,4):[]}function rl(e){return e?Array.from(e.files??[]).find(Qc)??null:null}function il(e){return e?Array.from(e.files??[]).filter($c):[]}function al(){if(!v.value)return null;let e=v.value.getBoundingClientRect(),t=v.value.querySelector(`.norio-office-rich-prosemirror`),n=t?.getBoundingClientRect(),r=pa.value||1,i=t?getComputedStyle(t):null,a=Number.parseFloat(i?.paddingLeft??`0`)||0,o=Number.parseFloat(i?.paddingRight??`0`)||0;return n?{left:(n.left-e.left+a)/r,width:Math.max((n.width-a-o)/r,320)}:{left:98,width:Math.max(lw-196,320)}}function ol(e,t){if(!V.value||!v.value)return null;let n=rc(e,t),r=al();if(!n||!r)return null;let i=ac();if(!i.length){let i=V.value.view.posAtCoords({left:e,top:t})?.pos??V.value.state.doc.content.size;return{left:r.left,top:Math.max(52,n.y),width:r.width,range:{from:i,to:i}}}for(let e of i){let t=e.rect.top+e.rect.height/2;if(n.y<t)return{left:r.left,top:e.rect.top,width:r.width,range:{from:e.from,to:e.from}}}let a=i[i.length-1];return{left:r.left,top:a.rect.top+a.rect.height,width:r.width,range:{from:a.to,to:a.to}}}function sl(e){if(!Mr.value||je.value||V.value?.view.dragging||!tl(e.dataTransfer))return dr.value=null,!1;let t=ol(e.clientX,e.clientY);return t?(e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`),dr.value=t,!0):(dr.value=null,!1)}function cl(){!lr.value||!F.value||(ur.value=ac().filter(e=>ic(e.rect,F.value)).map(e=>e.pos))}function ll(){return V.value?Uc(new o.Slice(o.Fragment.fromArray(I.value.map(e=>e.node)),0,0)):null}function ul(){if(!V.value)return null;if(I.value.length){let e=[...I.value].sort((e,t)=>e.from-t.from);return{from:e[0].from,to:e[e.length-1].to}}let e=V.value.state.selection;return{from:e.from,to:e.to}}function dl(){if(!V.value||!I.value.length)return null;let e=[...I.value].sort((e,t)=>e.from-t.from),t=Math.max(0,Math.min(V.value.state.doc.content.size,e[0].from+1)),n=Math.max(t,Math.min(V.value.state.doc.content.size,e[e.length-1].to-1));return t<n?{from:t,to:n}:null}function pl(){let e=V.value?.chain().focus(),t=dl();return e&&t?e.setTextSelection(t):e}function hl(e){if(!V.value||!Mr.value||!e.length)return!1;let t=ul();if(!t)return!1;let n=V.value.chain().focus().insertContentAt(t,e,{updateSelection:!0}).run();return n&&$s(),n}function gl(){if(!V.value||!Mr.value||!I.value.length)return;let e=I.value.map(e=>({from:e.from,to:e.to})).sort((e,t)=>t.from-e.from),t=V.value.chain().focus();e.forEach(e=>{t=t.deleteRange(e)}),t.run(),$s()}function _l(e){if(!Mr.value||je.value||e.button!==0||!v.value||!v.value.contains(e.target)||(e.target instanceof Node&&V.value?.view.dom.contains(e.target)&&lc(),tc(e.target)))return;ec(),$s();let t=V.value?.view.dom;if(!t)return;let n=v.value.getBoundingClientRect(),r=t.getBoundingClientRect(),i=getComputedStyle(t),a=t.offsetWidth>0?r.width/t.offsetWidth:pa.value||1,o=r.left+(Number.parseFloat(i.paddingLeft)||0)*a,s=r.right-(Number.parseFloat(i.paddingRight)||0)*a;!(e.clientX>=n.left&&e.clientX<=n.right&&e.clientY>=n.top&&e.clientY<=n.bottom)||e.clientX>=o&&e.clientX<=s||(e.preventDefault(),sr.value={x:e.clientX,y:e.clientY},cr.value={x:e.clientX,y:e.clientY})}function vl(e){sl(e)}function yl(e){sl(e)}function bl(e){if(!v.value||!dr.value)return;let t=v.value.getBoundingClientRect();e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=t.top&&e.clientY<=t.bottom||(dr.value=null)}async function xl(e){if(!V.value||!Mr.value||je.value||V.value.view.dragging||!tl(e.dataTransfer)){dr.value=null;return}e.preventDefault(),e.stopPropagation();let t=rl(e.dataTransfer),n=nl(e.dataTransfer),r=il(e.dataTransfer),i=dr.value??ol(e.clientX,e.clientY);if(dr.value=null,!(!t&&!n.length&&!r.length||!i)){if(t){await ns(`video`,t.name,async()=>{let e=await rs(t,`video`);return V.value?.chain().focus().insertContentAt(i.range,{type:`videoBlock`,attrs:{assetId:e.assetId||``,src:e.url,name:e.name,description:e.description||``,mimeType:e.mimeType||`video/mp4`,align:`left`,widthPercent:100,height:220}},{updateSelection:!0}).run(),!0},e=>Yo({kind:`video`,fileName:t.name,error:e}));return}n.length&&await ns(`image`,n.length>1?`${n[0]?.name||`图片`} 等 ${n.length} 张图片`:n[0]?.name||`图片`,async()=>{let e=await Promise.all(n.map(async e=>{let t=await rs(e,`image`);return{assetId:t.assetId,src:t.url,alt:t.alt||t.name,name:t.name,description:t.description||``,link:``,rotation:0}}));return V.value?.chain().focus().insertContentAt(i.range,{type:`imageBlock`,attrs:{images:e.map(Du),widthPercent:100,align:`left`,height:146}},{updateSelection:!0}).run(),!0},e=>Yo({kind:`image`,fileName:n[0]?.name||``,error:e})),r.length&&await ns(`file`,r.length>1?`${r[0]?.name||`文件`} 等 ${r.length} 个文件`:r[0]?.name||`文件`,async()=>{let e=await Promise.all(r.map(async e=>{let t=await rs(e,`file`);return{assetId:t.assetId,url:t.url,name:t.name,size:t.size,mimeType:t.mimeType}})),t=V.value?.state.selection.from??i.range.from,a=n.length?{from:t,to:t}:i.range;return V.value?.chain().focus().insertContentAt(a,e.map(e=>({type:`localFileBlock`,attrs:{assetId:e.assetId||``,url:e.url,name:e.name,size:Math.max(0,Number(e.size??0)||0),mimeType:e.mimeType||``}})),{updateSelection:!0}).run()&&e.forEach(e=>d(`local-file-upload`,e)),!0},e=>Yo({kind:`file`,fileName:r[0]?.name||``,error:e}))}}function Sl(){if(sr.value){if(!lr.value&&!ur.value.length){ec();return}cl(),ec()}}function Cl(){Qr.value&&(Le.value=!Le.value,Le.value?js():(Ft.value=null,Rt.value=0,zt.value=0,Bt.value=0,js()),Ue.value=!1,We.value=!1,Ge.value=!1,Ke.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1)}function wl(){Po.value&&(Re.value=!Re.value,Le.value=!1)}function Ol(e){pl()?.setTextAlign(e).run(),Re.value=!1}function kl(e){Ft.value=e,e!==`table`&&(Rt.value=0,zt.value=0),e!==`columns`&&(Bt.value=0),e!==`countdown`&&(qt.value=!1),e===`countdown`&&!Ht.value&&js()}function Al(e,t){Rt.value=e,zt.value=t}function jl(){Rt.value=0,zt.value=0}function Ml(e){Bt.value=e}function Nl(){Bt.value=0}function Pl(e){if(e instanceof HTMLElement){ne.value=e;return}let t=e&&`$el`in e?e.$el:null;ne.value=t instanceof HTMLElement?t:null}function Fl(e){let t=e.target;ie.value=t instanceof HTMLElement?t.scrollTop:0}function Il(e,t){return(e instanceof Element?e:e?.parentElement??null)?.closest(t)??null}function Ll(){Z?.(),Z=null,hn.value?.classList.remove(`norio-office-rich-table-wrapper--active`),mn.value=null,hn.value=null,vn.value=null,yn.value=[],bn.value=[],Sn.value=[],Cn.value=[],wn.value=null,Tn.value=null}function Rl(){if(!V.value?.isActive(`countdownBlock`)){gn.value=null,_n.value=null,Jt.value=!1;return}let e=V.value.state.selection;if(e instanceof a.NodeSelection&&e.node.type.name===`countdownBlock`){let t=V.value.view.nodeDOM(e.from);gn.value=t instanceof HTMLElement?t:null,_n.value=e.from;return}gn.value=Il(window.getSelection()?.anchorNode??null,`.norio-office-rich-countdown-block`),_n.value=null}function zl(){if(!V.value?.isActive(`table`)||!v.value){Ll();return}let e=V.value.state.selection,t=e instanceof a.NodeSelection&&e.node.type.name===`table`?e.from:null;for(let n=e.$from.depth;t===null&&n>0;--n)e.$from.node(n).type.name===`table`&&(t=e.$from.before(n));let n=t===null?null:V.value.view.nodeDOM(t),r=n instanceof HTMLTableElement?n:n instanceof Element?n.querySelector(`table`):null,i=r?.closest(`.tableWrapper`);if(!r||!i){Ll();return}if(hn.value&&hn.value!==i&&hn.value.classList.remove(`norio-office-rich-table-wrapper--active`),hn.value!==i){Z?.();let e=()=>{Bl()};i.addEventListener(`scroll`,e,{passive:!0}),Z=()=>{i.removeEventListener(`scroll`,e)}}i.classList.add(`norio-office-rich-table-wrapper--active`),mn.value=r,hn.value=i;let o=v.value.getBoundingClientRect(),s=i.getBoundingClientRect(),c=pa.value||1;vn.value={left:(s.left-o.left)/c,top:(s.top-o.top)/c,width:s.width/c,height:s.height/c};let l=r.rows.item(0),u=[],d=[];if(l){let e=Array.from(l.cells).map((e,t)=>{let n=e.getBoundingClientRect(),r=Math.max(n.left,s.left),i=Math.min(n.right,s.right)-r;return i<8?null:{index:t,left:(r-o.left)/c,width:i/c,rawLeft:n.left,rawRight:n.right}}).filter(e=>!!e);u.push(...e.map(e=>({index:e.index,left:e.left,width:e.width}))),e.forEach((t,n)=>{t.rawLeft>=s.left-.5&&d.push({key:`column-before-${t.index}`,insertIndex:t.index,left:(t.rawLeft-o.left)/c}),n===e.length-1&&t.rawRight<=s.right+.5&&d.push({key:`column-after-${t.index}`,insertIndex:t.index+1,left:(t.rawRight-o.left)/c})})}let f=[],p=[],m=Array.from(r.rows).map((e,t)=>{let n=(e.cells.item(0)??e).getBoundingClientRect(),r=Math.max(n.top,s.top),i=Math.min(n.bottom,s.bottom)-r;return i<8?null:{index:t,top:(r-o.top)/c,height:i/c,rawTop:n.top,rawBottom:n.bottom}}).filter(e=>!!e);f.push(...m.map(e=>({index:e.index,top:e.top,height:e.height}))),m.forEach((e,t)=>{e.rawTop>=s.top-.5&&p.push({key:`row-before-${e.index}`,insertIndex:e.index,top:(e.rawTop-o.top)/c}),t===m.length-1&&e.rawBottom<=s.bottom+.5&&p.push({key:`row-after-${e.index}`,insertIndex:e.index+1,top:(e.rawBottom-o.top)/c})}),yn.value=u,bn.value=f,Sn.value=d,Cn.value=p}function Bl(){(0,t.nextTick)(()=>{zl(),Rl()})}function Vl(){return!1}function Hl(){return mn.value?{getBoundingClientRect:()=>mn.value.getBoundingClientRect(),contextElement:mn.value}:null}function Ul(){return gn.value?{getBoundingClientRect:()=>gn.value.getBoundingClientRect(),contextElement:gn.value}:null}function Wl(){Be.value=!1,ze.value=!ze.value}function Gl(){ze.value=!1,Be.value=!Be.value}function Kl(){(xr.value||Be.value||[`table-theme`,`properties`,`color`,`divider-style`,`divider-color`,`highlight-settings`,...Mt].includes(j.value??``))&&(He.value+=1)}function ql(){let e=ba.value;!V.value?.isEditable||e?.node.type.name!==`table`||(gc(e),Cr.value=e.from,j.value=`table-theme`,Be.value=!1,ze.value=!1)}function Jl(e){Cr.value!==null&&Zl(Cr.value,e)}function Yl(){j.value=null,Cr.value=null}function Xl(e){if(!V.value?.isEditable)return;let t=V.value.state.selection,n=t instanceof a.NodeSelection&&t.node.type.name===`table`?{node:t.node,pos:t.from,start:t.from+1}:(0,s.findTable)(t.$from);n&&Zl(n.pos,e)}function Zl(e,t){if(!V.value?.isEditable)return;let n=V.value.state.doc.nodeAt(e);if(n?.type.name!==`table`)return;let r=ml(t),i=V.value.state.tr.setNodeMarkup(e,void 0,{...n.attrs,tableTheme:r});n.forEach((t,n)=>{t.forEach((t,r)=>{t.attrs.backgroundColor&&i.setNodeMarkup(e+n+r+2,void 0,{...t.attrs,backgroundColor:null})})}),V.value.view.dispatch(i),Bl()}function Ql(e){V.value&&(V.value.chain().focus().setCellAttribute(`backgroundColor`,e).run(),ze.value=!1,Bl())}function $l(e){if(!V.value||!mn.value)return;let t=(0,s.findTable)(V.value.state.selection.$from);if(!t)return;let n=s.TableMap.get(t.node);if(e<0||e>=n.width)return;let r=t.start+n.positionAt(0,e,t.node),i=t.start+n.positionAt(n.height-1,e,t.node),a=V.value.state.doc.resolve(r),o=V.value.state.doc.resolve(i),c=s.CellSelection.colSelection(a,o);V.value.view.dispatch(V.value.state.tr.setSelection(c).scrollIntoView()),wn.value=e,Tn.value=null,Bl()}function eu(e){if(!V.value||!mn.value)return;let t=(0,s.findTable)(V.value.state.selection.$from);if(!t)return;let n=s.TableMap.get(t.node);if(e<0||e>=n.height)return;let r=t.start+n.positionAt(e,0,t.node),i=t.start+n.positionAt(e,n.width-1,t.node),a=V.value.state.doc.resolve(r),o=V.value.state.doc.resolve(i),c=s.CellSelection.rowSelection(a,o);V.value.view.dispatch(V.value.state.tr.setSelection(c).scrollIntoView()),Tn.value=e,wn.value=null,Bl()}function tu(e){if(!V.value||!mn.value)return;let t=mn.value.rows.item(0),n=t?Array.from(t.cells):[];if(n.length!==0){if(e<=0){let e=n[0],t=V.value.view.posAtDOM(e,0)+1;V.value.chain().focus(t).addColumnBefore().run()}else{let t=n[Math.min(e-1,n.length-1)],r=V.value.view.posAtDOM(t,0)+1;V.value.chain().focus(r).addColumnAfter().run()}wn.value=null,Tn.value=null,Bl()}}function nu(e){if(!V.value||!mn.value)return;let t=Array.from(mn.value.rows);if(t.length!==0){if(e<=0){let e=t[0].cells.item(0);if(!e)return;let n=V.value.view.posAtDOM(e,0)+1;V.value.chain().focus(n).addRowBefore().run()}else{let n=t[Math.min(e-1,t.length-1)].cells.item(0);if(!n)return;let r=V.value.view.posAtDOM(n,0)+1;V.value.chain().focus(r).addRowAfter().run()}wn.value=null,Tn.value=null,Bl()}}function ru(e,t){if(!V.value)return;let n=Ws();if(!n){Le.value=!1,Ft.value=null,jl();return}V.value.chain().focus().deleteRange(n).insertTable({rows:e,cols:t,withHeaderRow:!1}).run(),Le.value=!1,Ft.value=null,jl(),Bl()}function iu(){Wo.value&&(V.value?.chain().focus().addRowBefore().run(),Bl())}function au(){Wo.value&&(V.value?.chain().focus().addRowAfter().run(),Bl())}function ou(){Go.value&&(V.value?.chain().focus().addColumnBefore().run(),Bl())}function su(){Go.value&&(V.value?.chain().focus().addColumnAfter().run(),Bl())}function cu(){V.value?.chain().focus().deleteRow().run(),Bl()}function lu(){V.value?.chain().focus().deleteColumn().run(),Bl()}function uu(){V.value?.chain().focus().mergeCells().run(),Bl()}function du(){V.value?.chain().focus().splitCell().run(),Bl()}function fu(){if(!V.value)return;let e=V.value.state.selection,t=V.value.state.tr;if(e instanceof s.CellSelection){let n=[];e.forEachCell((e,t)=>{n.push({pos:t,node:e})});for(let e=n.length-1;e>=0;--e){let r=n[e];if(!r.node)continue;let i=r.node.type.createAndFill(r.node.attrs);i&&t.replaceWith(r.pos,r.pos+r.node.nodeSize,i)}V.value.view.dispatch(t.scrollIntoView()),Bl();return}try{let e=(0,s.selectionCell)(V.value.state),t=e.nodeAfter;if(!t)return;let n=t.type.createAndFill(t.attrs);if(!n)return;let r=V.value.state.tr.replaceWith(e.pos,e.pos+t.nodeSize,n);V.value.view.dispatch(r.scrollIntoView()),Bl()}catch{}}function pu(){if(!(!V.value||!Ko.value)){if(Za.value.isRowSelection){cu();return}if(Za.value.isColumnSelection){lu();return}fu()}}function mu(e){return{type:`columnsBlock`,attrs:{widths:Array.from({length:e},()=>100/e)},content:Array.from({length:e},()=>({type:`columnsColumn`,content:[{type:`paragraph`}]}))}}function hu(e){switch(e){case`paragraph`:return{type:`paragraph`};case`heading-1`:return{type:`heading`,attrs:{level:1}};case`heading-2`:return{type:`heading`,attrs:{level:2}};case`heading-3`:return{type:`heading`,attrs:{level:3}};case`heading-4`:return{type:`heading`,attrs:{level:4}};case`heading-5`:return{type:`heading`,attrs:{level:5}};case`heading-6`:return{type:`heading`,attrs:{level:6}};case`bullet-list`:return{type:`bulletList`,content:[{type:`listItem`,content:[{type:`paragraph`}]}]};case`ordered-list`:return{type:`orderedList`,content:[{type:`listItem`,content:[{type:`paragraph`}]}]};case`task-list`:return{type:`taskList`,content:[{type:`taskItem`,attrs:{checked:!1},content:[{type:`paragraph`}]}]};case`code-block`:return{type:`codeBlock`,attrs:{language:`plain_text`,wrapLines:!1,darkTheme:!1,fixedHeight:!1}};case`highlight-block`:return{type:`highlightBlock`,attrs:{titleEnabled:!0,emojiEnabled:!0,title:`高亮块`,emoji:`✍️`},content:[{type:`paragraph`}]};case`blockquote`:return{type:`blockquote`,content:[{type:`paragraph`}]};case`divider`:return[{type:`horizontalRule`},{type:`paragraph`}];default:return null}}function gu(e){V.value&&(V.value.chain().focus().insertContent(e).run(),Le.value=!1,Ze.value=!1,Ft.value=null,jl())}function _u(e){if(!V.value)return;let t=Ws();if(!t){Le.value=!1,Ft.value=null,jl(),Nl();return}V.value.chain().focus().insertContentAt({from:t.from,to:t.to},mu(e),{updateSelection:!0}).run(),Le.value=!1,Ft.value=null,jl(),Nl()}function vu(){if(!V.value)return;let e=Ws();if(!e){Le.value=!1,Ft.value=null,js();return}V.value.chain().focus().insertContentAt({from:e.from,to:e.to},{type:`countdownBlock`,attrs:{targetTimestamp:0,mode:`duration`,color:`#ff8b00`,reminderEnabled:!0}},{updateSelection:!0}).run(),Le.value=!1,Ft.value=null,js()}function yu(){if(Vt.value===`deadline`)return new Date(Ht.value).getTime();let e=Ms(Ut.value),t=Ms(Wt.value,23),n=Ms(Gt.value,59),r=Ms(Kt.value,59);return Date.now()+(((e*24+t)*60+n)*60+r)*1e3}function bu(){if(!V.value||_n.value===null)return;let e=yu();!Number.isFinite(e)||e<=Date.now()||(V.value.chain().focus().setNodeSelection(_n.value).updateAttributes(`countdownBlock`,{targetTimestamp:Math.floor(e),mode:Vt.value}).run(),qt.value=!1,Jt.value=!1,Bl())}function xu(){if(!V.value||_n.value===null)return;let e=V.value.state.doc.nodeAt(_n.value);!e||e.type.name!==`countdownBlock`||(V.value.chain().focus().deleteRange({from:_n.value,to:_n.value+e.nodeSize}).run(),qt.value=!1,Jt.value=!1,gn.value=null,_n.value=null)}function Su(){It.value=!1,Lt.value=``}function Cu(){C.value&&(C.value.value=``,C.value.click())}async function wu(e){if(!V.value)return;let t=e.target,n=t.files?.[0];if(!n)return;let r=nv(await n.text()),i=Ws();i&&(V.value.chain().focus().insertContentAt({from:i.from,to:i.to},r,{updateSelection:!0}).run(),Le.value=!1,Ft.value=null,jl(),t.value=``)}function Tu(e){if(!V.value)return;let t=Ws();if(!t){Su(),Le.value=!1,Ft.value=null,jl();return}V.value.chain().focus().insertContentAt({from:t.from,to:t.to},{type:`formulaBlock`,attrs:{latex:e}},{updateSelection:!0}).run(),Su(),Le.value=!1,Ft.value=null,jl()}function Eu(e){if(!V.value)return!1;let t=Ws();return t?(V.value.chain().focus().insertContentAt({from:t.from,to:t.to},e,{updateSelection:!0}).run(),!0):!1}function Du(e){return{id:qo(),assetId:e.assetId,src:e.src,alt:e.alt||e.name||``,name:e.name||e.alt||``,description:e.description||``,descriptionVisible:e.descriptionVisible,link:e.link||``,linkTarget:e.linkTarget,rotation:Number(e.rotation??0)||0}}function Ou(e){let t=(Array.isArray(e)?e:[e]).filter(e=>e?.src).slice(0,4);return t.length?Eu({type:`imageBlock`,attrs:{images:t.map(Du),widthPercent:100,align:`left`,height:146}}):!1}function ku(e){return e.src?Eu({type:`videoBlock`,attrs:{assetId:e.assetId||``,src:e.src,name:e.name||``,description:e.description||``,mimeType:e.mimeType||`video/mp4`,align:e.align||`left`,widthPercent:Math.max(30,Math.min(100,Number(e.widthPercent??100)||100)),height:Math.max(180,Math.min(640,Number(e.height??220)||220))}}):!1}function Au(e){if(!e.url||!e.name)return!1;let t=e.displayMode===`card`||e.displayMode===`preview`?e.displayMode:`text`;return Eu({type:`linkBlock`,attrs:{title:e.name,url:e.url,displayMode:t,align:e.align||`left`,widthPercent:Math.max(30,Math.min(100,Number(e.widthPercent??100)||100)),height:Math.max(240,Math.min(860,Number(e.height??420)||420))}})}function ju(e){return!e.url||!e.name?!1:Eu({type:`localFileBlock`,attrs:{assetId:e.assetId||``,url:e.url,name:e.name,size:Math.max(0,Number(e.size??0)||0),mimeType:e.mimeType||``}})}function Mu(e){return typeof crypto<`u`&&`randomUUID`in crypto?`${e}-${crypto.randomUUID()}`:`${e}-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function Nu(){return Gr.value}function Pu(e){return(e?.name||e?.id||`?`).slice(0,2).toUpperCase()}function Fu(e){return{backgroundColor:e?.color||`#4c7dff`}}function Iu(e){if(!e)return``;let t=new Date(e);if(Number.isNaN(t.getTime()))return``;let n=Date.now()-t.getTime(),r=60*1e3,i=60*r;return 24*i,n<r?`刚刚`:n<i?`${Math.max(1,Math.floor(n/r))} 分钟前`:n<864e5?`${Math.floor(n/i)} 小时前`:t.toLocaleDateString()}function Lu(e,t){return t?`${e}:${t}`:e}function Ru(e,t){return lt.value[Lu(e,t)]??``}function zu(e,t,n){let r=Lu(e,n);lt.value={...lt.value,[r]:t}}function Bu(e,t,n){let r=t.target;zu(e,r?.value??``,n),$i(r,{mode:`draft`,threadId:e,parentId:n})}function Vu(e,t,n){if(ia(t)){t.preventDefault(),t.stopPropagation();return}(t.ctrlKey||t.metaKey)&&t.key===`Enter`&&(t.preventDefault(),hd(e,n))}function Hu(e,t){return ut.value[Lu(e,t)]??[]}function Uu(e,t,n){let r=Lu(e,n);ut.value={...ut.value,[r]:t}}function Wu(e,t){let n=Lu(e,t),{[n]:r,...i}=lt.value,{[n]:a,...o}=ut.value,{[n]:s,...c}=dt.value;lt.value=i,ut.value=o,dt.value=c}function Gu(e){return e.comments.filter(e=>!e.parentId)}function Ku(e,t){let n=[],r=t=>{e.comments.filter(e=>e.parentId===t).forEach(e=>{n.push(e),r(e.id)})};return r(t.id),n}function qu(e,t){return t?e.comments.find(e=>e.id===t)??null:null}function Ju(e){return vt.value[e]??null}function Yu(e){return qu(e,Ju(e.id)??void 0)}function Xu(e,t){let n=Ju(e.id);return n?n===t.id||Ku(e,t).some(e=>e.id===n):!1}function Zu(e,t){vt.value={...vt.value,[e.id]:t.id},ct.value=e.id}function Qu(e,t){let{[e]:n,...r}=vt.value;vt.value=r,Wu(e,t)}function $u(e){return e.anchorText?.trim()||`已标注内容`}function ed(){if(!V.value)return null;let e=V.value.state.selection;if(!e.empty&&!(e instanceof s.CellSelection))return{from:e.from,to:e.to};let t=Ws();return t&&t.to>t.from?t:null}function td(e){return V.value&&V.value.state.doc.textBetween(e.from,e.to,` `).replace(/\s+/g,` `).trim()||`已标注内容`}function nd(e,t){if(!V.value||!e||t.to<=t.from)return!1;let n=V.value.state.schema.marks.commentMark;if(!n)return!1;let r=V.value.state.tr,i=!1,a=n.create({threadId:e});return V.value.state.doc.nodesBetween(t.from,t.to,(e,n)=>{if(!e.isText||!e.textContent.trim())return;let o=Math.max(n,t.from),s=Math.min(n+e.nodeSize,t.to);s<=o||(r=r.addMark(o,s,a),i=!0)}),i?(V.value.view.dispatch(r.scrollIntoView()),V.value.commands.focus(),!0):!1}function rd(e){if(!V.value||!e)return!1;let t=V.value.state.schema.marks.commentMark;if(!t)return!1;let n=V.value.state.tr,r=!1;return V.value.state.doc.descendants((i,a)=>{i.isText&&i.marks.some(n=>n.type===t&&n.attrs.threadId===e)&&(n=n.removeMark(a,a+i.nodeSize,t),r=!0)}),r&&V.value.view.dispatch(n),r}function id(e,t){if(t instanceof HTMLElement){yt.set(e,t);return}yt.delete(e)}function ad(){return y.value?.querySelector(`.norio-office-rich-comment-panel__scroll`)??null}function od(){return _.value?.querySelector(`.norio-office-rich-editor__scroll`)??null}function sd(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.top-r.top,a=Math.max(12,(r.height-n.height)/2),o=Math.max(0,t.scrollTop+i-a);t.scrollTo({top:o,behavior:`smooth`})}function cd(e){let t=v.value?.querySelectorAll(`[data-comment-thread-id]`)??[];return Array.from(t).find(t=>t.dataset.commentThreadId===e)??null}function ld(e){(0,t.nextTick)(()=>{let t=()=>{let t=cd(e),n=od();!t||!n||sd(t,n)};if(typeof window<`u`&&typeof window.requestAnimationFrame==`function`){window.requestAnimationFrame(()=>window.requestAnimationFrame(t)),typeof window.setTimeout==`function`&&window.setTimeout(t,120);return}t()})}function ud(e){(0,t.nextTick)(()=>{let t=yt.get(e),n=ad();!t||!n||sd(t,n)})}function dd(e){if(!V.value||!e)return!1;let t=V.value.state.schema.marks.commentMark;if(!t)return!1;let n=null,r=null;if(V.value.state.doc.descendants((i,a)=>{if(n!==null||!i.isText)return!1;if(i.marks.some(n=>n.type===t&&n.attrs.threadId===e))return n=a,r=a+i.nodeSize,!1}),n===null||r===null)return!1;ct.value=e;let i=a.TextSelection.create(V.value.state.doc,n,r);return V.value.view.dispatch(V.value.state.tr.setSelection(i)),V.value.view.dom.focus({preventScroll:!0}),ld(e),!0}function fd(e,t={}){ct.value=e.id,t.focusEditor!==!1&&(dd(e.id)||ld(e.id)),t.scrollCommentCard&&ud(e.id),d(`comment-select`,e)}function pd(){let e=Nu();if(!V.value||!e||!bo.value)return;let t=ed();if(!t)return;let n=Mu(`comment-thread`),r=td(t);nd(n,t)&&(gt.value={id:n,anchorText:r},ct.value=n,zu(n,``),Uu(n,[]))}function md(e){if(gt.value?.id!==e){Wu(e);return}rd(e),gt.value=null,ct.value=Kr.value[0]?.id??null,Wu(e)}function hd(e,t){let n=Nu(),r=Ru(e,t).trim(),i=Hu(e,t),a=Ki(r,qi(e,t)),o=Kr.value.find(t=>t.id===e),s=o?qu(o,t):null;if(!n||!r&&!i.length)return;let c=new Date().toISOString();if(gt.value?.id===e){let t=Mu(`comment`);d(`comment-create`,{threadId:e,commentId:t,anchorText:gt.value.anchorText,content:r,images:i,mentions:a,author:n,createdAt:c}),d(`comment-submit`,{action:`create`,threadId:e,commentId:t,content:r,images:i,mentions:a,author:n,createdAt:c}),gt.value=null}else{let o=Mu(`comment`);if(d(`comment-reply`,{threadId:e,commentId:o,parentId:t,targetCommentId:s?.id,targetUserId:s?.author.id,targetUserName:s?.author.name,content:r,images:i,mentions:a,author:n,createdAt:c}),d(`comment-submit`,{action:`reply`,threadId:e,commentId:o,targetCommentId:s?.id,targetUserId:s?.author.id,targetUserName:s?.author.name,content:r,images:i,mentions:a,author:n,createdAt:c}),t){let{[e]:t,...n}=vt.value;vt.value=n}}Wu(e,t)}function gd(e,t){ft.value=`${e}:${t.id}`,pt.value=t.content,mt.value=t.mentions??[]}function _d(e,t){return ft.value===`${e}:${t.id}`}function vd(e){let t=e.target;pt.value=t?.value??``;let[n=``,r=``]=ft.value?.split(`:`)??[];$i(t,{mode:`edit`,threadId:n,commentId:r})}function yd(e,t,n){if(ia(n)){n.preventDefault(),n.stopPropagation();return}(n.ctrlKey||n.metaKey)&&n.key===`Enter`&&(n.preventDefault(),xd(e,t))}function bd(){ft.value=null,pt.value=``,mt.value=[],Zi()}function xd(e,t){let n=pt.value.trim(),r=Ki(n,mt.value);if(!n)return;let i=new Date().toISOString();d(`comment-update`,{threadId:e,commentId:t.id,content:n,images:t.images,mentions:r,author:Gr.value??void 0,updatedAt:i}),d(`comment-submit`,{action:`update`,threadId:e,commentId:t.id,content:n,images:t.images,mentions:r,author:Gr.value??void 0,updatedAt:i}),bd()}function Sd(e,t){d(`comment-delete`,{threadId:e,commentId:t?.id}),t||rd(e)}function Cd(e){ht.value=Lu(e,Ju(e)??void 0),ee.value&&(ee.value.value=``,ee.value.click())}async function wd(e){let t=h.value??f.value;if(!t)throw Error(`Missing uploadCommentImage hook.`);return Jo(e,await t({file:e,kind:`image`}))}async function Td(e){let t=e.target,n=t?.files?.[0],r=ht.value;if(ht.value=null,!n||!r){t&&(t.value=``);return}if(!n.type.startsWith(`image/`)){Yo({kind:`image`,fileName:n.name,error:Error(`Please select an image file.`)}),t&&(t.value=``);return}await ns(`image`,n.name,async()=>{let e=await wd(n),[t=``,i]=r.split(`:`);return Uu(t,[...Hu(t,i),e],i),!0},e=>Yo({kind:`image`,fileName:n.name,error:e})),t&&(t.value=``)}function Ed(e,t,n){Uu(e,Hu(e,n).filter((e,n)=>n!==t),n)}function Dd(e){e.url&&(_t.value=e)}function Od(){_t.value=null}function kd(e){if(!Pr.value||!u.showComments)return;let t=(e.target?.closest?.(`[data-comment-thread-id]`))?.dataset.commentThreadId;if(!t)return;let n=Kr.value.find(e=>e.id===t);n?fd(n,{focusEditor:!1,scrollCommentCard:!0}):ct.value=t}function Ad(){w.value?.click()}function jd(e,t){let n=e[t];return typeof n==`string`?n:``}function Md(e,t,n=0){let r=Number(e[t]??n);return Number.isFinite(r)?r:n}function Nd(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants(t=>{t.type.name===`imageBlock`&&(Array.isArray(t.attrs.images)?t.attrs.images:[]).forEach(t=>{if(!t||typeof t!=`object`)return;let n=t,r=jd(n,`src`);r&&e.push({src:r,alt:jd(n,`alt`)||void 0,name:jd(n,`name`)||void 0,description:jd(n,`description`)||void 0,descriptionVisible:typeof n.descriptionVisible==`boolean`?n.descriptionVisible:void 0,link:jd(n,`link`)||void 0,linkTarget:n.linkTarget===`_self`?`_self`:`_blank`,rotation:Md(n,`rotation`,0)})})}),e}function Pd(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants(t=>{if(t.type.name!==`videoBlock`)return;let n=t.attrs,r=jd(n,`src`);if(!r)return;let i=jd(n,`align`);e.push({src:r,name:jd(n,`name`)||void 0,description:jd(n,`description`)||void 0,mimeType:jd(n,`mimeType`)||void 0,align:i===`center`||i===`right`?i:`left`,widthPercent:Md(n,`widthPercent`,100),height:Md(n,`height`,220)})}),e}function Fd(){if(!V.value)return[];let e=[];return V.value.state.doc.descendants(t=>{let n=t.attrs;if(t.type.name===`linkBlock`){let t=jd(n,`url`),r=jd(n,`title`);if(!t||!r)return;let i=jd(n,`displayMode`),a=jd(n,`align`);e.push({kind:`file`,url:t,name:r,displayMode:i===`card`||i===`preview`?i:`text`,align:a===`center`||a===`right`?a:`left`,widthPercent:Md(n,`widthPercent`,100),height:Md(n,`height`,420)});return}if(t.type.name===`localFileBlock`){let t=jd(n,`url`),r=jd(n,`name`);if(!t||!r)return;e.push({kind:`local-file`,url:t,name:r,size:Md(n,`size`,0),mimeType:jd(n,`mimeType`)||void 0})}}),e}function Id(e){let t=Ws();Le.value=!1,Ft.value=null,jl(),ot.value=t;let n=e===`image`?T.value:E.value;n&&(n.value=``,n.click())}async function Ld(e){let t=e.target,n=t?.files?.[0],r=ot.value??Ws();if(ot.value=null,!n){t&&(t.value=``);return}if(!n.type.startsWith(`image/`)){Yo({kind:`image`,fileName:n.name,error:Error(`Please select an image file.`)}),t&&(t.value=``);return}await ns(`image`,n.name,async()=>{let e=await rs(n,`image`),t={type:`imageBlock`,attrs:{images:[Du({assetId:e.assetId,src:e.url,alt:e.alt||e.name,name:e.name,description:e.description||``,link:``,rotation:0})],widthPercent:100}};return r?(V.value?.chain().focus().insertContentAt({from:r.from,to:r.to},t,{updateSelection:!0}).run(),!0):(V.value?.chain().focus().insertContent(t,{updateSelection:!0}).run(),!0)},e=>Yo({kind:`image`,fileName:n.name,error:e})),t&&(t.value=``)}async function Rd(e){let t=e.target,n=t?.files?.[0],r=ot.value??Ws();if(ot.value=null,!n){t&&(t.value=``);return}if(!n.type.startsWith(`video/`)){Yo({kind:`video`,fileName:n.name,error:Error(`Please select a video file.`)}),t&&(t.value=``);return}await ns(`video`,n.name,async()=>{let e=await rs(n,`video`),t={type:`videoBlock`,attrs:{assetId:e.assetId||``,src:e.url,name:e.name,description:e.description||``,mimeType:e.mimeType||`video/mp4`,align:`left`,widthPercent:100,height:220}};return r?(V.value?.chain().focus().insertContentAt({from:r.from,to:r.to},t,{updateSelection:!0}).run(),!0):(V.value?.chain().focus().insertContent(t,{updateSelection:!0}).run(),!0)},e=>Yo({kind:`video`,fileName:n.name,error:e})),t&&(t.value=``)}async function zd(e){let t=e.target,n=t?.files?.[0];if(!n){t&&(t.value=``);return}await ns(`file`,n.name,async()=>{let e=await rs(n,`file`),t={assetId:e.assetId,url:e.url,name:e.name,size:e.size,mimeType:e.mimeType};return ju(t)&&d(`local-file-upload`,t),t},e=>Yo({kind:`file`,fileName:n.name,error:e})),t&&(t.value=``)}function Bd(e){if(!V.value)return;if(e===`table`){kl(`table`);return}if(e===`emoji`){kl(`emoji`);return}if(e===`columns`){kl(`columns`);return}if(e===`countdown`){vu();return}if(e===`formula`){Lt.value=``,It.value=!0,Le.value=!1,Ft.value=null,jl();return}if(e===`markdown-import`){Le.value=!1,Ft.value=null,jl(),Cu();return}if(e===`local-file`){Le.value=!1,Ft.value=null,jl(),Ad();return}if(e===`image`){Id(`image`);return}if(e===`video`){Id(`video`);return}if(e===`link`){let e=Ws();if(!e){Le.value=!1;return}V.value.chain().focus().insertContentAt({from:e.from,to:e.to},{type:`linkBlock`,attrs:{title:``,url:``,displayMode:`preview`,align:`left`,widthPercent:100,height:420}},{updateSelection:!0}).run(),Le.value=!1,Ft.value=null,jl();return}let t=hu(e);if(!t){Le.value=!1,Ft.value=null,jl();return}let n=Ws();if(!n){Le.value=!1,Ft.value=null,jl();return}V.value.chain().focus().insertContentAt({from:n.from,to:n.to},t,{updateSelection:!0}).run(),Le.value=!1,Ft.value=null,jl()}function Vd(){pl()?.setParagraph().run()}function Hd(e){pl()?.toggleHeading({level:e}).run()}function Ud(){xo.value&&(Ue.value=!Ue.value,We.value=!1,Ge.value=!1,Ke.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1)}function Wd(e){e?Hd(e):Vd(),Ue.value=!1}function Gd(){pl()?.increaseIndent().run()}function Kd(){pl()?.decreaseIndent().run()}function qd(){So.value&&(We.value=!We.value,Ue.value=!1,Ge.value=!1,Ke.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1)}function Jd(e){let t=pl();t&&(e?t.setFontFamily(e).run():t.unsetFontFamily().run(),We.value=!1)}function Yd(){Ao.value&&(Ge.value=!Ge.value,Ue.value=!1,We.value=!1,Ke.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1)}function Xd(){Co.value&&(Ke.value=!Ke.value,Ue.value=!1,We.value=!1,Ge.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1)}function Zd(e){pl()?.setFontSize(e).run(),Ke.value=!1}function Qd(){wo.value&&(qe.value=!qe.value,Ue.value=!1,We.value=!1,Ge.value=!1,Ke.value=!1,Je.value=!1,Ye.value=!1)}function $d(e){pl()?.setColor(e).run(),$n.value=[e,...$n.value.filter(t=>t!==e)].slice(0,10)}function tf(){To.value&&(Je.value=!Je.value,Ue.value=!1,We.value=!1,Ge.value=!1,Ke.value=!1,qe.value=!1,Ye.value=!1)}function rf(e){pl()?.setBackgroundColor(e).run(),af(e)}function af(e){er.value=[e,...er.value.filter(t=>t.toLowerCase()!==e.toLowerCase())].slice(0,10)}function of(){!ei.value||!Ro.value||(Ye.value=!Ye.value,Ue.value=!1,We.value=!1,Ge.value=!1,Ke.value=!1,qe.value=!1,Je.value=!1,Xe.value=!1,Ze.value=!1)}function sf(){Mr.value&&(Ze.value=!Ze.value,Le.value=!1,Ft.value=null,Ue.value=!1,We.value=!1,Ge.value=!1,Ke.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1,Xe.value=!1)}function cf(){pl()?.toggleBold().run()}function lf(){pl()?.toggleItalic().run()}function uf(){pl()?.toggleUnderline().run()}function df(){pl()?.toggleStrike().run()}function ff(){pl()?.toggleCode().run()}function pf(){pl()?.toggleBulletList().run()}function mf(){pl()?.toggleOrderedList().run()}function hf(){pl()?.toggleTaskList().run()}function gf(){pl()?.toggleBlockquote().run()}function _f(e){V.value?.isActive(`blockquote`)&&V.value?.chain().focus().setQuoteStyle({quoteBorderColor:e,quoteBackgroundColor:Xa.value}).run()}function vf(e){V.value?.isActive(`blockquote`)&&V.value?.chain().focus().setQuoteStyle({quoteBorderColor:Ya.value,quoteBackgroundColor:e}).run()}function yf(){pl()?.unsetSubscript().toggleSuperscript().run(),Ge.value=!1}function bf(){pl()?.unsetSuperscript().toggleSubscript().run(),Ge.value=!1}function xf(){pl()?.unsetAllMarks().clearNodes().run()}function Sf(e){return po(e?t=>t.can().chain().focus().toggleHeading({level:e}).run():e=>e.can().chain().focus().setParagraph().run())}function Cf(e){return po(e?t=>t.can().chain().focus().setFontFamily(e).run():e=>e.can().chain().focus().unsetFontFamily().run())}function wf(e){return po(t=>t.can().chain().focus().setFontSize(e).run())}function Tf(e){return po(t=>t.can().chain().focus().setTextAlign(e).run())}function Ef(){return po(e=>e.can().chain().focus().toggleSuperscript().run())}function jf(){return po(e=>e.can().chain().focus().toggleSubscript().run())}function Mf(e){let t=e.target,n=t instanceof Element?t:null;L.value&&!v.value?.contains(t)&&!nc(t)&&$s(),(!t||!x.value?.contains(t))&&(Le.value=!1,Ft.value=null,jl()),n?.closest(`.norio-office-rich-block-side-control, .norio-office-rich-block-side-menu, .norio-office-rich-block-side-submenu, .norio-office-rich-block-side-table-theme`)||vc(),(!t||!te.value?.contains(t))&&(Xe.value=!1),qt.value&&t&&!O.value?.contains(t)&&!ae.value?.contains(t)&&!(Jt.value&&oe.value?.contains(t))&&!(Ft.value===`countdown`&&x.value?.contains(t))&&(qt.value=!1),Jt.value&&t&&!se.value?.contains(t)&&!oe.value?.contains(t)&&(Jt.value=!1),(!t||!le.value?.contains(t))&&(Re.value=!1),(!t||!xe.value?.contains(t))&&(Ge.value=!1),(!t||!ye.value?.contains(t))&&(Ue.value=!1),(!t||!be.value?.contains(t))&&(We.value=!1),(!t||!Se.value?.contains(t))&&(Ke.value=!1),(!t||!Ce.value?.contains(t))&&(qe.value=!1),(!t||!De.value?.contains(t))&&(Je.value=!1),(!t||!Oe.value?.contains(t))&&(Ye.value=!1),(!t||!D.value?.contains(t))&&(Ze.value=!1),Qe.value&&t&&!ke.value?.contains(t)&&!v.value?.contains(t)&&ji(),bt.value&&t&&!b.value?.contains(t)&&!n?.closest?.(`.norio-office-rich-comment-composer`)&&Zi(),(!t||!me.value?.contains(t))&&(ze.value=!1),(!t||!he.value?.contains(t))&&(Be.value=!1),hn.value&&n&&hn.value.contains(n)&&Uf(),window.setTimeout(()=>{Bl()},0)}function Nf(e){if(je.value&&(ar.value=e.clientX,or.value=e.clientY),sr.value){cr.value={x:e.clientX,y:e.clientY};let t=e.clientX-sr.value.x,n=e.clientY-sr.value.y;!lr.value&&Math.abs(t)>=12&&Math.abs(n)>=12&&(lr.value=!0,window.getSelection()?.removeAllRanges()),lr.value&&(e.preventDefault(),cl())}if(!e.buttons)return;let t=e.target,n=t instanceof Element?t:null;hn.value&&n&&hn.value.contains(n)&&Uf()}function Pf(e){if(e.key===`Escape`&&je.value){e.preventDefault(),Js();return}if(e.key===`Escape`&&Xe.value){Xe.value=!1,te.value?.querySelector(`button`)?.focus({preventScroll:!0});return}if(e.key===`Escape`&&Tr.value){Tr.value=null;return}if(e.key===`Escape`&&[`properties`,`color`,`divider-style`,`divider-color`,`highlight-settings`,...Mt].includes(j.value??``)){vc();return}if(e.key===`Escape`&&j.value===`table-theme`){Yl();return}if(e.key===`Escape`&&Be.value){Be.value=!1;return}if(e.key===`Escape`&&_t.value){Od();return}if(Qe.value&&zi(e)){e.preventDefault();return}if(bt.value&&ia(e)){e.preventDefault();return}if(e.key===`Escape`&&L.value){$s(),ec();return}if((e.ctrlKey||e.metaKey)&&L.value&&Ff(e.target)){let t=e.key.toLowerCase();if(t===`c`||t===`x`){e.preventDefault(),document.execCommand(t===`c`?`copy`:`cut`);return}}(e.key===`Delete`||e.key===`Backspace`)&&L.value&&Mr.value&&(e.preventDefault(),gl())}function Ff(e){if(!V.value||!(e instanceof Node))return!1;let t=e instanceof Element?e:e.parentElement;return t?.closest(`input, textarea, select`)||t?.closest(`[contenteditable]`)?.getAttribute(`contenteditable`)===`false`?!1:V.value.view.dom.contains(e)||L.value&&(_.value?.contains(e)||e===document.body)}function If(e){if(Dr){Dr.written=Wc(e,Dr.payload);return}if(Ff(e.target))if(L.value){let t=ll();t&&Wc(e,t)}else V.value&&!V.value.state.selection.empty&&(Er.value=Uc(V.value.state.selection.content()))}function Lf(e){if(!(!Ff(e.target)||!Mr.value))if(L.value){let t=ll();t&&Wc(e,t)&&gl()}else V.value&&!V.value.state.selection.empty&&(Er.value=Uc(V.value.state.selection.content()))}function Rf(e){if(!(!e||!V.value))try{let t=JSON.parse(e);if(!Array.isArray(t)||!t.length)return;for(let e of t){let t=V.value.state.schema.nodeFromJSON(e);if(!t.isBlock)return;t.check()}return t}catch{return}}function zf(e){if(!Mr.value||!e.clipboardData||!Ff(e.target))return;let t=e.clipboardData.getData(`text/html`),n=e.clipboardData.getData(`text/plain`),r=Rf(e.clipboardData.getData(hw));(t||n||r)&&(Er.value={html:t,text:n,json:r}),r&&(L.value||!t&&!n&&!V.value?.state.selection.$from.parent.type.spec.code)&&(e.preventDefault(),e.stopPropagation(),hl(r))}(0,t.watch)(()=>Br.value?.user,e=>{!V.value||!e||!Br.value?.provider||V.value.commands.updateUser(e)},{deep:!0});let Bf=null,Z=null,Vf=null,Hf=null;function Uf(){Hf?.();let e=()=>{zl(),Vf=window.requestAnimationFrame(e)},t=()=>{Hf?.(),zl()};Vf=window.requestAnimationFrame(e),document.addEventListener(`mouseup`,t,{once:!0}),Hf=()=>{Vf!==null&&(window.cancelAnimationFrame(Vf),Vf=null),document.removeEventListener(`mouseup`,t),Hf=null}}function Wf(){if(Bf?.(),Bf=null,!V.value)return;let e=({transaction:e}={})=>{e?.getMeta(`textSelectionBubbleMenu`)===`updatePosition`||e?.getMeta(`tableBubbleMenu`)===`updatePosition`||(Ot.value+=1,V.value?.isActive(`table`)||(Be.value=!1),Bl(),ua(),Ni())},n=({transaction:e})=>{let n=wr.value;if(n!==null&&e.docChanged){let r=pr.value?.node.type.name,i=e.mapping.mapResult(n+1,-1),a=i.pos-1,o=a>=0?e.doc.nodeAt(a):null;i.deletedAcross||!o||o.type.name!==r?vc():(wr.value=a,pr.value&&gc({...pr.value,pos:a,from:a,to:a+o.nodeSize,node:o}),(0,t.nextTick)(()=>{if(wr.value!==a)return;let e=ac().find(e=>e.pos===a);e&&gc(sc(e))}))}e.docChanged&&pr.value?.node.type.name===`horizontalRule`&&e.getMeta(`officeBlockSideAttrs`)!==pr.value.pos&&vc();let r=Cr.value;if(j.value!==`table-theme`||r===null||!e.docChanged)return;let i=e.mapping.mapResult(r+1,-1);i.deletedAcross||i.pos<1||e.doc.nodeAt(i.pos-1)?.type.name!==`table`?vc():(Cr.value=i.pos-1,(0,t.nextTick)(()=>{if(j.value!==`table-theme`)return;let e=ac().find(e=>e.from===Cr.value);e&&gc(sc(e))}))};V.value.on(`transaction`,n),V.value.on(`selectionUpdate`,e),V.value.on(`transaction`,e),V.value.on(`focus`,e),V.value.on(`blur`,e),Bf=()=>{V.value?.off(`transaction`,n),V.value?.off(`selectionUpdate`,e),V.value?.off(`transaction`,e),V.value?.off(`focus`,e),V.value?.off(`blur`,e)},Bl(),ua()}return(0,t.onMounted)(()=>{da(),document.addEventListener(`selectionchange`,uc),document.addEventListener(`fullscreenchange`,Gs),document.addEventListener(`mousedown`,Mf),document.addEventListener(`mousemove`,Nf),document.addEventListener(`mouseup`,Sl),document.addEventListener(`keydown`,Pf),document.addEventListener(`copy`,If,!0),document.addEventListener(`cut`,Lf,!0),document.addEventListener(`paste`,zf,!0),window.addEventListener(`resize`,Bl),window.addEventListener(`resize`,Hs),window.addEventListener(`resize`,ki),window.addEventListener(`resize`,Xi),window.addEventListener(`resize`,da),window.addEventListener(`scroll`,ki,!0),window.addEventListener(`scroll`,Xi,!0),window.addEventListener(`scroll`,Kl,!0),Wf(),(0,t.nextTick)(fa)}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`selectionchange`,uc),br!==null&&clearTimeout(br),Ta?.disconnect(),document.removeEventListener(`fullscreenchange`,Gs),document.removeEventListener(`mousedown`,Mf),document.removeEventListener(`mousemove`,Nf),document.removeEventListener(`mouseup`,Sl),document.removeEventListener(`keydown`,Pf),document.removeEventListener(`copy`,If,!0),document.removeEventListener(`cut`,Lf,!0),document.removeEventListener(`paste`,zf,!0),window.removeEventListener(`resize`,Bl),window.removeEventListener(`resize`,Hs),window.removeEventListener(`resize`,ki),window.removeEventListener(`resize`,Xi),window.removeEventListener(`resize`,da),window.removeEventListener(`scroll`,ki,!0),window.removeEventListener(`scroll`,Xi,!0),window.removeEventListener(`scroll`,Kl,!0),Hf?.(),Bf?.(),Ll()}),(0,t.watch)(Mr,e=>{V.value?.setEditable(e,!1),e||(vc(),fr.value=null,ec(),$s(),ji(),ze.value=!1,Be.value=!1)},{flush:`sync`}),(0,t.watch)(Nr,e=>{e||(Le.value=!1,Ft.value=null,Re.value=!1,Ue.value=!1,We.value=!1,Ge.value=!1,Ke.value=!1,qe.value=!1,Je.value=!1,Ye.value=!1,Ze.value=!1,qt.value=!1)}),(0,t.watch)(Vr,e=>{e||ji()}),(0,t.watch)(Hr,e=>{e||Zi()}),(0,t.watch)(Kr,e=>{if(!e.length){ct.value=null;return}(!ct.value||!e.some(e=>e.id===ct.value))&&(ct.value=e[0]?.id??null)}),(0,t.watch)(()=>u.modelValue,e=>{if(!V.value||!e||Br.value)return;let t=V.value.getJSON();JSON.stringify(t)!==JSON.stringify(e)&&(V.value.commands.setContent(e,{emitUpdate:!1}),ua())}),(0,t.watch)(Vt,e=>{e!==`deadline`&&(qt.value=!1)}),(0,t.watch)(qt,e=>{e&&(0,t.nextTick)(Hs)}),(0,t.watch)(Qt,e=>{!qt.value||Vt.value!==`deadline`||/^\d{2}:\d{2}$/.test(e)&&zs(e)}),(0,t.watch)(V,()=>{Wf(),ua(),(0,t.nextTick)(fa)}),(0,t.watch)(pa,()=>{Bl()}),(0,t.watch)([Kn,N,Xr,Zr,Le,Nr,Xe,je,Ae,kt,Ba,Va],()=>{(0,t.nextTick)(fa)}),c({exportPdf:bs,exportImage:ps,exportHtml:ws,insertImage:Ou,insertVideo:ku,insertFile:Au,insertLocalFile:ju,insertMention:W,openLocalFilePicker:Ad,focus:()=>{V.value?.commands.focus()},getJSON:()=>V.value?.getJSON()??null,getText:()=>V.value?.getText()??``,getImages:Nd,getVideos:Pd,getFiles:Fd,getOutlineItems:()=>ca().items,getActiveOutlinePos:()=>nr.value,focusOutlineItem:Qs,onOutlineChange:e=>(rr.add(e),e(ca()),()=>{rr.delete(e)}),focusCommentThread:dd}),(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref_key:`rootRef`,ref:_,class:`norio-office-rich-editor`,"data-editable":Mr.value,"data-mode":jr.value?`preview`:`edit`,"data-fullscreen":Ae.value,"data-presentation":je.value,"data-outline-open":Lr.value&&Me.value,"data-outline-placement":Ir.value,"data-comments-enabled":Pr.value,"data-comments-open":qr.value,"data-drag-insert-active":!!dr.value,onClickCapture:kd,onNorioOfficeRichUploadRequest:is},[Nr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`header`,av,[(0,t.createElementVNode)(`div`,ov,[(0,t.createElementVNode)(`div`,sv,[(0,t.createElementVNode)(`div`,cv,[ri.value||ni.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,lv,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!_o.value,onClick:i[0]||=e=>(0,t.unref)(V)?.chain().focus().undo().run()},[(0,t.createVNode)(k,{name:`back`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,uv),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!vo.value,onClick:i[1]||=e=>(0,t.unref)(V)?.chain().focus().redo().run()},[(0,t.createVNode)(k,{name:`redo`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,dv),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!yo.value,onClick:xf},[(0,t.createVNode)(k,{name:`rubber`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,fv)])):(0,t.createCommentVNode)(``,!0),Pr.value&&u.showComments?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pv,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":!!Yr.value}]),disabled:!bo.value,title:`添加评论`,onClick:pd},[(0,t.createVNode)(k,{name:`comment`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,mv)])):(0,t.createCommentVNode)(``,!0),Qr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hv,[(0,t.createElementVNode)(`div`,{ref_key:`insertMenuRef`,ref:x,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":Le.value}]),onClick:Cl},[(0,t.createVNode)(k,{name:`add-circle`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[127]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__label`},`插入`,-1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],2),Le.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,gv,[(0,t.createElementVNode)(`div`,{ref_key:`insertMenuPanelRef`,ref:S,class:`norio-office-rich-insert-menu`},[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-insert-menu__scroll`,"max-height":`calc(100vh - 100px)`,onScroll:Fl},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,_v,[(0,t.createElementVNode)(`div`,vv,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(kn,e=>(0,t.createElementVNode)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-insert-menu__quick-item`,onMouseenter:i[2]||=e=>kl(null),onClick:t=>Bd(e.action)},[e.type===`text`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,bv,(0,t.toDisplayString)(e.label),1)):((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:e.iconName,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`]))],40,yv)),64))]),N.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xv,[i[128]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-menu__title`},`通用`,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(N.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-insert-menu__item`,{"norio-office-rich-insert-menu__item--active":Ft.value===e.key}]),ref_for:!0,ref:e.key===`columns`?Pl:void 0,onMouseenter:t=>kl(e.key===`table`||e.key===`emoji`||e.key===`columns`?e.key:null),onFocus:t=>kl(e.key===`table`||e.key===`emoji`||e.key===`columns`?e.key:null),onClick:t=>Bd(e.action)},[(0,t.createElementVNode)(`span`,Cv,[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName,size:18,"background-color":`transparent`},null,8,[`name`])):e.key===`emoji`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:`smile`,size:16,color:`#4b5563`,"background-color":`transparent`})):e.monoIconName?((0,t.openBlock)(),(0,t.createBlock)(k,{key:2,name:e.monoIconName,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,wv,(0,t.toDisplayString)(e.label),1),e.key===`table`||e.key===`emoji`||e.key===`columns`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:`youjiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})):(0,t.createCommentVNode)(``,!0)],42,Sv))),128))])):(0,t.createCommentVNode)(``,!0),Xr.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Tv,[i[129]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-menu__title`},`小应用`,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Xr.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-insert-menu__item`,{"norio-office-rich-insert-menu__item--active":Ft.value===e.key}]),onMouseenter:i[3]||=e=>kl(null),onFocus:i[4]||=e=>kl(null),onClick:t=>Bd(e.action)},[(0,t.createElementVNode)(`span`,Dv,[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName,size:18,"background-color":`transparent`},null,8,[`name`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Ov,(0,t.toDisplayString)(e.label),1)],42,Ev))),128))])):(0,t.createCommentVNode)(``,!0),Zr.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kv,[i[130]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-menu__title`},`外部内容`,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Zr.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-insert-menu__item`,onMouseenter:i[5]||=e=>kl(null),onFocus:i[6]||=e=>kl(null),onClick:t=>Bd(e.action)},[(0,t.createElementVNode)(`span`,jv,[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName,size:18,"background-color":`transparent`},null,8,[`name`])):e.monoIconName?((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:e.monoIconName,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`span`,Mv,(0,t.toDisplayString)(e.label),1)],40,Av))),128))])):(0,t.createCommentVNode)(``,!0)])]),_:1}),Ft.value===`table`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--table`,onMouseleave:jl},[i[131]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-submenu__title`},`插入表格`,-1),(0,t.createElementVNode)(`div`,Nv,(0,t.toDisplayString)(en.value),1),(0,t.createElementVNode)(`div`,Pv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(gw*_w,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-grid__cell`,{"norio-office-rich-table-grid__cell--active":Math.ceil(e/_w)<=Rt.value&&(e-1)%_w+1<=zt.value}]),onMouseenter:t=>Al(Math.ceil(e/_w),(e-1)%_w+1),onFocus:t=>Al(Math.ceil(e/_w),(e-1)%_w+1),onClick:t=>ru(Math.ceil(e/_w),(e-1)%_w+1)},null,42,Fv))),128))]),i[132]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-insert-submenu__footer`},null,-1)],32)):(0,t.createCommentVNode)(``,!0),Ft.value===`emoji`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Iv,[(0,t.createVNode)(tr,{onSelect:gu})])):(0,t.createCommentVNode)(``,!0),Ft.value===`columns`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--columns`,style:(0,t.normalizeStyle)(rn.value),onMouseleave:Nl},[(0,t.createElementVNode)(`div`,Lv,(0,t.toDisplayString)(tn.value),1),(0,t.createElementVNode)(`div`,Rv,[(0,t.createElementVNode)(`div`,zv,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(vw,e=>(0,t.createElementVNode)(`button`,{key:`columns-count-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-columns-picker__cell`,{"norio-office-rich-columns-picker__cell--active":e<=Bt.value}]),onMouseenter:t=>Ml(e),onFocus:t=>Ml(e),onClick:t=>_u(e)},null,42,Bv)),64))])])],36)):(0,t.createCommentVNode)(``,!0),Ft.value===`countdown`?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`norio-office-rich-insert-submenu norio-office-rich-insert-submenu--countdown`,style:(0,t.normalizeStyle)(on.value)},[(0,t.createElementVNode)(`div`,Vv,[(0,t.createElementVNode)(`div`,Hv,[i[133]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__title`},`倒计时设置`,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__close`,onClick:i[7]||=e=>kl(null)},[(0,t.createVNode)(k,{name:`close`,size:16,color:`#6b7280`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`label`,Uv,[(0,t.createElementVNode)(`span`,Wv,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[8]||=e=>Vt.value=e,type:`radio`,value:`deadline`},null,512),[[t.vModelRadio,Vt.value]]),i[134]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[135]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`截止时间`,-1),(0,t.createElementVNode)(`button`,{ref_key:`countdownDateTriggerRef`,ref:O,type:`button`,class:`norio-office-rich-countdown-settings__datetime`,disabled:Vt.value!==`deadline`,onClick:Us},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(cn.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#6b7280`,"background-color":`transparent`})],8,Gv)]),Vt.value===`deadline`&&qt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`countdownPickerRef`,ref:ae,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__picker-panel`,`norio-office-rich-countdown-settings__picker-panel--${Yt.value}`])},[(0,t.createElementVNode)(`div`,Kv,[(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--year`,value:String(Xt.value),onChange:i[9]||=e=>Ls(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(dn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e),9,Jv))),128))],40,qv),(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--month`,value:String(Zt.value),onChange:i[10]||=e=>Rs(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(fn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e+1),9,Xv))),128))],40,Yv),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__today`,onClick:Is},` 今 `)]),(0,t.createElementVNode)(`div`,Zv,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)($t,e=>(0,t.createElementVNode)(`span`,{key:e,class:`norio-office-rich-countdown-settings__weekday`},(0,t.toDisplayString)(e),1)),64))]),(0,t.createElementVNode)(`div`,Qv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(pn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__day`,{"norio-office-rich-countdown-settings__day--muted":!e.isCurrentMonth,"norio-office-rich-countdown-settings__day--today":e.isToday,"norio-office-rich-countdown-settings__day--selected":e.isSelected,"norio-office-rich-countdown-settings__day--disabled":e.isDisabled}]),disabled:e.isDisabled,onClick:t=>Fs(e.year,e.month,e.day)},(0,t.toDisplayString)(e.label),11,$v))),128))]),(0,t.createElementVNode)(`div`,ey,[i[136]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__time-label`},`设置时间`,-1),(0,t.createElementVNode)(`div`,ty,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[11]||=e=>Qt.value=e,class:`norio-office-rich-countdown-settings__time-input`,type:`time`,step:`60`,min:un.value,onInput:i[12]||=e=>zs(Qt.value),onChange:i[13]||=e=>zs(Qt.value)},null,40,ny),[[t.vModelText,Qt.value]]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__time-confirm`,onClick:Bs},` 确定 `)])])],2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`label`,ry,[(0,t.createElementVNode)(`span`,iy,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[14]||=e=>Vt.value=e,type:`radio`,value:`duration`},null,512),[[t.vModelRadio,Vt.value]]),i[137]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[142]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`计时长度`,-1),(0,t.createElementVNode)(`div`,ay,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[15]||=e=>Ut.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,disabled:Vt.value!==`duration`},null,8,oy),[[t.vModelText,Ut.value]]),i[138]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`天`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[16]||=e=>Wt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`23`,disabled:Vt.value!==`duration`},null,8,sy),[[t.vModelText,Wt.value]]),i[139]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`时`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[17]||=e=>Gt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Vt.value!==`duration`},null,8,cy),[[t.vModelText,Gt.value]]),i[140]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`分`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[18]||=e=>Kt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Vt.value!==`duration`},null,8,ly),[[t.vModelText,Kt.value]]),i[141]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`秒`,-1)])]),(0,t.createElementVNode)(`div`,uy,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--secondary`,onClick:i[19]||=e=>kl(null)},` 取消 `),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--primary`,onClick:vu},` 确定 `)])])],4)):(0,t.createCommentVNode)(``,!0)],512)])):(0,t.createCommentVNode)(``,!0)],512)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,dy,[(0,t.createElementVNode)(`div`,{ref_key:`headingMenuRef`,ref:ye,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--heading`,disabled:!xo.value,onClick:Ud},[(0,t.createElementVNode)(`span`,py,(0,t.toDisplayString)(Ha.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,fy),Ue.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,my,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(jt,e=>(0,t.createElementVNode)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--heading`,{"norio-office-rich-toolbar__menu-item--active":e.level?(0,t.unref)(V)?.isActive(`heading`,{level:e.level}):!(0,t.unref)(V)?.isActive(`heading`)}]),disabled:!Sf(e.level),onClick:t=>Wd(e.level)},[(e.level?(0,t.unref)(V)?.isActive(`heading`,{level:e.level}):!(0,t.unref)(V)?.isActive(`heading`))?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gy)),(0,t.createElementVNode)(`span`,_y,(0,t.toDisplayString)(e.level?`H${e.level}`:`T`),1),(0,t.createElementVNode)(`span`,vy,(0,t.toDisplayString)(e.label),1)],10,hy)),64))])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`fontFamilyMenuRef`,ref:be,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--font-family`,disabled:!So.value,onClick:qd},[(0,t.createElementVNode)(`span`,by,(0,t.toDisplayString)(Ga.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,yy),We.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xy,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-toolbar__menu-scroll`,"max-height":`360px`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(On,e=>(0,t.createElementVNode)(`button`,{key:e.label,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--font-family`,{"norio-office-rich-toolbar__menu-item--active":Ga.value===e.label}]),disabled:!Cf(e.value),onClick:t=>Jd(e.value)},[Ga.value===e.label?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Cy)),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`,style:(0,t.normalizeStyle)(e.value?{fontFamily:e.value}:void 0)},(0,t.toDisplayString)(e.label),5)],10,Sy)),64))]),_:1})])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`fontSizeMenuRef`,ref:Se,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--font-size`,disabled:!Co.value,onClick:Xd},[(0,t.createElementVNode)(`span`,Ty,(0,t.toDisplayString)(Wa.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,wy),Ke.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ey,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-toolbar__menu-scroll`,"max-height":`520px`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(En,e=>(0,t.createElementVNode)(`button`,{key:e.label,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--font-size`,{"norio-office-rich-toolbar__menu-item--active":Wa.value===e.label}]),disabled:!wf(e.value),onClick:t=>Zd(e.value)},[Wa.value===e.label?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Oy)),(0,t.createElementVNode)(`span`,ky,(0,t.toDisplayString)(e.label),1)],10,Dy)),64))]),_:1})])):(0,t.createCommentVNode)(``,!0)],512)]),(0,t.createElementVNode)(`div`,Ay,[(0,t.createElementVNode)(`div`,{ref_key:`colorMenuRef`,ref:Ce,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--color`,disabled:!wo.value,onClick:Qd},[(0,t.createElementVNode)(`span`,My,[i[143]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-text`},`A`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:qa.value})},null,4)]),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,jy),qe.value?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--color`,color:qa.value,"default-color":`#333333`,"recent-colors":$n.value,onChange:$d},null,8,[`color`,`recent-colors`])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`highlightMenuRef`,ref:De,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select norio-office-rich-toolbar__button--color`,disabled:!To.value,onClick:tf},[(0,t.createElementVNode)(`span`,Py,[(0,t.createVNode)(k,{name:`beijingse`,size:14,color:`#4b5563`,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__color-line`,style:(0,t.normalizeStyle)({backgroundColor:Ja.value})},null,4)]),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],8,Ny),Je.value?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:0,class:`norio-office-rich-toolbar__menu norio-office-rich-toolbar__menu--color`,color:Ja.value,"default-color":`#FFF3C4`,"recent-colors":er.value,onChange:rf},null,8,[`color`,`recent-colors`])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`bold`)}]),disabled:!Eo.value,onClick:cf},[(0,t.createVNode)(k,{name:`jiacu`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Fy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`italic`)}]),disabled:!Do.value,onClick:lf},[(0,t.createVNode)(k,{name:`xieti`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Iy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`underline`)}]),disabled:!Oo.value,onClick:uf},[(0,t.createVNode)(k,{name:`xiahuaxian`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Ly),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`strike`)}]),disabled:!ko.value,onClick:df},[...i[144]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__text-icon norio-office-rich-toolbar__text-icon--strike`},`S`,-1)]],10,Ry),(0,t.createElementVNode)(`div`,{ref_key:`scriptMenuRef`,ref:xe,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`superscript`)||(0,t.unref)(V)?.isActive(`subscript`)}]),disabled:!Ao.value,onClick:Yd},[Ua.value.icon?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:Ua.value.icon,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,By,(0,t.toDisplayString)(Ua.value.text),1)),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],10,zy),Ge.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Vy,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item`,{"norio-office-rich-toolbar__menu-item--active":(0,t.unref)(V)?.isActive(`superscript`)}]),disabled:!Ef(),onClick:yf},[(0,t.unref)(V)?.isActive(`superscript`)?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Uy)),(0,t.createVNode)(k,{name:`shangbiao`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[145]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`上标`,-1),i[146]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-shortcut`},`Ctrl+Shift+.`,-1)],10,Hy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item`,{"norio-office-rich-toolbar__menu-item--active":(0,t.unref)(V)?.isActive(`subscript`)}]),disabled:!jf(),onClick:bf},[(0,t.unref)(V)?.isActive(`subscript`)?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Gy)),(0,t.createVNode)(k,{name:`xiabiao`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[147]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`下标`,-1),i[148]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-shortcut`},`Ctrl+Shift+,`,-1)],10,Wy)])):(0,t.createCommentVNode)(``,!0)],512)]),(0,t.createElementVNode)(`div`,Ky,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`bulletList`)}]),disabled:!jo.value,onClick:pf},[(0,t.createVNode)(k,{name:`wuxuliebiao`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,qy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`orderedList`)}]),disabled:!Mo.value,onClick:mf},[(0,t.createVNode)(k,{name:`youxuliebiao`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Jy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`taskList`)}]),disabled:!No.value,onClick:hf},[(0,t.createVNode)(k,{name:`To-do`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,Yy),(0,t.createElementVNode)(`div`,{ref_key:`alignMenuRef`,ref:le,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":Re.value}]),disabled:!Po.value,onClick:wl},[(0,t.createVNode)(k,{name:Ka.value===`center`?`juzhongduiqi`:Ka.value===`right`?`youduiqi`:`zuoduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`]),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],10,Xy),Re.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Zy,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--align`,{"norio-office-rich-toolbar__menu-item--active":Ka.value===`left`}]),disabled:!Tf(`left`),onClick:i[20]||=e=>Ol(`left`)},[Ka.value===`left`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,$y)),(0,t.createVNode)(k,{name:`zuoduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[149]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`左对齐`,-1)],10,Qy),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--align`,{"norio-office-rich-toolbar__menu-item--active":Ka.value===`center`}]),disabled:!Tf(`center`),onClick:i[21]||=e=>Ol(`center`)},[Ka.value===`center`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,tb)),(0,t.createVNode)(k,{name:`juzhongduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[150]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`居中对齐`,-1)],10,eb),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__menu-item norio-office-rich-toolbar__menu-item--align`,{"norio-office-rich-toolbar__menu-item--active":Ka.value===`right`}]),disabled:!Tf(`right`),onClick:i[22]||=e=>Ol(`right`)},[Ka.value===`right`?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:`duihao`,size:16,"background-color":`transparent`})):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,rb)),(0,t.createVNode)(k,{name:`youduiqi`,size:16,color:`#4b5563`,"background-color":`transparent`}),i[151]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-toolbar__menu-label`},`右对齐`,-1)],10,nb)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!Fo.value,onClick:Kd},[(0,t.createVNode)(k,{name:`zuosuojin`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,ib),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-toolbar__button`,disabled:!Io.value,onClick:Gd},[(0,t.createVNode)(k,{name:`yousuojin`,size:16,color:`#4b5563`,"background-color":`transparent`})],8,ab),ei.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`quoteMenuRef`,ref:Oe,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button norio-office-rich-toolbar__button--select`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`blockquote`)}]),disabled:!Ro.value,onClick:of},[(0,t.createVNode)(k,{name:`yinyong`,size:16,color:`#4b5563`,"background-color":`transparent`}),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#9ca3af`,"background-color":`transparent`})],10,ob),Ye.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sb,[(0,t.createElementVNode)(`div`,cb,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current`,disabled:!Lo.value,onClick:gf},(0,t.toDisplayString)((0,t.unref)(V)?.isActive(`blockquote`)?`取消引用`:`应用引用`),9,lb)]),(0,t.createElementVNode)(`div`,ub,[i[152]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`边框颜色`,-1),(0,t.createElementVNode)(`div`,db,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Yn,e=>(0,t.createElementVNode)(`button`,{key:`quote-border-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--compact`,{"norio-office-rich-color-menu__swatch--active":Ya.value===e}]),disabled:!(0,t.unref)(V)?.isActive(`blockquote`),style:(0,t.normalizeStyle)({backgroundColor:e}),onClick:t=>_f(e)},null,14,fb)),64))])]),(0,t.createElementVNode)(`div`,pb,[i[153]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-color-menu__label`},`背景颜色`,-1),(0,t.createElementVNode)(`div`,mb,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Xn,e=>(0,t.createElementVNode)(`button`,{key:`quote-bg-${e}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-color-menu__swatch norio-office-rich-color-menu__swatch--compact`,{"norio-office-rich-color-menu__swatch--active":Xa.value===e}]),disabled:!(0,t.unref)(V)?.isActive(`blockquote`),style:(0,t.normalizeStyle)({backgroundColor:e}),onClick:t=>vf(e)},null,14,hb)),64))])])])):(0,t.createCommentVNode)(``,!0)],512)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":(0,t.unref)(V)?.isActive(`code`)}]),disabled:!zo.value,onClick:ff},[(0,t.createVNode)(k,{name:`code`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,gb),$r.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`emojiToolbarMenuRef`,ref:D,class:`norio-office-rich-toolbar__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-toolbar__button`,{"norio-office-rich-toolbar__button--active":Ze.value}]),disabled:!Mr.value,title:`表情符号`,onClick:sf},[(0,t.createVNode)(k,{name:`smile`,size:16,color:`#4b5563`,"background-color":`transparent`})],10,_b),Ze.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vb,[(0,t.createVNode)(tr,{onSelect:gu})])):(0,t.createCommentVNode)(``,!0)],512)):(0,t.createCommentVNode)(``,!0)])])])])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,yb,[Lr.value&&!Me.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_key:`outlineTriggerRef`,ref:Ne,type:`button`,class:`norio-office-rich-outline-trigger`,"data-placement":Ir.value,title:pi.value,"aria-label":pi.value,"aria-controls":Pe,"aria-expanded":!1,onClick:Zs},[(0,t.createVNode)(k,{name:`dagang`,size:18,color:`currentColor`,"background-color":`transparent`})],8,bb)):(0,t.createCommentVNode)(``,!0),Lr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,id:Pe,class:`norio-office-rich-outline-shell`,"data-open":Me.value,"data-placement":Ir.value,onKeydown:i[23]||=(0,t.withKeys)((0,t.withModifiers)(e=>Me.value&&Zs(),[`prevent`,`stop`]),[`esc`])},[(0,t.createVNode)(fl,{internal:``,open:Me.value,placement:Ir.value,title:pi.value,"collapse-title":mi.value,"empty-description":hi.value,"empty-tip":gi.value,items:A.value,"active-pos":nr.value,onToggle:Zs,onSelect:Qs},null,8,[`open`,`placement`,`title`,`collapse-title`,`empty-description`,`empty-tip`,`items`,`active-pos`])],40,xb)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`section`,Sb,[(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-editor__scroll`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-editor__stage`,style:(0,t.normalizeStyle)(ma.value)},[(0,t.createElementVNode)(`div`,{ref_key:`pageRef`,ref:v,class:`norio-office-rich-editor__page`,onMousedownCapture:_l,onKeydownCapture:dc,onBeforeinputCapture:dc,onCompositionstartCapture:fc,onCompositionendCapture:pc,onMousemove:mc,onMouseleave:hc,onDragenterCapture:vl,onDragoverCapture:yl,onDragleaveCapture:bl,onDropCapture:xl},[(0,t.unref)(V)?((0,t.openBlock)(),(0,t.createBlock)(Bn,{key:0,onVisibilityChange:i[24]||=e=>vr.value=e,editor:(0,t.unref)(V),actions:Bo.value,enabled:Mr.value&&!je.value&&!xr.value&&!L.value},null,8,[`editor`,`actions`,`enabled`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(V)?((0,t.openBlock)(),(0,t.createBlock)(Bn,{key:1,scope:`table`,editor:(0,t.unref)(V),actions:Vo.value,enabled:Mr.value&&!je.value&&!xr.value&&!L.value,onVisibilityChange:i[40]||=e=>yr.value=e,"get-referenced-virtual-element":Hl},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Cb,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!ho.value,title:`合并单元格`,onMousedown:i[25]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:uu},[(0,t.createVNode)(k,{name:`merge`,size:14,color:ho.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,wb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!go.value,title:`拆分单元格`,onMousedown:i[26]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:du},[(0,t.createVNode)(k,{name:`split`,size:14,color:go.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Tb),(0,t.createElementVNode)(`div`,{ref_key:`tableActionColorMenuRef`,ref:me,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":ze.value}]),disabled:!Ho.value,title:`设置单元格背景色`,onMousedown:i[27]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Wl},[(0,t.createVNode)(k,{name:`yanse`,size:14,color:Ho.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],42,Eb),ze.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Db,[i[154]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-table-bubble-menu__menu-title`},`单元格背景颜色`,-1),(0,t.createElementVNode)(`div`,Ob,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(kr,e=>(0,t.createElementVNode)(`button`,{key:`table-cell-${e??`none`}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__color-swatch`,{"norio-office-rich-table-bubble-menu__color-swatch--active":Qa.value===e,"norio-office-rich-table-bubble-menu__color-swatch--none":e===null}]),style:(0,t.normalizeStyle)(e?{backgroundColor:e}:void 0),onMousedown:i[28]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>Ql(e)},null,46,kb)),64))]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__reset`,onMousedown:i[29]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[30]||=e=>Ql(null)},` 恢复默认 `,32)])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`div`,{ref_key:`tableThemeMenuRef`,ref:he,class:`norio-office-rich-table-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-bubble-menu__button`,{"norio-office-rich-table-bubble-menu__button--active":Be.value}]),disabled:!Ho.value,title:`表格主题色`,"aria-label":`表格主题色`,"aria-expanded":Be.value,onMousedown:i[31]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Gl},[(0,t.createVNode)(k,{name:`zhuti`,size:14,color:Ho.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],42,Ab),Be.value?((0,t.openBlock)(),(0,t.createBlock)(Tl,{key:0,theme:$a.value,"recent-colors":er.value,style:(0,t.normalizeStyle)(no.value),onChange:Xl,onColorUsed:af,onClear:i[32]||=e=>Xl(null),onClose:i[33]||=e=>Be.value=!1,onResize:i[34]||=e=>Ve.value=e,onReposition:Kl},null,8,[`theme`,`recent-colors`,`style`])):(0,t.createCommentVNode)(``,!0)],512),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Wo.value,title:`上增加一行`,onMousedown:i[35]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:iu},[(0,t.createVNode)(k,{name:`xiangshangcharu`,size:14,color:Wo.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,jb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Wo.value,title:`下增加一行`,onMousedown:i[36]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:au},[(0,t.createVNode)(k,{name:`xiangxiacharujilu-copy`,size:14,color:Wo.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Mb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Go.value,title:`左增加一列`,onMousedown:i[37]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:ou},[(0,t.createVNode)(k,{name:`xiangzuocharu`,size:14,color:Go.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Nb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button`,disabled:!Go.value,title:`右增加一列`,onMousedown:i[38]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:su},[(0,t.createVNode)(k,{name:`xiangyoucharu`,size:14,color:Go.value?`#4b5563`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Pb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-table-bubble-menu__button norio-office-rich-table-bubble-menu__button--danger`,disabled:!Ko.value,title:`删除`,onMousedown:i[39]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:pu},[(0,t.createVNode)(k,{name:`delete`,size:14,color:Ko.value?`#dc2626`:`#c5ccd8`,"background-color":`transparent`},null,8,[`color`])],40,Fb)])]),_:1},8,[`editor`,`actions`,`enabled`])):(0,t.createCommentVNode)(``,!0),(0,t.unref)(V)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(r.BubbleMenu),{key:2,"plugin-key":`countdownBlockBubbleMenu`,class:`norio-office-rich-countdown-bubble-menu`,editor:(0,t.unref)(V),"should-show":Vl,"get-referenced-virtual-element":Ul,options:{placement:`top`}},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Ib,[(0,t.createElementVNode)(`div`,{ref_key:`countdownBubbleMenuRef`,ref:oe,class:`norio-office-rich-countdown-bubble-menu__dropdown`},[(0,t.createElementVNode)(`button`,{ref_key:`countdownBubbleEditButtonRef`,ref:se,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-bubble-menu__button norio-office-rich-countdown-bubble-menu__button--edit`,{"norio-office-rich-countdown-bubble-menu__button--active":Jt.value}]),title:`编辑`,"aria-label":`编辑`,onMousedown:i[41]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:Vs},[(0,t.createVNode)(k,{name:`edit`,size:14,color:`#374151`,"background-color":`transparent`}),i[155]||=(0,t.createElementVNode)(`span`,null,`编辑`,-1)],34),Jt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lb,[(0,t.createElementVNode)(`div`,Rb,[(0,t.createElementVNode)(`div`,zb,[i[156]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__title`},`倒计时设置`,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__close`,onClick:i[42]||=e=>Jt.value=!1},[(0,t.createVNode)(k,{name:`close`,size:16,color:`#6b7280`,"background-color":`transparent`})])]),(0,t.createElementVNode)(`label`,Bb,[(0,t.createElementVNode)(`span`,Vb,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[43]||=e=>Vt.value=e,type:`radio`,value:`deadline`},null,512),[[t.vModelRadio,Vt.value]]),i[157]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[158]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`截止时间`,-1),(0,t.createElementVNode)(`button`,{ref_key:`countdownDateTriggerRef`,ref:O,type:`button`,class:`norio-office-rich-countdown-settings__datetime`,disabled:Vt.value!==`deadline`,onClick:Us},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(cn.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:12,color:`#6b7280`,"background-color":`transparent`})],8,Hb)]),Vt.value===`deadline`&&qt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`countdownPickerRef`,ref:ae,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__picker-panel`,`norio-office-rich-countdown-settings__picker-panel--${Yt.value}`])},[(0,t.createElementVNode)(`div`,Ub,[(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--year`,value:String(Xt.value),onChange:i[44]||=e=>Ls(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(dn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e),9,Gb))),128))],40,Wb),(0,t.createElementVNode)(`select`,{class:`norio-office-rich-countdown-settings__picker-select norio-office-rich-countdown-settings__picker-select--month`,value:String(Zt.value),onChange:i[45]||=e=>Rs(e.target.value)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(fn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e,value:e},(0,t.toDisplayString)(e+1),9,qb))),128))],40,Kb),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__today`,onClick:Is},` 今 `)]),(0,t.createElementVNode)(`div`,Jb,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)($t,e=>(0,t.createElementVNode)(`span`,{key:e,class:`norio-office-rich-countdown-settings__weekday`},(0,t.toDisplayString)(e),1)),64))]),(0,t.createElementVNode)(`div`,Yb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(pn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-countdown-settings__day`,{"norio-office-rich-countdown-settings__day--muted":!e.isCurrentMonth,"norio-office-rich-countdown-settings__day--today":e.isToday,"norio-office-rich-countdown-settings__day--selected":e.isSelected}]),onClick:t=>Fs(e.year,e.month,e.day)},(0,t.toDisplayString)(e.label),11,Xb))),128))]),(0,t.createElementVNode)(`div`,Zb,[i[159]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-countdown-settings__time-label`},`设置时间`,-1),(0,t.createElementVNode)(`div`,Qb,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[46]||=e=>Qt.value=e,class:`norio-office-rich-countdown-settings__time-input`,type:`time`,step:`60`,min:un.value,onInput:i[47]||=e=>zs(Qt.value),onChange:i[48]||=e=>zs(Qt.value)},null,40,$b),[[t.vModelText,Qt.value]]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__time-confirm`,onClick:Bs},` 确定 `)])])],2)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`label`,ex,[(0,t.createElementVNode)(`span`,tx,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[49]||=e=>Vt.value=e,type:`radio`,value:`duration`},null,512),[[t.vModelRadio,Vt.value]]),i[160]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__radio-dot`},null,-1)]),i[165]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__label`},`计时长度`,-1),(0,t.createElementVNode)(`div`,nx,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[50]||=e=>Ut.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,disabled:Vt.value!==`duration`},null,8,rx),[[t.vModelText,Ut.value]]),i[161]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`天`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[51]||=e=>Wt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`23`,disabled:Vt.value!==`duration`},null,8,ix),[[t.vModelText,Wt.value]]),i[162]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`时`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[52]||=e=>Gt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Vt.value!==`duration`},null,8,ax),[[t.vModelText,Gt.value]]),i[163]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`分`,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":i[53]||=e=>Kt.value=e,class:`norio-office-rich-countdown-settings__number`,type:`number`,min:`0`,max:`59`,disabled:Vt.value!==`duration`},null,8,ox),[[t.vModelText,Kt.value]]),i[164]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-settings__unit`},`秒`,-1)])]),(0,t.createElementVNode)(`div`,sx,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--secondary`,onClick:i[54]||=e=>Jt.value=!1},` 取消 `),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-settings__button norio-office-rich-countdown-settings__button--primary`,onClick:bu},` 确定 `)])])])):(0,t.createCommentVNode)(``,!0)],512),i[166]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-countdown-bubble-menu__divider`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-countdown-bubble-menu__button norio-office-rich-countdown-bubble-menu__button--danger`,title:`删除`,"aria-label":`删除`,onMousedown:i[55]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:xu},[(0,t.createVNode)(k,{name:`delete`,size:14,color:`#dc2626`,"background-color":`transparent`})],32)])]),_:1},8,[`editor`])):(0,t.createCommentVNode)(``,!0),ga.value&&ha.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`norio-office-rich-editor__watermark`,style:(0,t.normalizeStyle)(_a.value),"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(va),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:e,class:`norio-office-rich-editor__watermark-text`},(0,t.toDisplayString)(ha.value.text),1))),128))],4)):(0,t.createCommentVNode)(``,!0),(0,t.unref)(V)?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(n.EditorContent),{key:4,editor:(0,t.unref)(V),class:`norio-office-rich-editor__content`},null,8,[`editor`])):(0,t.createCommentVNode)(``,!0),Vr.value&&Qe.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:5,ref_key:`mentionPanelRef`,ref:ke,class:`norio-office-rich-mention-panel`,style:(0,t.normalizeStyle)(z.value),onMousedown:i[56]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createElementVNode)(`div`,cx,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Pt,e=>(0,t.createElementVNode)(`button`,{key:String(e.key),type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__tab`,{"norio-office-rich-mention-panel__tab--active":tt.value===e.key}]),onClick:t=>Pi(e.key)},(0,t.toDisplayString)(e.label),11,lx)),64))]),(0,t.createVNode)(Vn,{class:`norio-office-rich-mention-panel__scroll`},{default:(0,t.withCtx)(()=>[$e.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ux,`加载中...`)):R.value.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:2},(0,t.renderList)(R.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`${e.type}-${e.id}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__item`,{"norio-office-rich-mention-panel__item--active":n===rt.value}]),onClick:t=>Fi(e,n),onDblclick:t=>Li(e)},[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-mention-panel__avatar`,"data-type":e.type,style:(0,t.normalizeStyle)(U(e))},[e.type===1&&e.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:e.avatar,alt:``},null,8,mx)):e.type===2&&e.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:e.icon,alt:``},null,8,hx)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,gx,(0,t.toDisplayString)(Di(e)),1))],12,px),(0,t.createElementVNode)(`span`,_x,[(0,t.createElementVNode)(`span`,vx,[(0,t.createElementVNode)(`span`,yx,(0,t.toDisplayString)(e.name),1),e.tag?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,bx,(0,t.toDisplayString)(e.tag),1)):(0,t.createCommentVNode)(``,!0)]),e.type===2&&e.updatedAt?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,xx,` 最近修改:`+(0,t.toDisplayString)(e.updatedAt),1)):(0,t.createCommentVNode)(``,!0)])],42,fx))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,dx,`暂无可提及内容`))]),_:1}),(0,t.createElementVNode)(`div`,Sx,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-mention-panel__submit`,disabled:!Si.value,onClick:Ri},` 提及 `,8,Cx)])],36)):(0,t.createCommentVNode)(``,!0),F.value||L.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:6,class:`norio-office-rich-marquee-selection-layer`,"data-active":lr.value,"aria-hidden":`true`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(I.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:`marquee-block-${e.pos}`,class:`norio-office-rich-marquee-selection-layer__block`,style:(0,t.normalizeStyle)({left:`${e.rect.left}px`,top:`${e.rect.top}px`,width:`${e.rect.width}px`,height:`${e.rect.height}px`})},null,4))),128)),F.value&&lr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-marquee-selection-layer__box`,style:(0,t.normalizeStyle)({left:`${F.value.left}px`,top:`${F.value.top}px`,width:`${F.value.width}px`,height:`${F.value.height}px`})},null,4)):(0,t.createCommentVNode)(``,!0)],8,wx)):(0,t.createCommentVNode)(``,!0),ba.value&&Mr.value&&!je.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:7,class:(0,t.normalizeClass)([`norio-office-rich-block-side-control`,{"norio-office-rich-block-side-control--empty":ba.value.isEmpty}]),style:(0,t.normalizeStyle)(Aa.value),onMouseenter:i[64]||=e=>gc(ba.value),onMouseleave:hc},[ba.value.isEmpty?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-block-side-control__button norio-office-rich-block-side-control__button--empty`,title:`插入`,onMousedown:i[57]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[58]||=e=>_c(ba.value,`insert`),onClick:i[59]||=e=>_c(ba.value,`insert`)},[(0,t.createVNode)(k,{name:`add`,size:12,color:`currentColor`,"background-color":`transparent`})],32)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-control__button`,title:ba.value.label,onMousedown:i[60]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[61]||=e=>_c(ba.value,`actions`),onClick:i[62]||=e=>_c(ba.value,`actions`)},[ba.value.iconName?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:ba.value.iconName,size:14,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ex,(0,t.toDisplayString)(ba.value.textIcon),1))],40,Tx),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-control__button norio-office-rich-block-side-control__button--drag`,title:`拖动`,onMousedown:i[63]||=e=>Xc(e,ba.value)},[(0,t.createVNode)(k,{name:`drag`,size:12,color:`#9aa4b2`,"background-color":`transparent`})],32)],64))],38)):(0,t.createCommentVNode)(``,!0),ba.value&&xr.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:8,ref_key:`blockSideMenuRef`,ref:ue,class:`norio-office-rich-block-side-menu`,style:(0,t.normalizeStyle)(Fa.value),onMouseenter:i[96]||=e=>gc(ba.value),onMouseleave:hc,onMousedown:i[97]||=(0,t.withModifiers)(()=>{},[`stop`])},[xr.value===`insert`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,Dx,[i[167]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`基础`,-1),(0,t.createElementVNode)(`div`,Ox,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(kn,e=>(0,t.createElementVNode)(`button`,{key:`block-quick-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__quick-button`,onClick:t=>xc(e.action)},[e.type===`icon`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.iconName||``,size:17,color:`#1f2937`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Ax,(0,t.toDisplayString)(e.label),1))],8,kx)),64))])]),(0,t.createElementVNode)(`div`,jx,[i[168]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`常用`,-1),((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Nn,e=>(0,t.createElementVNode)(`button`,{key:`block-insert-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__item`,onClick:t=>xc(e.action)},[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName},null,8,[`name`])):((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:`smile`,size:17,color:`#64748b`,"background-color":`transparent`})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(Jn(e.key)),1)],8,Mx)),64))])],64)):xr.value===`actions`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[xa.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Nx,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(xa.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`block-transform-${e.key}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__quick-button`,{"norio-office-rich-block-side-menu__quick-button--active":K.value===e.action}]),title:e.label,"aria-label":e.label,"aria-pressed":K.value===e.action,onMousedown:i[65]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>Pc(e.action)},[e.type===`icon`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.iconName||``,size:18,color:`currentColor`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,Fx,(0,t.toDisplayString)(e.label),1))],42,Px))),128))])):(0,t.createCommentVNode)(``,!0),Sa.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,ref_key:`blockSidePropertiesTriggerRef`,ref:we,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`properties`}]),onMouseenter:i[66]||=e=>j.value=`properties`,onClick:i[67]||=e=>j.value=`properties`,onMousedown:i[68]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createVNode)(k,{name:`zuoduiqi`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[169]||=(0,t.createElementVNode)(`span`,null,`缩进和对齐`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],34)):(0,t.createCommentVNode)(``,!0),Dc(ba.value)?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,ref_key:`blockSideColorTriggerRef`,ref:Te,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`color`}]),"aria-expanded":j.value===`color`,onMousedown:i[69]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[70]||=e=>j.value=`color`,onClick:i[71]||=e=>j.value=`color`},[(0,t.createVNode)(k,{name:`yanse`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[170]||=(0,t.createElementVNode)(`span`,null,`颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Ix)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--strong":Sa.value.length>0||Dc(ba.value)}]),onClick:i[72]||=e=>Kc(ba.value)},[(0,t.createVNode)(k,{name:`cut`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[171]||=(0,t.createElementVNode)(`span`,null,`剪切`,-1)],2),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-menu__item`,onClick:i[73]||=e=>Gc(ba.value)},[(0,t.createVNode)(k,{name:`xiangxiacharujilu-copy`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[172]||=(0,t.createElementVNode)(`span`,null,`复制`,-1)]),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-menu__item`,disabled:!Mr.value,onClick:i[74]||=e=>Jc(ba.value)},[(0,t.createVNode)(k,{name:`xiangxiacharujilu-copy`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[173]||=(0,t.createElementVNode)(`span`,null,`粘贴`,-1)],8,Lx),ba.value.node.type.name===`table`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,ref_key:`blockSideTableThemeTriggerRef`,ref:ge,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":j.value===`table-theme`}]),"aria-expanded":j.value===`table-theme`,onMousedown:i[75]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:ql,onClick:ql},[(0,t.createVNode)(k,{name:`zhuti`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[174]||=(0,t.createElementVNode)(`span`,null,`主题色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Rx)):(0,t.createCommentVNode)(``,!0),[`highlightBlock`,`blockquote`].includes(ba.value.node.type.name)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:4},[(0,t.createElementVNode)(`button`,{ref_key:`blockSideSurfaceBorderTriggerRef`,ref:de,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":[`highlight-border`,`quote-border`].includes(j.value||``)}]),"aria-expanded":[`highlight-border`,`quote-border`].includes(j.value||``),onMousedown:i[76]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[77]||=e=>j.value=ba.value.node.type.name===`blockquote`?`quote-border`:`highlight-border`,onClick:i[78]||=e=>j.value=ba.value.node.type.name===`blockquote`?`quote-border`:`highlight-border`},[(0,t.createVNode)(k,{name:`yanse`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[175]||=(0,t.createElementVNode)(`span`,null,`边框颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,zx),(0,t.createElementVNode)(`button`,{ref_key:`blockSideSurfaceFillTriggerRef`,ref:fe,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":[`highlight-fill`,`quote-background`].includes(j.value||``)}]),"aria-expanded":[`highlight-fill`,`quote-background`].includes(j.value||``),onMousedown:i[79]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[80]||=e=>j.value=ba.value.node.type.name===`blockquote`?`quote-background`:`highlight-fill`,onClick:i[81]||=e=>j.value=ba.value.node.type.name===`blockquote`?`quote-background`:`highlight-fill`},[(0,t.createVNode)(k,{name:`beijingse`,size:18,color:`#4b5563`,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(ba.value.node.type.name===`blockquote`?`背景颜色`:`填充颜色`),1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Bx),ba.value.node.type.name===`highlightBlock`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_key:`blockSideHighlightSettingsTriggerRef`,ref:pe,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`highlight-settings`}]),"aria-expanded":j.value===`highlight-settings`,onMousedown:i[82]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[83]||=e=>j.value=`highlight-settings`,onClick:i[84]||=e=>j.value=`highlight-settings`},[(0,t.createVNode)(k,{name:`shezhi`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[176]||=(0,t.createElementVNode)(`span`,null,`设置`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Vx)):(0,t.createCommentVNode)(``,!0)],64)):(0,t.createCommentVNode)(``,!0),ba.value.node.type.name===`horizontalRule`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:5},[(0,t.createElementVNode)(`button`,{ref_key:`blockSideDividerStyleTriggerRef`,ref:_e,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":j.value===`divider-style`}]),"aria-expanded":j.value===`divider-style`,onMousedown:i[85]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[86]||=e=>j.value=`divider-style`,onClick:i[87]||=e=>j.value=`divider-style`},[(0,t.createVNode)(an,{name:`fengexian`,size:18,"background-color":`transparent`}),i[177]||=(0,t.createElementVNode)(`span`,null,`样式`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Hx),(0,t.createElementVNode)(`button`,{ref_key:`blockSideDividerColorTriggerRef`,ref:ve,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`divider-color`}]),"aria-expanded":j.value===`divider-color`,onMousedown:i[88]||=(0,t.withModifiers)(()=>{},[`prevent`]),onMouseenter:i[89]||=e=>j.value=`divider-color`,onClick:i[90]||=e=>j.value=`divider-color`},[(0,t.createVNode)(k,{name:`yanse`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[178]||=(0,t.createElementVNode)(`span`,null,`颜色`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Ux)],64)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,onClick:i[91]||=e=>Yc(ba.value)},[(0,t.createVNode)(k,{name:`delete`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[179]||=(0,t.createElementVNode)(`span`,null,`删除`,-1)]),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-block-side-menu__item--strong`,{"norio-office-rich-block-side-menu__item--active":j.value===`add-above`}]),"aria-expanded":j.value===`add-above`,"aria-haspopup":`true`,onMouseenter:i[92]||=e=>!Ea.value&&(j.value=`add-above`),onClick:i[93]||=e=>j.value=`add-above`},[(0,t.createVNode)(k,{name:`shangfangtianjia`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[180]||=(0,t.createElementVNode)(`span`,null,`在上方添加`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Wx),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--active":j.value===`add-below`}]),"aria-expanded":j.value===`add-below`,"aria-haspopup":`true`,onMouseenter:i[94]||=e=>!Ea.value&&(j.value=`add-below`),onClick:i[95]||=e=>j.value=`add-below`},[(0,t.createVNode)(k,{name:`xiafangtianjia`,size:18,color:`#4b5563`,"background-color":`transparent`}),i[181]||=(0,t.createElementVNode)(`span`,null,`在下方添加`,-1),(0,t.createVNode)(k,{name:`youjiantou`,size:14,color:`#9aa4b2`,"background-color":`transparent`})],42,Gx)],64)):(0,t.createCommentVNode)(``,!0)],36)),[[t.vShow,!(Ea.value&&Nt.includes(j.value||``))]]):(0,t.createCommentVNode)(``,!0),ba.value&&Ca.value&&j.value===`table-theme`?((0,t.openBlock)(),(0,t.createBlock)(Tl,{key:9,class:`norio-office-rich-block-side-table-theme`,theme:eo.value,"recent-colors":er.value,style:(0,t.normalizeStyle)(to.value),onChange:Jl,onColorUsed:af,onClear:i[98]||=e=>Jl(null),onClose:Yl,onResize:i[99]||=e=>Ve.value=e,onReposition:Kl,onMouseenter:i[100]||=e=>gc(ba.value),onMouseleave:hc,onMousedown:i[101]||=(0,t.withModifiers)(()=>{},[`stop`])},null,8,[`theme`,`recent-colors`,`style`])):(0,t.createCommentVNode)(``,!0),ba.value&&Ca.value&&j.value!==`table-theme`?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:10,class:(0,t.normalizeClass)([`norio-office-rich-block-side-submenu`,{"norio-office-rich-block-side-submenu--properties":j.value===`properties`,"norio-office-rich-block-side-submenu--color":j.value===`divider-color`}]),style:(0,t.normalizeStyle)(Ia.value),onMouseenter:i[109]||=e=>gc(ba.value),onMouseleave:hc,onMousedown:i[110]||=(0,t.withModifiers)(()=>{},[`stop`])},[Ea.value&&Nt.includes(j.value||``)?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-block-side-menu__back`,"aria-label":`返回句柄菜单`,onMousedown:i[102]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[103]||=e=>j.value=null},[(0,t.createVNode)(k,{name:`zuojiantou`,size:14,color:`currentColor`,"background-color":`transparent`}),i[182]||=(0,t.createElementVNode)(`span`,null,`返回`,-1)],32)):(0,t.createCommentVNode)(``,!0),j.value===`properties`?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(Sa.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`block-property-${e.key}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item`,{"norio-office-rich-block-side-menu__item--strong":e.action===`indent-more`,"norio-office-rich-block-side-menu__item--active":e.action===`align-${oo.value}`}]),disabled:e.action===`indent-less`?!co.value:e.action===`indent-more`&&!so.value,"aria-pressed":e.action.startsWith(`align-`)?e.action===`align-${oo.value}`:void 0,onMousedown:i[104]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>Fc(e.action)},[(0,t.createVNode)(k,{name:e.iconName,size:18,color:`#4b5563`,"background-color":`transparent`},null,8,[`name`]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.label),1),e.action===`align-${oo.value}`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,qx,`✓`)):(0,t.createCommentVNode)(``,!0)],42,Kx))),128)):Ac.value?((0,t.openBlock)(),(0,t.createBlock)(Dn,{key:2,kind:Ac.value.kind,label:Ac.value.label,"preset-colors":Ac.value.presetColors,color:Ac.value.color,"custom-kind":Tr.value,"hover-enabled":!Ea.value,onChange:i[105]||=(e,t)=>X(t??`transparent`),onCustom:zc,onReset:i[106]||=e=>X(Ac.value.defaultColor)},null,8,[`kind`,`label`,`preset-colors`,`color`,`custom-kind`,`hover-enabled`])):j.value===`highlight-settings`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,type:`button`,class:`norio-office-rich-code-block__setting-row`,role:`switch`,"aria-checked":ro.value.emojiEnabled,onMousedown:i[107]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:jc},[i[184]||=(0,t.createElementVNode)(`span`,null,`启用表情`,-1),(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch`,"data-checked":ro.value.emojiEnabled?`true`:`false`,"aria-hidden":`true`},[...i[183]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-code-block__switch-thumb`},null,-1)]],8,Yx)],40,Jx)):j.value===`divider-style`?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:4},(0,t.renderList)((0,t.unref)(Of),e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.value,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-block-side-menu__item norio-office-rich-divider-style-option`,{"norio-office-rich-block-side-menu__item--active":lo.value===e.value}]),"aria-label":e.label,title:e.label,"aria-pressed":lo.value===e.value,onMousedown:i[108]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>Mc({lineStyle:e.value})},[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-divider-style-option__preview`,style:(0,t.normalizeStyle)({borderTopStyle:e.value}),"aria-hidden":`true`},null,4),(0,t.createElementVNode)(`span`,Zx,(0,t.toDisplayString)(lo.value===e.value?`✓`:``),1)],42,Xx))),128)):j.value===`divider-color`?((0,t.openBlock)(),(0,t.createBlock)(xn,{key:5,color:uo.value,"default-color":(0,t.unref)(Df),"recent-colors":$n.value,onChange:Nc},null,8,[`color`,`default-color`,`recent-colors`])):j.value===`color`?((0,t.openBlock)(),(0,t.createBlock)(Dn,{key:6,"text-color":io.value.text,"background-color":io.value.background,"custom-kind":Tr.value,"hover-enabled":!Ea.value,onChange:Lc,onCustom:zc,onReset:Rc},null,8,[`text-color`,`background-color`,`custom-kind`,`hover-enabled`])):j.value===`add-above`||j.value===`add-below`?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:7},[(0,t.createElementVNode)(`div`,Qx,[i[185]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`基础`,-1),(0,t.createElementVNode)(`div`,$x,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(kn,e=>(0,t.createElementVNode)(`button`,{key:`block-add-quick-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__quick-button`,onClick:t=>xc(e.action)},[e.type===`icon`?((0,t.openBlock)(),(0,t.createBlock)(k,{key:0,name:e.iconName||``,size:17,color:`#1f2937`,"background-color":`transparent`},null,8,[`name`])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,tS,(0,t.toDisplayString)(e.label),1))],8,eS)),64))])]),(0,t.createElementVNode)(`div`,nS,[i[186]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-side-menu__title`},`常用`,-1),((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Nn,e=>(0,t.createElementVNode)(`button`,{key:`block-add-insert-${e.key}`,type:`button`,class:`norio-office-rich-block-side-menu__item`,onClick:t=>xc(e.action)},[e.colorIconName?((0,t.openBlock)(),(0,t.createBlock)(an,{key:0,name:e.colorIconName},null,8,[`name`])):((0,t.openBlock)(),(0,t.createBlock)(k,{key:1,name:`smile`,size:17,color:`#64748b`,"background-color":`transparent`})),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(Jn(e.key)),1)],8,rS)),64))])],64)):(0,t.createCommentVNode)(``,!0)],38)),[[t.vShow,!(Ea.value&&Tr.value)]]):(0,t.createCommentVNode)(``,!0),ba.value&&Ca.value&&Tr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:11,class:`norio-office-rich-block-side-submenu norio-office-rich-block-side-submenu--color norio-office-rich-block-side-submenu--tertiary`,style:(0,t.normalizeStyle)(Ra.value),role:`dialog`,"aria-label":Vc.value.label,onMouseenter:i[115]||=e=>gc(ba.value),onMouseleave:hc,onMousedown:i[116]||=(0,t.withModifiers)(()=>{},[`stop`])},[Ea.value?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`norio-office-rich-block-side-menu__back norio-office-rich-block-colors__palette-back`,"aria-label":`返回颜色菜单`,onMousedown:i[111]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[112]||=e=>Tr.value=null},[(0,t.createVNode)(k,{name:`zuojiantou`,size:14,color:`currentColor`,"background-color":`transparent`}),i[187]||=(0,t.createElementVNode)(`span`,null,`返回`,-1)],32)):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(xn,{color:Vc.value.color||Vc.value.defaultColor,"default-color":Vc.value.defaultColor,"recent-colors":Vc.value.recentColors,onChange:Bc},null,8,[`color`,`default-color`,`recent-colors`]),(0,t.createElementVNode)(`div`,aS,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-color-menu__current`,onMousedown:i[113]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:i[114]||=e=>Bc(null)},`清除颜色`,32)])],44,iS)):(0,t.createCommentVNode)(``,!0),dr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:12,class:`norio-office-rich-drag-insert-indicator`,style:(0,t.normalizeStyle)({left:`${dr.value.left}px`,top:`${dr.value.top}px`,width:`${dr.value.width}px`}),"aria-hidden":`true`},[...i[188]||=[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-drag-insert-indicator__line`},null,-1)]],4)):(0,t.createCommentVNode)(``,!0),Mr.value&&vn.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:13,class:`norio-office-rich-table-column-track`,style:(0,t.normalizeStyle)({left:`${vn.value.left}px`,top:`${vn.value.top-14}px`,width:`${vn.value.width}px`})},[i[189]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-column-track__line`},null,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(yn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`table-column-segment-${e.index}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-column-track__segment`,{"norio-office-rich-table-column-track__segment--active":wn.value===e.index}]),style:(0,t.normalizeStyle)({left:`${e.left-vn.value.left}px`,width:`${e.width}px`}),onMousedown:i[117]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>$l(e.index)},null,46,oS))),128)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Sn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-table-track__dot norio-office-rich-table-track__dot--column`,title:`插入列`,"aria-label":`插入列`,style:(0,t.normalizeStyle)({left:`${e.left-vn.value.left}px`}),onMousedown:i[118]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>tu(e.insertIndex)},null,44,sS))),128))],4)):(0,t.createCommentVNode)(``,!0),Mr.value&&vn.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:14,class:`norio-office-rich-table-row-track`,style:(0,t.normalizeStyle)({left:`${vn.value.left-14}px`,top:`${vn.value.top}px`,height:`${vn.value.height}px`})},[i[190]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-table-row-track__line`},null,-1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(bn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`table-row-segment-${e.index}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-table-row-track__segment`,{"norio-office-rich-table-row-track__segment--active":Tn.value===e.index}]),style:(0,t.normalizeStyle)({top:`${e.top-vn.value.top}px`,height:`${e.height}px`}),onMousedown:i[119]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>eu(e.index)},null,46,cS))),128)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Cn.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-table-track__dot norio-office-rich-table-track__dot--row`,title:`插入行`,"aria-label":`插入行`,style:(0,t.normalizeStyle)({top:`${e.top-vn.value.top}px`}),onMousedown:i[120]||=(0,t.withModifiers)(()=>{},[`prevent`]),onClick:t=>nu(e.insertIndex)},null,44,lS))),128))],4)):(0,t.createCommentVNode)(``,!0),(0,t.createCommentVNode)(``,!0)],544)],4)]),_:1})]),qr.value?((0,t.openBlock)(),(0,t.createElementBlock)(`aside`,{key:2,ref_key:`commentPanelRef`,ref:y,class:`norio-office-rich-comment-panel`,"aria-label":`评论`},[(0,t.createElementVNode)(`div`,uS,[(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(Jr.value),1)]),(0,t.createVNode)(Vn,{"class-name":`norio-office-rich-comment-panel__scroll`},{default:(0,t.withCtx)(()=>[Kr.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Kr.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`article`,{key:e.id,ref_for:!0,ref:t=>id(e.id,t),class:(0,t.normalizeClass)([`norio-office-rich-comment-card`,{"norio-office-rich-comment-card--active":Yr.value?.id===e.id,"norio-office-rich-comment-card--pending":gt.value?.id===e.id}]),onClick:t=>fd(e)},[i[193]||=(0,t.createElementVNode)(`div`,{class:`norio-office-rich-comment-card__topline`},null,-1),(0,t.createElementVNode)(`div`,mS,(0,t.toDisplayString)($u(e)),1),(0,t.createElementVNode)(`div`,hS,[(0,t.createElementVNode)(`button`,{type:`button`,title:`删除`,disabled:gt.value?.id===e.id,onClick:(0,t.withModifiers)(t=>Sd(e.id),[`stop`])},[(0,t.createVNode)(k,{name:`delete`,size:13,color:`#dc2626`,"background-color":`transparent`})],8,gS)]),e.comments.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_S,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Gu(e),n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.id,class:`norio-office-rich-comment-item`},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-comment-item__avatar`,style:(0,t.normalizeStyle)(Fu(n.author))},[n.author.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:n.author.avatar,alt:``},null,8,vS)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,yS,(0,t.toDisplayString)(Pu(n.author)),1))],4),(0,t.createElementVNode)(`div`,bS,[(0,t.createElementVNode)(`div`,xS,[(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(n.author.name),1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(Iu(n.updatedAt||n.createdAt)),1)]),_d(e.id,n)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,value:pt.value,rows:`2`,onInput:vd,onKeydown:t=>yd(e.id,n,t)},null,40,SS),(0,t.createElementVNode)(`div`,CS,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(bd,[`stop`])},`取消`),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,onClick:(0,t.withModifiers)(t=>xd(e.id,n),[`stop`])},` 保存 `,8,wS)])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,TS,(0,t.toDisplayString)(n.content),1),n.images?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ES,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.images,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.url,type:`button`,class:`norio-office-rich-comment-images__item`,onClick:(0,t.withModifiers)(t=>Dd(e),[`stop`])},[(0,t.createElementVNode)(`img`,{src:e.url,alt:e.alt||e.name||``},null,8,OS)],8,DS))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,kS,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(t=>Zu(e,n),[`stop`])},`回复`,8,AS),n.author.id===Gr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,onClick:(0,t.withModifiers)(t=>gd(e.id,n),[`stop`])},`编辑`,8,jS)):(0,t.createCommentVNode)(``,!0),n.author.id===Gr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,onClick:(0,t.withModifiers)(t=>Sd(e.id,n),[`stop`])},`删除`,8,MS)):(0,t.createCommentVNode)(``,!0)])],64)),Ku(e,n).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,NS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Ku(e,n),n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.id,class:`norio-office-rich-comment-item norio-office-rich-comment-item--reply`},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-comment-item__avatar`,style:(0,t.normalizeStyle)(Fu(n.author))},[n.author.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:n.author.avatar,alt:``},null,8,PS)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,FS,(0,t.toDisplayString)(Pu(n.author)),1))],4),(0,t.createElementVNode)(`div`,IS,[(0,t.createElementVNode)(`div`,LS,[(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(n.author.name),1),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(Iu(n.updatedAt||n.createdAt)),1)]),_d(e.id,n)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,value:pt.value,rows:`2`,onInput:vd,onKeydown:t=>yd(e.id,n,t)},null,40,RS),(0,t.createElementVNode)(`div`,zS,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(bd,[`stop`])},`取消`),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,onClick:(0,t.withModifiers)(t=>xd(e.id,n),[`stop`])},` 保存 `,8,BS)])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,VS,(0,t.toDisplayString)(n.content),1),n.images?.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,HS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.images,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.url,type:`button`,class:`norio-office-rich-comment-images__item`,onClick:(0,t.withModifiers)(t=>Dd(e),[`stop`])},[(0,t.createElementVNode)(`img`,{src:e.url,alt:e.alt||e.name||``},null,8,WS)],8,US))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,GS,[(0,t.createElementVNode)(`button`,{type:`button`,onClick:(0,t.withModifiers)(t=>Zu(e,n),[`stop`])},`回复`,8,KS),n.author.id===Gr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,onClick:(0,t.withModifiers)(t=>gd(e.id,n),[`stop`])},`编辑`,8,qS)):(0,t.createCommentVNode)(``,!0),n.author.id===Gr.value?.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,onClick:(0,t.withModifiers)(t=>Sd(e.id,n),[`stop`])},`删除`,8,JS)):(0,t.createCommentVNode)(``,!0)])],64))])]))),128))])):(0,t.createCommentVNode)(``,!0),Xu(e,n)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:3,class:`norio-office-rich-comment-composer norio-office-rich-comment-composer--inline`,onClick:i[122]||=(0,t.withModifiers)(()=>{},[`stop`])},[Hu(e.id,Ju(e.id)??void 0).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,YS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Hu(e.id,Ju(e.id)??void 0),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:`${n.url}-${r}`,class:`norio-office-rich-comment-draft-images__item`},[(0,t.createElementVNode)(`img`,{src:n.url,alt:n.alt||n.name||``},null,8,XS),(0,t.createElementVNode)(`button`,{type:`button`,onClick:t=>Ed(e.id,r,Ju(e.id)??void 0)},`x`,8,ZS)]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,placeholder:`回复 ${Yu(e)?.author.name??``}`,value:Ru(e.id,Ju(e.id)??void 0),rows:`2`,onInput:t=>Bu(e.id,t,Ju(e.id)??void 0),onKeydown:t=>Vu(e.id,t,Ju(e.id)??void 0)},null,40,QS),(0,t.createElementVNode)(`div`,$S,[(0,t.createElementVNode)(`button`,{type:`button`,title:`上传图片`,onClick:t=>Cd(e.id)},[(0,t.createVNode)(k,{name:`image`,size:14,color:`#667085`,"background-color":`transparent`})],8,eC),i[191]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-comment-composer__spacer`},null,-1),(0,t.createElementVNode)(`button`,{type:`button`,onClick:t=>Qu(e.id,Ju(e.id)??``)},`取消`,8,tC),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,disabled:!Gr.value||!Ru(e.id,Ju(e.id)??void 0).trim()&&!Hu(e.id,Ju(e.id)??void 0).length,onClick:t=>hd(e.id,Ju(e.id)??void 0)},` 回复 `,8,nC)])])):(0,t.createCommentVNode)(``,!0)])]))),128))])):gt.value?.id===e.id?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rC,` 暂无回复 `)),(Yr.value?.id===e.id||gt.value?.id===e.id)&&!Yu(e)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`norio-office-rich-comment-composer`,onClick:i[123]||=(0,t.withModifiers)(()=>{},[`stop`])},[Hu(e.id).length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,iC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Hu(e.id),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:`${n.url}-${r}`,class:`norio-office-rich-comment-draft-images__item`},[(0,t.createElementVNode)(`img`,{src:n.url,alt:n.alt||n.name||``},null,8,aC),(0,t.createElementVNode)(`button`,{type:`button`,onClick:t=>Ed(e.id,r)},`×`,8,oC)]))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`textarea`,{class:`norio-office-rich-comment-composer__input`,placeholder:gt.value?.id===e.id?`输入评论`:`回复`,value:Ru(e.id),rows:`2`,onInput:t=>Bu(e.id,t),onKeydown:t=>Vu(e.id,t)},null,40,sC),(0,t.createElementVNode)(`div`,cC,[(0,t.createElementVNode)(`button`,{type:`button`,title:`上传图片`,onClick:t=>Cd(e.id)},[(0,t.createVNode)(k,{name:`image`,size:14,color:`#667085`,"background-color":`transparent`})],8,lC),i[192]||=(0,t.createElementVNode)(`span`,{class:`norio-office-rich-comment-composer__spacer`},null,-1),gt.value?.id===e.id?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,onClick:t=>md(e.id)},` 取消 `,8,uC)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-composer__submit`,disabled:!Gr.value||!Ru(e.id).trim()&&!Hu(e.id).length,onClick:t=>hd(e.id)},(0,t.toDisplayString)(gt.value?.id===e.id?`发布`:`回复`),9,dC)])])):(0,t.createCommentVNode)(``,!0)],10,pS))),128))])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,dS,` 暂无评论 `))]),_:1})],512)):(0,t.createCommentVNode)(``,!0)]),Hr.value&&bt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,ref_key:`commentMentionPanelRef`,ref:b,class:`norio-office-rich-mention-panel norio-office-rich-comment-mention-panel`,style:(0,t.normalizeStyle)(B.value),onMousedown:i[124]||=(0,t.withModifiers)(()=>{},[`prevent`])},[(0,t.createElementVNode)(`div`,fC,[((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Pt,e=>(0,t.createElementVNode)(`button`,{key:`comment-${String(e.key)}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__tab`,{"norio-office-rich-mention-panel__tab--active":Ct.value===e.key}]),onClick:t=>ea(e.key)},(0,t.toDisplayString)(e.label),11,pC)),64))]),(0,t.createVNode)(Vn,{class:`norio-office-rich-mention-panel__scroll`},{default:(0,t.withCtx)(()=>[xt.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,mC,`加载中...`)):Ci.value.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:2},(0,t.renderList)(Ci.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:`comment-${e.type}-${e.id}`,type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-mention-panel__item`,{"norio-office-rich-mention-panel__item--active":n===Tt.value}]),onClick:t=>ta(e,n),onDblclick:t=>na(e)},[(0,t.createElementVNode)(`span`,{class:`norio-office-rich-mention-panel__avatar`,"data-type":e.type,style:(0,t.normalizeStyle)(U(e))},[e.type===1&&e.avatar?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:e.avatar,alt:``},null,8,vC)):e.type===2&&e.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:e.icon,alt:``},null,8,yC)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,bC,(0,t.toDisplayString)(Di(e)),1))],12,_C),(0,t.createElementVNode)(`span`,xC,[(0,t.createElementVNode)(`span`,SC,[(0,t.createElementVNode)(`span`,CC,(0,t.toDisplayString)(e.name),1),e.tag?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,wC,(0,t.toDisplayString)(e.tag),1)):(0,t.createCommentVNode)(``,!0)]),e.type===2&&e.updatedAt?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,TC,` 最近修改:`+(0,t.toDisplayString)(e.updatedAt),1)):(0,t.createCommentVNode)(``,!0)])],42,gC))),128)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hC,`暂无可提及内容`))]),_:1}),(0,t.createElementVNode)(`div`,EC,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-mention-panel__submit`,disabled:!wi.value,onClick:ra},` 提及 `,8,DC)])],36)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:`body`},[M.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-block-drag-ghost`,style:(0,t.normalizeStyle)(za.value),"aria-hidden":`true`},[(0,t.createElementVNode)(`div`,{class:`norio-office-rich-block-drag-ghost__content norio-office-rich-prosemirror`,innerHTML:M.value.html},null,8,OC)],4)):(0,t.createCommentVNode)(``,!0)])),(0,t.createVNode)(el,{open:It.value,value:Lt.value,title:`插入 LaTeX 公式`,"submit-label":`插入`,onClose:Su,onSubmit:Tu},null,8,[`open`,`value`]),(0,t.createElementVNode)(`input`,{ref_key:`markdownImportInputRef`,ref:C,type:`file`,accept:`.md,.markdown,text/markdown,text/plain`,hidden:``,onChange:wu},null,544),(0,t.createElementVNode)(`input`,{ref_key:`localFileInputRef`,ref:w,type:`file`,hidden:``,onChange:zd},null,544),(0,t.createElementVNode)(`input`,{ref_key:`imageUploadInputRef`,ref:T,type:`file`,accept:`image/*`,hidden:``,onChange:Ld},null,544),(0,t.createElementVNode)(`input`,{ref_key:`videoUploadInputRef`,ref:E,type:`file`,accept:`video/*`,hidden:``,onChange:Rd},null,544),(0,t.createElementVNode)(`input`,{ref_key:`commentImageInputRef`,ref:ee,type:`file`,accept:`image/*`,hidden:``,onChange:Td},null,544),_t.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:`norio-office-rich-comment-image-viewer`,role:`dialog`,"aria-modal":`true`,onClick:(0,t.withModifiers)(Od,[`self`])},[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-comment-image-viewer__close`,"aria-label":`Close image preview`,onClick:Od},[(0,t.createVNode)(k,{name:`close`,size:20,color:`#ffffff`,"background-color":`transparent`})]),(0,t.createElementVNode)(`div`,kC,[(0,t.createElementVNode)(`img`,{class:`norio-office-rich-comment-image-viewer__image`,src:_t.value.url,alt:_t.value.alt||_t.value.name||``},null,8,AC),_t.value.name||_t.value.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jC,[_t.value.name?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,MC,(0,t.toDisplayString)(_t.value.name),1)):(0,t.createCommentVNode)(``,!0),_t.value.description?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,NC,(0,t.toDisplayString)(_t.value.description),1)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)])])):(0,t.createCommentVNode)(``,!0),st.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,PC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(st.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:(0,t.normalizeClass)([`norio-office-rich-upload-panel__item`,{"norio-office-rich-upload-panel__item--uploading":e.status===`uploading`,"norio-office-rich-upload-panel__item--error":e.status===`error`}])},[e.status===`uploading`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,FC)):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,IC,`!`)),(0,t.createElementVNode)(`div`,LC,[(0,t.createElementVNode)(`div`,RC,(0,t.toDisplayString)($o(e)),1),(0,t.createElementVNode)(`div`,zC,(0,t.toDisplayString)(e.message||e.fileName),1)]),e.status===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:2,type:`button`,class:`norio-office-rich-upload-panel__button`,onClick:e.retry},` 重试 `,8,BC)):(0,t.createCommentVNode)(``,!0),e.status===`error`?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:3,type:`button`,class:`norio-office-rich-upload-panel__button norio-office-rich-upload-panel__button--ghost`,onClick:t=>es(e.id)},` 关闭 `,8,VC)):(0,t.createCommentVNode)(``,!0)],2))),128))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`footer`,HC,[(0,t.createElementVNode)(`div`,UC,[(0,t.createElementVNode)(`div`,WC,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(_i.value),1)]),(0,t.createElementVNode)(`div`,GC,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(vi.value),1)])]),(0,t.createElementVNode)(`div`,KC,[(0,t.createElementVNode)(`div`,qC,[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__button`,{"norio-office-rich-statusbar__button--active":je.value}]),title:yi.value,"aria-label":yi.value,"aria-pressed":je.value,onClick:Ys},[(0,t.createVNode)(k,{name:`yanshi`,size:17,color:`currentColor`,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,YC,(0,t.toDisplayString)(yi.value),1)],10,JC),(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__button`,{"norio-office-rich-statusbar__button--active":Ae.value}]),title:bi.value,"aria-label":bi.value,"aria-pressed":Ae.value,onClick:Ks},[(0,t.createVNode)(k,{name:Ae.value?`huanyuan`:`quanpingzuidahua`,size:17,color:`currentColor`,"background-color":`transparent`},null,8,[`name`]),(0,t.createElementVNode)(`span`,ZC,(0,t.toDisplayString)(bi.value),1)],10,XC)]),(0,t.createElementVNode)(`div`,QC,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-statusbar__button norio-office-rich-statusbar__button--icon`,title:`缩小`,"aria-label":`缩小`,disabled:At.value<=50,onClick:i[125]||=e=>Xs(At.value-10)},[(0,t.createVNode)(k,{name:`jianshao`,size:13,color:`currentColor`,"background-color":`transparent`})],8,$C),(0,t.createElementVNode)(`div`,ew,(0,t.toDisplayString)(At.value)+`%`,1),(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-statusbar__button norio-office-rich-statusbar__button--icon`,title:`放大`,"aria-label":`放大`,disabled:At.value>=200,onClick:i[126]||=e=>Xs(At.value+10)},[(0,t.createVNode)(k,{name:`add`,size:13,color:`currentColor`,"background-color":`transparent`})],8,tw)]),ri.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`statusbarExportMenuRef`,ref:te,class:`norio-office-rich-statusbar__group norio-office-rich-statusbar__group--export`,onKeydown:us},[(0,t.createElementVNode)(`button`,{type:`button`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__button`,{"norio-office-rich-statusbar__button--active":Xe.value}]),title:di.value,"aria-label":di.value,"aria-haspopup":`menu`,"aria-expanded":Xe.value,disabled:!!kt.value,onClick:ls},[(0,t.createVNode)(an,{name:`xiazai`,size:19,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,rw,(0,t.toDisplayString)(di.value),1),(0,t.createVNode)(k,{name:`xiangxiajiantou`,size:11,color:`currentColor`,"background-color":`transparent`,class:(0,t.normalizeClass)([`norio-office-rich-statusbar__caret`,{"norio-office-rich-statusbar__caret--open":Xe.value}])},null,8,[`class`])],10,nw),Xe.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`norio-office-rich-statusbar__export-menu`,role:`menu`,"aria-label":di.value},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(ti.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:e.key,type:`button`,class:`norio-office-rich-statusbar__export-item`,role:`menuitem`,disabled:!!kt.value,onClick:e.onClick},[(0,t.createVNode)(an,{name:e.iconName,size:20,"background-color":`transparent`},null,8,[`name`]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(kt.value===e.key?e.loadingLabel:e.label),1)],8,aw))),128))],8,iw)):(0,t.createCommentVNode)(``,!0)],544)):(0,t.createCommentVNode)(``,!0),ni.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ow,[(0,t.createElementVNode)(`button`,{type:`button`,class:`norio-office-rich-statusbar__button`,title:fi.value,"aria-label":fi.value,disabled:!!kt.value,onClick:Ds},[(0,t.createVNode)(an,{name:`dayin`,size:19,"background-color":`transparent`}),(0,t.createElementVNode)(`span`,cw,(0,t.toDisplayString)(fi.value),1)],8,sw)])):(0,t.createCommentVNode)(``,!0)])]),(0,t.withDirectives)((0,t.createElementVNode)(`div`,{class:`norio-office-rich-editor__presentation-pointer`,style:(0,t.normalizeStyle)(P.value),"aria-hidden":`true`},null,4),[[t.vShow,je.value]])],40,iv))}}),jw=(0,t.defineComponent)({__name:`RichTextOutline`,props:{editor:{},open:{type:Boolean,default:!0},placement:{default:`right`},title:{default:`大纲`},collapseTitle:{default:`收起大纲`},emptyDescription:{default:`对文档内容应用“标题”样式,即可自动生成大纲。`},emptyTip:{default:``},showCollapse:{type:Boolean,default:!1}},emits:[`toggle`,`select`,`change`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)([]),o=(0,t.ref)(null),s=null;function c(){return(0,t.unref)(r.editor)}function l(e){a.value=e.items,o.value=e.activePos,i(`change`,e)}function u(){let e=c();l({items:e?.getOutlineItems()??[],activePos:e?.getActiveOutlinePos()??null})}function d(){s?.(),s=null;let e=c();if(!e){u();return}s=e.onOutlineChange(l)}function f(e){i(`select`,e),c()?.focusOutlineItem(e)}return(0,t.watch)(()=>c(),d,{immediate:!0}),(0,t.onBeforeUnmount)(()=>{s?.()}),(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(fl,{standalone:``,open:e.open,placement:e.placement,title:e.title,"collapse-title":e.collapseTitle,"empty-description":e.emptyDescription,"empty-tip":e.emptyTip,"show-collapse":e.showCollapse,items:a.value,"active-pos":o.value,onToggle:r[0]||=e=>i(`toggle`),onSelect:f},null,8,[`open`,`placement`,`title`,`collapse-title`,`empty-description`,`empty-tip`,`show-collapse`,`items`,`active-pos`]))}}),Mw=Aw;e.OfficeColorIcon=an,e.OfficeIcon=k,e.RICH_TEXT_EDITOR_EXPORT_CODES=ng,e.RICH_TEXT_EDITOR_FEATURE_CODES=tg,e.RICH_TEXT_EDITOR_INSERT_MENU_CODES=rg,e.RICH_TEXT_EDITOR_TOOLBAR_ACTION_CODES=ig,e.RichTextEditor=Aw,e.RichTextOutline=jw,e.ScrollArea=Vn,e.colorIconNames=nn,e.default=Mw,e.isRichTextCodeEnabled=ag,e.isRichTextFeatureCodeEnabled=og,e.monoIconNames=tn,e.resolveRichTextOutlinePlacement=sg});
|