@univerjs/preset-docs-core 0.5.1 → 0.5.3
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/lib/cjs/locales/en-US.js +1 -1
- package/lib/cjs/locales/fa-IR.js +1 -1
- package/lib/cjs/locales/fr-FR.js +1 -1
- package/lib/cjs/locales/ru-RU.js +1 -1
- package/lib/cjs/locales/vi-VN.js +1 -1
- package/lib/cjs/locales/zh-CN.js +1 -1
- package/lib/cjs/locales/zh-TW.js +1 -1
- package/lib/es/locales/en-US.js +9 -9
- package/lib/es/locales/fa-IR.js +9 -9
- package/lib/es/locales/fr-FR.js +7 -7
- package/lib/es/locales/ru-RU.js +7 -7
- package/lib/es/locales/vi-VN.js +8 -8
- package/lib/es/locales/zh-CN.js +9 -9
- package/lib/es/locales/zh-TW.js +9 -9
- package/lib/index.css +1 -1
- package/lib/types/index.d.ts +1 -10
- package/lib/types/umd.d.ts +10 -0
- package/lib/umd/index.js +57 -29
- package/lib/umd/locales/en-US.js +1 -1
- package/lib/umd/locales/fa-IR.js +1 -1
- package/lib/umd/locales/fr-FR.js +1 -1
- package/lib/umd/locales/ru-RU.js +1 -1
- package/lib/umd/locales/vi-VN.js +1 -1
- package/lib/umd/locales/zh-CN.js +1 -1
- package/lib/umd/locales/zh-TW.js +1 -1
- package/package.json +12 -10
package/lib/umd/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @univerjs/ui/index
|
|
2
|
-
(function(C,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("@univerjs/core"),require("react"),require("rxjs"),require("@univerjs/design"),require("rxjs/operators"),require("@univerjs/engine-render"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","react","rxjs","@univerjs/design","rxjs/operators","@univerjs/engine-render","react-dom"],f):(C=typeof globalThis<"u"?globalThis:C||self,f(C.UniverUi={},C.UniverCore,C.React,C.rxjs,C.UniverDesign,C.rxjs.operators,C.UniverEngineRender,C.ReactDOM))})(this,function(C,f,s,re,he,$n,I1,T1){"use strict";var x5=Object.defineProperty;var N5=C=>{throw TypeError(C)};var V5=(C,f,s)=>f in C?x5(C,f,{enumerable:!0,configurable:!0,writable:!0,value:s}):C[f]=s;var te=(C,f,s)=>V5(C,typeof f!="symbol"?f+"":f,s);var kn=(C,f,s)=>f.has(C)?N5("Cannot add the same private member more than once"):f instanceof WeakSet?f.add(C):f.set(C,s);var Dn,xn;function ri(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const J=ri(s);var je=function(){return je=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},je.apply(this,arguments)},ii=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},N=s.forwardRef(function(e,t){var n=e.icon,r=e.id,i=e.className,o=e.extend,a=ii(e,["icon","id","className","extend"]),l="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),h=s.useRef("_".concat(si()));return Bn(n,"".concat(r),{defIds:n.defIds,idSuffix:h.current},je({ref:t,className:l},a),o)});function Bn(e,t,n,r,i){return s.createElement(e.tag,je(je({key:t},oi(e,n,i)),r),(ai(e,n).children||[]).map(function(o,a){return Bn(o,"".concat(t,"-").concat(e.tag,"-").concat(a),n,void 0,i)}))}function oi(e,t,n){var r=je({},e.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=t.defIds;return!i||i.length===0||(e.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+t.idSuffix),Object.entries(r).forEach(function(o){var a=o[0],l=o[1];typeof l=="string"&&(r[a]=l.replace(/url\(#(.*)\)/,"url(#$1".concat(t.idSuffix,")")))})),r}function ai(e,t){var n,r=t.defIds;return!r||r.length===0?e:e.tag==="defs"&&(!((n=e.children)===null||n===void 0)&&n.length)?je(je({},e),{children:e.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?je(je({},i),{attrs:je(je({},i.attrs),{id:i.attrs.id+t.idSuffix})}):i})}):e}function si(){return Math.random().toString(36).substring(2,8)}N.displayName="UniverIcon";var li={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.06641 3.49366C4.06641 2.27555 5.14145 1.3916 6.33307 1.3916 7.52469 1.3916 8.59974 2.27555 8.59974 3.49366V6.49777C8.59974 7.71586 7.52469 8.59982 6.33307 8.59982 5.14145 8.59982 4.06641 7.71586 4.06641 6.49777V3.49366zM6.33307 2.5916C5.68376 2.5916 5.26641 3.05264 5.26641 3.49366V6.49777C5.26641 6.93878 5.68376 7.39982 6.33307 7.39982 6.98239 7.39982 7.39974 6.93878 7.39974 6.49777V3.49366C7.39974 3.05264 6.98239 2.5916 6.33307 2.5916zM10.0664 3.49366C10.0664 2.27555 11.1415 1.3916 12.3331 1.3916 13.5247 1.3916 14.5997 2.27555 14.5997 3.49366V6.49777C14.5997 7.71586 13.5247 8.59982 12.3331 8.59982 11.1415 8.59982 10.0664 7.71586 10.0664 6.49777V3.49366zM12.3331 2.5916C11.6838 2.5916 11.2664 3.05264 11.2664 3.49366V6.49777C11.2664 6.93878 11.6838 7.39982 12.3331 7.39982 12.9824 7.39982 13.3997 6.93878 13.3997 6.49777V3.49366C13.3997 3.05264 12.9824 2.5916 12.3331 2.5916z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.4242 9.5417C12.1899 9.30739 11.81 9.30739 11.5756 9.5417 11.3413 9.77602 11.3413 10.1559 11.5756 10.3902L12.5514 11.366H6.3334C6.00203 11.366 5.7334 11.6346 5.7334 11.966 5.7334 12.2973 6.00203 12.566 6.3334 12.566H12.5514L11.5756 13.5417C11.3413 13.776 11.3413 14.1559 11.5756 14.3902 11.81 14.6245 12.1899 14.6245 12.4242 14.3902L14.4159 12.3985C14.5294 12.2893 14.6001 12.1359 14.6001 11.966 14.6001 11.796 14.5294 11.6426 14.4159 11.5334L12.4242 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z"}}]},Un=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"add-digits-single",ref:t,icon:li}))});Un.displayName="AddDigitsSingle";var ci={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1312",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1312)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M8.60231 5.77597L9.38125 6.55432C9.61658 6.78947 9.99797 6.78932 10.2331 6.554C10.4683 6.31867 10.4681 5.93728 10.2328 5.70214L8.44939 3.92009C8.33908 3.79657 8.1786 3.7188 7.99995 3.7188C7.84562 3.71861 7.6906 3.77736 7.57281 3.89506L5.76712 5.69933C5.5318 5.93447 5.53165 6.31587 5.76679 6.55119C6.00193 6.78652 6.38332 6.78667 6.61865 6.55153L7.3976 5.77319L7.3976 10.2246L6.61865 9.44621C6.38333 9.21107 6.00194 9.21121 5.76679 9.44654C5.53165 9.68186 5.53179 10.0633 5.76712 10.2984L7.55051 12.0804C7.66082 12.204 7.82131 12.2817 7.99995 12.2817L8.00089 12.2817C8.15512 12.2819 8.30939 12.2231 8.4271 12.1055L10.2328 10.3012C10.4681 10.0661 10.4683 9.68467 10.2331 9.44934C9.99798 9.21402 9.61659 9.21387 9.38126 9.44901L8.60231 10.2274L8.60231 5.77597Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M13.7039 3.24701C14.0539 3.24701 14.3377 2.96327 14.3377 2.61325 14.3377 2.26324 14.0539 1.97949 13.7039 1.97949L2.29627 1.97949C1.94625 1.97949 1.66251 2.26324 1.66251 2.61325 1.66251 2.96327 1.94625 3.24701 2.29627 3.24701L13.7039 3.24701zM13.7039 14.0209C14.0539 14.0209 14.3377 13.7372 14.3377 13.3872 14.3377 13.0371 14.0539 12.7534 13.7039 12.7534L2.29627 12.7534C1.94625 12.7534 1.66251 13.0371 1.66251 13.3872 1.66251 13.7372 1.94625 14.0209 2.29627 14.0209L13.7039 14.0209z"}}]}]},Fn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-height",ref:t,icon:ci}))});Fn.displayName="AdjustHeight";var ui={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1166",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1166)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.77574 7.3974L6.5541 6.61846C6.78924 6.38313 6.78909 6.00174 6.55377 5.7666C6.31844 5.53145 5.93705 5.5316 5.70191 5.76692L3.91987 7.55032C3.79634 7.66063 3.71857 7.82111 3.71857 7.99976C3.71838 8.15409 3.77713 8.30912 3.89483 8.42691L5.6991 10.2326C5.93425 10.4679 6.31564 10.4681 6.55096 10.2329C6.78629 9.99778 6.78644 9.61639 6.5513 9.38106L5.77296 8.60211L10.2243 8.60211L9.44598 9.38106C9.21084 9.61638 9.21099 9.99777 9.44631 10.2329C9.68164 10.4681 10.063 10.4679 10.2982 10.2326L12.0802 8.4492C12.2037 8.33889 12.2815 8.1784 12.2815 7.99976L12.2815 7.99882C12.2816 7.84459 12.2229 7.69032 12.1052 7.57261L10.301 5.76693C10.0658 5.5316 9.68444 5.53145 9.44911 5.76659C9.21379 6.00173 9.21364 6.38312 9.44878 6.61845L10.2271 7.3974L5.77574 7.3974Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M3.24683 2.29598C3.24683 1.94596 2.96308 1.66222 2.61307 1.66222 2.26305 1.66222 1.97931 1.94596 1.97931 2.29598L1.97931 13.7036C1.97931 14.0537 2.26305 14.3374 2.61307 14.3374 2.96308 14.3374 3.24683 14.0537 3.24683 13.7036L3.24683 2.29598zM14.0207 2.29598C14.0207 1.94596 13.737 1.66222 13.387 1.66222 13.037 1.66222 12.7532 1.94596 12.7532 2.29598L12.7532 13.7036C12.7532 14.0537 13.037 14.3374 13.387 14.3374 13.737 14.3374 14.0207 14.0537 14.0207 13.7036L14.0207 2.29598z"}}]}]},zn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-width",ref:t,icon:ui}))});zn.displayName="AdjustWidth";var fi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3999 13.6999C1.3999 13.3685 1.66853 13.0999 1.9999 13.0999H13.9999C14.3313 13.0999 14.5999 13.3685 14.5999 13.6999 14.5999 14.0312 14.3313 14.2999 13.9999 14.2999H1.9999C1.66853 14.2999 1.3999 14.0312 1.3999 13.6999zM7.57564 10.3914C7.80995 10.6257 8.18985 10.6257 8.42417 10.3914L10.4242 8.3914C10.6585 8.15709 10.6585 7.77719 10.4242 7.54287 10.1899 7.30856 9.80995 7.30856 9.57564 7.54287L7.9999 9.11861 6.42417 7.54287C6.18985 7.30856 5.80995 7.30856 5.57564 7.54287 5.34132 7.77719 5.34132 8.15709 5.57564 8.3914L7.57564 10.3914z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.9999 10.5671C8.33127 10.5671 8.5999 10.2985 8.5999 9.96714V2.30047C8.5999 1.9691 8.33127 1.70047 7.9999 1.70047C7.66853 1.70047 7.3999 1.9691 7.3999 2.30047V9.96714C7.3999 10.2985 7.66853 10.5671 7.9999 10.5671Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Zn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-bottom-single",ref:t,icon:fi}))});Zn.displayName="AlignBottomSingle";var di={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z"}}]},Wn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-text-both-single",ref:t,icon:di}))});Wn.displayName="AlignTextBothSingle";var hi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3999 2.3002C1.3999 2.63157 1.66853 2.9002 1.9999 2.9002H13.9999C14.3313 2.9002 14.5999 2.63157 14.5999 2.3002 14.5999 1.96882 14.3313 1.7002 13.9999 1.7002H1.9999C1.66853 1.7002 1.3999 1.96882 1.3999 2.3002zM8.22957 5.47839C8.30034 5.50767 8.36664 5.55107 8.42417 5.6086L10.4242 7.6086C10.6585 7.84291 10.6585 8.22281 10.4242 8.45713 10.1899 8.69144 9.80995 8.69144 9.57564 8.45713L8.5999 7.48139V13.6995C8.5999 14.0309 8.33127 14.2995 7.9999 14.2995 7.66853 14.2995 7.3999 14.0309 7.3999 13.6995V7.48139L6.42417 8.45713C6.18985 8.69144 5.80995 8.69144 5.57564 8.45713 5.34132 8.22281 5.34132 7.84291 5.57564 7.6086L7.57541 5.60882C7.7522 5.43203 8.01209 5.38841 8.22957 5.47839z"}}]},Gn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-top-single",ref:t,icon:hi}))});Gn.displayName="AlignTopSingle";var vi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Yn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"all-border-single",ref:t,icon:vi}))});Yn.displayName="AllBorderSingle";var mi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.5999 5.9999C8.5999 5.66853 8.33127 5.3999 7.9999 5.3999C7.66853 5.3999 7.3999 5.66853 7.3999 5.9999V7.40329L6.004 7.4051C5.67263 7.40553 5.40435 7.67451 5.40479 8.00588C5.40522 8.33725 5.6742 8.60553 6.00557 8.6051L7.3999 8.60329V9.9999C7.3999 10.3313 7.66853 10.5999 7.9999 10.5999C8.33127 10.5999 8.5999 10.3313 8.5999 9.9999V8.60172L10.0004 8.5999C10.3317 8.59947 10.6 8.33049 10.5996 7.99912C10.5992 7.66775 10.3302 7.39947 9.9988 7.3999L8.5999 7.40172V5.9999Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.99958 1.73315C4.53861 1.73315 1.73291 4.53885 1.73291 7.99982C1.73291 11.4608 4.53861 14.2665 7.99958 14.2665C9.51395 14.2665 10.9029 13.7293 11.9862 12.8351L13.2422 14.0908C13.4765 14.3251 13.8564 14.3251 14.0907 14.0907C14.325 13.8564 14.325 13.4765 14.0906 13.2422L12.8347 11.9866C13.729 10.9033 14.2662 9.51428 14.2662 7.99982C14.2662 4.53885 11.4605 1.73315 7.99958 1.73315ZM2.93291 7.99982C2.93291 5.20159 5.20135 2.93315 7.99958 2.93315C10.7978 2.93315 13.0662 5.20159 13.0662 7.99982C13.0662 10.7981 10.7978 13.0665 7.99958 13.0665C5.20135 13.0665 2.93291 10.7981 2.93291 7.99982Z",fillRule:"evenodd",clipRule:"evenodd"}}]},qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"amplify-single",ref:t,icon:mi}))});qn.displayName="AmplifySingle";var pi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1317",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1317)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.29713 1.98047C1.94717 1.98047 1.66348 2.26416 1.66348 2.61412 1.66348 2.96408 1.94717 3.24777 2.29713 3.24777H13.7028C14.0528 3.24777 14.3365 2.96408 14.3365 2.61412 14.3365 2.26416 14.0528 1.98047 13.7028 1.98047H2.29713zM2.29713 12.7525C1.94717 12.7525 1.66348 13.0362 1.66348 13.3862 1.66348 13.7361 1.94717 14.0198 2.29713 14.0198H13.7028C14.0528 14.0198 14.3365 13.7361 14.3365 13.3862 14.3365 13.0362 14.0528 12.7525 13.7028 12.7525H2.29713z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.42163 4.25588L4.25471 11.2231C4.10989 11.5417 4.25077 11.9174 4.56935 12.0622C4.88794 12.207 5.2636 12.0661 5.40841 11.7475L6.24766 9.90119H9.75197L10.5912 11.7475C10.736 12.0661 11.1117 12.207 11.4303 12.0622C11.7489 11.9174 11.8897 11.5417 11.7449 11.2231L8.578 4.25589C8.5675 4.23244 8.55557 4.20961 8.54227 4.18755C8.49012 4.10102 8.41688 4.0262 8.32579 3.97171C8.301 3.95688 8.27527 3.94377 8.24878 3.93246C8.16764 3.89775 8.08309 3.8813 7.99981 3.88135C7.88457 3.88142 7.77177 3.91309 7.67384 3.97171C7.58714 4.02361 7.5121 4.09664 7.45735 4.18755C7.44406 4.20961 7.43213 4.23244 7.42163 4.25588ZM9.17592 8.63388L7.99981 6.04644L6.8237 8.63388H9.17592Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Xn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-height",ref:t,icon:pi}))});Xn.displayName="AutoHeight";var Ci={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1171",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1171)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.98032 13.7028C1.98032 14.0527 2.26401 14.3364 2.61397 14.3364 2.96392 14.3364 3.24762 14.0527 3.24762 13.7028L3.24762 2.29706C3.24762 1.9471 2.96392 1.66341 2.61397 1.66341 2.26401 1.66341 1.98032 1.9471 1.98032 2.29706L1.98032 13.7028zM12.7524 13.7028C12.7524 14.0527 13.0361 14.3364 13.386 14.3364 13.736 14.3364 14.0197 14.0527 14.0197 13.7028L14.0197 2.29706C14.0197 1.9471 13.736 1.66341 13.386 1.66341 13.0361 1.66341 12.7524 1.9471 12.7524 2.29706L12.7524 13.7028z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.42187 4.25588L4.25495 11.2231C4.11014 11.5417 4.25101 11.9174 4.5696 12.0622C4.88819 12.207 5.26385 12.0661 5.40866 11.7475L6.2479 9.90119H9.75222L10.5915 11.7475C10.7363 12.0661 11.1119 12.207 11.4305 12.0622C11.7491 11.9174 11.89 11.5417 11.7452 11.2231L8.57825 4.25589C8.56775 4.23244 8.55582 4.20961 8.54252 4.18755C8.49037 4.10102 8.41713 4.0262 8.32603 3.97171C8.30125 3.95688 8.27551 3.94377 8.24902 3.93246C8.16788 3.89775 8.08333 3.8813 8.00006 3.88135C7.88481 3.88142 7.77201 3.91309 7.67409 3.97171C7.58739 4.02361 7.51235 4.09664 7.4576 4.18755C7.4443 4.20961 7.43237 4.23244 7.42187 4.25588ZM9.17617 8.63388L8.00006 6.04644L6.82395 8.63388H9.17617Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-width",ref:t,icon:Ci}))});Qn.displayName="AutoWidth";var gi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.5999 2.2001C2.5999 1.86873 2.33127 1.6001 1.9999 1.6001 1.66853 1.6001 1.3999 1.86873 1.3999 2.2001V13.8001C1.3999 14.1315 1.66853 14.4001 1.9999 14.4001 2.33127 14.4001 2.5999 14.1315 2.5999 13.8001V2.2001zM14.5999 2.2001C14.5999 1.86873 14.3313 1.6001 13.9999 1.6001 13.6685 1.6001 13.3999 1.86873 13.3999 2.2001V13.8001C13.3999 14.1315 13.6685 14.4001 13.9999 14.4001 14.3313 14.4001 14.5999 14.1315 14.5999 13.8001V2.2001zM6.424 8.24239C6.65832 8.4767 6.65832 8.8566 6.424 9.09091L6.11502 9.3999H9.33307C10.1063 9.3999 10.7331 8.7731 10.7331 7.9999 10.7331 7.22671 10.1063 6.5999 9.33307 6.5999H4.6666L4.66645 5.3999H9.33307C10.769 5.3999 11.9331 6.56396 11.9331 7.9999 11.9331 9.43584 10.769 10.5999 9.33307 10.5999H6.11485L6.424 10.9091C6.65832 11.1434 6.65832 11.5233 6.424 11.7576 6.18969 11.9919 5.80979 11.9919 5.57548 11.7576L4.24214 10.4242C4.00783 10.1899 4.00783 9.81003 4.24214 9.57572L5.57548 8.24239C5.80979 8.00807 6.18969 8.00807 6.424 8.24239z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.6666 6.5999C4.33523 6.5999 4.06641 6.33127 4.06641 5.9999C4.06641 5.66853 4.33508 5.3999 4.66645 5.3999L4.6666 6.5999Z"}}]},Jn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"autowrap-single",ref:t,icon:gi}))});Jn.displayName="AutowrapSingle";var bi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.36977 4.66364C2.67525 3.75535 3.95995 3.75535 4.26543 4.66364L6.0261 9.89866C6.13173 10.2127 5.96275 10.553 5.64867 10.6586C5.33459 10.7643 4.99434 10.5953 4.8887 10.2812L3.3176 5.60982L1.7465 10.2812C1.64086 10.5953 1.30062 10.7643 0.986532 10.6586C0.672449 10.553 0.503468 10.2127 0.609102 9.89866L2.36977 4.66364Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.6333 7.87051C1.6333 7.53914 1.90193 7.27051 2.2333 7.27051H4.52594C4.85732 7.27051 5.12594 7.53914 5.12594 7.87051 5.12594 8.20188 4.85732 8.47051 4.52594 8.47051H2.2333C1.90193 8.47051 1.6333 8.20188 1.6333 7.87051zM9.26385 10.0162C8.9281 10.853 7.74343 10.853 7.40768 10.0162L6.02978 6.58181C5.90639 6.27427 6.05568 5.92493 6.36322 5.80154 6.67076 5.67815 7.0201 5.82744 7.14349 6.13498L8.33577 9.10668 9.52805 6.13498C9.65143 5.82744 10.0008 5.67815 10.3083 5.80154 10.6159 5.92493 10.7651 6.27427 10.6418 6.58181L9.26385 10.0162zM14.8178 5.68628C15.1491 5.68628 15.4178 5.95491 15.4178 6.28628L15.4178 10.845C15.4178 11.9648 14.51 12.8726 13.3901 12.8726H12.8888C11.8122 12.8726 10.9395 11.9999 10.9395 10.9233 10.9395 10.5919 11.2081 10.3233 11.5395 10.3233 11.8708 10.3233 12.1395 10.5919 12.1395 10.9233 12.1395 11.3371 12.4749 11.6726 12.8888 11.6726H13.3901C13.8472 11.6726 14.2178 11.3021 14.2178 10.845L14.2178 6.28628C14.2178 5.95491 14.4864 5.68628 14.8178 5.68628z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M10.9395 7.82632C10.9395 6.58966 11.942 5.58716 13.1786 5.58716C14.4153 5.58716 15.4178 6.58966 15.4178 7.82632C15.4178 9.06297 14.4153 10.0655 13.1786 10.0655C11.942 10.0655 10.9395 9.06297 10.9395 7.82632ZM13.1786 6.78716C12.6047 6.78716 12.1395 7.2524 12.1395 7.82632C12.1395 8.40023 12.6047 8.86547 13.1786 8.86547C13.7525 8.86547 14.2178 8.40023 14.2178 7.82632C14.2178 7.2524 13.7525 6.78716 13.1786 6.78716Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Kn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"avg-single",ref:t,icon:bi}))});Kn.displayName="AvgSingle";var yi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_28",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.35 0.72H16.35V16.72H0.35z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_28)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.5853 14.7987L2.27159 3.485L3.12012 2.63647L14.4338 13.9502L13.5853 14.7987Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M1.69629 12.8102L1.69629 14.1743C1.69629 14.8371 2.23355 15.3743 2.89629 15.3743L4.26042 15.3743L4.26042 14.0443L3.02629 14.0443L3.02629 12.8102L1.69629 12.8102ZM4.26042 2.06128L2.89629 2.06128C2.23355 2.06128 1.69629 2.59854 1.69629 3.26128L1.69629 4.62541L3.02629 4.62541L3.02629 3.39128L4.26042 3.39128L4.26042 2.06128ZM1.69629 10.0819L3.02629 10.0819L3.02629 7.35367L1.69629 7.35367L1.69629 10.0819ZM6.98868 2.06128L6.98868 3.39128L9.71693 3.39128L9.71693 2.06128L6.98868 2.06128ZM12.4452 2.06128L12.4452 3.39128L13.6793 3.39128L13.6793 4.62541L15.0093 4.62541L15.0093 3.26128C15.0093 2.59854 14.4721 2.06128 13.8093 2.06128L12.4452 2.06128ZM15.0093 7.35367L13.6793 7.35367L13.6793 10.0819L15.0093 10.0819L15.0093 7.35367ZM15.0093 12.8102L13.6793 12.8102L13.6793 14.0443L12.4452 14.0443L12.4452 15.3743L13.8093 15.3743C14.4721 15.3743 15.0093 14.8371 15.0093 14.1743L15.0093 12.8102ZM9.71693 15.3743L9.71693 14.0443L6.98868 14.0443L6.98868 15.3743L9.71693 15.3743Z"}}]}]},er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"back-slash-single",ref:t,icon:yi}))});er.displayName="BackSlashSingle";var Si={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.65791 1.30005C3.77355 1.30005 3.05664 2.01696 3.05664 2.90132V12.8588C3.05664 13.8755 3.88086 14.6998 4.89759 14.6998H9.1016C11.2233 14.6998 12.9433 12.9798 12.9433 10.8581C12.9433 9.13925 11.8145 7.68407 10.2578 7.1934C10.8806 6.56856 11.2655 5.70659 11.2655 4.75472C11.2655 2.84676 9.71883 1.30005 7.81087 1.30005H4.65791ZM4.25664 2.90132C4.25664 2.6797 4.4363 2.50005 4.65791 2.50005H7.81087C9.05609 2.50005 10.0655 3.5095 10.0655 4.75472C10.0655 5.99993 9.05609 7.00938 7.81087 7.00938H4.25664V2.90132ZM4.25664 12.8588V8.21636H9.1016C10.5606 8.21636 11.7433 9.39909 11.7433 10.8581C11.7433 12.317 10.5606 13.4998 9.1016 13.4998H4.89759C4.5436 13.4998 4.25664 13.2128 4.25664 12.8588Z",fillRule:"evenodd",clipRule:"evenodd"}}]},tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"bold-single",ref:t,icon:Si}))});tr.displayName="BoldSingle";var Li={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.59219 1.3667C1.70853 1.3667 0.992188 2.08304 0.992188 2.9667V4.9667C0.992188 5.85036 1.70853 6.5667 2.59219 6.5667H11.2694C12.1531 6.5667 12.8694 5.85036 12.8694 4.9667V4.79985H13.8075V8.18642C13.8075 8.38777 13.6579 8.55773 13.4581 8.58321L7.10511 9.39341C6.30618 9.4953 5.70752 10.1752 5.70752 10.9806V14.0332C5.70752 14.3646 5.97615 14.6332 6.30752 14.6332C6.63889 14.6332 6.90752 14.3646 6.90752 14.0332V10.9806C6.90752 10.7792 7.05718 10.6092 7.25692 10.5838L13.6099 9.77356C14.4089 9.67168 15.0075 8.99182 15.0075 8.18642V4.19985C15.0075 3.86848 14.7389 3.59985 14.4075 3.59985H12.8694V2.9667C12.8694 2.08304 12.1531 1.3667 11.2694 1.3667H2.59219ZM2.19219 2.9667C2.19219 2.74579 2.37127 2.5667 2.59219 2.5667H11.2694C11.4903 2.5667 11.6694 2.74579 11.6694 2.9667V4.9667C11.6694 5.18761 11.4903 5.3667 11.2694 5.3667H2.59219C2.37127 5.3667 2.19219 5.18761 2.19219 4.9667V2.9667Z",fillRule:"evenodd",clipRule:"evenodd"}}]},nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"brush-single",ref:t,icon:Li}))});nr.displayName="BrushSingle";var _i={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C13.6961 1.13989 14.8601 2.30395 14.8601 3.73989V4.86989C14.8601 5.20126 14.5915 5.46989 14.2601 5.46989C13.9288 5.46989 13.6601 5.20126 13.6601 4.86989V3.73989C13.6601 2.96669 13.0333 2.33989 12.2601 2.33989H8.34014V3.20284C8.34014 3.20446 8.34014 3.20608 8.34014 3.2077V6.73989C8.34014 7.62355 7.62379 8.33989 6.74014 8.33989H2.70277C2.70112 8.3399 2.69947 8.3399 2.69781 8.33989H2.34014V12.2599C2.34014 13.0331 2.96694 13.6599 3.74014 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V11.7299C13.6601 11.3985 13.9288 11.1299 14.2601 11.1299C14.5915 11.1299 14.8601 11.3985 14.8601 11.7299V12.2599C14.8601 13.6958 13.6961 14.8599 12.2601 14.8599H3.74014C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM4.26409 7.13989H6.74014C6.96105 7.13989 7.14014 6.96081 7.14014 6.73989V4.55237L4.26409 7.13989ZM7.14014 2.93819V2.33989H6.28159L2.34044 5.614L2.34056 7.13989H2.46992L7.14014 2.93819ZM2.34032 4.05403L4.40368 2.33989H3.74029C2.96705 2.33989 2.34023 2.96676 2.34029 3.74L2.34032 4.05403Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.73877 9.00298C8.73877 9.55526 9.18649 10.003 9.73877 10.003H11.7792C12.1106 10.003 12.3792 9.73435 12.3792 9.40298C12.3792 9.07161 12.1106 8.80298 11.7792 8.80298H10.7874L12.2304 7.36157C12.7051 6.88734 13.4743 6.88754 13.9488 7.36202C14.4234 7.83667 14.4234 8.60624 13.9488 9.0809L13.2095 9.82016C12.9752 10.0545 12.9752 10.4344 13.2095 10.6687C13.4439 10.903 13.8238 10.903 14.0581 10.6687L14.7973 9.92943C15.7406 8.98614 15.7406 7.45678 14.7973 6.51349C13.8544 5.57056 12.3257 5.57015 11.3823 6.51259L9.93877 7.95459V6.96255C9.93877 6.63118 9.67014 6.36255 9.33877 6.36255C9.0074 6.36255 8.73877 6.63118 8.73877 6.96255V9.00298Z"}}]},rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-freeze-single",ref:t,icon:_i}))});rr.displayName="CancelFreezeSingle";var wi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.5939 1.13916L10.6607 1.1392C9.55628 1.13922 8.66093 2.03448 8.66077 3.13893L8.66063 4.19191C8.66059 4.52328 8.92918 4.79194 9.26055 4.79199 9.59192 4.79204 9.86059 4.52344 9.86063 4.19207L9.86077 3.13909C9.86084 2.69731 10.219 2.33921 10.6608 2.3392L12.594 2.33916C13.0358 2.33915 13.394 2.69732 13.394 3.13916L13.394 12.8612C13.394 13.303 13.0358 13.6612 12.594 13.6612H10.6606C10.2188 13.6612 9.86063 13.303 9.86063 12.8612V11.8084C9.86063 11.4771 9.592 11.2084 9.26063 11.2084 8.92926 11.2084 8.66063 11.4771 8.66063 11.8084V12.8612C8.66063 13.9658 9.55606 14.8612 10.6606 14.8612H12.594C13.6986 14.8612 14.594 13.9658 14.594 12.8612L14.594 3.13915C14.594 2.03457 13.6985 1.13914 12.5939 1.13916zM5.33888 1.13919L3.40568 1.13926C2.30114 1.13931 1.40575 2.03474 1.40576 3.13928L1.40586 12.8612C1.40587 13.9658 2.3013 14.8612 3.40586 14.8612H5.33896C6.44353 14.8612 7.33896 13.9658 7.33896 12.8612V11.8084C7.33896 11.4771 7.07033 11.2084 6.73896 11.2084 6.40759 11.2084 6.13896 11.4771 6.13896 11.8084V12.8612C6.13896 13.303 5.78079 13.6612 5.33896 13.6612H3.40586C2.96403 13.6612 2.60586 13.303 2.60586 12.8612L2.60576 3.13927C2.60576 2.69745 2.96391 2.33928 3.40573 2.33926L5.33893 2.33919C5.78077 2.33917 6.13896 2.69735 6.13896 3.13919V4.192C6.13896 4.52337 6.40759 4.792 6.73896 4.792 7.07033 4.792 7.33896 4.52337 7.33896 4.192V3.13919C7.33896 2.03459 6.44348 1.13914 5.33888 1.13919z"}},{tag:"path",attrs:{fill:"currentColor",d:"M9.20731 5.99993C8.973 6.23424 8.973 6.61414 9.20731 6.84845L10.0912 7.73235C10.2474 7.88856 10.2474 8.14182 10.0912 8.29803L9.20731 9.18192C8.973 9.41624 8.973 9.79614 9.20731 10.0305 9.44163 10.2648 9.82153 10.2648 10.0558 10.0305L10.9397 9.14654C11.5646 8.52171 11.5646 7.50867 10.9397 6.88384L10.0558 5.99993C9.82153 5.76561 9.44163 5.76561 9.20731 5.99993zM5.94379 5.99993C6.1781 5.76561 6.558 5.76561 6.79232 5.99993 7.02663 6.23424 7.02663 6.61414 6.79232 6.84845L5.90842 7.73235C5.75221 7.88856 5.75221 8.14182 5.90842 8.29803L6.79232 9.18193C7.02663 9.41624 7.02663 9.79614 6.79232 10.0305 6.558 10.2648 6.1781 10.2648 5.94379 10.0305L5.0599 9.14656C4.43506 8.52172 4.43506 7.50866 5.0599 6.88382L5.94379 5.99993z"}}]},ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-merge-single",ref:t,icon:wi}))});ir.displayName="CancelMergeSingle";var Mi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z",fillRule:"evenodd",clipRule:"evenodd"}}]},or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"check-mark-single",ref:t,icon:Mi}))});or.displayName="CheckMarkSingle";var Ei={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1161",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1161)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.36831 3.22148C5.36831 1.94497 6.40313 0.910156 7.67964 0.910156C8.95615 0.910156 9.99097 1.94497 9.99097 3.22149V6.74754H8.72649V3.22149C8.72649 2.64333 8.2578 2.17464 7.67964 2.17464C7.10148 2.17464 6.63279 2.64333 6.63279 3.22148V6.74754H5.36831V3.22148Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M5.00091 5.47314C3.33644 5.47314 1.9499 6.74914 1.81192 8.40788L1.54428 11.6254C1.38911 13.4909 2.86133 15.0906 4.73327 15.0906H13.6667C14.175 15.0906 14.5544 14.6228 14.4495 14.1255L13.0262 7.37781C12.792 6.26766 11.8125 5.47314 10.6779 5.47314H5.00091ZM10.6779 6.75314H5.00091C4.00223 6.75314 3.1703 7.51874 3.08751 8.51399L2.81988 11.7315C2.72677 12.8508 3.61011 13.8106 4.73327 13.8106H5.7695C5.26362 13.0554 5.05585 12.0527 5.31224 11.047C5.40861 10.6689 5.76242 10.4493 6.10249 10.5564C6.44256 10.6636 6.64012 11.0569 6.54374 11.4349C6.27517 12.4885 6.92898 13.6738 7.87916 13.8106H9.01412C8.50824 13.0554 8.30047 12.0527 8.55686 11.047C8.65324 10.6689 9.00704 10.4493 9.34711 10.5564C9.68719 10.6636 9.88474 11.0569 9.78837 11.4349C9.51979 12.4885 10.1736 13.6738 11.1238 13.8106H13.0749L11.7738 7.64199C11.6645 7.12392 11.2073 6.75314 10.6779 6.75314Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"clear-format",ref:t,icon:Ei}))});ar.displayName="ClearFormat";var Oi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"}}]},G1=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"close-single",ref:t,icon:Oi}))});G1.displayName="CloseSingle";var Hi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M.361328 7.79626C.361328 6.0459 1.78028 4.62695 3.53064 4.62695 4.18424 4.62695 4.80612 4.90867 5.23714 5.40001L5.30149 5.47337C5.52001 5.72247 5.49522 6.10156 5.24612 6.32009 4.99701 6.53861 4.61792 6.51382 4.3994 6.26471L4.33504 6.19135C4.13187 5.95975 3.83873 5.82695 3.53064 5.82695 2.44302 5.82695 1.56133 6.70864 1.56133 7.79626V8.21416C1.56133 9.29594 2.43828 10.1729 3.52006 10.1729 3.83123 10.1729 4.12678 10.0366 4.32877 9.79988L4.39405 9.72339C4.60916 9.47133 4.98788 9.44138 5.23994 9.65649 5.492 9.8716 5.52195 10.2503 5.30684 10.5024L5.24156 10.5789C4.81157 11.0827 4.18244 11.3729 3.52006 11.3729 1.77554 11.3729.361328 9.95868.361328 8.21416V7.79626zM13.2084 4.92822C13.5398 4.92822 13.8084 5.19685 13.8084 5.52822V9.97297C13.8084 10.0834 13.8979 10.173 14.0084 10.173H15.0384C15.3698 10.173 15.6384 10.4416 15.6384 10.773 15.6384 11.1043 15.3698 11.373 15.0384 11.373H14.0084C13.2352 11.373 12.6084 10.7462 12.6084 9.97297V5.52822C12.6084 5.19685 12.877 4.92822 13.2084 4.92822z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M10.9893 7.42715C10.9893 7.09578 11.2579 6.82715 11.5893 6.82715H14.9428C15.2742 6.82715 15.5428 7.09578 15.5428 7.42715 15.5428 7.75852 15.2742 8.02715 14.9428 8.02715H11.5893C11.2579 8.02715 10.9893 7.75852 10.9893 7.42715zM9.46366 8.71622C9.46366 8.18879 8.9622 7.80569 8.45332 7.94436L8.12019 8.03514C7.68503 8.15373 7.38311 8.54894 7.38311 8.99996V10.7731C7.38311 11.1044 7.11448 11.3731 6.78311 11.3731 6.45173 11.3731 6.18311 11.1044 6.18311 10.7731V8.99996C6.18311 8.0077 6.84733 7.13825 7.80469 6.87736L8.13782 6.78658C9.41001 6.43991 10.6637 7.39764 10.6637 8.71622V10.7731C10.6637 11.1044 10.395 11.3731 10.0637 11.3731 9.73229 11.3731 9.46366 11.1044 9.46366 10.7731V8.71622z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M6.79079 6.75531C7.12216 6.75528 7.39081 7.02389 7.39084 7.35526L7.39109 10.773C7.39112 11.1043 7.12251 11.373 6.79114 11.373C6.45977 11.373 6.19112 11.1044 6.19109 10.7731L6.19084 7.35535C6.19081 7.02398 6.45942 6.75533 6.79079 6.75531Z",fillRule:"evenodd",clipRule:"evenodd"}}]},sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cnt-single",ref:t,icon:Hi}))});sr.displayName="CntSingle";var Ii={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9.92206 2.45064C9.98634 2.12556 9.77492 1.80992 9.44984 1.74564 9.12477 1.68136 8.80913 1.89278 8.74485 2.21785L6.41152 14.0179C6.34724 14.3429 6.55865 14.6586 6.88373 14.7228 7.20881 14.7871 7.52444 14.5757 7.58872 14.2506L9.92206 2.45064zM5.14972 3.90157C5.38815 4.1317 5.39487 4.51154 5.16473 4.74996L2.55461 7.45409C2.01739 8.01066 2.03336 8.89745 2.59029 9.43431L5.14944 11.9013C5.38802 12.1313 5.39498 12.5111 5.165 12.7497 4.93502 12.9883 4.55519 12.9952 4.31662 12.7652L1.75746 10.2983C.723174 9.30122.693506 7.65434 1.69121 6.6207L4.30133 3.91657C4.53146 3.67815 4.9113 3.67143 5.14972 3.90157zM10.8505 3.90157C11.0889 3.67143 11.4688 3.67815 11.6989 3.91657L14.309 6.6207C15.3067 7.65434 15.2771 9.30122 14.2428 10.2983L11.6836 12.7652C11.4451 12.9952 11.0652 12.9883 10.8352 12.7497 10.6053 12.5111 10.6122 12.1313 10.8508 11.9013L13.41 9.43431C13.9669 8.89745 13.9829 8.01066 13.4456 7.45409L10.8355 4.74996C10.6054 4.51154 10.6121 4.1317 10.8505 3.90157z"}}]},lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"code-single",ref:t,icon:Ii}))});lr.displayName="CodeSingle";var Ti={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.59 1.51H10.46V14.459999999999999H5.59z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.34863 2.53325C1.34863 1.87051 1.88589 1.33325 2.54863 1.33325H13.482C14.1447 1.33325 14.682 1.87051 14.682 2.53325V13.4666C14.682 14.1294 14.1447 14.6666 13.482 14.6666H2.54863C1.88589 14.6666 1.34863 14.1294 1.34863 13.4666V2.53325ZM13.082 2.63325C13.2477 2.63325 13.382 2.76757 13.382 2.93325V5.09946C13.382 5.26515 13.2477 5.39946 13.082 5.39946H10.9708C10.8052 5.39946 10.6708 5.26515 10.6708 5.09946V2.93325C10.6708 2.76757 10.8052 2.63325 10.9708 2.63325H13.082ZM9.37085 2.93325C9.37085 2.76757 9.23653 2.63325 9.07085 2.63325H6.95974C6.79406 2.63325 6.65974 2.76757 6.65974 2.93325V5.09946C6.65974 5.26515 6.79406 5.39946 6.95974 5.39946L9.07085 5.39946C9.23654 5.39946 9.37085 5.26515 9.37085 5.09946V2.93325ZM5.35974 2.93325C5.35974 2.76757 5.22543 2.63325 5.05974 2.63325H2.94863C2.78295 2.63325 2.64863 2.76757 2.64863 2.93325V5.09946C2.64863 5.26515 2.78295 5.39946 2.94863 5.39946H5.05974C5.22543 5.39946 5.35974 5.26515 5.35974 5.09946V2.93325ZM2.94863 6.69946C2.78295 6.69946 2.64863 6.83378 2.64863 6.99946V9.11045C2.64863 9.27613 2.78295 9.41045 2.94863 9.41045H5.05974C5.22543 9.41045 5.35974 9.27613 5.35974 9.11045V6.99946C5.35974 6.83378 5.22543 6.69946 5.05974 6.69946H2.94863ZM2.94863 10.7104C2.78295 10.7104 2.64863 10.8448 2.64863 11.0104V13.0666C2.64863 13.2323 2.78295 13.3666 2.94863 13.3666H5.05974C5.22543 13.3666 5.35974 13.2323 5.35974 13.0666V11.0104C5.35974 10.8448 5.22543 10.7104 5.05974 10.7104H2.94863ZM6.65974 13.0666C6.65974 13.2323 6.79406 13.3666 6.95974 13.3666H9.07085C9.23653 13.3666 9.37085 13.2323 9.37085 13.0666V11.0104C9.37085 10.8448 9.23653 10.7104 9.07085 10.7104L6.95974 10.7104C6.79406 10.7104 6.65974 10.8448 6.65974 11.0104V13.0666ZM10.6708 13.0666C10.6708 13.2323 10.8052 13.3666 10.9708 13.3666H13.082C13.2477 13.3666 13.382 13.2323 13.382 13.0666V11.0104C13.382 10.8448 13.2477 10.7104 13.082 10.7104H10.9708C10.8052 10.7104 10.6708 10.8448 10.6708 11.0104V13.0666ZM13.082 9.41045C13.2477 9.41045 13.382 9.27613 13.382 9.11045V6.99946C13.382 6.83378 13.2477 6.69946 13.082 6.69946H10.9708C10.8052 6.69946 10.6708 6.83378 10.6708 6.99946V9.11045C10.6708 9.27613 10.8052 9.41045 10.9708 9.41045H13.082ZM6.95974 9.41045C6.79406 9.41045 6.65974 9.27613 6.65974 9.11045V6.99946C6.65974 6.83378 6.79406 6.69946 6.95974 6.69946L9.07085 6.69946C9.23653 6.69946 9.37085 6.83378 9.37085 6.99946V9.11045C9.37085 9.27613 9.23653 9.41045 9.07085 9.41045H6.95974Z",fillRule:"evenodd",clipRule:"evenodd"}}]},cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"conditions",ref:t,icon:Ti}))});cr.displayName="Conditions";var Di={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_273_6444",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.54 0.84H16.54V16.84H0.54z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_273_6444)"},children:[{tag:"path",attrs:{d:"M6.67742 7.37473V5.64139H9.74408V7.37473H6.67742Z"}},{tag:"path",attrs:{d:"M2.41101 2.84136C2.41101 2.03134 3.06766 1.37469 3.87768 1.37469H13.211C14.021 1.37469 14.6777 2.03135 14.6777 2.84136V14.8414C14.6777 15.6514 14.021 16.308 13.211 16.308H3.87768C3.06767 16.308 2.41101 15.6514 2.41101 14.8414V2.84136ZM5.87742 10.0414C5.43559 10.0414 5.07742 10.3996 5.07742 10.8414C5.07742 11.2832 5.43559 11.6414 5.87742 11.6414H10.5441C10.9859 11.6414 11.3441 11.2832 11.3441 10.8414C11.3441 10.3996 10.9859 10.0414 10.5441 10.0414H5.87742ZM5.07742 12.8414C5.07742 12.3996 5.43559 12.0414 5.87742 12.0414H8.21075C8.65258 12.0414 9.01075 12.3996 9.01075 12.8414C9.01075 13.2832 8.65258 13.6414 8.21075 13.6414H5.87742C5.43559 13.6414 5.07742 13.2832 5.07742 12.8414ZM5.87742 4.04139C5.43559 4.04139 5.07742 4.39957 5.07742 4.84139V8.17473C5.07742 8.61655 5.43559 8.97473 5.87742 8.97473H10.5441C10.9859 8.97473 11.3441 8.61655 11.3441 8.17473V4.84139C11.3441 4.39957 10.9859 4.04139 10.5441 4.04139H5.87742Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"content-single-16",ref:t,icon:Di}))});ur.displayName="ContentSingle16";var xi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1141",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1141)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.4004 2.60213C5.25792 2.60213 5.14241 2.71763 5.14241 2.86011V4.32679C5.14241 4.67752 4.85809 4.96184 4.50736 4.96184C4.15663 4.96184 3.87231 4.67752 3.87231 4.32679V2.86011C3.87231 2.01618 4.55646 1.33203 5.4004 1.33203H13.14C13.984 1.33203 14.6681 2.01618 14.6681 2.86011V10.5998C14.6681 11.4437 13.984 12.1278 13.14 12.1278H11.6568C11.3061 12.1278 11.0218 11.8435 11.0218 11.4928C11.0218 11.1421 11.3061 10.8577 11.6568 10.8577H13.14C13.2825 10.8577 13.398 10.7422 13.398 10.5998V2.86011C13.398 2.71763 13.2825 2.60213 13.14 2.60213H5.4004Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.33203 5.40015C1.33203 4.55622 2.01618 3.87207 2.86011 3.87207H10.5998C11.4437 3.87207 12.1278 4.55622 12.1278 5.40015V13.1398C12.1278 13.9837 11.4437 14.6679 10.5998 14.6679H2.86011C2.01618 14.6679 1.33203 13.9837 1.33203 13.1398V5.40015ZM2.86011 5.14217C2.71763 5.14217 2.60213 5.25767 2.60213 5.40015V13.1398C2.60213 13.2823 2.71763 13.3978 2.86011 13.3978H10.5998C10.7422 13.3978 10.8577 13.2823 10.8577 13.1398V5.40015C10.8577 5.25767 10.7422 5.14217 10.5998 5.14217H2.86011Z"}}]}]},fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"copy",ref:t,icon:xi}))});fr.displayName="Copy";var Ni={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1093",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1093)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.69148 5.44796C7.69148 5.07977 7.393 4.7813 7.02481 4.7813H3.25445C2.88626 4.7813 2.58779 5.07977 2.58779 5.44796V10.5516C2.58779 10.9198 2.88626 11.2183 3.25445 11.2183H7.02481C7.393 11.2183 7.69148 10.9198 7.69148 10.5516V5.44796ZM2.58779 3.50537C1.88311 3.50537 1.31186 4.07662 1.31186 4.7813V11.2183C1.31186 11.923 1.88311 12.4942 2.58779 12.4942H7.69148C8.39613 12.4942 8.96739 11.923 8.96739 11.2183V4.7813C8.96739 4.07662 8.39613 3.50537 7.69148 3.50537H2.58779Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.8919 10.4557C11.9671 10.4869 12.0496 10.5041 12.1361 10.5041C12.2226 10.5041 12.3051 10.4869 12.3803 10.4557C12.4555 10.4246 12.526 10.3784 12.5872 10.3172L14.5011 8.40335C14.7502 8.15421 14.7502 7.75028 14.5011 7.50114C14.2519 7.252 13.848 7.252 13.5989 7.50114L12.774 8.32595V6.13406C12.774 5.78172 12.4884 5.49609 12.1361 5.49609C11.7837 5.49609 11.4981 5.78172 11.4981 6.13406V8.32595L10.6733 7.50114C10.4241 7.252 10.0202 7.252 9.77106 7.50114C9.52192 7.75028 9.52192 8.15421 9.77106 8.40335L11.6847 10.3169M6.97288 9.84189C6.69858 10.1235 6.25386 10.1235 5.97956 9.84189L5.17866 9.01974L4.37769 9.84195C4.1034 10.1235 3.65867 10.1235 3.38437 9.84195C3.11008 9.56038 3.11008 9.10385 3.38437 8.82228L4.18534 8.00007L3.38439 7.17787C3.11009 6.8963 3.11009 6.43977 3.38439 6.1582C3.65869 5.87663 4.10341 5.87663 4.37771 6.1582L5.17866 6.9804L5.97954 6.15826C6.25384 5.87669 6.69857 5.87669 6.97287 6.15826C7.24716 6.43984 7.24716 6.89636 6.97286 7.17793L6.17198 8.00007L6.97288 8.82222C7.24718 9.10379 7.24718 9.56031 6.97288 9.84189Z"}}]}]},dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-move-down",ref:t,icon:Ni}))});dr.displayName="DeleteCellMoveDown";var Vi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_252_31",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_252_31)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.29012 10.552C8.29012 10.9202 8.5886 11.2187 8.95679 11.2187L12.7271 11.2187C13.0953 11.2187 13.3938 10.9202 13.3938 10.552L13.3938 5.44836C13.3938 5.08016 13.0953 4.7817 12.7271 4.7817L8.95678 4.7817C8.5886 4.7817 8.29012 5.08016 8.29012 5.44836L8.29012 10.552ZM13.3938 12.4946C14.0985 12.4946 14.6697 11.9234 14.6697 11.2187L14.6697 4.7817C14.6697 4.07703 14.0985 3.50576 13.3938 3.50576L8.29012 3.50576C7.58547 3.50576 7.0142 4.07703 7.0142 4.7817L7.0142 11.2187C7.0142 11.9234 7.58547 12.4946 8.29012 12.4946L13.3938 12.4946Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M1.37899 7.7562C1.34779 7.83142 1.33053 7.9139 1.33053 8.0004C1.33053 8.0869 1.34779 8.16938 1.37899 8.2446C1.41013 8.31985 1.45626 8.39034 1.51739 8.45151L3.43133 10.3654C3.68046 10.6145 4.08439 10.6145 4.33353 10.3654C4.58266 10.1163 4.58266 9.71232 4.33353 9.46318L3.50873 8.63836L5.70059 8.63836C6.05293 8.63836 6.33855 8.35273 6.33855 8.0004C6.33855 7.64806 6.05293 7.36244 5.70059 7.36244L3.50873 7.36244L4.33353 6.53762C4.58266 6.28848 4.58266 5.88455 4.33353 5.63541C4.08439 5.38627 3.68046 5.38627 3.43133 5.63541L1.51773 7.54899M9.00896 6.15858C9.28326 5.87701 9.72798 5.87701 10.0023 6.15858L10.8032 6.98073L11.6042 6.15852C11.8784 5.87695 12.3232 5.87695 12.5975 6.15852C12.8718 6.44009 12.8718 6.89661 12.5975 7.17819L11.7965 8.00041L12.5975 8.8226C12.8718 9.10417 12.8718 9.56069 12.5975 9.84227C12.3232 10.1238 11.8784 10.1238 11.6041 9.84227L10.8032 9.02007L10.0023 9.84221C9.728 10.1238 9.28327 10.1238 9.00897 9.84221C8.73468 9.56063 8.73468 9.10411 9.00898 8.82254L9.80987 8.00041L9.00896 7.17825C8.73466 6.89668 8.73466 6.44016 9.00896 6.15858Z"}}]}]},hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-left",ref:t,icon:Vi}))});hr.displayName="DeleteCellShiftLeft";var Ai={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1088",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1088)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.70985 5.44796C7.70985 5.07977 7.41137 4.7813 7.04318 4.7813H3.27282C2.90463 4.7813 2.60616 5.07977 2.60616 5.44796V10.5516C2.60616 10.9198 2.90463 11.2183 3.27282 11.2183H7.04318C7.41137 11.2183 7.70985 10.9198 7.70985 10.5516V5.44796ZM2.60616 3.50537C1.90148 3.50537 1.33023 4.07662 1.33023 4.7813V11.2183C1.33023 11.923 1.90148 12.4942 2.60616 12.4942H7.70985C8.4145 12.4942 8.98576 11.923 8.98576 11.2183V4.7813C8.98576 4.07662 8.4145 3.50537 7.70985 3.50537H2.60616Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M14.621 8.2438C14.6522 8.16858 14.6695 8.0861 14.6695 7.9996C14.6695 7.9131 14.6522 7.83062 14.621 7.7554C14.5899 7.68015 14.5438 7.60966 14.4826 7.54849L12.5687 5.63461C12.3196 5.38547 11.9156 5.38547 11.6665 5.63461C11.4174 5.88375 11.4174 6.28768 11.6665 6.53682L12.4913 7.36164H10.2994C9.94711 7.36164 9.66148 7.64727 9.66148 7.9996C9.66148 8.35194 9.94711 8.63756 10.2994 8.63756H12.4913L11.6665 9.46238C11.4174 9.71152 11.4174 10.1155 11.6665 10.3646C11.9156 10.6137 12.3196 10.6137 12.5687 10.3646L14.4823 8.45101M6.99107 9.84142C6.71677 10.123 6.27205 10.123 5.99775 9.84142L5.19685 9.01927L4.39588 9.84148C4.12159 10.1231 3.67686 10.1231 3.40256 9.84148C3.12826 9.55991 3.12826 9.10339 3.40256 8.82181L4.20353 7.99959L3.40258 7.1774C3.12828 6.89583 3.12828 6.43931 3.40258 6.15773C3.67688 5.87616 4.1216 5.87616 4.3959 6.15773L5.19685 6.97993L5.99773 6.15779C6.27203 5.87622 6.71676 5.87622 6.99106 6.15779C7.26535 6.43937 7.26535 6.89589 6.99105 7.17746L6.19017 7.99959L6.99107 8.82175C7.26537 9.10332 7.26537 9.55984 6.99107 9.84142Z"}}]}]},vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-right",ref:t,icon:Ai}))});vr.displayName="DeleteCellShiftRight";var Pi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_252_36",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z",transform:"matrix(1 0 0 -1 0 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_252_36)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.69172 10.552C7.69172 10.9202 7.39324 11.2187 7.02506 11.2187H3.2547C2.8865 11.2187 2.58803 10.9202 2.58803 10.552V5.44836C2.58803 5.08016 2.8865 4.7817 3.2547 4.7817H7.02506C7.39324 4.7817 7.69172 5.08016 7.69172 5.44836V10.552ZM2.58803 12.4946C1.88335 12.4946 1.3121 11.9234 1.3121 11.2187V4.7817C1.3121 4.07703 1.88335 3.50576 2.58803 3.50576H7.69172C8.39637 3.50576 8.96764 4.07703 8.96764 4.7817V11.2187C8.96764 11.9234 8.39637 12.4946 7.69172 12.4946H2.58803Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.892 5.54431C11.9672 5.51312 12.0497 5.49591 12.1362 5.49591C12.2227 5.49591 12.3052 5.51312 12.3804 5.54431C12.4557 5.57545 12.5261 5.62159 12.5873 5.68276L14.5012 7.59665C14.7503 7.84579 14.7503 8.24972 14.5012 8.49886C14.2521 8.748 13.8481 8.748 13.599 8.49886L12.7741 7.67405V9.86594C12.7741 10.2183 12.4885 10.5039 12.1362 10.5039C11.7839 10.5039 11.4983 10.2183 11.4983 9.86594V7.67405L10.6734 8.49886C10.4243 8.748 10.0203 8.748 9.77121 8.49886C9.52207 8.24972 9.52207 7.84579 9.77121 7.59665L11.6848 5.68305M6.97304 6.15811C6.69874 5.87653 6.25401 5.87654 5.97972 6.15811L5.17881 6.98026L4.37784 6.15805C4.10355 5.87647 3.65882 5.87647 3.38453 6.15805C3.11023 6.43962 3.11023 6.89615 3.38453 7.17772L4.18549 7.99993L3.38454 8.82213C3.11024 9.1037 3.11024 9.56023 3.38454 9.8418C3.65884 10.1234 4.10356 10.1234 4.37786 9.8418L5.17881 9.0196L5.9797 9.84174C6.254 10.1233 6.69872 10.1233 6.97302 9.84174C7.24732 9.56016 7.24732 9.10364 6.97302 8.82207L6.17213 7.99993L6.97304 7.17778C7.24734 6.89621 7.24734 6.43969 6.97304 6.15811Z"}}]}]},mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-up",ref:t,icon:Pi}))});mr.displayName="DeleteCellShiftUp";var Ri={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1098",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1098)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.9503 1.33317C12.6866 1.33317 13.2836 1.9301 13.2836 2.6665V13.3332C13.2836 14.0695 12.6866 14.6665 11.9503 14.6665H9.28359C8.54721 14.6665 7.95026 14.0696 7.95026 13.3332L7.95026 2.6665C7.95026 1.9301 8.54721 1.33317 9.28359 1.33317H11.9503ZM11.9503 2.6665V13.3332H9.28359V2.6665H11.9503Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M3.8542 6.29716C3.59385 6.03681 3.17174 6.03681 2.91139 6.29716C2.65104 6.55751 2.65104 6.97962 2.91139 7.23997L3.67157 8.00014L2.9114 8.76031C2.65105 9.02066 2.65105 9.44277 2.9114 9.70312C3.17175 9.96347 3.59387 9.96347 3.85421 9.70312L4.61437 8.94296L5.37459 9.70318C5.63494 9.96352 6.05705 9.96353 6.31741 9.70318C6.57775 9.44283 6.57775 9.02072 6.31741 8.76036L5.55718 8.00014L6.31742 7.23991C6.57777 6.97956 6.57777 6.55745 6.31742 6.2971C6.05707 6.03675 5.63496 6.03675 5.37461 6.2971L4.61437 7.05734L3.8542 6.29716Z"}}]}]},pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-column",ref:t,icon:Ri}))});pr.displayName="DeleteColumn";var ji={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1103",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1103)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14.6666 11.9502C14.6666 12.6866 14.0697 13.2835 13.3333 13.2835H2.66665C1.93027 13.2835 1.33331 12.6866 1.33331 11.9502V9.28353C1.33331 8.54715 1.93027 7.9502 2.66665 7.9502L13.3333 7.9502C14.0697 7.9502 14.6666 8.54715 14.6666 9.28353V11.9502ZM13.3333 11.9502H2.66665V9.28353H13.3333V11.9502Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M9.60134 3.85438C9.86169 3.59403 9.86169 3.17192 9.60134 2.91157C9.34099 2.65122 8.91888 2.65122 8.65853 2.91157L7.89835 3.67175L7.13819 2.91159C6.87784 2.65124 6.45573 2.65124 6.19538 2.91159C5.93503 3.17194 5.93503 3.59405 6.19538 3.8544L6.95554 4.61456L6.19532 5.37478C5.93497 5.63513 5.93497 6.05724 6.19532 6.31759C6.45567 6.57794 6.87778 6.57794 7.13813 6.31759L7.89835 5.55737L8.65859 6.3176C8.91893 6.57796 9.34105 6.57796 9.60139 6.3176C9.86175 6.05726 9.86175 5.63514 9.60139 5.3748L8.84116 4.61456L9.60134 3.85438Z"}}]}]},Cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-row",ref:t,icon:ji}))});Cr.displayName="DeleteRow";var ki={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_345",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_102_345)"},children:[{tag:"path",attrs:{d:"M3.00004 1.3335C2.07957 1.3335 1.33337 2.07969 1.33337 3.00016V13.0002C1.33337 13.9143 2.06935 14.6566 2.98108 14.6667C2.99252 14.6671 3.00399 14.6671 3.01547 14.6668H13C13.9205 14.6668 14.6667 13.9207 14.6667 13.0002V11.8335C14.6667 11.4653 14.3682 11.1668 14 11.1668C13.6319 11.1668 13.3334 11.4653 13.3334 11.8335V13.0002C13.3334 13.1843 13.1842 13.3335 13 13.3335H5.25636C5.61522 13.016 5.95119 12.6637 6.25105 12.2868C7.06748 11.2609 7.66671 9.98799 7.66671 8.66683V2.66683H13C13.1841 2.66683 13.3334 2.81606 13.3334 3.00016V4.66683C13.3334 5.03502 13.6319 5.3335 14 5.3335C14.3682 5.3335 14.6667 5.03502 14.6667 4.66683V3.00016C14.6667 2.0797 13.9205 1.3335 13 1.3335H3.00004ZM6.33337 2.66683H3.00004C2.81595 2.66683 2.66671 2.81607 2.66671 3.00016V13.0002C2.66671 13.1484 2.76345 13.274 2.89725 13.3173C3.70845 12.9437 4.55406 12.2781 5.20773 11.4566C5.90507 10.5803 6.33337 9.59203 6.33337 8.66683V2.66683Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{d:"M12.4714 5.86209C12.2111 5.60174 11.789 5.60174 11.5286 5.86209 11.2683 6.12244 11.2683 6.54455 11.5286 6.8049L12.3906 7.66683H10C9.63185 7.66683 9.33337 7.96531 9.33337 8.3335 9.33337 8.70169 9.63185 9.00016 10 9.00016H12.3906L11.5286 9.86209C11.2683 10.1224 11.2683 10.5446 11.5286 10.8049 11.789 11.0653 12.2111 11.0653 12.4714 10.8049L14.4714 8.8049C14.5935 8.68286 14.6583 8.52528 14.6659 8.36548 14.6665 8.35482 14.6667 8.34416 14.6667 8.3335L12.4714 5.86209zM12.4714 5.86209L14.4714 7.86209C14.6001 7.9907 14.6651 8.15878 14.6667 8.32734L12.4714 5.86209z"}}]}]},gr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"direct-export-single",ref:t,icon:ki}))});gr.displayName="DirectExportSingle";var $i={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.3999 2.8999V1.6C7.3999 1.26863 7.66853 1 7.9999 1C8.33127 1 8.5999 1.26863 8.5999 1.6V2.8999H10.2044C11.6655 2.8999 12.8499 4.08431 12.8499 5.54536C12.8499 5.87673 12.5813 6.14536 12.2499 6.14536C11.9185 6.14536 11.6499 5.87673 11.6499 5.54536C11.6499 4.74705 11.0028 4.0999 10.2044 4.0999H5.7384C4.97155 4.0999 4.3499 4.72155 4.3499 5.4884C4.3499 6.14439 4.80899 6.71087 5.45074 6.84677L10.7977 7.97906C11.994 8.23242 12.8499 9.28849 12.8499 10.5114C12.8499 11.941 11.691 13.0999 10.2614 13.0999H8.5999V14.4C8.5999 14.7314 8.33127 15 7.9999 15C7.66853 15 7.3999 14.7314 7.3999 14.4V13.0999H5.79536C4.33431 13.0999 3.1499 11.9155 3.1499 10.4544C3.1499 10.1231 3.41853 9.85445 3.7499 9.85445C4.08127 9.85445 4.3499 10.1231 4.3499 10.4544C4.3499 11.2527 4.99705 11.8999 5.79536 11.8999H10.2614C11.0283 11.8999 11.6499 11.2782 11.6499 10.5114C11.6499 9.85542 11.1908 9.28893 10.5491 9.15303L5.20214 8.02074C4.00575 7.76739 3.1499 6.71132 3.1499 5.4884C3.1499 4.05881 4.30881 2.8999 5.7384 2.8999H7.3999Z"}}]},br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"dollar-single",ref:t,icon:$i}))});br.displayName="DollarSingle";var Bi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1287",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1287)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M3.99992 1.33301H2.66659C1.93021 1.33301 1.33325 1.92996 1.33325 2.66634V3.99967H2.66659V2.66634L3.99992 2.66634V1.33301zM1.33325 9.33301H2.66659V6.66634H1.33325V9.33301zM6.66659 1.33301V2.66634H7.33325V5.33301H8.66659V2.66634H9.33325V1.33301H6.66659zM11.9999 1.33301V2.66634H13.3333V3.99967H14.6666V2.66634C14.6666 1.92996 14.0696 1.33301 13.3333 1.33301H11.9999zM14.6666 6.66634H13.3333V7.33301H10.6666V8.66634H13.3333V9.33301H14.6666V6.66634zM7.33325 13.333V10.6663H8.66659V13.333H7.33325zM5.33325 7.33301H2.66659V8.66634H5.33325V7.33301z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.33325 13.3333V12H2.66659L2.66659 13.3333H13.3333V12H14.6666V13.3333C14.6666 14.0697 14.0696 14.6667 13.3333 14.6667H2.66659C1.93021 14.6667 1.33325 14.0697 1.33325 13.3333Z"}}]}]},yr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"down-border",ref:t,icon:Bi}))});yr.displayName="DownBorder";var Ui={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM10.3097 5.69014C10.544 5.92445 10.544 6.30435 10.3097 6.53867L8.84843 7.9999L10.3099 9.46137C10.5442 9.69569 10.5442 10.0756 10.3099 10.3099C10.0756 10.5442 9.69569 10.5442 9.46137 10.3099L7.9999 8.84843L6.53842 10.3099C6.30411 10.5442 5.92421 10.5442 5.6899 10.3099C5.45558 10.0756 5.45558 9.69569 5.6899 9.46137L7.15137 7.9999L5.69014 6.53867C5.45583 6.30435 5.45583 5.92445 5.69014 5.69014C5.92445 5.45583 6.30435 5.45583 6.53867 5.69014L7.9999 7.15137L9.46113 5.69014C9.69544 5.45583 10.0753 5.45583 10.3097 5.69014Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"error-single",ref:t,icon:Ui}))});Sr.displayName="ErrorSingle";var Fi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.84964 5.80918C6.71946 3.63548 8.84516 2.2 11.3295 2.2C11.8324 2.2 12.3198 2.26279 12.7846 2.38065C13.1058 2.46209 13.4322 2.26773 13.5137 1.94652C13.5951 1.62532 13.4008 1.2989 13.0795 1.21746C12.5191 1.07535 11.9327 1 11.3295 1C8.17278 1 5.49724 2.96009 4.57394 5.80918H3.06582C2.73445 5.80918 2.46582 6.07781 2.46582 6.40918C2.46582 6.74055 2.73445 7.00918 3.06582 7.00918H4.29808C4.25287 7.33297 4.22949 7.66376 4.22949 8C4.22949 8.33608 4.25284 8.6667 4.29801 8.99033H3.06582C2.73445 8.99033 2.46582 9.25896 2.46582 9.59033C2.46582 9.9217 2.73445 10.1903 3.06582 10.1903H4.57378C5.49693 13.0397 8.1726 15 11.3295 15C11.9336 15 12.5209 14.9244 13.0821 14.7819C13.4033 14.7003 13.5975 14.3738 13.5159 14.0527C13.4344 13.7315 13.1079 13.5373 12.7867 13.6188C12.3213 13.737 11.8332 13.8 11.3295 13.8C8.84497 13.8 6.71914 12.3643 5.84944 10.1903H11.4291C11.7605 10.1903 12.0291 9.9217 12.0291 9.59033C12.0291 9.25896 11.7605 8.99033 11.4291 8.99033H5.51225C5.45783 8.66834 5.42949 8.33748 5.42949 8C5.42949 7.66235 5.45786 7.33133 5.51233 7.00918H11.4291C11.7605 7.00918 12.0291 6.74055 12.0291 6.40918C12.0291 6.07781 11.7605 5.80918 11.4291 5.80918H5.84964Z"}}]},Lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"euro-single",ref:t,icon:Fi}))});Lr.displayName="EuroSingle";var zi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.65005 1.05005C2.21411 1.05005 1.05005 2.21411 1.05005 3.65005V12.35C1.05005 13.7859 2.21411 14.95 3.65005 14.95H14.35C14.6813 14.95 14.95 14.6813 14.95 14.35C14.95 14.0186 14.6813 13.75 14.35 13.75H3.65005C2.87685 13.75 2.25005 13.1232 2.25005 12.35V3.65005C2.25005 2.87685 2.87685 2.25005 3.65005 2.25005H14.35C14.6813 2.25005 14.95 1.98142 14.95 1.65005C14.95 1.31868 14.6813 1.05005 14.35 1.05005H3.65005Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M11.6167 5.26668C11.851 5.03236 12.2309 5.03236 12.4652 5.26668L14.7743 7.57575C15.0086 7.81007 15.0086 8.18997 14.7743 8.42428L12.4652 10.7334C12.2309 10.9677 11.851 10.9677 11.6167 10.7334C11.3823 10.499 11.3823 10.1191 11.6167 9.88483L12.9015 8.60002H6.63784C6.30647 8.60002 6.03784 8.3314 6.03784 8.00002C6.03784 7.66865 6.30647 7.40002 6.63784 7.40002H12.9015L11.6167 6.11521C11.3823 5.88089 11.3823 5.50099 11.6167 5.26668Z"}}]},_r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"export-single",ref:t,icon:zi}))});_r.displayName="ExportSingle";var Zi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M0.571533 12.0016V4.69797C0.571533 3.37249 1.64605 2.29797 2.97153 2.29797H5.00397C5.90947 2.29797 6.77882 2.65328 7.42511 3.2875C7.84704 3.70155 8.4146 3.93351 9.00576 3.93351H11.6938C12.8536 3.93351 13.7938 4.87372 13.7938 6.03351V6.83533H13.8982C15.064 6.83533 15.8384 8.04207 15.3527 9.10188L13.6724 12.7686C13.4118 13.3374 12.8435 13.702 12.2179 13.702H2.17045C1.20587 13.702 0.515561 12.8793 0.571533 12.0016ZM1.77153 4.69797C1.77153 4.03523 2.30879 3.49797 2.97153 3.49797H5.00397C5.59513 3.49797 6.16269 3.72993 6.58462 4.14399C7.23091 4.77821 8.10026 5.13351 9.00576 5.13351H11.6938C12.1909 5.13351 12.5938 5.53646 12.5938 6.03351V6.83533H4.64069C3.6604 6.83533 2.76344 7.38669 2.32081 8.26136L1.77153 9.34679V4.69797ZM1.77153 12.1373V12.0664C1.77594 12.0179 1.78952 11.9689 1.81355 11.9214L3.39152 8.80319C3.62986 8.33222 4.11284 8.03533 4.64069 8.03533H13.8982C14.1896 8.03533 14.3832 8.33701 14.2618 8.60197L12.5815 12.2687C12.5164 12.4109 12.3743 12.502 12.2179 12.502H2.17045C1.95161 12.502 1.78924 12.3326 1.77153 12.1373Z",fillRule:"evenodd",clipRule:"evenodd"}}]},wr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"folder-single",ref:t,icon:Zi}))});wr.displayName="FolderSingle";var Wi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1198",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1198)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.68731 9.98425C5.73282 9.87144 5.77827 9.75442 5.82366 9.63323L6.3312 8.27586H9.65859L10.3523 10.1159C10.405 10.284 10.4868 10.4276 10.6023 10.5378C10.74 10.669 10.9119 10.7236 11.1014 10.714C11.3544 10.7131 11.5919 10.6379 11.6996 10.4032L11.7013 10.3992C11.7901 10.1937 11.7749 9.9634 11.6929 9.7289L8.85351 1.86337C8.79546 1.68828 8.6901 1.54881 8.54213 1.45002C8.38836 1.33863 8.1989 1.29112 7.98798 1.29112C7.78272 1.29112 7.59752 1.34014 7.4446 1.45198C7.30481 1.55223 7.20617 1.69184 7.14935 1.86343L4.324 9.70145L4.32281 9.70495C4.27002 9.86052 4.23828 10.0056 4.23828 10.1346C4.23828 10.2646 4.27116 10.3937 4.36281 10.4909C4.50256 10.6468 4.6921 10.714 4.90604 10.714C5.0369 10.714 5.15805 10.6745 5.26156 10.5916C5.3633 10.5247 5.44621 10.4332 5.51101 10.3217C5.57988 10.2177 5.63858 10.1051 5.68731 9.98425ZM6.72105 7.00152L8.00144 3.32827L9.28183 7.00152H6.72105Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"rect",attrs:{width:11.58,height:2.56,x:2.21,y:12.2,fill:"colorChannel1",rx:1.28}}]}]},Mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-color",ref:t,icon:Wi}))});Mr.displayName="FontColor";var Gi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.92494 2.4224C5.37364 1.19807 7.10523 1.19807 7.55394 2.4224L11.7284 13.8128C11.8425 14.124 11.6827 14.4686 11.3716 14.5827C11.0604 14.6967 10.7158 14.5369 10.6017 14.2258L9.02773 9.93099C9.02555 9.93101 9.02338 9.93102 9.0212 9.93102H3.74372C3.6469 9.93102 3.55544 9.90809 3.47447 9.86736L1.87714 14.2258C1.76312 14.5369 1.41845 14.6967 1.10732 14.5827C0.796186 14.4686 0.636401 14.124 0.750429 13.8128L4.92494 2.4224ZM3.89093 8.73102H8.58795L6.42722 2.83533C6.36312 2.66043 6.11576 2.66042 6.05165 2.83533L3.89093 8.73102Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M13.0504 2.47954C13.0504 2.14817 12.7818 1.87954 12.4504 1.87954C12.1191 1.87954 11.8504 2.14817 11.8504 2.47954V4.11554H10.2144C9.88305 4.11554 9.61442 4.38417 9.61442 4.71554C9.61442 5.04691 9.88305 5.31554 10.2144 5.31554H11.8504V6.95155C11.8504 7.28292 12.1191 7.55155 12.4504 7.55155C12.7818 7.55155 13.0504 7.28292 13.0504 6.95155V5.31554H14.6864C15.0178 5.31554 15.2864 5.04691 15.2864 4.71554C15.2864 4.38417 15.0178 4.11554 14.6864 4.11554H13.0504V2.47954Z"}}]},Er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-increase-single",ref:t,icon:Gi}))});Er.displayName="FontSizeIncreaseSingle";var Yi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_683",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_102_683)"},children:[{tag:"path",attrs:{d:"M3.38645 13.2745L4.16166 11.1001H9.17214L10.2121 13.993C10.2751 14.2073 10.3696 14.3774 10.4957 14.5035C10.6343 14.6421 10.8108 14.7052 11.0251 14.6926C11.3528 14.6926 11.5608 14.5917 11.649 14.39C11.7373 14.1758 11.731 13.9174 11.6301 13.6148L7.64064 2.02456C7.57761 1.82288 7.46417 1.66531 7.3003 1.55187C7.13644 1.42582 6.92215 1.36279 6.65745 1.36279C6.40535 1.36279 6.19737 1.42582 6.0335 1.55187C5.88224 1.66531 5.7751 1.82288 5.71207 2.02456L1.7415 13.577C1.60285 14.0056 1.60285 14.2955 1.7415 14.4468C1.88016 14.6106 2.07554 14.6926 2.32764 14.6926C2.46629 14.6926 2.58604 14.6484 2.68688 14.5602C2.80032 14.4846 2.89486 14.3774 2.97049 14.2388C3.05872 14.1001 3.13435 13.9489 3.19738 13.785C3.2604 13.6211 3.32343 13.451 3.38645 13.2745ZM6.67636 3.29136L8.83181 9.77662H4.5209L6.67636 3.29136Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{d:"M13.8056 3.96584C14.1806 3.96584 14.3681 3.7379 14.3681 3.28202C14.3681 3.06143 14.3203 2.89232 14.2248 2.77467C14.1292 2.64967 13.9931 2.58717 13.8167 2.58717H10.177C9.94168 2.58717 9.76889 2.646 9.6586 2.76364C9.55566 2.88129 9.50418 3.05408 9.50418 3.28202C9.50418 3.50996 9.55566 3.68276 9.6586 3.8004C9.76154 3.9107 9.93065 3.96584 10.1659 3.96584H13.8056Z"}}]}]},Or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-reduce-single-single",ref:t,icon:Yi}))});Or.displayName="FontSizeReduceSingleSingle";var qi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.14014 12.2599C1.14014 13.6958 2.3042 14.8599 3.74014 14.8599H12.2601C13.6961 14.8599 14.8601 13.6958 14.8601 12.2599V3.73989C14.8601 2.30395 13.6961 1.13989 12.2601 1.13989H3.74014C2.3042 1.13989 1.14014 2.30396 1.14014 3.73989V12.2599ZM2.68766 13.1831C2.47131 12.9367 2.34014 12.6136 2.34014 12.2599V11.9756L5.68213 8.21656V9.69237L2.68766 13.1831ZM3.85969 13.6599H5.68213V11.5354L3.85969 13.6599ZM6.88213 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V3.73989C13.6601 2.96669 13.0333 2.33989 12.2601 2.33989H6.88213V13.6599ZM5.68213 2.33989H5.10563L2.34014 5.5448V6.99379L5.68213 3.23472V2.33989ZM2.34014 8.79985V10.1696L5.68213 6.4105V5.04078L2.34014 8.79985ZM2.3405 3.70754L3.50344 2.35982C2.85328 2.47053 2.35588 3.02952 2.3405 3.70754Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-column-single",ref:t,icon:qi}))});Hr.displayName="FreezeColumnSingle";var Xi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.74015 1.13989C2.30421 1.13989 1.14015 2.30396 1.14015 3.73989V5.32866C1.14013 5.33155 1.14013 5.33444 1.14015 5.33732V12.2599C1.14015 13.6958 2.30421 14.8599 3.74015 14.8599H12.2602C13.6961 14.8599 14.8602 13.6958 14.8602 12.2599V3.73989C14.8602 2.46491 13.9424 1.40427 12.7315 1.18251C12.6397 1.14703 12.5407 1.13477 12.4436 1.14626C12.383 1.14204 12.3218 1.13989 12.2602 1.13989H3.74015ZM10.9392 2.33989H9.5695L5.81042 5.68188H7.18015L10.9392 2.33989ZM7.76344 2.33989H6.2816L2.34015 5.61425V5.68188H4.00437L7.76344 2.33989ZM2.34015 6.88188V12.2599C2.34015 13.0331 2.96695 13.6599 3.74015 13.6599H12.2602C13.0334 13.6599 13.6602 13.0331 13.6602 12.2599V6.88188H2.34015ZM13.6602 5.68188V4.48357L12.2714 5.68188H13.6602ZM13.4806 3.05349C13.3067 2.745 13.0193 2.50905 12.675 2.40238L8.98621 5.68188H10.4346L13.4806 3.05349ZM2.34015 4.05418L4.4037 2.33989H3.74015C2.96695 2.33989 2.34015 2.9667 2.34015 3.73989V4.05418Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-row-single",ref:t,icon:Xi}))});Ir.displayName="FreezeRowSingle";var Qi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C12.3218 1.13989 12.383 1.14204 12.4436 1.14627C12.5406 1.13479 12.6397 1.14699 12.7315 1.18252C13.9424 1.4043 14.8601 2.46492 14.8601 3.73989V12.2599C14.8601 13.6905 13.7047 14.8513 12.2761 14.8598L12.2572 14.8599L3.74014 14.8599C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM12.2677 13.6599L12.2601 13.6599H7.99297L7.99256 8.10687C7.99254 7.88594 8.17163 7.70684 8.39256 7.70684H13.6572V12.2599C13.6572 13.0296 13.0361 13.6542 12.2677 13.6599ZM8.39256 6.50684H9.82177L13.4929 3.07581C13.3217 2.75868 13.0317 2.51513 12.6826 2.40475L8.25499 6.51267C8.30033 6.50881 8.34621 6.50684 8.39256 6.50684ZM13.6601 4.56202L11.5792 6.50684H13.6601V4.56202ZM6.81297 7.85057C6.79953 7.93405 6.79255 8.01969 6.79256 8.10696L6.79265 9.36615L2.72441 13.2234C2.48625 12.9724 2.34014 12.6332 2.34014 12.2599V12.0005L6.81297 7.85057ZM4.00811 13.6599H6.79297L6.79277 11.0197L4.00811 13.6599ZM9.57168 2.33989H10.9882L2.34014 10.3635V8.8534L9.57168 2.33989ZM7.77864 2.33989L2.34014 7.2384V5.61425L6.28159 2.33989H7.77864ZM4.40368 2.33989L2.34014 4.05418V3.73989C2.34014 2.9667 2.96694 2.33989 3.74014 2.33989H4.40368Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-to-selected-single",ref:t,icon:Qi}))});Tr.displayName="FreezeToSelectedSingle";var Ji={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.09318 3.78608C2.21639 2.9026 2.84219 1.3999 4.08689 1.3999H11.2079C11.7676 1.3999 12.3041 1.62335 12.6984 2.02063L13.2584 2.58488C13.4918 2.82009 13.4904 3.19998 13.2552 3.4334C13.02 3.66683 12.6401 3.66538 12.4066 3.43018L11.8467 2.86593C11.6777 2.69566 11.4477 2.5999 11.2079 2.5999H4.08689C3.90907 2.5999 3.81967 2.81458 3.94493 2.94079L8.24218 7.27082C8.66782 7.69971 8.66782 8.39164 8.24218 8.82053L3.94493 13.1506C3.81967 13.2768 3.90907 13.4915 4.08689 13.4915H11.2079C11.4477 13.4915 11.6777 13.3957 11.8467 13.2254L12.4066 12.6612C12.6401 12.426 13.02 12.4245 13.2552 12.658C13.4904 12.8914 13.4918 13.2713 13.2584 13.5065L12.6984 14.0707C12.3041 14.468 11.7676 14.6915 11.2079 14.6915H4.08689C2.84218 14.6915 2.2164 13.1888 3.09318 12.3053L7.32053 8.04568L3.09318 3.78608Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"function-single",ref:t,icon:Ji}))});Dr.displayName="FunctionSingle";var Ki={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_784",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_784)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.33325 2.60309C1.33325 1.90178 1.90178 1.33325 2.60309 1.33325H13.3967C14.0981 1.33325 14.6666 1.90178 14.6666 2.60309V13.3967C14.6666 14.0981 14.0981 14.6666 13.3967 14.6666H2.60309C1.90178 14.6666 1.33325 14.0981 1.33325 13.3967V2.60309ZM10.5396 13.3967H13.3967V10.5396H10.5396V13.3967ZM9.26976 10.5396V13.3967H6.41262V10.5396H9.26976ZM10.5396 9.26976H13.3967V6.73008H10.5396V9.26976ZM9.26976 6.73008V9.26976H6.41262V6.73008H9.26976ZM10.5396 5.46024H13.3967V2.60309H10.5396V5.46024ZM9.26976 2.60309V5.46024H6.41262V2.60309H9.26976ZM2.60309 2.60309H5.14278V5.46024H2.60309V2.60309ZM2.60309 6.73008H5.14278V9.26976H2.60309V6.73008ZM2.60309 10.5396H5.14278V13.3967H2.60309V10.5396Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},xr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"grid-single",ref:t,icon:Ki}))});xr.displayName="GridSingle";var eo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.9999 3.90137C4.66853 3.90137 4.3999 4.17 4.3999 4.50137 4.3999 4.83274 4.66853 5.10137 4.9999 5.10137H10.9999C11.3313 5.10137 11.5999 4.83274 11.5999 4.50137 11.5999 4.17 11.3313 3.90137 10.9999 3.90137H4.9999zM4.9999 10.8987C4.66853 10.8987 4.3999 11.1673 4.3999 11.4987 4.3999 11.8301 4.66853 12.0987 4.9999 12.0987H10.9999C11.3313 12.0987 11.5999 11.8301 11.5999 11.4987 11.5999 11.1673 11.3313 10.8987 10.9999 10.8987H4.9999z"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.7 2.0999H3.30005C2.85822 2.0999 2.50005 2.45807 2.50005 2.8999V13.0999C2.50005 13.5417 2.85822 13.8999 3.30005 13.8999H12.7C13.1419 13.8999 13.5 13.5417 13.5 13.0999V2.8999C13.5 2.45808 13.1419 2.0999 12.7 2.0999ZM3.30005 0.899902C2.19548 0.899902 1.30005 1.79533 1.30005 2.8999V13.0999C1.30005 14.2045 2.19548 15.0999 3.30005 15.0999H12.7C13.8046 15.0999 14.7 14.2045 14.7 13.0999V2.8999C14.7 1.79533 13.8046 0.899902 12.7 0.899902H3.30005Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"header-footer-single",ref:t,icon:eo}))});Nr.displayName="HeaderFooterSingle";var to={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1151",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1151)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.01519 4.9156C7.65059 4.9156 7.29055 4.96431 6.93757 5.05194C6.6062 5.1342 6.2709 4.93226 6.18864 4.60089C6.10638 4.26953 6.30831 3.93422 6.63968 3.85196C7.0796 3.74275 7.53991 3.6792 8.01519 3.6792C9.93752 3.6792 11.6225 4.71575 12.781 5.67605C13.3691 6.16346 13.8434 6.64946 14.171 7.01358C14.3351 7.19604 14.4633 7.34895 14.5515 7.45755C14.5956 7.51187 14.6298 7.5552 14.6535 7.58568C14.6653 7.60092 14.6745 7.61296 14.6811 7.62157L14.6889 7.63188L14.6913 7.63506L14.6921 7.63614C14.6921 7.63614 14.6927 7.63689 14.1972 8.0066C14.6927 8.37631 14.6925 8.37646 14.6925 8.37646L14.6921 8.37705L14.6913 8.37814L14.6889 8.38131L14.6811 8.39163C14.6745 8.40023 14.6653 8.41227 14.6535 8.42752C14.6298 8.458 14.5956 8.50132 14.5515 8.55565C14.4633 8.66425 14.3351 8.81715 14.171 8.99961C13.8434 9.36373 13.3691 9.84973 12.781 10.3371C12.5182 10.555 12.1284 10.5186 11.9106 10.2557C11.6927 9.99285 11.7291 9.60313 11.992 9.38524C12.5227 8.94536 12.9537 8.50406 13.2518 8.1727C13.3051 8.11347 13.354 8.05788 13.3984 8.0066C13.354 7.95531 13.3051 7.89972 13.2518 7.84049C12.9537 7.50913 12.5227 7.06783 11.992 6.62795C10.9131 5.73365 9.50709 4.9156 8.01519 4.9156ZM14.1972 8.0066L14.6925 8.37646C14.8562 8.15715 14.8563 7.8562 14.6927 7.63689L14.1972 8.0066ZM4.11981 5.75748C4.3377 6.02035 4.30123 6.41007 4.03837 6.62795C3.50769 7.06783 3.07669 7.50913 2.7786 7.84049C2.72531 7.89972 2.67639 7.95531 2.63203 8.0066C2.67639 8.05788 2.72531 8.11347 2.7786 8.17271C3.07669 8.50406 3.50769 8.94536 4.03837 9.38524C5.11729 10.2795 6.5233 11.0976 8.01519 11.0976C8.38283 11.0976 8.74582 11.0481 9.10157 10.9591C9.43279 10.8762 9.76846 11.0776 9.85131 11.4088C9.93417 11.74 9.73283 12.0757 9.40162 12.1585C8.95841 12.2694 8.49443 12.334 8.01519 12.334C6.09287 12.334 4.40788 11.2974 3.24935 10.3371C2.66132 9.84973 2.18698 9.36373 1.85941 8.99961C1.69527 8.81715 1.56704 8.66425 1.47887 8.55565C1.43476 8.50132 1.4006 8.458 1.37692 8.42752C1.36508 8.41227 1.35585 8.40023 1.3493 8.39162L1.34149 8.38131L1.3391 8.37813L1.33829 8.37705C1.33829 8.37705 1.33773 8.37631 1.8332 8.0066C1.33773 7.63689 1.33785 7.63673 1.33785 7.63673L1.3391 7.63506L1.34149 7.63188L1.3493 7.62157C1.35585 7.61296 1.36508 7.60092 1.37692 7.58568C1.4006 7.5552 1.43476 7.51187 1.47887 7.45755C1.56704 7.34895 1.69527 7.19604 1.85941 7.01358C2.18698 6.64946 2.66132 6.16346 3.24935 5.67605C3.51221 5.45816 3.90193 5.49462 4.11981 5.75748ZM1.8332 8.0066L1.33785 7.63673C1.1742 7.85604 1.17464 8.15774 1.33829 8.37705L1.8332 8.0066Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M3.8775 2.99454C3.63608 2.75312 3.24466 2.75312 3.00323 2.99454C2.76181 3.23596 2.76181 3.62739 3.00323 3.86881L6.11167 6.97725C5.94588 7.28339 5.85153 7.63423 5.85153 8.00647C5.85153 9.20144 6.82025 10.1702 8.01523 10.1702C8.38756 10.1702 8.73834 10.0758 9.04444 9.91001L12.1095 12.9751C12.3509 13.2165 12.7424 13.2165 12.9838 12.9751C13.2252 12.7337 13.2252 12.3422 12.9838 12.1008L3.8775 2.99454ZM8.0668 8.93237L7.08932 7.9549C7.0884 7.97197 7.08793 7.98916 7.08793 8.00647C7.08793 8.5186 7.5031 8.93377 8.01523 8.93377C8.03254 8.93377 8.04973 8.9333 8.0668 8.93237Z"}}]}]},Vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"hide",ref:t,icon:to}))});Vr.displayName="Hide";var no={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_248_114",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_248_114)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M1.33325 13.333V11.9997H2.66659L2.66659 13.333H3.99992V14.6663H2.66659C1.93021 14.6663 1.33325 14.0694 1.33325 13.333zM2.66659 1.33301H3.99992V2.66634L2.66659 2.66634V3.99967H1.33325V2.66634C1.33325 1.92996 1.93021 1.33301 2.66659 1.33301zM2.66659 9.33301H1.33325V6.66634H2.66659V9.33301zM6.66659 2.66634V1.33301H9.33325V2.66634H8.66496V3.9855H7.33496V2.66634H6.66659zM11.9999 2.66634V1.33301H13.3333C14.0696 1.33301 14.6666 1.92996 14.6666 2.66634V3.99967H13.3333V2.66634H11.9999zM13.3333 6.66634H14.6666V9.33301H13.3333V6.66634zM13.3333 11.9997H14.6666V13.333C14.6666 14.0694 14.0696 14.6663 13.3333 14.6663H11.9999V13.333H13.3333V11.9997zM9.33325 13.333V14.6663H6.66659V13.333H7.33496V12.0138H8.66496V13.333H9.33325zM7.33496 6.66159L7.33496 9.33768H8.66496V6.66159H7.33496z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.66687 7.33423H7.33354L2.66687 7.33431V8.66764H7.33354L8.66687 8.66756L13.3335 8.66764V7.33431L8.66687 7.33423Z"}}]}]},Ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-border",ref:t,icon:no}))});Ar.displayName="HorizontalBorder";var ro={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.91296 6.82256L5.89774 6.82237 2.83868 6.8223C1.89982 6.82228 1.13874 6.06119 1.13872 5.12234L1.13867 3.32265C1.13865 2.38375 1.89977 1.62261 2.83866 1.62261L5.90639 1.62259 5.91296 1.62256 5.91953 1.62259 10.0821 1.62258 10.0868 1.62256 10.0914 1.62258 13.1607 1.62256C14.0996 1.62256 14.8607 2.38368 14.8607 3.32256V5.12253C14.8607 6.06143 14.0996 6.82256 13.1607 6.82253L10.0975 6.82246 10.0868 6.82256 10.076 6.82246 5.92815 6.82237 5.91296 6.82256zM10.6868 5.62248L13.1607 5.62253C13.4368 5.62254 13.6607 5.39868 13.6607 5.12253V3.32256C13.6607 3.04642 13.4368 2.82256 13.1607 2.82256L10.6868 2.82257V5.62248zM9.48679 2.82258V5.62245L6.51296 5.62238V2.82259L9.48679 2.82258zM5.31296 2.8226V5.62236L2.8387 5.6223C2.56257 5.62229 2.33872 5.39845 2.33872 5.12231L2.33867 3.32262C2.33867 3.04647 2.56252 2.82261 2.83867 2.82261L5.31296 2.8226zM1.1387 10.8773L1.13878 12.6773C1.13883 13.6162 1.89994 14.3772 2.8388 14.3772L5.90638 14.3772 5.91296 14.3772 5.91955 14.3772 10.0775 14.3772C10.0806 14.3772 10.0837 14.3772 10.0868 14.3772 10.0899 14.3772 10.093 14.3772 10.0961 14.3772L13.1607 14.3772C14.0996 14.3771 14.8607 13.616 14.8607 12.6772V10.8772C14.8607 9.93836 14.0996 9.17725 13.1607 9.17725H2.8387C1.89978 9.17725 1.13865 9.93841 1.1387 10.8773zM9.48679 10.3772H6.51296V13.1772L9.48679 13.1772V10.3772zM10.6868 13.1772V10.3772H13.1607C13.4369 10.3772 13.6607 10.6011 13.6607 10.8772V12.6772C13.6607 12.9533 13.4369 13.1771 13.1607 13.1772L10.6868 13.1772zM5.31296 13.1772V10.3772H2.8387C2.56254 10.3772 2.33868 10.6011 2.3387 10.8773L2.33878 12.6773C2.33879 12.9534 2.56265 13.1772 2.83879 13.1772L5.31296 13.1772z",fillRule:"evenodd",clipRule:"evenodd"}}]},Pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-merge-single",ref:t,icon:ro}))});Pr.displayName="HorizontalMergeSingle";var io={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM3.33315 5.56641C3.00178 5.56641 2.73315 5.83504 2.73315 6.16641 2.73315 6.49778 3.00178 6.76641 3.33315 6.76641H12.6665C12.9979 6.76641 13.2665 6.49778 13.2665 6.16641 13.2665 5.83504 12.9979 5.56641 12.6665 5.56641H3.33315zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM3.33315 12.9004C3.00178 12.9004 2.73315 13.169 2.73315 13.5004 2.73315 13.8318 3.00178 14.1004 3.33315 14.1004H12.6665C12.9979 14.1004 13.2665 13.8318 13.2665 13.5004 13.2665 13.169 12.9979 12.9004 12.6665 12.9004H3.33315z"}}]},Rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontally-single",ref:t,icon:io}))});Rr.displayName="HorizontallySingle";var oo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1307",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1307)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M1.33325 11.9997V13.333C1.33325 14.0694 1.93021 14.6663 2.66659 14.6663H3.99992V13.333H2.66659L2.66659 11.9997H1.33325ZM3.99992 1.33301H2.66659C1.93021 1.33301 1.33325 1.92996 1.33325 2.66634V3.99967H2.66659V2.66634L3.99992 2.66634V1.33301ZM1.33325 9.33301H2.66659V6.66634H1.33325V9.33301ZM6.66659 1.33301V2.66634H9.33325V1.33301H6.66659ZM11.9999 1.33301V2.66634H13.3333V3.99967H14.6666V2.66634C14.6666 1.92996 14.0696 1.33301 13.3333 1.33301H11.9999ZM14.6666 6.66634H13.3333V9.33301H14.6666V6.66634ZM14.6666 11.9997H13.3333V13.333H11.9999V14.6663H13.3333C14.0696 14.6663 14.6666 14.0694 14.6666 13.333V11.9997ZM9.33325 14.6663V13.333H6.66659V14.6663H9.33325Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.66693 7.33415V2.66748H7.3336V7.33415H2.66693V8.66748H7.3336V13.3341H8.66693V8.66748H13.3336V7.33415H8.66693Z"}}]}]},jr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"inner-border",ref:t,icon:oo}))});jr.displayName="InnerBorder";var ao={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1113",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1113)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.66105 5.44796C7.66105 5.07977 7.36257 4.7813 6.99439 4.7813H3.22403C2.85583 4.7813 2.55736 5.07977 2.55736 5.44796V10.5516C2.55736 10.9198 2.85583 11.2183 3.22403 11.2183H6.99439C7.36257 11.2183 7.66105 10.9198 7.66105 10.5516V5.44796ZM2.55736 3.50537C1.85268 3.50537 1.28143 4.07662 1.28143 4.7813V11.2183C1.28143 11.923 1.85268 12.4942 2.55736 12.4942H7.66105C8.3657 12.4942 8.93697 11.923 8.93697 11.2183V4.7813C8.93697 4.07662 8.3657 3.50537 7.66105 3.50537H2.55736Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.9225 10.465C11.9977 10.4962 12.0802 10.5134 12.1667 10.5134C12.2532 10.5134 12.3357 10.4962 12.4109 10.465C12.4862 10.4338 12.5567 10.3877 12.6178 10.3265L14.5317 8.41263C14.7808 8.16349 14.7808 7.75956 14.5317 7.51042C14.2826 7.26128 13.8786 7.26128 13.6295 7.51042L12.8047 8.33523V6.14333C12.8047 5.791 12.5191 5.50537 12.1667 5.50537C11.8144 5.50537 11.5288 5.791 11.5288 6.14333V8.33523L10.7039 7.51042C10.4548 7.26128 10.0509 7.26128 9.80172 7.51042C9.55258 7.75956 9.55258 8.16349 9.80172 8.41263L11.7153 10.3262"}}]}]},kr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-down",ref:t,icon:ao}))});kr.displayName="InsertCellDown";var so={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1108",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1108)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.56614 5.44796C7.56614 5.07977 7.26766 4.7813 6.89948 4.7813H3.12912C2.76092 4.7813 2.46245 5.07977 2.46245 5.44796V10.5516C2.46245 10.9198 2.76092 11.2183 3.12912 11.2183H6.89948C7.26766 11.2183 7.56614 10.9198 7.56614 10.5516V5.44796ZM2.46245 3.50537C1.75777 3.50537 1.18652 4.07662 1.18652 4.7813V11.2183C1.18652 11.923 1.75777 12.4942 2.46245 12.4942H7.56614C8.27079 12.4942 8.84206 11.923 8.84206 11.2183V4.7813C8.84206 4.07662 8.27079 3.50537 7.56614 3.50537H2.46245Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M14.7651 8.2438C14.7963 8.16858 14.8135 8.0861 14.8135 7.9996C14.8135 7.9131 14.7963 7.83062 14.7651 7.7554C14.7339 7.68015 14.6878 7.60966 14.6266 7.54849L12.7127 5.63461C12.4636 5.38547 12.0597 5.38547 11.8105 5.63461C11.5614 5.88375 11.5614 6.28768 11.8105 6.53682L12.6353 7.36164H10.4434C10.0911 7.36164 9.80548 7.64727 9.80548 7.9996C9.80548 8.35194 10.0911 8.63756 10.4434 8.63756H12.6353L11.8105 9.46238C11.5614 9.71152 11.5614 10.1155 11.8105 10.3646C12.0597 10.6137 12.4636 10.6137 12.7127 10.3646L14.6263 8.45101"}}]}]},$r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-shift-right",ref:t,icon:so}))});$r.displayName="InsertCellShiftRight";var lo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1128",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1128)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.3333 13.4087C14.0697 13.4087 14.6666 12.8117 14.6666 12.0754L14.6666 9.40869C14.6666 8.67231 14.0697 8.07536 13.3333 8.07536L2.66663 8.07536C1.93023 8.07536 1.33329 8.67231 1.33329 9.40869L1.33329 12.0754C1.33329 12.8117 1.93023 13.4087 2.66663 13.4087L13.3333 13.4087ZM2.66663 12.0754L13.3333 12.0754L13.3333 9.40869L2.66663 9.40869L2.66663 12.0754Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.74168 2.59137C8.10987 2.59137 8.40835 2.88984 8.40835 3.25804L8.40835 4.33309L9.48348 4.33309C9.85167 4.33309 10.1501 4.63156 10.1501 4.99976C10.1501 5.36794 9.85167 5.66642 9.48348 5.66642L8.40835 5.66642L8.40835 6.74154C8.40835 7.10973 8.10987 7.4082 7.74168 7.4082C7.37349 7.4082 7.07501 7.10973 7.07501 6.74154L7.07501 5.66642L5.99998 5.66642C5.63179 5.66642 5.33331 5.36794 5.33331 4.99976C5.33331 4.63156 5.63179 4.33309 5.99998 4.33309L7.07501 4.33309L7.07501 3.25804C7.07501 2.88984 7.37349 2.59137 7.74168 2.59137Z"}}]}]},Br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-above",ref:t,icon:lo}))});Br.displayName="InsertRowAbove";var co={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1133",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1133)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.66671 2.59131C1.93033 2.59131 1.33337 3.18826 1.33337 3.92464L1.33337 6.59131C1.33337 7.32769 1.93033 7.92464 2.66671 7.92464L13.3334 7.92464C14.0698 7.92464 14.6667 7.32769 14.6667 6.59131L14.6667 3.92464C14.6667 3.18826 14.0698 2.59131 13.3334 2.59131L2.66671 2.59131ZM13.3334 3.92464L2.66671 3.92464L2.66671 6.59131L13.3334 6.59131L13.3334 3.92464Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M8.25838 13.4086C7.8902 13.4086 7.59172 13.1102 7.59172 12.742L7.59172 11.6669L6.51658 11.6669C6.14839 11.6669 5.84992 11.3684 5.84991 11.0002C5.84991 10.6321 6.14839 10.3336 6.51658 10.3336L7.59172 10.3336L7.59171 9.25846C7.59171 8.89027 7.89019 8.5918 8.25838 8.5918C8.62657 8.5918 8.92505 8.89027 8.92505 9.25846L8.92505 10.3336L10.0001 10.3336C10.3683 10.3336 10.6667 10.6321 10.6667 11.0002C10.6667 11.3684 10.3683 11.6669 10.0001 11.6669L8.92505 11.6669L8.92505 12.742C8.92505 13.1102 8.62658 13.4086 8.25838 13.4086Z"}}]}]},Ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-below",ref:t,icon:co}))});Ur.displayName="InsertRowBelow";var uo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_233_16",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_233_16)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.53337 14C2.35658 14 2.18704 13.9297 2.06203 13.8047C1.93703 13.6797 1.86681 13.5101 1.86681 13.3333C1.86681 13.1565 1.93703 12.987 2.06203 12.862C2.18704 12.7369 2.35658 12.6667 2.53337 12.6667L13.4667 12.6667C13.6435 12.6667 13.813 12.7369 13.938 12.862C14.063 12.987 14.1333 13.1565 14.1333 13.3333C14.1333 13.5101 14.063 13.6797 13.938 13.8047C13.813 13.9297 13.6435 14 13.4667 14L2.53337 14ZM2.53337 3.33333C2.35658 3.33331 2.18703 3.26306 2.06203 3.13804C1.93703 3.01301 1.86681 2.84346 1.86681 2.66667C1.86681 2.48987 1.93703 2.32032 2.06203 2.1953C2.18703 2.07028 2.35658 2.00003 2.53337 2L13.4667 2C13.6435 2.00003 13.813 2.07028 13.938 2.1953C14.063 2.32032 14.1333 2.48987 14.1333 2.66667C14.1333 2.84346 14.063 3.01301 13.938 3.13803C13.813 3.26306 13.6435 3.33331 13.4667 3.33333L2.53337 3.33333Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.0573 7.33327L10.1953 6.47127C10.0703 6.34627 10.0001 6.17672 10.0001 5.99994C10.0001 5.82315 10.0703 5.65361 10.1953 5.52861C10.3203 5.4036 10.4899 5.33337 10.6667 5.33337C10.8434 5.33337 11.013 5.4036 11.138 5.52861L13.138 7.5286C13.2 7.59046 13.2491 7.66393 13.2827 7.74481C13.3162 7.82569 13.3335 7.91238 13.3335 7.99994C13.3335 8.08749 13.3162 8.17419 13.2827 8.25507C13.2491 8.33594 13.2 8.40941 13.138 8.47127L11.138 10.4713C11.0761 10.5332 11.0026 10.5823 10.9217 10.6158C10.8409 10.6493 10.7542 10.6665 10.6667 10.6665C10.5791 10.6665 10.4925 10.6493 10.4116 10.6158C10.3307 10.5823 10.2572 10.5332 10.1953 10.4713C10.1334 10.4094 10.0843 10.3359 10.0508 10.255C10.0173 10.1742 10.0001 10.0875 10.0001 9.99994C10.0001 9.9124 10.0173 9.82573 10.0508 9.74486C10.0843 9.66398 10.1334 9.5905 10.1953 9.52861L11.0573 8.6666L3.33333 8.66661C3.15652 8.66661 2.98695 8.59637 2.86193 8.47134C2.7369 8.34632 2.66666 8.17675 2.66666 7.99994C2.66666 7.82313 2.7369 7.65356 2.86193 7.52853C2.98695 7.40351 3.15652 7.33327 3.33333 7.33327L11.0573 7.33327Z"}}]}]},Fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert",ref:t,icon:uo}))});Fr.displayName="Insert";var fo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9.80385 1.40005H11.9997C12.3311 1.40005 12.5997 1.66868 12.5997 2.00005C12.5997 2.33143 12.3311 2.60005 11.9997 2.60005H10.1185L7.12251 13.4001H9.33324C9.66461 13.4001 9.93324 13.6687 9.93324 14.0001C9.93324 14.3314 9.66461 14.6001 9.33324 14.6001H6.34785C6.33847 14.6003 6.32905 14.6003 6.31962 14.6001H3.9999C3.66853 14.6001 3.3999 14.3314 3.3999 14.0001C3.3999 13.6687 3.66853 13.4001 3.9999 13.4001H5.87719L8.87322 2.60005H6.66641C6.33504 2.60005 6.06641 2.33143 6.06641 2.00005C6.06641 1.66868 6.33504 1.40005 6.66641 1.40005H9.52916C9.61698 1.37929 9.71064 1.3781 9.80385 1.40005Z"}}]},zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"italic-single",ref:t,icon:fo}))});zr.displayName="ItalicSingle";var ho={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.39986 6.33339C3.39986 6.00202 3.66849 5.73339 3.99986 5.73339H4.66652C4.99789 5.73339 5.26652 6.00202 5.26652 6.33339 5.26652 6.66476 4.99789 6.93339 4.66652 6.93339H3.99986C3.66849 6.93339 3.39986 6.66476 3.39986 6.33339zM6.99986 5.73339C6.66849 5.73339 6.39986 6.00202 6.39986 6.33339 6.39986 6.66476 6.66849 6.93339 6.99986 6.93339H7.66652C7.99789 6.93339 8.26652 6.66476 8.26652 6.33339 8.26652 6.00202 7.99789 5.73339 7.66652 5.73339H6.99986zM9.06636 6.33339C9.06636 6.00202 9.33499 5.73339 9.66636 5.73339H11.9997C12.3311 5.73339 12.5997 6.00202 12.5997 6.33339 12.5997 6.66476 12.3311 6.93339 11.9997 6.93339H9.66636C9.33499 6.93339 9.06636 6.66476 9.06636 6.33339zM3.99986 8.73339C3.66849 8.73339 3.39986 9.00202 3.39986 9.33339 3.39986 9.66476 3.66849 9.93339 3.99986 9.93339H11.9999C12.3312 9.93339 12.5999 9.66476 12.5999 9.33339 12.5999 9.00202 12.3312 8.73339 11.9999 8.73339H3.99986z"}},{tag:"path",attrs:{fill:"currentColor",d:"M3.33338 1.73345L12.6667 1.7334C14.1026 1.73339 15.2667 2.89745 15.2667 4.3334V11C15.2667 12.4359 14.1027 13.6 12.6667 13.6H3.33355C1.89763 13.6 0.733583 12.4359 0.73355 11L0.733398 4.33351C0.733366 2.89755 1.89742 1.73346 3.33338 1.73345ZM12.6667 2.9334L3.33339 2.93345C2.56018 2.93346 1.93338 3.56028 1.9334 4.33348L1.93355 11C1.93357 11.7732 2.56036 12.4 3.33355 12.4H12.6667C13.4399 12.4 14.0667 11.7732 14.0667 11V4.3334C14.0667 3.5602 13.4399 2.93339 12.6667 2.9334Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"keyboard-single",ref:t,icon:ho}))});Zr.displayName="KeyboardSingle";var vo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1292",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1292)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M14.6664 3.99967L14.6664 2.66634C14.6664 1.92996 14.0694 1.33301 13.333 1.33301L11.9997 1.33301 11.9997 2.66634 13.333 2.66634 13.333 3.99967 14.6664 3.99967zM6.66638 1.33301L6.66638 2.66634 9.33305 2.66634 9.33305 1.33301 6.66638 1.33301zM14.6664 6.66634L13.333 6.66634 13.333 7.33301 10.6664 7.33301 10.6664 8.66634 13.333 8.66634 13.333 9.33301 14.6664 9.33301 14.6664 6.66634zM14.6664 11.9997L13.333 11.9997 13.333 13.333 11.9997 13.333 11.9997 14.6663 13.333 14.6663C14.0694 14.6663 14.6664 14.0694 14.6664 13.333L14.6664 11.9997zM9.33305 14.6663L9.33305 13.333 8.66638 13.333 8.66638 10.6663 7.33305 10.6663 7.33305 13.333 6.66638 13.333 6.66638 14.6663 9.33305 14.6663zM2.66638 7.33301L5.33305 7.33301 5.33305 8.66634 2.66638 8.66634 2.66638 7.33301zM8.66638 5.33301L8.66638 2.66634 7.33305 2.66634 7.33305 5.33301 8.66638 5.33301z"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.66667 1.33301L4 1.33301L4 2.66634L2.66667 2.66634L2.66667 13.333L4 13.333L4 14.6663L2.66667 14.6663C1.93029 14.6663 1.33333 14.0694 1.33333 13.333L1.33333 2.66634C1.33333 1.92996 1.93029 1.33301 2.66667 1.33301Z"}}]}]},Wr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-border",ref:t,icon:vo}))});Wr.displayName="LeftBorder";var mo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_29",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.46 0.72H16.46V16.72H0.46z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_29)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.75537 3.11333L14.8806 8.21036L14.3808 9.30132L4.52076 4.78394L9.03813 14.644L7.94718 15.1438L2.85015 4.01855L2.5419 3.87733L2.66368 3.61154L2.52319 3.30491L2.8788 3.14199L3.04172 2.78638L3.34836 2.92686L3.61415 2.80509L3.75537 3.11333Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M1.80017 12.8102L1.80017 14.1743C1.80017 14.8371 2.33743 15.3743 3.00017 15.3743L4.3643 15.3743L4.3643 14.0443L3.13017 14.0443L3.13017 12.8102L1.80017 12.8102ZM4.3643 2.06128L3.00017 2.06128C2.33743 2.06128 1.80017 2.59854 1.80017 3.26128L1.80017 4.62541L3.13017 4.62541L3.13017 3.39128L4.3643 3.39128L4.3643 2.06128ZM1.80017 10.0819L3.13017 10.0819L3.13017 7.35367L1.80017 7.35367L1.80017 10.0819ZM7.09256 2.06128L7.09256 3.39128L9.82081 3.39128L9.82081 2.06128L7.09256 2.06128ZM12.5491 2.06128L12.5491 3.39128L13.7832 3.39128L13.7832 4.62541L15.1132 4.62541L15.1132 3.26128C15.1132 2.59854 14.5759 2.06128 13.9132 2.06128L12.5491 2.06128ZM15.1132 7.35367L13.7832 7.35367L13.7832 10.0819L15.1132 10.0819L15.1132 7.35367ZM15.1132 12.8102L13.7832 12.8102L13.7832 14.0443L12.5491 14.0443L12.5491 15.3743L13.9132 15.3743C14.5759 15.3743 15.1132 14.8371 15.1132 14.1743L15.1132 12.8102ZM9.82082 15.3743L9.82082 14.0443L7.09256 14.0443L7.09256 15.3743L9.82082 15.3743Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Gr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-double-diagonal-single",ref:t,icon:mo}))});Gr.displayName="LeftDoubleDiagonalSingle";var po={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1118",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1118)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.4322 2.66683C13.4322 1.93045 12.8352 1.3335 12.0989 1.3335H9.43219C8.69581 1.3335 8.09886 1.93045 8.09886 2.66683V13.3335C8.09886 14.0699 8.69581 14.6668 9.43219 14.6668H12.0989C12.8352 14.6668 13.4322 14.0699 13.4322 13.3335V2.66683ZM12.0989 13.3335V2.66683H9.43219V13.3335H12.0989Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M2.56769 7.99978C2.56769 7.63159 2.86616 7.33311 3.23435 7.33311H4.30941V6.25798C4.30941 5.88979 4.60788 5.59131 4.97607 5.59131C5.34426 5.59131 5.64274 5.88979 5.64274 6.25798V7.33311H6.71785C7.08604 7.33311 7.38452 7.63159 7.38452 7.99978C7.38452 8.36797 7.08604 8.66644 6.71785 8.66644H5.64274V9.74148C5.64274 10.1097 5.34426 10.4081 4.97607 10.4081C4.60788 10.4081 4.30941 10.1097 4.30941 9.74148V8.66644H3.23435C2.86616 8.66644 2.56769 8.36797 2.56769 7.99978Z"}}]}]},Yr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-insert-column",ref:t,icon:po}))});Yr.displayName="LeftInsertColumn";var Co={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H11.3332C11.6646 6.76641 11.9332 6.49778 11.9332 6.16641 11.9332 5.83504 11.6646 5.56641 11.3332 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H11.3332C11.6646 14.1004 11.9332 13.8318 11.9332 13.5004 11.9332 13.169 11.6646 12.9004 11.3332 12.9004H1.9999z"}}]},qr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-justifying-single",ref:t,icon:Co}))});qr.displayName="LeftJustifyingSingle";var go={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3732 3.94019C0.82475 2.75718 2.04917 1.53276 3.23218 2.0812L10.0657 5.24921C10.3663 5.38859 10.497 5.74529 10.3576 6.04592C10.2183 6.34656 9.86157 6.47728 9.56094 6.33791L6.86664 5.08883L4.42613 7.52934C4.41111 7.54436 4.3955 7.55841 4.37936 7.5715L5.6299 10.2689C5.76928 10.5696 5.63855 10.9263 5.33791 11.0656C5.03728 11.205 4.68058 11.0743 4.54121 10.7737L1.3732 3.94019ZM2.72746 3.1699L5.70713 4.55128L3.84327 6.41514L2.46189 3.43547C2.38354 3.26647 2.55846 3.09155 2.72746 3.1699Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.56311 13.7359C4.32879 13.9702 4.32879 14.3501 4.56311 14.5844C4.79742 14.8188 5.17732 14.8188 5.41163 14.5844L13.3083 6.68776L13.3842 8.21165C13.4006 8.54261 13.6823 8.79755 14.0133 8.78108C14.3442 8.76461 14.5992 8.48295 14.5827 8.15199L14.4844 6.17786C14.4413 5.3118 13.3917 4.90732 12.7786 5.52046L4.56311 13.7359Z"}}]},Xr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-forty-five-degrees-single",ref:t,icon:go}))});Xr.displayName="LeftRotationFortyFiveDegreesSingle";var bo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.4046 13.9395C11.4046 14.2708 11.6732 14.5395 12.0046 14.5395C12.336 14.5395 12.6046 14.2708 12.6046 13.9395V2.77186L13.7358 3.79578C13.9815 4.01815 14.3609 3.99927 14.5833 3.75359C14.8057 3.50792 14.7868 3.12849 14.5411 2.90612L13.0757 1.57967C12.4328 0.997761 11.4046 1.45394 11.4046 2.32106V13.9395Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.22244 9.26836C0.998116 8.81966 0.998119 7.08807 2.22245 6.63936L9.29456 4.04749C9.60569 3.93346 9.95036 4.09325 10.0644 4.40438C10.1784 4.71551 10.0186 5.06018 9.70749 5.1742L6.91911 6.19613V9.64753C6.91911 9.66877 6.918 9.68974 6.91585 9.71041L9.70749 10.7335C10.0186 10.8476 10.1784 11.1922 10.0644 11.5033C9.95036 11.8145 9.60569 11.9743 9.29456 11.8602L2.22244 9.26836ZM2.63538 7.76608L5.71911 6.63592V9.27181L2.63538 8.14165C2.46047 8.07755 2.46047 7.83018 2.63538 7.76608Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Qr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-ninety-degrees-single",ref:t,icon:bo}))});Qr.displayName="LeftRotationNinetyDegreesSingle";var yo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_43",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.33 0.72H16.33V16.72H0.33z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_43)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.33875 3.57255L2.23657 3.79614L2.72883 4.0211L7.58275 14.6428L8.67419 14.144L5.10931 6.34311L13.5649 14.7987L14.4134 13.9502L5.96172 5.49847L13.7573 9.0609L14.2561 7.96947L3.63438 3.11555L3.40942 2.62329L3.18782 2.72456L3.09973 2.63647L2.93861 2.7976L2.73534 2.70471L2.60444 2.99116L2.31799 3.12206L2.41088 3.32533L2.2512 3.485L2.33875 3.57255Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M1.6759 12.8102L1.6759 14.1743C1.6759 14.8371 2.21316 15.3743 2.8759 15.3743L4.24003 15.3743L4.24003 14.0443L3.0059 14.0443L3.0059 12.8102L1.6759 12.8102ZM4.24003 2.06128L2.8759 2.06128C2.21316 2.06128 1.6759 2.59854 1.6759 3.26128L1.6759 4.62541L3.0059 4.62541L3.0059 3.39128L4.24003 3.39128L4.24003 2.06128ZM1.6759 10.0819L3.0059 10.0819L3.0059 7.35367L1.6759 7.35367L1.6759 10.0819ZM6.96829 2.06128L6.96829 3.39128L9.69655 3.39128L9.69655 2.06128L6.96829 2.06128ZM12.4248 2.06128L12.4248 3.39128L13.6589 3.39128L13.6589 4.62541L14.9889 4.62541L14.9889 3.26128C14.9889 2.59854 14.4517 2.06128 13.7889 2.06128L12.4248 2.06128ZM14.9889 7.35367L13.6589 7.35367L13.6589 10.0819L14.9889 10.0819L14.9889 7.35367ZM14.9889 12.8102L13.6589 12.8102L13.6589 14.0443L12.4248 14.0443L12.4248 15.3743L13.7889 15.3743C14.4517 15.3743 14.9889 14.8371 14.9889 14.1743L14.9889 12.8102ZM9.69655 15.3743L9.69655 14.0443L6.96829 14.0443L6.96829 15.3743L9.69655 15.3743Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Jr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-tridiagonal-single",ref:t,icon:yo}))});Jr.displayName="LeftTridiagonalSingle";var So={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.96708 8.23432V11.6842C4.96708 12.0156 5.2357 12.2842 5.56708 12.2842 5.89845 12.2842 6.16708 12.0156 6.16708 11.6842V5.62199C6.16708 4.70621 4.87775 4.5088 4.60373 5.38261L3.2564 9.67905 1.90905 5.3826C1.64268 4.53318.345703 4.6789.345703 5.62021V11.6842C.345703 12.0156.614332 12.2842.945703 12.2842 1.27707 12.2842 1.5457 12.0156 1.5457 11.6842V8.23428L2.49305 11.2552C2.72747 12.0027 3.78534 12.0027 4.01975 11.2552L4.96708 8.23432zM9.59409 8.3393C9.59409 7.86618 9.18572 7.49641 8.71492 7.54323L7.64429 7.64971C7.31454 7.6825 7.02065 7.44178 6.98785 7.11203 6.95506 6.78229 7.19578 6.48839 7.52553 6.4556L8.59616 6.34912C9.77317 6.23206 10.7941 7.15649 10.7941 8.3393V11.684C10.7941 12.0154 10.5255 12.284 10.1941 12.284 9.86272 12.284 9.59409 12.0154 9.59409 11.684V8.3393z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M6.79541 10.2064C6.79541 9.10233 7.69047 8.20728 8.79458 8.20728 9.89869 8.20728 10.7938 9.10233 10.7938 10.2064 10.7938 11.3106 9.89869 12.2056 8.79458 12.2056 7.69047 12.2056 6.79541 11.3106 6.79541 10.2064zM8.79458 9.40728C8.35321 9.40728 7.99541 9.76508 7.99541 10.2064 7.99541 10.6478 8.35321 11.0056 8.79458 11.0056 9.23595 11.0056 9.59375 10.6478 9.59375 10.2064 9.59375 9.76508 9.23595 9.40728 8.79458 9.40728zM15.386 6.62139C15.6666 6.79764 15.7454 7.16426 15.562 7.44024L12.5296 12.0032C12.3462 12.2791 11.9701 12.36 11.6894 12.1837 11.4088 12.0075 11.33 11.6409 11.5135 11.3649L14.5458 6.80196C14.7292 6.52598 15.1054 6.44513 15.386 6.62139z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M11.6892 6.62139C11.4086 6.79764 11.3298 7.16426 11.5132 7.44024L14.5456 12.0032C14.729 12.2791 15.1051 12.36 15.3857 12.1837C15.6664 12.0075 15.7451 11.6409 15.5617 11.3649L12.5294 6.80196C12.3459 6.52598 11.9698 6.44513 11.6892 6.62139Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Kr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"max-single",ref:t,icon:So}))});Kr.displayName="MaxSingle";var Lo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"rect",attrs:{width:20,height:1.5,x:2,y:3.75,fill:"currentColor",rx:.75}},{tag:"rect",attrs:{width:20,height:1.5,x:2,y:11.25,fill:"currentColor",rx:.75}},{tag:"rect",attrs:{width:20,height:1.5,x:2,y:18.75,fill:"currentColor",rx:.75}}]},e3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"menu-single-24",ref:t,icon:Lo}))});e3.displayName="MenuSingle24";var _o={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.5939 1.13916L10.6607 1.1392C9.5563 1.13922 8.66094 2.03448 8.66079 3.13893L8.66064 4.19191C8.6606 4.52328 8.92919 4.79194 9.26056 4.79199 9.59193 4.79204 9.8606 4.52344 9.86064 4.19207L9.86079 3.13909C9.86085 2.69731 10.219 2.33921 10.6608 2.3392L12.594 2.33916C13.0358 2.33915 13.394 2.69732 13.394 3.13916L13.394 7.40012H10.4947L11.0464 6.84845C11.2807 6.61414 11.2807 6.23424 11.0464 5.99993 10.8121 5.76561 10.4322 5.76561 10.1979 5.99993L9.31395 6.88384C8.68914 7.50867 8.68914 8.52171 9.31396 9.14654L10.1979 10.0305C10.4322 10.2648 10.8121 10.2648 11.0464 10.0305 11.2807 9.79614 11.2807 9.41624 11.0464 9.18192L10.4646 8.60012H13.394L13.394 12.8612C13.394 13.303 13.0359 13.6612 12.594 13.6612H10.6606C10.2188 13.6612 9.86064 13.303 9.86064 12.8612V11.8084C9.86064 11.4771 9.59202 11.2084 9.26064 11.2084 8.92927 11.2084 8.66064 11.4771 8.66064 11.8084V12.8612C8.66064 13.9658 9.55607 14.8612 10.6606 14.8612H12.594C13.6986 14.8612 14.594 13.9658 14.594 12.8612L14.594 8.0066 14.594 8.00012 14.594 7.99363 14.594 3.13915C14.594 2.03457 13.6985 1.13914 12.5939 1.13916zM5.33889 1.13919L3.4057 1.13926C2.30115 1.13931 1.40576 2.03474 1.40578 3.13928L1.40582 7.99139 1.40576 8.00012 1.40582 8.00886 1.40587 12.8612C1.40588 13.9658 2.30131 14.8612 3.40587 14.8612H5.33897C6.44354 14.8612 7.33897 13.9658 7.33897 12.8612V11.8084C7.33897 11.4771 7.07034 11.2084 6.73897 11.2084 6.4076 11.2084 6.13897 11.4771 6.13897 11.8084V12.8612C6.13897 13.303 5.7808 13.6612 5.33897 13.6612H3.40587C2.96405 13.6612 2.60588 13.303 2.60587 12.8612L2.60583 8.60012H5.53538L4.95357 9.18193C4.71925 9.41624 4.71925 9.79614 4.95357 10.0305 5.18788 10.2648 5.56778 10.2648 5.8021 10.0305L6.68599 9.14656C7.31083 8.52172 7.31083 7.50866 6.68599 6.88382L5.8021 5.99993C5.56778 5.76561 5.18788 5.76561 4.95357 5.99993 4.71925 6.23424 4.71925 6.61414 4.95357 6.84845L5.50523 7.40012H2.60582L2.60578 3.13927C2.60577 2.69745 2.96393 2.33928 3.40574 2.33926L5.33894 2.33919C5.78078 2.33917 6.13897 2.69735 6.13897 3.13919V4.192C6.13897 4.52337 6.4076 4.792 6.73897 4.792 7.07034 4.792 7.33897 4.52337 7.33897 4.192V3.13919C7.33897 2.03459 6.44349 1.13914 5.33889 1.13919z"}}]},t3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"merge-all-single",ref:t,icon:_o}))});t3.displayName="MergeAllSingle";var wo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6707 7.03525C9.0573 7.03525 9.3707 6.72185 9.3707 6.33525 9.3707 5.94866 9.0573 5.63525 8.6707 5.63525 8.28411 5.63525 7.9707 5.94866 7.9707 6.33525 7.9707 6.72185 8.28411 7.03525 8.6707 7.03525zM8.671 12.2842C8.33963 12.2842 8.071 12.0156 8.071 11.6842L8.071 8.20615C8.071 7.87478 8.33962 7.60615 8.671 7.60615 9.00237 7.60615 9.271 7.87478 9.271 8.20615L9.271 11.6842C9.271 12.0156 9.00237 12.2842 8.671 12.2842zM13.5105 9.62735C13.5105 9.09992 13.0091 8.71683 12.5002 8.8555L12.1671 8.94628C11.7319 9.06486 11.43 9.46007 11.43 9.9111V11.6842C11.43 12.0156 11.1614 12.2842 10.83 12.2842 10.4986 12.2842 10.23 12.0156 10.23 11.6842V9.9111C10.23 8.91884 10.8942 8.04938 11.8516 7.7885L12.1847 7.69771C13.4569 7.35104 14.7105 8.30878 14.7105 9.62735V11.6842C14.7105 12.0156 14.4419 12.2842 14.1105 12.2842 13.7792 12.2842 13.5105 12.0156 13.5105 11.6842V9.62735z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M10.8377 7.66644C11.169 7.66642 11.4377 7.93503 11.4377 8.2664L11.438 11.6841C11.438 12.0155 11.1694 12.2841 10.838 12.2842 10.5066 12.2842 10.238 12.0156 10.238 11.6842L10.2377 8.26649C10.2377 7.93512 10.5063 7.66647 10.8377 7.66644zM5.91043 8.23408V11.684C5.91043 12.0154 6.17906 12.284 6.51043 12.284 6.84181 12.284 7.11043 12.0154 7.11043 11.684V5.62174C7.11043 4.70597 5.82111 4.50856 5.54709 5.38237L4.19976 9.67881 2.85241 5.38235C2.58604 4.53293 1.28906 4.67865 1.28906 5.61997V11.684C1.28906 12.0154 1.55769 12.284 1.88906 12.284 2.22043 12.284 2.48906 12.0154 2.48906 11.684V8.23404L3.43641 11.255C3.67082 12.0025 4.7287 12.0025 4.9631 11.255L5.91043 8.23408z",fillRule:"evenodd",clipRule:"evenodd"}}]},n3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"min-single",ref:t,icon:wo}))});n3.displayName="MinSingle";var Mo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Y1=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-down-single",ref:t,icon:Mo}))});Y1.displayName="MoreDownSingle";var Eo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 3.30078C8.55228 3.30078 9 2.85307 9 2.30078 9 1.7485 8.55228 1.30078 8 1.30078 7.44772 1.30078 7 1.7485 7 2.30078 7 2.85307 7.44772 3.30078 8 3.30078zM8 9.00012C8.55228 9.00012 9 8.55241 9 8.00012 9 7.44784 8.55228 7.00012 8 7.00012 7.44772 7.00012 7 7.44784 7 8.00012 7 8.55241 7.44772 9.00012 8 9.00012zM9 13.6995C9 14.2517 8.55228 14.6995 8 14.6995 7.44772 14.6995 7 14.2517 7 13.6995 7 13.1472 7.44772 12.6995 8 12.6995 8.55228 12.6995 9 13.1472 9 13.6995z"}}]},r3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-function-single",ref:t,icon:Eo}))});r3.displayName="MoreFunctionSingle";var Oo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z",fillRule:"evenodd",clipRule:"evenodd"}}]},_t=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-single",ref:t,icon:Oo}))});_t.displayName="MoreSingle";var Ho={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.1349 1.3999C6.80353 1.3999 6.5349 1.66853 6.5349 1.9999 6.5349 2.33127 6.80353 2.5999 7.1349 2.5999H7.67993V4.55065C7.67993 4.88203 7.94856 5.15065 8.27993 5.15065 8.6113 5.15065 8.87993 4.88203 8.87993 4.55065V2.5999H9.4049C9.73627 2.5999 10.0049 2.33127 10.0049 1.9999 10.0049 1.66853 9.73627 1.3999 9.4049 1.3999H7.1349zM2.5999 7.1349C2.5999 6.80353 2.33127 6.5349 1.9999 6.5349 1.66853 6.5349 1.3999 6.80353 1.3999 7.1349V9.4049C1.3999 9.73627 1.66853 10.0049 1.9999 10.0049 2.33127 10.0049 2.5999 9.73627 2.5999 9.4049V8.86968H4.54992C4.88129 8.86968 5.14992 8.60105 5.14992 8.26968 5.14992 7.93831 4.88129 7.66968 4.54992 7.66968H2.5999V7.1349zM15.1399 7.1349C15.1399 6.80353 14.8713 6.5349 14.5399 6.5349 14.2085 6.5349 13.9399 6.80353 13.9399 7.1349V7.66968H12.0099C11.6786 7.66968 11.4099 7.93831 11.4099 8.26968 11.4099 8.60105 11.6786 8.86968 12.0099 8.86968H13.9399V9.4049C13.9399 9.73627 14.2085 10.0049 14.5399 10.0049 14.8713 10.0049 15.1399 9.73627 15.1399 9.4049V8.27463L15.1399 8.26968 15.1399 8.26472V7.1349zM7.1349 13.9399C6.80353 13.9399 6.5349 14.2085 6.5349 14.5399 6.5349 14.8713 6.80353 15.1399 7.1349 15.1399H8.24962C8.25966 15.1404 8.26977 15.1407 8.27993 15.1407 8.2901 15.1407 8.3002 15.1404 8.31024 15.1399H9.4049C9.73627 15.1399 10.0049 14.8713 10.0049 14.5399 10.0049 14.2085 9.73627 13.9399 9.4049 13.9399H8.87993V12.0107C8.87993 11.6793 8.6113 11.4107 8.27993 11.4107 7.94856 11.4107 7.67993 11.6793 7.67993 12.0107V13.9399H7.1349zM2.60991 4.00967C2.60991 3.23647 3.23671 2.60967 4.00991 2.60967H4.33991C4.67128 2.60967 4.93991 2.34104 4.93991 2.00967 4.93991 1.6783 4.67128 1.40967 4.33991 1.40967H4.00991C2.57397 1.40967 1.40991 2.57373 1.40991 4.00967V4.33967C1.40991 4.67104 1.67854 4.93967 2.00991 4.93967 2.34128 4.93967 2.60991 4.67104 2.60991 4.33967V4.00967zM12.1999 1.40967C11.8685 1.40967 11.5999 1.6783 11.5999 2.00967 11.5999 2.34104 11.8685 2.60967 12.1999 2.60967H12.5299C13.3031 2.60967 13.9299 3.23647 13.9299 4.00967V4.33967C13.9299 4.67104 14.1985 4.93967 14.5299 4.93967 14.8613 4.93967 15.1299 4.67104 15.1299 4.33967V4.00967C15.1299 2.57373 13.9659 1.40967 12.5299 1.40967H12.1999zM2.60991 12.1997C2.60991 11.8683 2.34128 11.5997 2.00991 11.5997 1.67854 11.5997 1.40991 11.8683 1.40991 12.1997V12.5297C1.40991 13.9656 2.57397 15.1297 4.00991 15.1297H4.33991C4.67128 15.1297 4.93991 14.861 4.93991 14.5297 4.93991 14.1983 4.67128 13.9297 4.33991 13.9297H4.00991C3.23671 13.9297 2.60991 13.3029 2.60991 12.5297V12.1997zM15.1299 12.1997C15.1299 11.8683 14.8613 11.5997 14.5299 11.5997 14.1985 11.5997 13.9299 11.8683 13.9299 12.1997V12.5297C13.9299 13.3029 13.3031 13.9297 12.5299 13.9297H12.1999C11.8685 13.9297 11.5999 14.1983 11.5999 14.5297 11.5999 14.861 11.8685 15.1297 12.1999 15.1297H12.5299C13.9659 15.1297 15.1299 13.9656 15.1299 12.5297V12.1997z"}}]},i3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-border-single",ref:t,icon:Ho}))});i3.displayName="NoBorderSingle";var Io={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.665 2.66496H3.33496C2.96493 2.66496 2.66496 2.96493 2.66496 3.33496V12.665C2.66496 13.035 2.96493 13.335 3.33496 13.335H12.665C13.035 13.335 13.335 13.035 13.335 12.665V3.33496C13.335 2.96493 13.035 2.66496 12.665 2.66496ZM3.33496 1.33496C2.23039 1.33496 1.33496 2.23039 1.33496 3.33496V12.665C1.33496 13.7695 2.23039 14.665 3.33496 14.665H12.665C13.7695 14.665 14.665 13.7695 14.665 12.665V3.33496C14.665 2.23039 13.7695 1.33496 12.665 1.33496H3.33496Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M13.2559 14.1963L1.64941 2.58984L2.58987 1.64939L14.1963 13.2558L13.2559 14.1963Z",fillRule:"evenodd",clipRule:"evenodd"}}]},o3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-color",ref:t,icon:Io}))});o3.displayName="NoColor";var To={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.671 2.24246C7.1197 1.01814 8.85129 1.01814 9.3 2.24246L11.8919 9.31458C12.0059 9.62571 11.8461 9.97038 11.535 10.0844C11.2238 10.1984 10.8792 10.0386 10.7652 9.72751L9.74324 6.93913H6.29183C6.2706 6.93913 6.24962 6.93802 6.22895 6.93587L5.20584 9.72751C5.09181 10.0386 4.74715 10.1984 4.43601 10.0844C4.12488 9.97038 3.96509 9.62571 4.07912 9.31458L6.671 2.24246ZM8.17328 2.6554L9.30345 5.73913H6.66755L7.79771 2.6554C7.86181 2.48049 8.10918 2.48049 8.17328 2.6554Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 11.4246C1.66853 11.4246 1.3999 11.6933 1.3999 12.0246C1.3999 12.356 1.66853 12.6246 1.9999 12.6246H13.1675L12.1436 13.7558C11.9212 14.0015 11.9401 14.3809 12.1858 14.6033C12.4314 14.8257 12.8109 14.8068 13.0332 14.5611L14.3597 13.0957C14.9416 12.4528 14.4854 11.4246 13.6183 11.4246H1.9999Z"}}]},a3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-rotation-single",ref:t,icon:To}))});a3.displayName="NoRotationSingle";var Do={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.65465 3.96697V2.9942C1.65465 2.9188 1.64353 2.86563 1.62465 2.83387 1.61052 2.81011 1.58943 2.79243 1.53852 2.79243H1.44483C1.23836 2.79243 1.07099 2.62506 1.07099 2.41859 1.07099 2.23956 1.19714 2.09152 1.36369 2.04728 1.4425 2.02634 1.51336 2.00423 1.57642 1.98104 1.65529 1.94986 1.73286 1.91381 1.80913 1.87285 1.8974 1.82544 1.99768 1.79517 2.10303 1.79517 2.41692 1.79517 2.67137 2.04962 2.67137 2.36351V4.02047C2.67137 4.12385 2.75517 4.20765 2.85855 4.20765 3.0614 4.20765 3.22585 4.3721 3.22585 4.57495V4.63332C3.22585 4.86842 3.03527 5.059 2.80018 5.059H1.41884C1.1829 5.059.993164 4.86511.993164 4.63087.993164 4.39932 1.18072 4.20765 1.41398 4.20765 1.5469 4.20765 1.65465 4.09989 1.65465 3.96697zM.949709 9.2145C1.14957 9.02907 1.33226 8.85497 1.49677 8.69321 1.6914 8.50496 1.84244 8.33306 1.95136 8.17747 2.05826 8.02476 2.10492 7.89219 2.10492 7.77781 2.10492 7.65255 2.07293 7.57986 2.02759 7.53865L2.0245 7.5357C1.97641 7.48761 1.9103 7.46013 1.81635 7.46013 1.71986 7.46013 1.6383 7.47348 1.5822 7.51611L1.58034 7.51749C1.42279 7.63092 1.19425 7.67086 1.03149 7.50811L1.02187 7.49849C.868433 7.34505.852261 7.07998 1.03819 6.93364 1.12802 6.86293 1.21897 6.8051 1.31109 6.76081 1.48788 6.67257 1.69616 6.63037 1.93278 6.63037 2.15191 6.63037 2.34929 6.67491 2.52246 6.76665 2.69563 6.85514 2.83257 6.98323 2.93172 7.14966 3.03175 7.31758 3.08022 7.51184 3.08022 7.72929 3.08022 7.91104 3.03028 8.09333 2.93429 8.27521 2.84374 8.45283 2.72797 8.62691 2.58859 8.79616 2.51109 8.88842 2.43304 8.97759 2.35442 9.06369 2.34919 9.06941 2.34388 9.07573 2.33892 9.08228 2.34542 9.08201 2.35268 9.08151 2.36075 9.08073 2.46266 9.07087 2.54985 9.06576 2.62168 9.06576H2.78662C3.02915 9.06576 3.22576 9.26237 3.22576 9.5049 3.22576 9.74742 3.02915 9.94403 2.78662 9.94403H1.23472C1.00261 9.94403.814453 9.75587.814453 9.52376.814453 9.40615.86379 9.29421.949709 9.2145zM1.2579 14.674C1.45109 14.7553 1.67487 14.7946 1.92711 14.7946 2.1451 14.7946 2.34841 14.7599 2.53619 14.6895L2.53746 14.689C2.7264 14.6148 2.88145 14.5071 2.99952 14.3647L3.00018 14.3639C3.12167 14.2138 3.18089 14.0326 3.18089 13.8252 3.18089 13.6181 3.12169 13.4411 2.99737 13.3022 2.91596 13.2112 2.81864 13.1388 2.70642 13.0846 2.80611 13.023 2.88805 12.9505 2.95017 12.8661 3.04138 12.7422 3.08609 12.5977 3.08609 12.4365 3.08609 12.1403 2.97594 11.9041 2.7521 11.7404 2.53645 11.5772 2.25212 11.5002 1.90815 11.5002 1.7136 11.5002 1.52963 11.5372 1.35712 11.6115 1.28512 11.6418 1.21426 11.6776 1.14456 11.7188.938688 11.8404.928034 12.1099 1.06649 12.2774 1.21291 12.4544 1.46028 12.4561 1.63989 12.363 1.70891 12.3286 1.78521 12.3109 1.87023 12.3109 1.96356 12.3109 2.01717 12.3317 2.04691 12.3578 2.07449 12.3821 2.09529 12.4231 2.09529 12.4981 2.09529 12.5709 2.0658 12.6284 1.99667 12.6764 1.96042 12.6999 1.8978 12.7216 1.80025 12.7355 1.61051 12.7625 1.44118 12.9145 1.44118 13.1237 1.44118 13.3319 1.60937 13.4885 1.80489 13.5068 1.87785 13.5136 1.93575 13.5234 1.97985 13.5355 2.07997 13.562 2.12905 13.596 2.14927 13.6246 2.17519 13.6614 2.19008 13.7078 2.19008 13.7684 2.19008 13.8334 2.16583 13.8754 2.1142 13.9064 2.05357 13.9428 1.96521 13.965 1.84179 13.965 1.749 13.965 1.6547 13.9433 1.55817 13.8981 1.363 13.7983 1.08846 13.8083.942801 14.01L.936366 14.0189C.827321 14.1699.821861 14.401.994678 14.5262 1.07406 14.5836 1.16225 14.633 1.2579 14.674zM5.13037 2.827C4.799 2.827 4.53037 3.09563 4.53037 3.427 4.53037 3.75837 4.799 4.027 5.13037 4.027H15.1489C15.4803 4.027 15.7489 3.75837 15.7489 3.427 15.7489 3.09563 15.4803 2.827 15.1489 2.827H5.13037zM4.53037 8.28711C4.53037 7.95574 4.799 7.68711 5.13037 7.68711H15.1489C15.4803 7.68711 15.7489 7.95574 15.7489 8.28711 15.7489 8.61848 15.4803 8.88711 15.1489 8.88711H5.13037C4.799 8.88711 4.53037 8.61848 4.53037 8.28711zM5.13037 12.5475C4.799 12.5475 4.53037 12.8161 4.53037 13.1475 4.53037 13.4788 4.799 13.7475 5.13037 13.7475H15.1489C15.4803 13.7475 15.7489 13.4788 15.7489 13.1475 15.7489 12.8161 15.4803 12.5475 15.1489 12.5475H5.13037z"}}]},s3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"order-single",ref:t,icon:Do}))});s3.displayName="OrderSingle";var xo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1302",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1302)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.3333 2.66634H2.66659V13.333H13.3333V2.66634ZM2.66659 1.33301C1.93021 1.33301 1.33325 1.92996 1.33325 2.66634V13.333C1.33325 14.0694 1.93021 14.6663 2.66659 14.6663H13.3333C14.0696 14.6663 14.6666 14.0694 14.6666 13.333V2.66634C14.6666 1.92996 14.0696 1.33301 13.3333 1.33301H2.66659Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.33311 2.66748V5.33415H8.66644V2.66748H7.33311zM7.33311 10.6675V13.3341H8.66644V10.6675H7.33311zM13.3331 7.33415H10.6664V8.66748H13.3331V7.33415zM5.33311 7.33415H2.66644V8.66748H5.33311V7.33415z"}}]}]},l3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"outer-border",ref:t,icon:xo}))});l3.displayName="OuterBorder";var No={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.9999.733154C8.33127.733154 8.5999 1.00178 8.5999 1.33315V5.33315C8.5999 5.66453 8.33127 5.93315 7.9999 5.93315 7.66853 5.93315 7.3999 5.66453 7.3999 5.33315V1.33315C7.3999 1.00178 7.66853.733154 7.9999.733154zM2.46621 2.73315C2.79758 2.73315 3.06621 3.00178 3.06621 3.33315V12.6665C3.06621 12.9979 2.79758 13.2665 2.46621 13.2665 2.13484 13.2665 1.86621 12.9979 1.86621 12.6665V3.33315C1.86621 3.00178 2.13484 2.73315 2.46621 2.73315zM5.3334 7.3999C5.00203 7.3999 4.7334 7.66853 4.7334 7.9999 4.7334 8.33127 5.00203 8.5999 5.3334 8.5999H12.603L11.9252 9.28591C11.6922 9.52163 11.6945 9.90152 11.9302 10.1344 12.166 10.3673 12.5458 10.3651 12.7788 10.1293L14.4577 8.43018C14.69 8.19509 14.6884 7.81641 14.4542 7.58324L12.7753 5.91184C12.5404 5.67806 12.1605 5.67891 11.9267 5.91375 11.6929 6.14859 11.6938 6.52849 11.9286 6.76228L12.5691 7.3999H5.3334zM8.5999 10.6667C8.5999 10.3353 8.33127 10.0667 7.9999 10.0667 7.66853 10.0667 7.3999 10.3353 7.3999 10.6667V14.6667C7.3999 14.998 7.66853 15.2667 7.9999 15.2667 8.33127 15.2667 8.5999 14.998 8.5999 14.6667V10.6667z"}}]},c3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"overflow-single",ref:t,icon:No}))});c3.displayName="OverflowSingle";var Vo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1204",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1204)"},children:[{tag:"rect",attrs:{width:12.62,height:2.79,x:1.69,y:12.25,fill:"colorChannel1",rx:1.4}},{tag:"path",attrs:{fill:"currentColor",d:"M7.74646 2.1642C7.34284 1.65121 6.85947 1.28205 6.38447 1.09593C5.86863 0.893787 5.15166 0.852126 4.70047 1.42917C4.29842 1.94344 4.33082 2.70249 4.57691 3.50395C4.68808 3.8661 4.86846 4.22254 5.12522 4.56617C5.13695 4.58185 5.14927 4.5968 5.16211 4.61102C5.17152 4.6214 5.18122 4.63139 5.19115 4.64096C5.20459 4.65393 5.21855 4.66618 5.23296 4.6777L3.5064 6.40422C3.26756 6.64306 3.26756 7.03033 3.5064 7.26919L7.23756 11.0004C7.47648 11.2392 7.86375 11.2392 8.1026 11.0004L12.8329 6.27001C13.0717 6.03117 13.0717 5.6439 12.8329 5.40505L9.10172 1.67387C8.86288 1.43503 8.47561 1.43503 8.23676 1.67387L7.74646 2.1642ZM7.46162 4.50638C7.47252 4.57574 7.48163 4.64652 7.4888 4.71868C7.52232 5.05481 7.82194 5.30013 8.15807 5.26661C8.4942 5.23311 8.73954 4.93345 8.70601 4.59732C8.65786 4.11463 8.54251 3.6666 8.37892 3.26169L8.66928 2.97135L11.5354 5.83753L10.6106 6.76237H4.87824L7.40802 4.2326C7.42885 4.32128 7.44684 4.41255 7.46162 4.50638ZM6.87284 3.03784C6.57441 2.62008 6.22261 2.34634 5.93815 2.23487C5.80233 2.18165 5.71528 2.17827 5.67638 2.18335C5.6725 2.18387 5.66929 2.18443 5.6666 2.18497L5.6619 2.18607C5.64166 2.21954 5.53594 2.45979 5.74626 3.1449C5.81241 3.36036 5.92262 3.58602 6.09307 3.81761L6.87284 3.03784Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.1932 11.5463C12.6454 11.5463 13.012 11.1797 13.012 10.7275C13.012 10.4475 12.6981 9.92821 12.459 9.5733C12.3299 9.38173 12.0564 9.38174 11.9274 9.57331C11.6883 9.92822 11.3744 10.4475 11.3744 10.7275C11.3744 11.1797 11.741 11.5463 12.1932 11.5463Z"}}]}]},u3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paint-bucket",ref:t,icon:Vo}))});u3.displayName="PaintBucket";var Ao={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1138",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1138)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M7.74692 9.12463C7.74692 9.46018 8.01893 9.73219 8.35448 9.73219H11.4933C11.8288 9.73219 12.1009 9.46018 12.1009 9.12463 12.1009 8.78909 11.8288 8.51707 11.4933 8.51707H8.35448C8.01893 8.51707 7.74692 8.78909 7.74692 9.12463zM10.8636 10.8523C10.8636 11.1879 10.5915 11.4599 10.256 11.4599H8.35448C8.01893 11.4599 7.74692 11.1879 7.74692 10.8523 7.74692 10.5168 8.01893 10.2447 8.35448 10.2447H10.256C10.5915 10.2447 10.8636 10.5168 10.8636 10.8523z"}},{tag:"path",attrs:{fill:"currentColor",d:"M5.4791 1.98268C5.47913 1.71529 5.87912 1.49854 6.37252 1.49854C6.86593 1.49854 7.26592 1.71529 7.26595 1.98268H7.62187C8.22277 1.98268 8.72459 2.39534 8.84412 2.9452H9.39563C10.0856 2.9452 10.6449 3.48923 10.6449 4.16032V6.00569H12.1261C13.161 6.00569 14 6.82174 14 7.82838V11.334C14 11.8174 13.8025 12.281 13.4511 12.6228L12.0693 13.9647C11.7179 14.3065 11.2412 14.4985 10.7442 14.4985H7.91116C7.05024 14.4985 6.32492 14.0431 6.10535 13.2737H3.34925C2.6593 13.2737 2.09998 12.7297 2.09998 12.0586V4.16032C2.09998 3.48923 2.6593 2.9452 3.34925 2.9452H3.90107C4.0206 2.39534 4.52241 1.98268 5.12332 1.98268H5.4791ZM3.97249 4.16032H3.24925L3.24925 12.0586H6.03725V7.82838C6.03725 6.82174 6.87623 6.00569 7.91116 6.00569H9.49563V4.16032H8.7727C8.58289 4.59611 8.13909 4.90183 7.62187 4.90183H5.12332C4.6061 4.90183 4.1623 4.59611 3.97249 4.16032ZM5.12332 2.89403H7.62187C7.79436 2.89403 7.93419 3.03003 7.93419 3.19781V3.68671C7.93419 3.85448 7.79436 3.99049 7.62187 3.99049H5.12332C4.95083 3.99049 4.811 3.85448 4.811 3.68671V3.19781C4.811 3.03003 4.95083 2.89403 5.12332 2.89403ZM7.91116 7.11157C7.56618 7.11157 7.28652 7.38359 7.28652 7.71913V12.7851C7.28652 13.1206 7.56618 13.3927 7.91116 13.3927H10.7442C10.8401 13.3927 10.9337 13.3712 11.0182 13.3311C11.1373 13.2746 11.1859 13.1423 11.1859 13.0134V12.0066C11.1859 11.8724 11.2978 11.7636 11.4358 11.7636H12.4709C12.6034 11.7636 12.7394 11.7163 12.7975 11.6004C12.8388 11.5182 12.8608 11.4272 12.8608 11.334V7.71913C12.8608 7.38359 12.5811 7.11157 12.2362 7.11157H7.91116Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},f3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paste-special",ref:t,icon:Ao}))});f3.displayName="PasteSpecial";var Po={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_561_2",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_561_2)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{d:"M4.91876 2.65039C3.66601 2.65039 2.65045 3.66595 2.65045 4.9187 2.65045 6.17146 3.66601 7.18702 4.91876 7.18702 6.17152 7.18702 7.18708 6.17146 7.18708 4.9187 7.18708 3.66595 6.17152 2.65039 4.91876 2.65039zM3.94663 4.9187C3.94663 4.38181 4.38187 3.94657 4.91876 3.94657 5.45566 3.94657 5.8909 4.38181 5.8909 4.9187 5.8909 5.4556 5.45566 5.89084 4.91876 5.89084 4.38187 5.89084 3.94663 5.4556 3.94663 4.9187zM11.0812 8.81299C9.82842 8.81299 8.81286 9.82855 8.81286 11.0813 8.81286 12.3341 9.82842 13.3496 11.0812 13.3496 12.3339 13.3496 13.3495 12.3341 13.3495 11.0813 13.3495 9.82855 12.3339 8.81299 11.0812 8.81299zM10.109 11.0813C10.109 10.5444 10.5443 10.1092 11.0812 10.1092 11.6181 10.1092 12.0533 10.5444 12.0533 11.0813 12.0533 11.6182 11.6181 12.0534 11.0812 12.0534 10.5443 12.0534 10.109 11.6182 10.109 11.0813zM13.1597 2.84021C13.4128 3.09331 13.4128 3.50365 13.1597 3.75675L3.7568 13.1596C3.5037 13.4127 3.09336 13.4127 2.84026 13.1596 2.58717 12.9065 2.58717 12.4962 2.84026 12.2431L12.2431 2.84021C12.4962 2.58712 12.9066 2.58712 13.1597 2.84021z"}}]}]},d3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"percent-single",ref:t,icon:Po}))});d3.displayName="PercentSingle";var Ro={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.35928 2.57764C3.61338 1.77872 4.36128 1.19995 5.24437 1.19995C6.12746 1.19995 6.87537 1.77872 7.12947 2.57764H11.7885C13.4928 2.57764 14.7999 3.8461 14.7997 5.5888C14.7995 7.33129 13.4929 8.59984 11.7885 8.59984H6.63121L6.6224 8.5999H4.21143C3.16019 8.5999 2.4001 9.34071 2.4002 10.4109C2.40029 11.4814 3.16029 12.2221 4.21143 12.2221H8.87045C9.12449 11.4231 9.87245 10.8442 10.7556 10.8442C11.6388 10.8442 12.3868 11.4231 12.6408 12.2222H14.1999C14.5312 12.2222 14.7999 12.4908 14.7999 12.8222C14.7999 13.1535 14.5312 13.4222 14.1999 13.4222H12.6407C12.3866 14.221 11.6387 14.7998 10.7556 14.7998C9.87252 14.7998 9.12461 14.221 8.87051 13.4221H4.21143C2.50701 13.4221 1.20035 12.1536 1.2002 10.4111C1.20004 8.66836 2.50712 7.3999 4.21143 7.3999H6.61326L6.62208 7.39984H11.7885C12.8396 7.39984 13.5996 6.65912 13.5997 5.58868C13.5998 4.51844 12.8397 3.77764 11.7885 3.77764H7.12952C6.87548 4.57664 6.12753 5.1555 5.24437 5.1555C4.36122 5.1555 3.61327 4.57664 3.35922 3.77764H1.8002C1.46882 3.77764 1.2002 3.50901 1.2002 3.17764C1.2002 2.84627 1.46882 2.57764 1.8002 2.57764H3.35928ZM4.46671 3.16449C4.47377 2.74105 4.81924 2.39995 5.24437 2.39995C5.67026 2.39995 6.0162 2.74226 6.02207 3.16675L6.02197 3.17764L6.02207 3.1886C6.01625 3.61314 5.67029 3.95549 5.24437 3.95549C4.81921 3.95549 4.47372 3.61435 4.46671 3.19085L4.46685 3.17764L4.46671 3.16449ZM9.97788 12.8307C9.98254 13.2562 10.329 13.5998 10.7556 13.5998C11.1815 13.5998 11.5274 13.2575 11.5333 12.8331C11.5332 12.8294 11.5332 12.8258 11.5332 12.8222C11.5332 12.8185 11.5332 12.8148 11.5333 12.8111C11.5275 12.3866 11.1815 12.0442 10.7556 12.0442C10.3289 12.0442 9.98248 12.3878 9.97788 12.8134C9.97792 12.8163 9.97794 12.8192 9.97794 12.8221C9.97794 12.825 9.97792 12.8278 9.97788 12.8307Z",fillRule:"evenodd",clipRule:"evenodd"}}]},h3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"piping-single",ref:t,icon:Ro}))});h3.displayName="PipingSingle";var jo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.273 2.72206C11.0214 2.50641 10.9922 2.12763 11.2079 1.87603C11.4235 1.62444 11.8023 1.59531 12.0539 1.81097L14.3833 3.80761C14.5134 3.91733 14.5962 4.08137 14.5967 4.26477L14.5967 4.2665C14.5967 4.41745 14.541 4.55538 14.4489 4.66083C14.44 4.67109 14.4307 4.68108 14.421 4.69077L12.0877 7.02411C11.8534 7.25842 11.4735 7.25843 11.2392 7.02412C11.0049 6.78981 11.0049 6.40991 11.2392 6.17559L12.5482 4.8665H6.63324C4.40569 4.8665 2.5999 6.67229 2.5999 8.89984C2.5999 11.1274 4.40569 12.9332 6.63324 12.9332H11.9972C12.3286 12.9332 12.5972 13.2018 12.5972 13.5332C12.5972 13.8645 12.3286 14.1332 11.9972 14.1332H6.63324C3.74295 14.1332 1.3999 11.7901 1.3999 8.89984C1.3999 6.00955 3.74295 3.6665 6.63324 3.6665H12.3748L11.273 2.72206Z"}}]},v3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"redo-single",ref:t,icon:jo}))});v3.displayName="RedoSingle";var ko={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.33307 1.3916C5.14145 1.3916 4.06641 2.27555 4.06641 3.49366V6.49777C4.06641 7.71586 5.14145 8.59982 6.33307 8.59982C7.52469 8.59982 8.59974 7.71586 8.59974 6.49777V3.49366C8.59974 2.27555 7.52469 1.3916 6.33307 1.3916ZM5.26641 3.49366C5.26641 3.05264 5.68376 2.5916 6.33307 2.5916C6.98239 2.5916 7.39974 3.05264 7.39974 3.49366V6.49777C7.39974 6.93878 6.98239 7.39982 6.33307 7.39982C5.68376 7.39982 5.26641 6.93878 5.26641 6.49777V3.49366Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.90913 9.5417C8.14345 9.30739 8.52335 9.30739 8.75766 9.5417 8.99198 9.77602 8.99198 10.1559 8.75766 10.3902L7.78193 11.366H13.9999C14.3313 11.366 14.5999 11.6346 14.5999 11.966 14.5999 12.2973 14.3313 12.566 13.9999 12.566H7.78193L8.75766 13.5417C8.99198 13.776 8.99198 14.1559 8.75766 14.3902 8.52335 14.6245 8.14345 14.6245 7.90913 14.3902L5.91739 12.3985C5.80388 12.2893 5.73324 12.1359 5.73324 11.966 5.73324 11.796 5.80388 11.6426 5.91739 11.5334L7.90913 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z"}}]},m3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce-digits-single",ref:t,icon:ko}))});m3.displayName="ReduceDigitsSingle";var $o={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_233_11",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_233_11)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.53331 14C2.35652 14 2.18697 13.9297 2.06197 13.8047C1.93697 13.6797 1.86675 13.5101 1.86675 13.3333C1.86675 13.1565 1.93697 12.987 2.06197 12.862C2.18697 12.7369 2.35652 12.6667 2.53331 12.6667L13.4666 12.6667C13.6434 12.6667 13.813 12.7369 13.938 12.862C14.063 12.987 14.1332 13.1565 14.1332 13.3333C14.1332 13.5101 14.063 13.6797 13.938 13.8047C13.813 13.9297 13.6434 14 13.4666 14L2.53331 14ZM2.53331 3.33333C2.35652 3.33331 2.18697 3.26306 2.06197 3.13804C1.93697 3.01301 1.86675 2.84346 1.86675 2.66667C1.86675 2.48987 1.93697 2.32032 2.06197 2.1953C2.18697 2.07028 2.35652 2.00003 2.53331 2L13.4666 2C13.6434 2.00003 13.813 2.07028 13.938 2.1953C14.063 2.32032 14.1332 2.48987 14.1332 2.66667C14.1332 2.84346 14.063 3.01301 13.938 3.13803C13.813 3.26306 13.6434 3.33331 13.4666 3.33333L2.53331 3.33333Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M10.8142 10.8141C10.5588 11.0695 10.1447 11.0695 9.88929 10.8141L7.97868 8.90354L6.14021 10.742C5.89652 10.9857 5.50142 10.9857 5.25774 10.742C5.01405 10.4983 5.01405 10.1032 5.25774 9.85955L7.09621 8.02107L5.18561 6.11047C4.93021 5.85507 4.93021 5.44098 5.18561 5.18557C5.44101 4.93017 5.8551 4.93017 6.11051 5.18557L8.02111 7.09618L9.85959 5.2577C10.1033 5.01401 10.4984 5.01401 10.7421 5.2577C10.9857 5.50139 10.9857 5.89648 10.7421 6.14017L8.90358 7.97865L10.8142 9.88925C11.0696 10.1447 11.0696 10.5587 10.8142 10.8141Z"}}]}]},p3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce",ref:t,icon:$o}))});p3.displayName="Reduce";var Bo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1297",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1297)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M1.33325 3.99992L1.33325 2.66659C1.33325 1.93021 1.93021 1.33325 2.66659 1.33325L3.99992 1.33325 3.99992 2.66659 2.66659 2.66659 2.66659 3.99992 1.33325 3.99992zM9.33325 1.33325L9.33325 2.66658 6.66659 2.66659 6.66659 1.33325 9.33325 1.33325zM1.33325 6.66659L2.66659 6.66659 2.66659 7.33325 5.33325 7.33325 5.33325 8.66659 2.66659 8.66659 2.66659 9.33325 1.33325 9.33325 1.33325 6.66659zM1.33325 11.9999L2.66659 11.9999 2.66659 13.3333 3.99992 13.3333 3.99992 14.6666 2.66659 14.6666C1.93021 14.6666 1.33325 14.0696 1.33325 13.3333L1.33325 11.9999zM6.66659 14.6666L6.66659 13.3333 7.33325 13.3333 7.33325 10.6666 8.66659 10.6666 8.66659 13.3333 9.33325 13.3333 9.33325 14.6666 6.66659 14.6666zM13.3333 7.33325L10.6666 7.33325 10.6666 8.66659 13.3333 8.66658 13.3333 7.33325zM7.33325 5.33325L7.33325 2.66659 8.66659 2.66659 8.66659 5.33325 7.33325 5.33325z"}},{tag:"path",attrs:{fill:"currentColor",d:"M13.3333 1.33325L12 1.33325L12 2.66659L13.3333 2.66659L13.3333 13.3333L12 13.3333L12 14.6666L13.3333 14.6666C14.0697 14.6666 14.6667 14.0696 14.6667 13.3333L14.6667 2.66659C14.6667 1.93021 14.0697 1.33325 13.3333 1.33325Z"}}]}]},C3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-border",ref:t,icon:Bo}))});C3.displayName="RightBorder";var Uo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_42",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.54 0.48H16.54V16.48H0.54z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_42)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.2368 2.87507L2.11162 7.97208L2.61144 9.06304L12.4714 4.54568L7.95409 14.4057L9.04505 14.9055L14.1421 3.78029L14.4503 3.63905L14.3286 3.37322L14.469 3.0666L14.1134 2.90369L13.9505 2.5481L13.6439 2.68857L13.3781 2.56678L13.2368 2.87507Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M4.44524 1.82495L3.08111 1.82495C2.41837 1.82495 1.88111 2.36221 1.88111 3.02495L1.88111 4.38908L3.21111 4.38908L3.21111 3.15495L4.44524 3.15495L4.44524 1.82495ZM15.1941 4.38908L15.1941 3.02495C15.1941 2.36221 14.6569 1.82495 13.9941 1.82495L12.63 1.82495L12.63 3.15495L13.8641 3.15495L13.8641 4.38908L15.1941 4.38908ZM7.17349 1.82495L7.17349 3.15495L9.90175 3.15495L9.90175 1.82495L7.17349 1.82495ZM15.1941 7.11734L13.8641 7.11734L13.8641 9.84559L15.1941 9.84559L15.1941 7.11734ZM15.1941 12.5739L13.8641 12.5739L13.8641 13.808L12.63 13.808L12.63 15.138L13.9941 15.138C14.6569 15.138 15.1941 14.6007 15.1941 13.938L15.1941 12.5739ZM9.90175 15.138L9.90175 13.808L7.17349 13.808L7.17349 15.138L9.90175 15.138ZM4.44524 15.138L4.44524 13.808L3.21111 13.808L3.21111 12.5739L1.88111 12.5739L1.88111 13.938C1.88111 14.6007 2.41837 15.138 3.08111 15.138L4.44524 15.138ZM1.88111 9.8456L3.21111 9.8456L3.21111 7.11734L1.88111 7.11734L1.88111 9.8456Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},g3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-double-diagonal-single",ref:t,icon:Uo}))});g3.displayName="RightDoubleDiagonalSingle";var Fo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1123",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1123)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.56781 13.3332C2.56781 14.0695 3.16476 14.6665 3.90114 14.6665L6.56781 14.6665C7.30419 14.6665 7.90114 14.0695 7.90114 13.3332L7.90114 2.6665C7.90114 1.9301 7.30419 1.33317 6.56781 1.33317L3.90114 1.33317C3.16476 1.33317 2.56781 1.9301 2.56781 2.6665L2.56781 13.3332ZM3.90114 2.6665L3.90114 13.3332L6.56781 13.3332L6.56781 2.6665L3.90114 2.6665Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M13.4323 8.00022C13.4323 8.36841 13.1338 8.66689 12.7656 8.66689L11.6906 8.66689L11.6906 9.74202C11.6906 10.1102 11.3921 10.4087 11.0239 10.4087C10.6557 10.4087 10.3573 10.1102 10.3573 9.74202L10.3573 8.66689L9.28215 8.66689C8.91396 8.66689 8.61548 8.36841 8.61548 8.00022C8.61548 7.63203 8.91396 7.33356 9.28214 7.33356L10.3573 7.33356L10.3573 6.25852C10.3573 5.89033 10.6557 5.59186 11.0239 5.59186C11.3921 5.59186 11.6906 5.89033 11.6906 6.25852L11.6906 7.33356L12.7656 7.33356C13.1338 7.33356 13.4323 7.63203 13.4323 8.00022Z"}}]}]},b3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-insert-column",ref:t,icon:Fo}))});b3.displayName="RightInsertColumn";var zo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM4.66665 5.56641C4.33528 5.56641 4.06665 5.83504 4.06665 6.16641 4.06665 6.49778 4.33528 6.76641 4.66665 6.76641H14C14.3314 6.76641 14.6 6.49778 14.6 6.16641 14.6 5.83504 14.3314 5.56641 14 5.56641H4.66665zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM4.66665 12.9004C4.33528 12.9004 4.06665 13.169 4.06665 13.5004 4.06665 13.8318 4.33528 14.1004 4.66665 14.1004H14C14.3314 14.1004 14.6 13.8318 14.6 13.5004 14.6 13.169 14.3314 12.9004 14 12.9004H4.66665z"}}]},y3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-justifying-single",ref:t,icon:zo}))});y3.displayName="RightJustifyingSingle";var Zo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.1994 1.49307C13.3824 0.944623 14.6068 2.16904 14.0584 3.35206L10.8904 10.1855C10.751 10.4862 10.3943 10.6169 10.0937 10.4775C9.79302 10.3381 9.66229 9.98144 9.80166 9.68081L11.0507 6.98651L8.61023 4.546C8.59522 4.53098 8.58116 4.51537 8.56807 4.49924L5.87063 5.74977C5.57 5.88915 5.2133 5.75842 5.07392 5.45779C4.93455 5.15715 5.06528 4.80045 5.36591 4.66108L12.1994 1.49307ZM12.9697 2.84734L11.5883 5.82701L9.72443 3.96315L12.7041 2.58177C12.8731 2.50342 13.048 2.67833 12.9697 2.84734Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.40366 4.68273C2.16934 4.44842 1.78945 4.44842 1.55513 4.68273C1.32082 4.91705 1.32082 5.29695 1.55513 5.53126L9.45182 13.4279L7.92792 13.5038C7.59696 13.5203 7.34202 13.8019 7.35849 14.1329C7.37497 14.4639 7.65662 14.7188 7.98758 14.7023L9.96172 14.6041C10.8278 14.5609 11.2323 13.5113 10.6191 12.8982L2.40366 4.68273Z"}}]},S3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-forty-five-degrees-single",ref:t,icon:Zo}))});S3.displayName="RightRotationFortyFiveDegreesSingle";var Wo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"g",attrs:{fill:"currentColor",clipPath:"url(#right-rotation-ninety-degrees-single_clip0_927_166)"},children:[{tag:"path",attrs:{d:"M3.11339 1.41934C3.11339 1.08797 2.84476 0.819336 2.51339 0.819336C2.18201 0.819336 1.91338 1.08797 1.91338 1.41934V12.5869L0.782193 11.563C0.53652 11.3406 0.157091 11.3595 -0.0652855 11.6052C-0.287662 11.8509 -0.268776 12.2303 -0.0231021 12.4527L1.44231 13.7791C2.08518 14.361 3.11338 13.9049 3.11338 13.0377L3.11339 1.41934Z"}},{tag:"path",attrs:{d:"M12.2955 9.26826C13.5199 8.81955 13.5199 7.08797 12.2955 6.63926L5.22343 4.04738C4.9123 3.93336 4.56763 4.09314 4.45361 4.40428C4.33958 4.71541 4.49936 5.06007 4.8105 5.1741L7.59888 6.19602V9.64743C7.59888 9.66866 7.59999 9.68964 7.60214 9.71031L4.8105 10.7334C4.49936 10.8474 4.33958 11.1921 4.45361 11.5032C4.56763 11.8144 4.9123 11.9742 5.22343 11.8601L12.2955 9.26826ZM11.8826 7.76597L8.79888 6.63581V9.27171L11.8826 8.14155C12.0575 8.07745 12.0575 7.83008 11.8826 7.76597Z",fillRule:"evenodd",clipRule:"evenodd"}}]},{tag:"defs",attrs:{},children:[{tag:"clipPath",attrs:{id:"right-rotation-ninety-degrees-single_clip0_927_166"},children:[{tag:"path",attrs:{fill:"#fff",d:"M0 0H16V16H0z"}}]}]}],defIds:["right-rotation-ninety-degrees-single_clip0_927_166"]},L3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-ninety-degrees-single",ref:t,icon:Wo}))});L3.displayName="RightRotationNinetyDegreesSingle";var Go={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.9445 1.55649C12.2184 1.744 12.2895 2.11755 12.1033 2.39085L9.24342 6.58659H12.8001C13.1315 6.58659 13.4001 6.85522 13.4001 7.18659C13.4001 7.51796 13.1315 7.78659 12.8001 7.78659H8.5999V9.91276H13.2221C13.5534 9.91276 13.8221 10.1814 13.8221 10.5128C13.8221 10.8441 13.5534 11.1128 13.2221 11.1128H8.5999V14.0877C8.5999 14.4191 8.33127 14.6877 7.9999 14.6877C7.66853 14.6877 7.3999 14.4191 7.3999 14.0877V11.1128H2.77773C2.44636 11.1128 2.17773 10.8441 2.17773 10.5128C2.17773 10.1814 2.44636 9.91276 2.77773 9.91276H7.3999V7.78659H3.2001C2.86873 7.78659 2.6001 7.51796 2.6001 7.18659C2.6001 6.85522 2.86873 6.58659 3.2001 6.58659H6.75736L3.89753 2.39085C3.71125 2.11755 3.78234 1.744 4.05631 1.55649C4.33029 1.36899 4.7034 1.43854 4.88968 1.71184L7.94595 6.19577C7.96752 6.22741 7.98564 6.2604 8.00039 6.29429C8.01514 6.2604 8.03326 6.22741 8.05483 6.19577L11.1111 1.71184C11.2974 1.43854 11.6705 1.36899 11.9445 1.55649Z"}}]},_3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rmb-single",ref:t,icon:Go}))});_3.displayName="RmbSingle";var Yo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9.72502 1.02051H6.07803C4.97346 1.02051 4.07803 1.91594 4.07803 3.02051V7.57046H3.00039C2.66902 7.57046 2.40039 7.83909 2.40039 8.17046C2.40039 8.50183 2.66902 8.77046 3.00039 8.77046H4.07803V10.4854H3.00039C2.66902 10.4854 2.40039 10.754 2.40039 11.0854C2.40039 11.4167 2.66902 11.6854 3.00039 11.6854H4.07803V14.3795C4.07803 14.7108 4.34666 14.9795 4.67803 14.9795C5.0094 14.9795 5.27803 14.7108 5.27803 14.3795V11.6854H10.3637C10.695 11.6854 10.9637 11.4167 10.9637 11.0854C10.9637 10.754 10.695 10.4854 10.3637 10.4854H5.27803V8.77046H9.72503C11.8651 8.77046 13.6 7.03557 13.6 4.89548C13.6 2.75539 11.8651 1.02051 9.72502 1.02051ZM9.72503 7.57046H5.27803V3.12051C5.27803 2.62345 5.68097 2.22051 6.17803 2.22051H9.72502C11.2024 2.22051 12.4 3.41814 12.4 4.89548C12.4 6.37283 11.2024 7.57046 9.72503 7.57046Z",fillRule:"evenodd",clipRule:"evenodd"}}]},w3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rouble-single",ref:t,icon:Yo}))});w3.displayName="RoubleSingle";var qo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_41",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.35 0.48H16.35V16.48H0.35z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_41)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.27177 13.714L13.5855 2.40025L14.434 3.24878L3.1203 14.5625L2.27177 13.714Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M4.2603 1.82495L2.89617 1.82495C2.23343 1.82495 1.69617 2.36221 1.69617 3.02495L1.69617 4.38908L3.02617 4.38908L3.02617 3.15495L4.2603 3.15495L4.2603 1.82495ZM15.0092 4.38908L15.0092 3.02495C15.0092 2.36221 14.4719 1.82495 13.8092 1.82495L12.4451 1.82495L12.4451 3.15495L13.6792 3.15495L13.6792 4.38908L15.0092 4.38908ZM6.98856 1.82495L6.98856 3.15495L9.71681 3.15495L9.71681 1.82495L6.98856 1.82495ZM15.0092 7.11734L13.6792 7.11734L13.6792 9.84559L15.0092 9.84559L15.0092 7.11734ZM15.0092 12.5739L13.6792 12.5739L13.6792 13.808L12.4451 13.808L12.4451 15.138L13.8092 15.138C14.4719 15.138 15.0092 14.6007 15.0092 13.938L15.0092 12.5739ZM9.71681 15.138L9.71681 13.808L6.98856 13.808L6.98856 15.138L9.71681 15.138ZM4.2603 15.138L4.2603 13.808L3.02617 13.808L3.02617 12.5739L1.69617 12.5739L1.69617 13.938C1.69617 14.6007 2.23343 15.138 2.89617 15.138L4.2603 15.138ZM1.69617 9.8456L3.02617 9.8456L3.02617 7.11734L1.69617 7.11734L1.69617 9.8456Z"}}]}]},M3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"slash-single",ref:t,icon:qo}))});M3.displayName="SlashSingle";var Xo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.00033 1.20996C6.43345 1.20996 5.23596 1.88077 4.64804 2.94304 4.06338 3.99943 4.15123 5.32084 4.90099 6.47062 5.08199 6.7482 5.45374 6.82648 5.73131 6.64548 6.00888 6.46448 6.08716 6.09273 5.90616 5.81516 5.36418 4.98402 5.35768 4.13897 5.69797 3.52412 6.035 2.91515 6.78176 2.40996 8.00033 2.40996 9.19423 2.40996 10.0017 2.93409 10.5236 3.46755 10.7871 3.73682 10.9756 4.00712 11.0974 4.20903 11.158 4.30951 11.2013 4.39164 11.2284 4.44625 11.2419 4.47351 11.2514 4.49377 11.2568 4.50588L11.2621 4.51771C11.3901 4.82216 11.7407 4.96686 12.046 4.83992 12.3519 4.71267 12.4968 4.36149 12.3695 4.05552L11.8231 4.28278C12.3695 4.05552 12.3697 4.0558 12.3695 4.05552L12.3691 4.05437 12.3685 4.05298 12.367 4.04953 12.3629 4.03993 12.3498 4.01036C12.3388 3.98619 12.3234 3.95326 12.3033 3.91282 12.2632 3.83203 12.2043 3.72072 12.1249 3.58908 11.9666 3.32674 11.7235 2.97805 11.3814 2.62834 10.6921 1.92381 9.59192 1.20996 8.00033 1.20996zM2.11953 8.5999H7.88935C10.1109 9.46549 10.5895 10.7649 10.4268 11.6869 10.2475 12.703 9.26939 13.5898 8.00009 13.5898 6.63323 13.5898 5.77631 13.0502 5.25534 12.528 4.99021 12.2623 4.80823 11.9965 4.69365 11.7993 4.63659 11.7011 4.59698 11.6211 4.5727 11.5686 4.56059 11.5424 4.55236 11.5231 4.54774 11.512L4.54352 11.5016C4.4267 11.193 4.0823 11.0363 3.77279 11.1516 3.46228 11.2673 3.30438 11.6129 3.4201 11.9234L3.9649 11.7203C3.4201 11.9234 3.41998 11.9231 3.4201 11.9234L3.4206 11.9247 3.42118 11.9263 3.42262 11.9301 3.42661 11.9403C3.42977 11.9484 3.43394 11.9588 3.43914 11.9713 3.44956 11.9965 3.46418 12.0304 3.48334 12.0719 3.52161 12.1547 3.57828 12.2682 3.65608 12.4021 3.81124 12.6692 4.0534 13.0223 4.40584 13.3756 5.12 14.0914 6.27196 14.7898 8.00009 14.7898 9.82574 14.7898 11.3236 13.5101 11.6085 11.8955 11.812 10.7422 11.3901 9.55402 10.2665 8.5999H13.8804C14.2117 8.5999 14.4803 8.33127 14.4803 7.9999 14.4803 7.66853 14.2117 7.3999 13.8804 7.3999H8.01411C8.0048 7.39968 7.99551 7.39969 7.98625 7.3999H2.11953C1.78816 7.3999 1.51953 7.66853 1.51953 7.9999 1.51953 8.33127 1.78816 8.5999 2.11953 8.5999z"}}]},E3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"strikethrough-single",ref:t,icon:Xo}))});E3.displayName="StrikethroughSingle";var Qo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"path",attrs:{stroke:"currentColor",d:"M2.08596 14.1387L10.3379 2.66873M10.3379 14.1387L2.08596 2.66873M12.8098 10.0174C13.4565 9.45285 14.781 9.44507 15.0272 10.5759 15.2798 11.736 13.8101 13.2515 12.7376 14.1033 12.7227 14.1151 12.7315 14.1389 12.7505 14.1388L15.2251 14.1388",strokeLinecap:"round",strokeWidth:1.2}}]},O3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"subscript-single",ref:t,icon:Qo}))});O3.displayName="SubscriptSingle";var Jo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.7245 6.42417C11.9588 6.18985 11.9588 5.80995 11.7245 5.57564C11.4901 5.34132 11.1102 5.34132 10.8759 5.57564L7.3002 9.15137L5.72446 7.57564C5.49014 7.34132 5.11025 7.34132 4.87593 7.57564C4.64162 7.80995 4.64162 8.18985 4.87593 8.42417L6.87593 10.4242C7.11025 10.6585 7.49014 10.6585 7.72446 10.4242L11.7245 6.42417Z",fillRule:"evenodd",clipRule:"evenodd"}}]},H3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"success-single",ref:t,icon:Jo}))});H3.displayName="SuccessSingle";var Ko={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M.394135 6.52121C.394135 5.4474 1.26463 4.5769 2.33844 4.5769H3.90929C4.24066 4.5769 4.50929 4.84553 4.50929 5.1769 4.50929 5.50828 4.24066 5.7769 3.90929 5.7769H2.33844C1.92737 5.7769 1.59414 6.11014 1.59414 6.52121 1.59414 6.93228 1.92737 7.26552 2.33844 7.26552H2.45171C3.59368 7.26552 4.50929 8.20288 4.50929 9.33362 4.50929 10.4761 3.58419 11.4231 2.43051 11.4231H.893457C.562086 11.4231.293457 11.1544.293457 10.8231.293457 10.4917.562086 10.2231.893457 10.2231H2.43051C2.91024 10.2231 3.30929 9.82458 3.30929 9.33362 3.30929 8.85437 2.91974 8.46552 2.45171 8.46552H2.33844C1.26463 8.46552.394135 7.59502.394135 6.52121zM15.1061 11.4231C14.7747 11.4231 14.5061 11.1545 14.5061 10.8231L14.5061 8.31006C14.5061 7.97762 14.2366 7.70812 13.9041 7.70812 13.5717 7.70812 13.3022 7.97762 13.3022 8.31006L13.3022 10.8231C13.3022 11.1545 13.0335 11.4231 12.7022 11.4231 12.3708 11.4231 12.1022 11.1545 12.1022 10.8231L12.1022 8.31006C12.1022 7.31488 12.9089 6.50812 13.9041 6.50812 14.8993 6.50812 15.7061 7.31488 15.7061 8.31006L15.7061 10.8231C15.7061 11.1545 15.4374 11.4231 15.1061 11.4231z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.7022 11.4231C12.3709 11.4231 12.1022 11.1545 12.1022 10.8231L12.1022 8.31006C12.1022 7.97762 11.8327 7.70812 11.5003 7.70812 11.1679 7.70812 10.8984 7.97762 10.8984 8.31006L10.8984 10.8231C10.8984 11.1545 10.6297 11.4231 10.2984 11.4231 9.967 11.4231 9.69837 11.1545 9.69837 10.8231L9.69837 8.31006C9.69837 7.31488 10.5051 6.50812 11.5003 6.50812 12.4955 6.50812 13.3022 7.31488 13.3022 8.31006L13.3022 10.8231C13.3022 11.1545 13.0336 11.4231 12.7022 11.4231zM5.58193 6.69556C5.9133 6.69556 6.18193 6.96419 6.18193 7.29556L6.18193 9.43683C6.18193 9.87101 6.53391 10.223 6.96809 10.223 7.40228 10.223 7.75425 9.87101 7.75425 9.43683L7.75425 7.29556C7.75425 6.96419 8.02288 6.69556 8.35425 6.69556 8.68563 6.69556 8.95425 6.96419 8.95425 7.29556L8.95425 9.43683C8.95425 10.5338 8.06502 11.423 6.96809 11.423 5.87117 11.423 4.98193 10.5338 4.98193 9.43683L4.98193 7.29556C4.98193 6.96419 5.25056 6.69556 5.58193 6.69556z",fillRule:"evenodd",clipRule:"evenodd"}}]},I3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"sum-single",ref:t,icon:Ko}))});I3.displayName="SumSingle";var e2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"path",attrs:{stroke:"currentColor",d:"M2.10904 14.4537L10.299 3.06987M10.2989 14.4537L2.10899 3.06987M12.7525 3.35933C13.3943 2.79901 14.7089 2.79129 14.9533 3.91363 15.204 5.06487 13.7456 6.56876 12.6812 7.41429 12.6663 7.4261 12.6751 7.44982 12.6941 7.44982L15.1497 7.44977",strokeLinecap:"round",strokeWidth:1.2}}]},T3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"superscript-single",ref:t,icon:e2}))});T3.displayName="SuperscriptSingle";var t2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.21572 1.80029C2.54709 1.80029 2.81572 2.06892 2.81572 2.40029V14.0003C2.81572 14.3317 2.54709 14.6003 2.21572 14.6003 1.88435 14.6003 1.61572 14.3317 1.61572 14.0003V2.40029C1.61572 2.06892 1.88435 1.80029 2.21572 1.80029zM13.7841 1.80029C14.1155 1.80029 14.3841 2.06892 14.3841 2.40029V14.0003C14.3841 14.3317 14.1155 14.6003 13.7841 14.6003 13.4527 14.6003 13.1841 14.3317 13.1841 14.0003V8.60259H7.13467C6.8033 8.60259 6.53467 8.33396 6.53467 8.00259 6.53467 7.67122 6.8033 7.40259 7.13467 7.40259H13.1841V2.40029C13.1841 2.06892 13.4527 1.80029 13.7841 1.80029z"}}]},D3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"truncation-single",ref:t,icon:t2}))});D3.displayName="TruncationSingle";var n2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.46416 2.03237C4.46416 1.701 4.19553 1.43237 3.86416 1.43237 3.53279 1.43237 3.26416 1.701 3.26416 2.03237V7.33338C3.26416 10.0313 5.35834 12.2667 7.9999 12.2667 10.6415 12.2667 12.7356 10.0313 12.7356 7.33338V2.03237C12.7356 1.701 12.467 1.43237 12.1356 1.43237 11.8043 1.43237 11.5356 1.701 11.5356 2.03237V7.33338C11.5356 9.42194 9.92656 11.0667 7.9999 11.0667 6.07325 11.0667 4.46416 9.42194 4.46416 7.33338V2.03237zM2.66641 13.4663C2.33504 13.4663 2.06641 13.7349 2.06641 14.0663 2.06641 14.3977 2.33504 14.6663 2.66641 14.6663H13.3331C13.6644 14.6663 13.9331 14.3977 13.9331 14.0663 13.9331 13.7349 13.6644 13.4663 13.3331 13.4663H2.66641z"}}]},x3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"underline-single",ref:t,icon:n2}))});x3.displayName="UnderlineSingle";var r2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.72365 2.72206C4.97524 2.50641 5.00437 2.12763 4.78872 1.87603C4.57306 1.62444 4.19428 1.59531 3.94269 1.81097L1.61333 3.80761C1.48281 3.91768 1.3999 4.08241 1.3999 4.2665C1.3999 4.41745 1.45564 4.55538 1.54766 4.66083C1.55661 4.67109 1.56594 4.68108 1.57563 4.69077L3.9089 7.02411C4.14321 7.25842 4.52311 7.25843 4.75743 7.02412C4.99175 6.78981 4.99175 6.40991 4.75744 6.17559L3.44839 4.8665H9.36337C11.5909 4.8665 13.3967 6.67229 13.3967 8.89984C13.3967 11.1274 11.5909 12.9332 9.36337 12.9332H3.99937C3.668 12.9332 3.39937 13.2018 3.39937 13.5332C3.39937 13.8645 3.668 14.1332 3.99937 14.1332H9.36337C12.2537 14.1332 14.5967 11.7901 14.5967 8.89984C14.5967 6.00955 12.2537 3.6665 9.36337 3.6665H3.62183L4.72365 2.72206Z"}}]},N3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"undo-single",ref:t,icon:r2}))});N3.displayName="UndoSingle";var i2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.03012 3.14006C3.03012 3.59845 2.65851 3.97006 2.20012 3.97006 1.74172 3.97006 1.37012 3.59845 1.37012 3.14006 1.37012 2.68166 1.74172 2.31006 2.20012 2.31006 2.65851 2.31006 3.03012 2.68166 3.03012 3.14006zM4.53027 2.54014C4.1989 2.54014 3.93027 2.80877 3.93027 3.14014 3.93027 3.47151 4.1989 3.74014 4.53027 3.74014H14.5488C14.8802 3.74014 15.1488 3.47151 15.1488 3.14014 15.1488 2.80877 14.8802 2.54014 14.5488 2.54014H4.53027zM2.20012 8.82992C2.65851 8.82992 3.03012 8.45832 3.03012 7.99992 3.03012 7.54153 2.65851 7.16992 2.20012 7.16992 1.74172 7.16992 1.37012 7.54153 1.37012 7.99992 1.37012 8.45832 1.74172 8.82992 2.20012 8.82992zM4.53027 7.4C4.1989 7.4 3.93027 7.66863 3.93027 8 3.93027 8.33137 4.1989 8.6 4.53027 8.6H14.5488C14.8802 8.6 15.1488 8.33137 15.1488 8 15.1488 7.66863 14.8802 7.4 14.5488 7.4H4.53027zM2.20012 13.6905C2.65851 13.6905 3.03012 13.3189 3.03012 12.8605 3.03012 12.4021 2.65851 12.0305 2.20012 12.0305 1.74172 12.0305 1.37012 12.4021 1.37012 12.8605 1.37012 13.3189 1.74172 13.6905 2.20012 13.6905zM4.53027 12.2604C4.1989 12.2604 3.93027 12.529 3.93027 12.8604 3.93027 13.1917 4.1989 13.4604 4.53027 13.4604H14.5488C14.8802 13.4604 15.1488 13.1917 15.1488 12.8604 15.1488 12.529 14.8802 12.2604 14.5488 12.2604H4.53027z"}}]},V3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"unorder-single",ref:t,icon:i2}))});V3.displayName="UnorderSingle";var o2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1282",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1282)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M4.0001 14.667H2.66677C1.93039 14.667 1.33344 14.07 1.33344 13.3337V12.0003H2.66677V13.3337L4.0001 13.3337V14.667zM1.33344 6.66699H2.66677V9.33366H1.33344V6.66699zM6.66677 14.667V13.3337H7.33344V10.667H8.66677V13.3337H9.33344V14.667H6.66677zM12.0001 14.667V13.3337H13.3334V12.0003H14.6668V13.3337C14.6668 14.07 14.0698 14.667 13.3334 14.667H12.0001zM14.6668 9.33366H13.3334V8.66699H10.6668V7.33366H13.3334V6.66699H14.6668V9.33366zM7.33344 2.66699V5.33366H8.66677V2.66699H7.33344zM5.33344 8.66699H2.66677V7.33366H5.33344V8.66699z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.33344 2.66789V4.00122H2.66677L2.66677 2.66789H13.3334V4.00122H14.6668V2.66789C14.6668 1.93151 14.0698 1.33455 13.3334 1.33455H2.66677C1.93039 1.33455 1.33344 1.93151 1.33344 2.66789Z"}}]}]},A3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"up-border",ref:t,icon:o2}))});A3.displayName="UpBorder";var a2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_248_119",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 0H32V16H16z",transform:"rotate(90 16 0)"}}]},{tag:"g",attrs:{mask:"url(#mask0_248_119)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M2.66699 1.33325L4.00033 1.33325 4.00033 2.66658 2.66699 2.66659 2.66699 3.99992 1.33366 3.99992 1.33366 2.66659C1.33366 1.93021 1.93061 1.33325 2.66699 1.33325zM14.667 2.66659L14.667 3.99992 13.3337 3.99992 13.3337 2.66659 12.0003 2.66659 12.0003 1.33325 13.3337 1.33325C14.07 1.33325 14.667 1.93021 14.667 2.66659zM6.66699 2.66658L6.66699 1.33325 9.33366 1.33325 9.33366 2.66659 6.66699 2.66658zM13.3337 6.66659L14.667 6.66659 14.667 9.33325 13.3337 9.33325 13.3337 8.66496 12.0145 8.66496 12.0145 7.33496 13.3337 7.33496 13.3337 6.66659zM13.3337 11.9999L14.667 11.9999 14.667 13.3333C14.667 14.0696 14.07 14.6666 13.3337 14.6666L12.0003 14.6666 12.0003 13.3333 13.3337 13.3333 13.3337 11.9999zM9.33366 13.3333L9.33366 14.6666 6.66699 14.6666 6.66699 13.3333 9.33366 13.3333zM4.00032 13.3333L4.00032 14.6666 2.66699 14.6666C1.93061 14.6666 1.33366 14.0696 1.33366 13.3333L1.33366 11.9999 2.66699 11.9999 2.66699 13.3333 4.00032 13.3333zM2.66699 9.33325L1.33366 9.33325 1.33366 6.66658 2.66699 6.66658 2.66699 7.33496 3.98624 7.33496 3.98624 8.66496 2.66699 8.66496 2.66699 9.33325zM9.33841 7.33496L6.66232 7.33496 6.66232 8.66496 9.33841 8.66496 9.33841 7.33496z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.66577 8.66675L8.66577 7.33342L8.66569 2.66675L7.33236 2.66675L7.33236 7.33341L7.33244 8.66675L7.33236 13.3334L8.66569 13.3334L8.66577 8.66675Z"}}]}]},P3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-border",ref:t,icon:a2}))});P3.displayName="VerticalBorder";var s2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.9999.733398C8.33127.733398 8.5999 1.00203 8.5999 1.3334V4.55137L9.57564 3.57564C9.80995 3.34132 10.1899 3.34132 10.4242 3.57564 10.6585 3.80995 10.6585 4.18985 10.4242 4.42417L8.42417 6.42417C8.18985 6.65848 7.80995 6.65848 7.57564 6.42417L5.57564 4.42417C5.34132 4.18985 5.34132 3.80995 5.57564 3.57564 5.80995 3.34132 6.18985 3.34132 6.42417 3.57564L7.3999 4.55137V1.3334C7.3999 1.00203 7.66853.733398 7.9999.733398zM5.57564 11.5756L7.57564 9.57564C7.80995 9.34132 8.18985 9.34132 8.42417 9.57564L10.4242 11.5756C10.6585 11.81 10.6585 12.1899 10.4242 12.4242 10.1899 12.6585 9.80995 12.6585 9.57564 12.4242L8.5999 11.4484V14.6665C8.5999 14.9979 8.33127 15.2665 7.9999 15.2665 7.66853 15.2665 7.3999 14.9979 7.3999 14.6665V11.4484L6.42417 12.4242C6.18985 12.6585 5.80995 12.6585 5.57564 12.4242 5.34132 12.1899 5.34132 11.81 5.57564 11.5756zM1.9999 7.40015C1.66853 7.40015 1.3999 7.66878 1.3999 8.00015 1.3999 8.33152 1.66853 8.60015 1.9999 8.60015H13.9999C14.3313 8.60015 14.5999 8.33152 14.5999 8.00015 14.5999 7.66878 14.3313 7.40015 13.9999 7.40015H1.9999z"}}]},R3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-center-single",ref:t,icon:s2}))});R3.displayName="VerticalCenterSingle";var l2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_709",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0.88 0.24H16.88V16.24H0.88z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_102_709)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{d:"M2.2157 2.90265C2.2157 2.16628 2.81264 1.56934 3.54901 1.56934H6.21565C6.95202 1.56934 7.54896 2.16628 7.54896 2.90265V13.5692C7.54896 14.3056 6.95202 14.9025 6.21565 14.9025H3.54901C2.81264 14.9025 2.2157 14.3056 2.2157 13.5692V2.90265zM3.54901 2.90265H6.21565V5.5622H3.54901V2.90265zM3.54901 6.89552V9.57631H6.21565V6.89552H3.54901zM3.54901 13.5692V10.9096H6.21565V13.5692H3.54901zM10.2156 2.90265C10.2156 2.16628 10.8125 1.56934 11.5489 1.56934H14.2155C14.9519 1.56934 15.5489 2.16628 15.5489 2.90265V13.5692C15.5489 14.3056 14.9519 14.9025 14.2155 14.9025H11.5489C10.8125 14.9025 10.2156 14.3056 10.2156 13.5692V2.90265zM11.5489 2.90265H14.2155V5.5622H11.5489V2.90265zM11.5489 6.89552V9.57631H14.2155V6.89552H11.5489zM11.5489 13.5692V10.9096H14.2155V13.5692H11.5489z"}}]}]},j3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-integration-single",ref:t,icon:l2}))});j3.displayName="VerticalIntegrationSingle";var c2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.55504 2.73208C4.55504 2.40071 4.28641 2.13208 3.95504 2.13208C3.62367 2.13208 3.35504 2.40071 3.35504 2.73208V12.5172L2.21439 11.5276C1.96409 11.3104 1.58515 11.3373 1.36799 11.5876C1.15084 11.8379 1.17771 12.2169 1.42801 12.434L2.89972 13.7108C3.54718 14.2726 4.55504 13.8127 4.55504 12.9555L4.55504 2.73208Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M9.00725 4.01095C9.45595 2.78663 11.1875 2.78662 11.6362 4.01095L14.743 12.488C14.8571 12.7992 14.6973 13.1438 14.3861 13.2578C14.075 13.3719 13.7303 13.2121 13.6163 12.9009L12.4148 9.62242H8.36729C8.32154 9.62242 8.27699 9.6173 8.23417 9.6076L7.02719 12.9009C6.91316 13.2121 6.5685 13.3719 6.25736 13.2578C5.94623 13.1438 5.78644 12.7992 5.90047 12.488L9.00725 4.01095ZM10.5095 4.42388L11.975 8.42242H8.66853L10.134 4.42389C10.1981 4.24898 10.4454 4.24898 10.5095 4.42388Z",fillRule:"evenodd",clipRule:"evenodd"}}]},k3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-text-single",ref:t,icon:c2}))});k3.displayName="VerticalTextSingle";var u2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM8.00008 12.3671C8.46031 12.3671 8.83342 11.994 8.83342 11.5338C8.83342 11.0735 8.46031 10.7004 8.00008 10.7004C7.53985 10.7004 7.16675 11.0735 7.16675 11.5338C7.16675 11.994 7.53985 12.3671 8.00008 12.3671ZM8.5999 4.4335C8.5999 4.10213 8.33127 3.8335 7.9999 3.8335C7.66853 3.8335 7.3999 4.10213 7.3999 4.4335V9.36683C7.3999 9.6982 7.66853 9.96683 7.9999 9.96683C8.33127 9.96683 8.5999 9.6982 8.5999 9.36683V4.4335Z",fillRule:"evenodd",clipRule:"evenodd"}}]},wt=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"warning-single",ref:t,icon:u2}))});wt.displayName="WarningSingle";class ke{constructor(){te(this,"_components",new Map);te(this,"_componentsReverse",new Map);const t={AlignBottomSingle:Zn,AlignTopSingle:Gn,AllBorderSingle:Yn,AmplifySingle:qn,AutowrapSingle:Jn,BoldSingle:tr,BrushSingle:nr,Copy:fr,ClearFormat:ar,DownBorder:yr,FontColor:Mr,FunctionSingle:Dr,HorizontallySingle:Rr,InnerBorder:jr,ItalicSingle:zr,KeyboardSingle:Zr,ContentSingle16:ur,LeftBorder:Wr,LeftJustifyingSingle:qr,LeftRotationFortyFiveDegreesSingle:Xr,LeftRotationNinetyDegreesSingle:Qr,MergeAllSingle:t3,HorizontalMergeSingle:Pr,VerticalIntegrationSingle:j3,PipingSingle:h3,CancelMergeSingle:ir,NoBorderSingle:i3,NoColor:o3,NoRotationSingle:a3,OuterBorder:l3,OverflowSingle:c3,PaintBucket:u3,PasteSpecial:f3,MenuSingle24:e3,RedoSingle:v3,RightBorder:C3,RightJustifyingSingle:y3,AlignTextBothSingle:Wn,RightRotationFortyFiveDegreesSingle:S3,RightRotationNinetyDegreesSingle:L3,StrikethroughSingle:E3,OrderSingle:s3,UnorderSingle:V3,SuperscriptSingle:T3,SubscriptSingle:O3,TruncationSingle:D3,UnderlineSingle:x3,UndoSingle:N3,UpBorder:A3,VerticalBorder:P3,VerticalCenterSingle:R3,VerticalTextSingle:k3,Insert:Fr,InsertCellDown:kr,InsertCellShiftRight:$r,InsertRowAbove:Br,InsertRowBelow:Ur,LeftInsertColumn:Yr,RightInsertColumn:b3,DeleteColumn:pr,DeleteRow:Cr,DeleteCellShiftUp:mr,DeleteCellShiftRight:vr,DeleteCellShiftLeft:hr,DeleteCellMoveDown:dr,Reduce:p3,Hide:Vr,HorizontalBorder:Ar,AutoHeight:Xn,AutoWidth:Qn,AdjustHeight:Fn,AdjustWidth:zn,AvgSingle:Kn,CntSingle:sr,MaxSingle:Kr,MinSingle:n3,SumSingle:I3,CancelFreezeSingle:rr,FreezeColumnSingle:Hr,FreezeRowSingle:Ir,GridSingle:xr,HeaderFooterSingle:Nr,FreezeToSelectedSingle:Tr,CodeSingle:lr,FontSizeIncreaseSingle:Er,FontSizeReduceSingleSingle:Or,BackSlashSingle:er,LeftDoubleDiagonalSingle:Gr,LeftTridiagonalSingle:Jr,SlashSingle:M3,RightDoubleDiagonalSingle:g3,DirectExportSingle:gr,FolderSingle:wr,ExportSingle:_r,Conditions:cr,RmbSingle:_3,MoreDownSingle:Y1,AddDigitsSingle:Un,ReduceDigitsSingle:m3,PercentSingle:d3,EuroSingle:Lr,RoubleSingle:w3,DollarSingle:br};for(const n in t)this.register(n,t[n])}register(t,n,r){const{framework:i="react"}=r||{};return this._components.has(t)&&console.warn(`Component ${t} already exists.`),this._components.set(t,{framework:i,component:n}),this._componentsReverse.set(n,t),f.toDisposable(()=>{this._components.delete(t),this._componentsReverse.delete(n)})}getKey(t){return this._componentsReverse.get(t)}get(t){if(!t)return;const n=this._components.get(t);if((n==null?void 0:n.framework)==="react")return n.component;if((n==null?void 0:n.framework)==="vue3")return r=>s.cloneElement(s.createElement($3,{component:n.component,props:{...r}}))}delete(t){this._components.delete(t)}}async function f2(e,t,n){try{const{h:r,render:i}=await import("vue"),o=r(e,n),a=document.createElement("div");return document.body.appendChild(a),i(o,t),()=>{document.body.removeChild(a)}}catch{}}function $3(e){const t=s.useRef(null),{component:n,props:r}=e;return s.useEffect(()=>{if(!t.current)return;const i=f2(n,t.current,r);return()=>{i.then(o=>o==null?void 0:o())}},[r]),s.createElement("div",{ref:t})}class D1{constructor(){te(this,"_list",new Map)}setIndex(t,n){this._list.set(t,n)}getIndex(t){return this._list.get(t)}removeIndex(t){this._list.delete(t)}getMaxIndex(){let t=-9999999;return this._list.forEach(n=>{+n>t&&(t=+n)}),t}}Dn=new WeakMap,xn=new WeakMap,kn(D1,Dn,2147483647),kn(D1,xn,-2147483647);function B3(e,t,n,r){const i=e.get(f.IUniverInstanceService);return new re.Observable(o=>{const a=i.focused$.subscribe(v=>{if(v==null||n&&n!==v||r&&(Array.isArray(r)?r.includes(v):r===v))return o.next(!0);const m=i.getUnitType(v);o.next(m!==t)}),l=i.getFocusedUnit();if(l==null)return o.next(!0);const h=i.getUnitType(l.getUnitId());return o.next(h!==t),()=>a.unsubscribe()})}function d2(e){const t=e.get(f.IUniverInstanceService);return new re.Observable(n=>{const r=t.focused$.subscribe(a=>{if(a==null)return n.next(!0);const l=t.getUniverDocInstance(a),h=l==null?void 0:l.getSnapshot().documentStyle.documentFlavor;n.next(h!==f.DocumentFlavor.TRADITIONAL)}),i=t.getCurrentUniverDocInstance();if(i==null)return n.next(!0);const o=i==null?void 0:i.getSnapshot().documentStyle.documentFlavor;return n.next(o!==f.DocumentFlavor.TRADITIONAL),()=>r.unsubscribe()})}function U3(e,t){return!t||!e||(["type","icon","title","tooltip"].forEach(i=>{t[i]!==void 0&&(e[i]=t[i])}),["hidden","disabled","activated"].forEach(i=>{h2(e,`${i}$`,t[i])})),e}function h2(e,t,n){if(n!==void 0)if(e[t]){const r=e[t].pipe(re.switchMap(()=>new re.BehaviorSubject(n)));e[t]=r}else e[t]=new re.Observable(r=>{r.next(n)})}var q1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Et={exports:{}},x1={};/**
|
|
2
|
+
(function(C,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("@univerjs/core"),require("react"),require("rxjs"),require("@univerjs/design"),require("rxjs/operators"),require("@univerjs/engine-render"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","react","rxjs","@univerjs/design","rxjs/operators","@univerjs/engine-render","react-dom"],d):(C=typeof globalThis<"u"?globalThis:C||self,d(C.UniverUi={},C.UniverCore,C.React,C.rxjs,C.UniverDesign,C.rxjs.operators,C.UniverEngineRender,C.ReactDOM))})(this,function(C,d,s,te,le,$n,H1,I1){"use strict";var A5=Object.defineProperty;var R5=C=>{throw TypeError(C)};var j5=(C,d,s)=>d in C?A5(C,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):C[d]=s;var ee=(C,d,s)=>j5(C,typeof d!="symbol"?d+"":d,s);var kn=(C,d,s)=>d.has(C)?R5("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(C):d.set(C,s);var Dn,xn;function ri(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const J=ri(s);var je=function(){return je=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},je.apply(this,arguments)},ii=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},N=s.forwardRef(function(e,t){var n=e.icon,r=e.id,i=e.className,a=e.extend,o=ii(e,["icon","id","className","extend"]),l="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),u=s.useRef("_".concat(si()));return Bn(n,"".concat(r),{defIds:n.defIds,idSuffix:u.current},je({ref:t,className:l},o),a)});function Bn(e,t,n,r,i){return s.createElement(e.tag,je(je({key:t},oi(e,n,i)),r),(ai(e,n).children||[]).map(function(a,o){return Bn(a,"".concat(t,"-").concat(e.tag,"-").concat(o),n,void 0,i)}))}function oi(e,t,n){var r=je({},e.attrs);n!=null&&n.colorChannel1&&r.fill==="colorChannel1"&&(r.fill=n.colorChannel1);var i=t.defIds;return!i||i.length===0||(e.tag==="use"&&r["xlink:href"]&&(r["xlink:href"]=r["xlink:href"]+t.idSuffix),Object.entries(r).forEach(function(a){var o=a[0],l=a[1];typeof l=="string"&&(r[o]=l.replace(/url\(#(.*)\)/,"url(#$1".concat(t.idSuffix,")")))})),r}function ai(e,t){var n,r=t.defIds;return!r||r.length===0?e:e.tag==="defs"&&(!((n=e.children)===null||n===void 0)&&n.length)?je(je({},e),{children:e.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?je(je({},i),{attrs:je(je({},i.attrs),{id:i.attrs.id+t.idSuffix})}):i})}):e}function si(){return Math.random().toString(36).substring(2,8)}N.displayName="UniverIcon";var li={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.06641 3.49366C4.06641 2.27555 5.14145 1.3916 6.33307 1.3916 7.52469 1.3916 8.59974 2.27555 8.59974 3.49366V6.49777C8.59974 7.71586 7.52469 8.59982 6.33307 8.59982 5.14145 8.59982 4.06641 7.71586 4.06641 6.49777V3.49366zM6.33307 2.5916C5.68376 2.5916 5.26641 3.05264 5.26641 3.49366V6.49777C5.26641 6.93878 5.68376 7.39982 6.33307 7.39982 6.98239 7.39982 7.39974 6.93878 7.39974 6.49777V3.49366C7.39974 3.05264 6.98239 2.5916 6.33307 2.5916zM10.0664 3.49366C10.0664 2.27555 11.1415 1.3916 12.3331 1.3916 13.5247 1.3916 14.5997 2.27555 14.5997 3.49366V6.49777C14.5997 7.71586 13.5247 8.59982 12.3331 8.59982 11.1415 8.59982 10.0664 7.71586 10.0664 6.49777V3.49366zM12.3331 2.5916C11.6838 2.5916 11.2664 3.05264 11.2664 3.49366V6.49777C11.2664 6.93878 11.6838 7.39982 12.3331 7.39982 12.9824 7.39982 13.3997 6.93878 13.3997 6.49777V3.49366C13.3997 3.05264 12.9824 2.5916 12.3331 2.5916z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.4242 9.5417C12.1899 9.30739 11.81 9.30739 11.5756 9.5417 11.3413 9.77602 11.3413 10.1559 11.5756 10.3902L12.5514 11.366H6.3334C6.00203 11.366 5.7334 11.6346 5.7334 11.966 5.7334 12.2973 6.00203 12.566 6.3334 12.566H12.5514L11.5756 13.5417C11.3413 13.776 11.3413 14.1559 11.5756 14.3902 11.81 14.6245 12.1899 14.6245 12.4242 14.3902L14.4159 12.3985C14.5294 12.2893 14.6001 12.1359 14.6001 11.966 14.6001 11.796 14.5294 11.6426 14.4159 11.5334L12.4242 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z"}}]},Un=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"add-digits-single",ref:t,icon:li}))});Un.displayName="AddDigitsSingle";var ci={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1312",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1312)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M8.60231 5.77597L9.38125 6.55432C9.61658 6.78947 9.99797 6.78932 10.2331 6.554C10.4683 6.31867 10.4681 5.93728 10.2328 5.70214L8.44939 3.92009C8.33908 3.79657 8.1786 3.7188 7.99995 3.7188C7.84562 3.71861 7.6906 3.77736 7.57281 3.89506L5.76712 5.69933C5.5318 5.93447 5.53165 6.31587 5.76679 6.55119C6.00193 6.78652 6.38332 6.78667 6.61865 6.55153L7.3976 5.77319L7.3976 10.2246L6.61865 9.44621C6.38333 9.21107 6.00194 9.21121 5.76679 9.44654C5.53165 9.68186 5.53179 10.0633 5.76712 10.2984L7.55051 12.0804C7.66082 12.204 7.82131 12.2817 7.99995 12.2817L8.00089 12.2817C8.15512 12.2819 8.30939 12.2231 8.4271 12.1055L10.2328 10.3012C10.4681 10.0661 10.4683 9.68467 10.2331 9.44934C9.99798 9.21402 9.61659 9.21387 9.38126 9.44901L8.60231 10.2274L8.60231 5.77597Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M13.7039 3.24701C14.0539 3.24701 14.3377 2.96327 14.3377 2.61325 14.3377 2.26324 14.0539 1.97949 13.7039 1.97949L2.29627 1.97949C1.94625 1.97949 1.66251 2.26324 1.66251 2.61325 1.66251 2.96327 1.94625 3.24701 2.29627 3.24701L13.7039 3.24701zM13.7039 14.0209C14.0539 14.0209 14.3377 13.7372 14.3377 13.3872 14.3377 13.0371 14.0539 12.7534 13.7039 12.7534L2.29627 12.7534C1.94625 12.7534 1.66251 13.0371 1.66251 13.3872 1.66251 13.7372 1.94625 14.0209 2.29627 14.0209L13.7039 14.0209z"}}]}]},Fn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-height",ref:t,icon:ci}))});Fn.displayName="AdjustHeight";var ui={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1166",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1166)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.77574 7.3974L6.5541 6.61846C6.78924 6.38313 6.78909 6.00174 6.55377 5.7666C6.31844 5.53145 5.93705 5.5316 5.70191 5.76692L3.91987 7.55032C3.79634 7.66063 3.71857 7.82111 3.71857 7.99976C3.71838 8.15409 3.77713 8.30912 3.89483 8.42691L5.6991 10.2326C5.93425 10.4679 6.31564 10.4681 6.55096 10.2329C6.78629 9.99778 6.78644 9.61639 6.5513 9.38106L5.77296 8.60211L10.2243 8.60211L9.44598 9.38106C9.21084 9.61638 9.21099 9.99777 9.44631 10.2329C9.68164 10.4681 10.063 10.4679 10.2982 10.2326L12.0802 8.4492C12.2037 8.33889 12.2815 8.1784 12.2815 7.99976L12.2815 7.99882C12.2816 7.84459 12.2229 7.69032 12.1052 7.57261L10.301 5.76693C10.0658 5.5316 9.68444 5.53145 9.44911 5.76659C9.21379 6.00173 9.21364 6.38312 9.44878 6.61845L10.2271 7.3974L5.77574 7.3974Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M3.24683 2.29598C3.24683 1.94596 2.96308 1.66222 2.61307 1.66222 2.26305 1.66222 1.97931 1.94596 1.97931 2.29598L1.97931 13.7036C1.97931 14.0537 2.26305 14.3374 2.61307 14.3374 2.96308 14.3374 3.24683 14.0537 3.24683 13.7036L3.24683 2.29598zM14.0207 2.29598C14.0207 1.94596 13.737 1.66222 13.387 1.66222 13.037 1.66222 12.7532 1.94596 12.7532 2.29598L12.7532 13.7036C12.7532 14.0537 13.037 14.3374 13.387 14.3374 13.737 14.3374 14.0207 14.0537 14.0207 13.7036L14.0207 2.29598z"}}]}]},zn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-width",ref:t,icon:ui}))});zn.displayName="AdjustWidth";var fi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3999 13.6999C1.3999 13.3685 1.66853 13.0999 1.9999 13.0999H13.9999C14.3313 13.0999 14.5999 13.3685 14.5999 13.6999 14.5999 14.0312 14.3313 14.2999 13.9999 14.2999H1.9999C1.66853 14.2999 1.3999 14.0312 1.3999 13.6999zM7.57564 10.3914C7.80995 10.6257 8.18985 10.6257 8.42417 10.3914L10.4242 8.3914C10.6585 8.15709 10.6585 7.77719 10.4242 7.54287 10.1899 7.30856 9.80995 7.30856 9.57564 7.54287L7.9999 9.11861 6.42417 7.54287C6.18985 7.30856 5.80995 7.30856 5.57564 7.54287 5.34132 7.77719 5.34132 8.15709 5.57564 8.3914L7.57564 10.3914z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.9999 10.5671C8.33127 10.5671 8.5999 10.2985 8.5999 9.96714V2.30047C8.5999 1.9691 8.33127 1.70047 7.9999 1.70047C7.66853 1.70047 7.3999 1.9691 7.3999 2.30047V9.96714C7.3999 10.2985 7.66853 10.5671 7.9999 10.5671Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Zn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-bottom-single",ref:t,icon:fi}))});Zn.displayName="AlignBottomSingle";var di={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z"}}]},Wn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-text-both-single",ref:t,icon:di}))});Wn.displayName="AlignTextBothSingle";var hi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3999 2.3002C1.3999 2.63157 1.66853 2.9002 1.9999 2.9002H13.9999C14.3313 2.9002 14.5999 2.63157 14.5999 2.3002 14.5999 1.96882 14.3313 1.7002 13.9999 1.7002H1.9999C1.66853 1.7002 1.3999 1.96882 1.3999 2.3002zM8.22957 5.47839C8.30034 5.50767 8.36664 5.55107 8.42417 5.6086L10.4242 7.6086C10.6585 7.84291 10.6585 8.22281 10.4242 8.45713 10.1899 8.69144 9.80995 8.69144 9.57564 8.45713L8.5999 7.48139V13.6995C8.5999 14.0309 8.33127 14.2995 7.9999 14.2995 7.66853 14.2995 7.3999 14.0309 7.3999 13.6995V7.48139L6.42417 8.45713C6.18985 8.69144 5.80995 8.69144 5.57564 8.45713 5.34132 8.22281 5.34132 7.84291 5.57564 7.6086L7.57541 5.60882C7.7522 5.43203 8.01209 5.38841 8.22957 5.47839z"}}]},Gn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-top-single",ref:t,icon:hi}))});Gn.displayName="AlignTopSingle";var vi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Yn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"all-border-single",ref:t,icon:vi}))});Yn.displayName="AllBorderSingle";var mi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.5999 5.9999C8.5999 5.66853 8.33127 5.3999 7.9999 5.3999C7.66853 5.3999 7.3999 5.66853 7.3999 5.9999V7.40329L6.004 7.4051C5.67263 7.40553 5.40435 7.67451 5.40479 8.00588C5.40522 8.33725 5.6742 8.60553 6.00557 8.6051L7.3999 8.60329V9.9999C7.3999 10.3313 7.66853 10.5999 7.9999 10.5999C8.33127 10.5999 8.5999 10.3313 8.5999 9.9999V8.60172L10.0004 8.5999C10.3317 8.59947 10.6 8.33049 10.5996 7.99912C10.5992 7.66775 10.3302 7.39947 9.9988 7.3999L8.5999 7.40172V5.9999Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.99958 1.73315C4.53861 1.73315 1.73291 4.53885 1.73291 7.99982C1.73291 11.4608 4.53861 14.2665 7.99958 14.2665C9.51395 14.2665 10.9029 13.7293 11.9862 12.8351L13.2422 14.0908C13.4765 14.3251 13.8564 14.3251 14.0907 14.0907C14.325 13.8564 14.325 13.4765 14.0906 13.2422L12.8347 11.9866C13.729 10.9033 14.2662 9.51428 14.2662 7.99982C14.2662 4.53885 11.4605 1.73315 7.99958 1.73315ZM2.93291 7.99982C2.93291 5.20159 5.20135 2.93315 7.99958 2.93315C10.7978 2.93315 13.0662 5.20159 13.0662 7.99982C13.0662 10.7981 10.7978 13.0665 7.99958 13.0665C5.20135 13.0665 2.93291 10.7981 2.93291 7.99982Z",fillRule:"evenodd",clipRule:"evenodd"}}]},qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"amplify-single",ref:t,icon:mi}))});qn.displayName="AmplifySingle";var pi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1317",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1317)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.29713 1.98047C1.94717 1.98047 1.66348 2.26416 1.66348 2.61412 1.66348 2.96408 1.94717 3.24777 2.29713 3.24777H13.7028C14.0528 3.24777 14.3365 2.96408 14.3365 2.61412 14.3365 2.26416 14.0528 1.98047 13.7028 1.98047H2.29713zM2.29713 12.7525C1.94717 12.7525 1.66348 13.0362 1.66348 13.3862 1.66348 13.7361 1.94717 14.0198 2.29713 14.0198H13.7028C14.0528 14.0198 14.3365 13.7361 14.3365 13.3862 14.3365 13.0362 14.0528 12.7525 13.7028 12.7525H2.29713z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.42163 4.25588L4.25471 11.2231C4.10989 11.5417 4.25077 11.9174 4.56935 12.0622C4.88794 12.207 5.2636 12.0661 5.40841 11.7475L6.24766 9.90119H9.75197L10.5912 11.7475C10.736 12.0661 11.1117 12.207 11.4303 12.0622C11.7489 11.9174 11.8897 11.5417 11.7449 11.2231L8.578 4.25589C8.5675 4.23244 8.55557 4.20961 8.54227 4.18755C8.49012 4.10102 8.41688 4.0262 8.32579 3.97171C8.301 3.95688 8.27527 3.94377 8.24878 3.93246C8.16764 3.89775 8.08309 3.8813 7.99981 3.88135C7.88457 3.88142 7.77177 3.91309 7.67384 3.97171C7.58714 4.02361 7.5121 4.09664 7.45735 4.18755C7.44406 4.20961 7.43213 4.23244 7.42163 4.25588ZM9.17592 8.63388L7.99981 6.04644L6.8237 8.63388H9.17592Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Xn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-height",ref:t,icon:pi}))});Xn.displayName="AutoHeight";var Ci={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1171",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1171)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.98032 13.7028C1.98032 14.0527 2.26401 14.3364 2.61397 14.3364 2.96392 14.3364 3.24762 14.0527 3.24762 13.7028L3.24762 2.29706C3.24762 1.9471 2.96392 1.66341 2.61397 1.66341 2.26401 1.66341 1.98032 1.9471 1.98032 2.29706L1.98032 13.7028zM12.7524 13.7028C12.7524 14.0527 13.0361 14.3364 13.386 14.3364 13.736 14.3364 14.0197 14.0527 14.0197 13.7028L14.0197 2.29706C14.0197 1.9471 13.736 1.66341 13.386 1.66341 13.0361 1.66341 12.7524 1.9471 12.7524 2.29706L12.7524 13.7028z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.42187 4.25588L4.25495 11.2231C4.11014 11.5417 4.25101 11.9174 4.5696 12.0622C4.88819 12.207 5.26385 12.0661 5.40866 11.7475L6.2479 9.90119H9.75222L10.5915 11.7475C10.7363 12.0661 11.1119 12.207 11.4305 12.0622C11.7491 11.9174 11.89 11.5417 11.7452 11.2231L8.57825 4.25589C8.56775 4.23244 8.55582 4.20961 8.54252 4.18755C8.49037 4.10102 8.41713 4.0262 8.32603 3.97171C8.30125 3.95688 8.27551 3.94377 8.24902 3.93246C8.16788 3.89775 8.08333 3.8813 8.00006 3.88135C7.88481 3.88142 7.77201 3.91309 7.67409 3.97171C7.58739 4.02361 7.51235 4.09664 7.4576 4.18755C7.4443 4.20961 7.43237 4.23244 7.42187 4.25588ZM9.17617 8.63388L8.00006 6.04644L6.82395 8.63388H9.17617Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-width",ref:t,icon:Ci}))});Qn.displayName="AutoWidth";var gi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.5999 2.2001C2.5999 1.86873 2.33127 1.6001 1.9999 1.6001 1.66853 1.6001 1.3999 1.86873 1.3999 2.2001V13.8001C1.3999 14.1315 1.66853 14.4001 1.9999 14.4001 2.33127 14.4001 2.5999 14.1315 2.5999 13.8001V2.2001zM14.5999 2.2001C14.5999 1.86873 14.3313 1.6001 13.9999 1.6001 13.6685 1.6001 13.3999 1.86873 13.3999 2.2001V13.8001C13.3999 14.1315 13.6685 14.4001 13.9999 14.4001 14.3313 14.4001 14.5999 14.1315 14.5999 13.8001V2.2001zM6.424 8.24239C6.65832 8.4767 6.65832 8.8566 6.424 9.09091L6.11502 9.3999H9.33307C10.1063 9.3999 10.7331 8.7731 10.7331 7.9999 10.7331 7.22671 10.1063 6.5999 9.33307 6.5999H4.6666L4.66645 5.3999H9.33307C10.769 5.3999 11.9331 6.56396 11.9331 7.9999 11.9331 9.43584 10.769 10.5999 9.33307 10.5999H6.11485L6.424 10.9091C6.65832 11.1434 6.65832 11.5233 6.424 11.7576 6.18969 11.9919 5.80979 11.9919 5.57548 11.7576L4.24214 10.4242C4.00783 10.1899 4.00783 9.81003 4.24214 9.57572L5.57548 8.24239C5.80979 8.00807 6.18969 8.00807 6.424 8.24239z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.6666 6.5999C4.33523 6.5999 4.06641 6.33127 4.06641 5.9999C4.06641 5.66853 4.33508 5.3999 4.66645 5.3999L4.6666 6.5999Z"}}]},Jn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"autowrap-single",ref:t,icon:gi}))});Jn.displayName="AutowrapSingle";var bi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.36977 4.66364C2.67525 3.75535 3.95995 3.75535 4.26543 4.66364L6.0261 9.89866C6.13173 10.2127 5.96275 10.553 5.64867 10.6586C5.33459 10.7643 4.99434 10.5953 4.8887 10.2812L3.3176 5.60982L1.7465 10.2812C1.64086 10.5953 1.30062 10.7643 0.986532 10.6586C0.672449 10.553 0.503468 10.2127 0.609102 9.89866L2.36977 4.66364Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.6333 7.87051C1.6333 7.53914 1.90193 7.27051 2.2333 7.27051H4.52594C4.85732 7.27051 5.12594 7.53914 5.12594 7.87051 5.12594 8.20188 4.85732 8.47051 4.52594 8.47051H2.2333C1.90193 8.47051 1.6333 8.20188 1.6333 7.87051zM9.26385 10.0162C8.9281 10.853 7.74343 10.853 7.40768 10.0162L6.02978 6.58181C5.90639 6.27427 6.05568 5.92493 6.36322 5.80154 6.67076 5.67815 7.0201 5.82744 7.14349 6.13498L8.33577 9.10668 9.52805 6.13498C9.65143 5.82744 10.0008 5.67815 10.3083 5.80154 10.6159 5.92493 10.7651 6.27427 10.6418 6.58181L9.26385 10.0162zM14.8178 5.68628C15.1491 5.68628 15.4178 5.95491 15.4178 6.28628L15.4178 10.845C15.4178 11.9648 14.51 12.8726 13.3901 12.8726H12.8888C11.8122 12.8726 10.9395 11.9999 10.9395 10.9233 10.9395 10.5919 11.2081 10.3233 11.5395 10.3233 11.8708 10.3233 12.1395 10.5919 12.1395 10.9233 12.1395 11.3371 12.4749 11.6726 12.8888 11.6726H13.3901C13.8472 11.6726 14.2178 11.3021 14.2178 10.845L14.2178 6.28628C14.2178 5.95491 14.4864 5.68628 14.8178 5.68628z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M10.9395 7.82632C10.9395 6.58966 11.942 5.58716 13.1786 5.58716C14.4153 5.58716 15.4178 6.58966 15.4178 7.82632C15.4178 9.06297 14.4153 10.0655 13.1786 10.0655C11.942 10.0655 10.9395 9.06297 10.9395 7.82632ZM13.1786 6.78716C12.6047 6.78716 12.1395 7.2524 12.1395 7.82632C12.1395 8.40023 12.6047 8.86547 13.1786 8.86547C13.7525 8.86547 14.2178 8.40023 14.2178 7.82632C14.2178 7.2524 13.7525 6.78716 13.1786 6.78716Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Kn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"avg-single",ref:t,icon:bi}))});Kn.displayName="AvgSingle";var yi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_28",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.35 0.72H16.35V16.72H0.35z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_28)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.5853 14.7987L2.27159 3.485L3.12012 2.63647L14.4338 13.9502L13.5853 14.7987Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M1.69629 12.8102L1.69629 14.1743C1.69629 14.8371 2.23355 15.3743 2.89629 15.3743L4.26042 15.3743L4.26042 14.0443L3.02629 14.0443L3.02629 12.8102L1.69629 12.8102ZM4.26042 2.06128L2.89629 2.06128C2.23355 2.06128 1.69629 2.59854 1.69629 3.26128L1.69629 4.62541L3.02629 4.62541L3.02629 3.39128L4.26042 3.39128L4.26042 2.06128ZM1.69629 10.0819L3.02629 10.0819L3.02629 7.35367L1.69629 7.35367L1.69629 10.0819ZM6.98868 2.06128L6.98868 3.39128L9.71693 3.39128L9.71693 2.06128L6.98868 2.06128ZM12.4452 2.06128L12.4452 3.39128L13.6793 3.39128L13.6793 4.62541L15.0093 4.62541L15.0093 3.26128C15.0093 2.59854 14.4721 2.06128 13.8093 2.06128L12.4452 2.06128ZM15.0093 7.35367L13.6793 7.35367L13.6793 10.0819L15.0093 10.0819L15.0093 7.35367ZM15.0093 12.8102L13.6793 12.8102L13.6793 14.0443L12.4452 14.0443L12.4452 15.3743L13.8093 15.3743C14.4721 15.3743 15.0093 14.8371 15.0093 14.1743L15.0093 12.8102ZM9.71693 15.3743L9.71693 14.0443L6.98868 14.0443L6.98868 15.3743L9.71693 15.3743Z"}}]}]},er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"back-slash-single",ref:t,icon:yi}))});er.displayName="BackSlashSingle";var Si={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.65791 1.30005C3.77355 1.30005 3.05664 2.01696 3.05664 2.90132V12.8588C3.05664 13.8755 3.88086 14.6998 4.89759 14.6998H9.1016C11.2233 14.6998 12.9433 12.9798 12.9433 10.8581C12.9433 9.13925 11.8145 7.68407 10.2578 7.1934C10.8806 6.56856 11.2655 5.70659 11.2655 4.75472C11.2655 2.84676 9.71883 1.30005 7.81087 1.30005H4.65791ZM4.25664 2.90132C4.25664 2.6797 4.4363 2.50005 4.65791 2.50005H7.81087C9.05609 2.50005 10.0655 3.5095 10.0655 4.75472C10.0655 5.99993 9.05609 7.00938 7.81087 7.00938H4.25664V2.90132ZM4.25664 12.8588V8.21636H9.1016C10.5606 8.21636 11.7433 9.39909 11.7433 10.8581C11.7433 12.317 10.5606 13.4998 9.1016 13.4998H4.89759C4.5436 13.4998 4.25664 13.2128 4.25664 12.8588Z",fillRule:"evenodd",clipRule:"evenodd"}}]},tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"bold-single",ref:t,icon:Si}))});tr.displayName="BoldSingle";var Li={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.59219 1.3667C1.70853 1.3667 0.992188 2.08304 0.992188 2.9667V4.9667C0.992188 5.85036 1.70853 6.5667 2.59219 6.5667H11.2694C12.1531 6.5667 12.8694 5.85036 12.8694 4.9667V4.79985H13.8075V8.18642C13.8075 8.38777 13.6579 8.55773 13.4581 8.58321L7.10511 9.39341C6.30618 9.4953 5.70752 10.1752 5.70752 10.9806V14.0332C5.70752 14.3646 5.97615 14.6332 6.30752 14.6332C6.63889 14.6332 6.90752 14.3646 6.90752 14.0332V10.9806C6.90752 10.7792 7.05718 10.6092 7.25692 10.5838L13.6099 9.77356C14.4089 9.67168 15.0075 8.99182 15.0075 8.18642V4.19985C15.0075 3.86848 14.7389 3.59985 14.4075 3.59985H12.8694V2.9667C12.8694 2.08304 12.1531 1.3667 11.2694 1.3667H2.59219ZM2.19219 2.9667C2.19219 2.74579 2.37127 2.5667 2.59219 2.5667H11.2694C11.4903 2.5667 11.6694 2.74579 11.6694 2.9667V4.9667C11.6694 5.18761 11.4903 5.3667 11.2694 5.3667H2.59219C2.37127 5.3667 2.19219 5.18761 2.19219 4.9667V2.9667Z",fillRule:"evenodd",clipRule:"evenodd"}}]},nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"brush-single",ref:t,icon:Li}))});nr.displayName="BrushSingle";var _i={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C13.6961 1.13989 14.8601 2.30395 14.8601 3.73989V4.86989C14.8601 5.20126 14.5915 5.46989 14.2601 5.46989C13.9288 5.46989 13.6601 5.20126 13.6601 4.86989V3.73989C13.6601 2.96669 13.0333 2.33989 12.2601 2.33989H8.34014V3.20284C8.34014 3.20446 8.34014 3.20608 8.34014 3.2077V6.73989C8.34014 7.62355 7.62379 8.33989 6.74014 8.33989H2.70277C2.70112 8.3399 2.69947 8.3399 2.69781 8.33989H2.34014V12.2599C2.34014 13.0331 2.96694 13.6599 3.74014 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V11.7299C13.6601 11.3985 13.9288 11.1299 14.2601 11.1299C14.5915 11.1299 14.8601 11.3985 14.8601 11.7299V12.2599C14.8601 13.6958 13.6961 14.8599 12.2601 14.8599H3.74014C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM4.26409 7.13989H6.74014C6.96105 7.13989 7.14014 6.96081 7.14014 6.73989V4.55237L4.26409 7.13989ZM7.14014 2.93819V2.33989H6.28159L2.34044 5.614L2.34056 7.13989H2.46992L7.14014 2.93819ZM2.34032 4.05403L4.40368 2.33989H3.74029C2.96705 2.33989 2.34023 2.96676 2.34029 3.74L2.34032 4.05403Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.73877 9.00298C8.73877 9.55526 9.18649 10.003 9.73877 10.003H11.7792C12.1106 10.003 12.3792 9.73435 12.3792 9.40298C12.3792 9.07161 12.1106 8.80298 11.7792 8.80298H10.7874L12.2304 7.36157C12.7051 6.88734 13.4743 6.88754 13.9488 7.36202C14.4234 7.83667 14.4234 8.60624 13.9488 9.0809L13.2095 9.82016C12.9752 10.0545 12.9752 10.4344 13.2095 10.6687C13.4439 10.903 13.8238 10.903 14.0581 10.6687L14.7973 9.92943C15.7406 8.98614 15.7406 7.45678 14.7973 6.51349C13.8544 5.57056 12.3257 5.57015 11.3823 6.51259L9.93877 7.95459V6.96255C9.93877 6.63118 9.67014 6.36255 9.33877 6.36255C9.0074 6.36255 8.73877 6.63118 8.73877 6.96255V9.00298Z"}}]},rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-freeze-single",ref:t,icon:_i}))});rr.displayName="CancelFreezeSingle";var wi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.5939 1.13916L10.6607 1.1392C9.55628 1.13922 8.66093 2.03448 8.66077 3.13893L8.66063 4.19191C8.66059 4.52328 8.92918 4.79194 9.26055 4.79199 9.59192 4.79204 9.86059 4.52344 9.86063 4.19207L9.86077 3.13909C9.86084 2.69731 10.219 2.33921 10.6608 2.3392L12.594 2.33916C13.0358 2.33915 13.394 2.69732 13.394 3.13916L13.394 12.8612C13.394 13.303 13.0358 13.6612 12.594 13.6612H10.6606C10.2188 13.6612 9.86063 13.303 9.86063 12.8612V11.8084C9.86063 11.4771 9.592 11.2084 9.26063 11.2084 8.92926 11.2084 8.66063 11.4771 8.66063 11.8084V12.8612C8.66063 13.9658 9.55606 14.8612 10.6606 14.8612H12.594C13.6986 14.8612 14.594 13.9658 14.594 12.8612L14.594 3.13915C14.594 2.03457 13.6985 1.13914 12.5939 1.13916zM5.33888 1.13919L3.40568 1.13926C2.30114 1.13931 1.40575 2.03474 1.40576 3.13928L1.40586 12.8612C1.40587 13.9658 2.3013 14.8612 3.40586 14.8612H5.33896C6.44353 14.8612 7.33896 13.9658 7.33896 12.8612V11.8084C7.33896 11.4771 7.07033 11.2084 6.73896 11.2084 6.40759 11.2084 6.13896 11.4771 6.13896 11.8084V12.8612C6.13896 13.303 5.78079 13.6612 5.33896 13.6612H3.40586C2.96403 13.6612 2.60586 13.303 2.60586 12.8612L2.60576 3.13927C2.60576 2.69745 2.96391 2.33928 3.40573 2.33926L5.33893 2.33919C5.78077 2.33917 6.13896 2.69735 6.13896 3.13919V4.192C6.13896 4.52337 6.40759 4.792 6.73896 4.792 7.07033 4.792 7.33896 4.52337 7.33896 4.192V3.13919C7.33896 2.03459 6.44348 1.13914 5.33888 1.13919z"}},{tag:"path",attrs:{fill:"currentColor",d:"M9.20731 5.99993C8.973 6.23424 8.973 6.61414 9.20731 6.84845L10.0912 7.73235C10.2474 7.88856 10.2474 8.14182 10.0912 8.29803L9.20731 9.18192C8.973 9.41624 8.973 9.79614 9.20731 10.0305 9.44163 10.2648 9.82153 10.2648 10.0558 10.0305L10.9397 9.14654C11.5646 8.52171 11.5646 7.50867 10.9397 6.88384L10.0558 5.99993C9.82153 5.76561 9.44163 5.76561 9.20731 5.99993zM5.94379 5.99993C6.1781 5.76561 6.558 5.76561 6.79232 5.99993 7.02663 6.23424 7.02663 6.61414 6.79232 6.84845L5.90842 7.73235C5.75221 7.88856 5.75221 8.14182 5.90842 8.29803L6.79232 9.18193C7.02663 9.41624 7.02663 9.79614 6.79232 10.0305 6.558 10.2648 6.1781 10.2648 5.94379 10.0305L5.0599 9.14656C4.43506 8.52172 4.43506 7.50866 5.0599 6.88382L5.94379 5.99993z"}}]},ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-merge-single",ref:t,icon:wi}))});ir.displayName="CancelMergeSingle";var Mi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z",fillRule:"evenodd",clipRule:"evenodd"}}]},or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"check-mark-single",ref:t,icon:Mi}))});or.displayName="CheckMarkSingle";var Ei={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1161",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1161)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.36831 3.22148C5.36831 1.94497 6.40313 0.910156 7.67964 0.910156C8.95615 0.910156 9.99097 1.94497 9.99097 3.22149V6.74754H8.72649V3.22149C8.72649 2.64333 8.2578 2.17464 7.67964 2.17464C7.10148 2.17464 6.63279 2.64333 6.63279 3.22148V6.74754H5.36831V3.22148Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M5.00091 5.47314C3.33644 5.47314 1.9499 6.74914 1.81192 8.40788L1.54428 11.6254C1.38911 13.4909 2.86133 15.0906 4.73327 15.0906H13.6667C14.175 15.0906 14.5544 14.6228 14.4495 14.1255L13.0262 7.37781C12.792 6.26766 11.8125 5.47314 10.6779 5.47314H5.00091ZM10.6779 6.75314H5.00091C4.00223 6.75314 3.1703 7.51874 3.08751 8.51399L2.81988 11.7315C2.72677 12.8508 3.61011 13.8106 4.73327 13.8106H5.7695C5.26362 13.0554 5.05585 12.0527 5.31224 11.047C5.40861 10.6689 5.76242 10.4493 6.10249 10.5564C6.44256 10.6636 6.64012 11.0569 6.54374 11.4349C6.27517 12.4885 6.92898 13.6738 7.87916 13.8106H9.01412C8.50824 13.0554 8.30047 12.0527 8.55686 11.047C8.65324 10.6689 9.00704 10.4493 9.34711 10.5564C9.68719 10.6636 9.88474 11.0569 9.78837 11.4349C9.51979 12.4885 10.1736 13.6738 11.1238 13.8106H13.0749L11.7738 7.64199C11.6645 7.12392 11.2073 6.75314 10.6779 6.75314Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"clear-format",ref:t,icon:Ei}))});ar.displayName="ClearFormat";var Oi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"}}]},Z1=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"close-single",ref:t,icon:Oi}))});Z1.displayName="CloseSingle";var Hi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M.361328 7.79626C.361328 6.0459 1.78028 4.62695 3.53064 4.62695 4.18424 4.62695 4.80612 4.90867 5.23714 5.40001L5.30149 5.47337C5.52001 5.72247 5.49522 6.10156 5.24612 6.32009 4.99701 6.53861 4.61792 6.51382 4.3994 6.26471L4.33504 6.19135C4.13187 5.95975 3.83873 5.82695 3.53064 5.82695 2.44302 5.82695 1.56133 6.70864 1.56133 7.79626V8.21416C1.56133 9.29594 2.43828 10.1729 3.52006 10.1729 3.83123 10.1729 4.12678 10.0366 4.32877 9.79988L4.39405 9.72339C4.60916 9.47133 4.98788 9.44138 5.23994 9.65649 5.492 9.8716 5.52195 10.2503 5.30684 10.5024L5.24156 10.5789C4.81157 11.0827 4.18244 11.3729 3.52006 11.3729 1.77554 11.3729.361328 9.95868.361328 8.21416V7.79626zM13.2084 4.92822C13.5398 4.92822 13.8084 5.19685 13.8084 5.52822V9.97297C13.8084 10.0834 13.8979 10.173 14.0084 10.173H15.0384C15.3698 10.173 15.6384 10.4416 15.6384 10.773 15.6384 11.1043 15.3698 11.373 15.0384 11.373H14.0084C13.2352 11.373 12.6084 10.7462 12.6084 9.97297V5.52822C12.6084 5.19685 12.877 4.92822 13.2084 4.92822z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M10.9893 7.42715C10.9893 7.09578 11.2579 6.82715 11.5893 6.82715H14.9428C15.2742 6.82715 15.5428 7.09578 15.5428 7.42715 15.5428 7.75852 15.2742 8.02715 14.9428 8.02715H11.5893C11.2579 8.02715 10.9893 7.75852 10.9893 7.42715zM9.46366 8.71622C9.46366 8.18879 8.9622 7.80569 8.45332 7.94436L8.12019 8.03514C7.68503 8.15373 7.38311 8.54894 7.38311 8.99996V10.7731C7.38311 11.1044 7.11448 11.3731 6.78311 11.3731 6.45173 11.3731 6.18311 11.1044 6.18311 10.7731V8.99996C6.18311 8.0077 6.84733 7.13825 7.80469 6.87736L8.13782 6.78658C9.41001 6.43991 10.6637 7.39764 10.6637 8.71622V10.7731C10.6637 11.1044 10.395 11.3731 10.0637 11.3731 9.73229 11.3731 9.46366 11.1044 9.46366 10.7731V8.71622z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M6.79079 6.75531C7.12216 6.75528 7.39081 7.02389 7.39084 7.35526L7.39109 10.773C7.39112 11.1043 7.12251 11.373 6.79114 11.373C6.45977 11.373 6.19112 11.1044 6.19109 10.7731L6.19084 7.35535C6.19081 7.02398 6.45942 6.75533 6.79079 6.75531Z",fillRule:"evenodd",clipRule:"evenodd"}}]},sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cnt-single",ref:t,icon:Hi}))});sr.displayName="CntSingle";var Ii={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.6662 11.3337C4.4894 11.3337 4.31986 11.2634 4.19487 11.1384L1.5282 8.47175C1.40322 8.34673 1.33301 8.17719 1.33301 8.00042 1.33301 7.82364 1.40322 7.6541 1.5282 7.52908L4.19487 4.86242C4.25636 4.79874 4.32993 4.74795 4.41126 4.71302 4.4926 4.67808 4.58008 4.65969 4.6686 4.65892 4.75712 4.65815 4.8449 4.67501 4.92683 4.70853 5.00877 4.74206 5.0832 4.79156 5.1458 4.85415 5.20839 4.91675 5.25789 4.99118 5.29141 5.07311 5.32493 5.15504 5.3418 5.24283 5.34103 5.33135 5.34026 5.41987 5.32187 5.50735 5.28693 5.58869 5.25199 5.67002 5.20121 5.74358 5.13753 5.80508L2.9422 8.00042 5.13753 10.1957C5.23074 10.289 5.29421 10.4078 5.31992 10.5371 5.34563 10.6664 5.33243 10.8004 5.28198 10.9222 5.23154 11.044 5.14611 11.1481 5.0365 11.2214 4.9269 11.2946 4.79803 11.3337 4.6662 11.3337zM11.3329 11.3337C11.201 11.3337 11.0722 11.2946 10.9626 11.2214 10.853 11.1481 10.7675 11.044 10.7171 10.9222 10.6666 10.8004 10.6534 10.6664 10.6791 10.5371 10.7049 10.4078 10.7683 10.289 10.8615 10.1957L13.0569 8.00042 10.8615 5.80508C10.7979 5.74358 10.7471 5.67002 10.7121 5.58869 10.6772 5.50735 10.6588 5.41987 10.658 5.33135 10.6573 5.24283 10.6741 5.15504 10.7077 5.07311 10.7412 4.99118 10.7907 4.91675 10.8533 4.85415 10.9159 4.79156 10.9903 4.74206 11.0722 4.70853 11.1542 4.67501 11.2419 4.65815 11.3305 4.65892 11.419 4.65969 11.5065 4.67808 11.5878 4.71302 11.6691 4.74795 11.7427 4.79874 11.8042 4.86242L14.4709 7.52908C14.5958 7.6541 14.6661 7.82364 14.6661 8.00042 14.6661 8.17719 14.5958 8.34673 14.4709 8.47175L11.8042 11.1384C11.6792 11.2634 11.5097 11.3337 11.3329 11.3337zM7.33287 13.3337C7.23725 13.3339 7.14274 13.3134 7.05573 13.2738 6.96872 13.2341 6.89126 13.1762 6.82859 13.104 6.76593 13.0318 6.71953 12.947 6.69255 12.8552 6.66556 12.7635 6.65862 12.6671 6.6722 12.5724L8.00553 3.23908C8.03064 3.06404 8.12425 2.90614 8.26578 2.80012 8.40731 2.6941 8.58516 2.64864 8.7602 2.67375 8.93524 2.69886 9.09314 2.79247 9.19916 2.934 9.30518 3.07553 9.35064 3.25337 9.32553 3.42842L7.9922 12.7617C7.96944 12.9204 7.89025 13.0656 7.76916 13.1707 7.64807 13.2757 7.49318 13.3336 7.33287 13.3337z"}}]},lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"code-single",ref:t,icon:Ii}))});lr.displayName="CodeSingle";var Ti={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.59 1.51H10.46V14.459999999999999H5.59z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.34863 2.53325C1.34863 1.87051 1.88589 1.33325 2.54863 1.33325H13.482C14.1447 1.33325 14.682 1.87051 14.682 2.53325V13.4666C14.682 14.1294 14.1447 14.6666 13.482 14.6666H2.54863C1.88589 14.6666 1.34863 14.1294 1.34863 13.4666V2.53325ZM13.082 2.63325C13.2477 2.63325 13.382 2.76757 13.382 2.93325V5.09946C13.382 5.26515 13.2477 5.39946 13.082 5.39946H10.9708C10.8052 5.39946 10.6708 5.26515 10.6708 5.09946V2.93325C10.6708 2.76757 10.8052 2.63325 10.9708 2.63325H13.082ZM9.37085 2.93325C9.37085 2.76757 9.23653 2.63325 9.07085 2.63325H6.95974C6.79406 2.63325 6.65974 2.76757 6.65974 2.93325V5.09946C6.65974 5.26515 6.79406 5.39946 6.95974 5.39946L9.07085 5.39946C9.23654 5.39946 9.37085 5.26515 9.37085 5.09946V2.93325ZM5.35974 2.93325C5.35974 2.76757 5.22543 2.63325 5.05974 2.63325H2.94863C2.78295 2.63325 2.64863 2.76757 2.64863 2.93325V5.09946C2.64863 5.26515 2.78295 5.39946 2.94863 5.39946H5.05974C5.22543 5.39946 5.35974 5.26515 5.35974 5.09946V2.93325ZM2.94863 6.69946C2.78295 6.69946 2.64863 6.83378 2.64863 6.99946V9.11045C2.64863 9.27613 2.78295 9.41045 2.94863 9.41045H5.05974C5.22543 9.41045 5.35974 9.27613 5.35974 9.11045V6.99946C5.35974 6.83378 5.22543 6.69946 5.05974 6.69946H2.94863ZM2.94863 10.7104C2.78295 10.7104 2.64863 10.8448 2.64863 11.0104V13.0666C2.64863 13.2323 2.78295 13.3666 2.94863 13.3666H5.05974C5.22543 13.3666 5.35974 13.2323 5.35974 13.0666V11.0104C5.35974 10.8448 5.22543 10.7104 5.05974 10.7104H2.94863ZM6.65974 13.0666C6.65974 13.2323 6.79406 13.3666 6.95974 13.3666H9.07085C9.23653 13.3666 9.37085 13.2323 9.37085 13.0666V11.0104C9.37085 10.8448 9.23653 10.7104 9.07085 10.7104L6.95974 10.7104C6.79406 10.7104 6.65974 10.8448 6.65974 11.0104V13.0666ZM10.6708 13.0666C10.6708 13.2323 10.8052 13.3666 10.9708 13.3666H13.082C13.2477 13.3666 13.382 13.2323 13.382 13.0666V11.0104C13.382 10.8448 13.2477 10.7104 13.082 10.7104H10.9708C10.8052 10.7104 10.6708 10.8448 10.6708 11.0104V13.0666ZM13.082 9.41045C13.2477 9.41045 13.382 9.27613 13.382 9.11045V6.99946C13.382 6.83378 13.2477 6.69946 13.082 6.69946H10.9708C10.8052 6.69946 10.6708 6.83378 10.6708 6.99946V9.11045C10.6708 9.27613 10.8052 9.41045 10.9708 9.41045H13.082ZM6.95974 9.41045C6.79406 9.41045 6.65974 9.27613 6.65974 9.11045V6.99946C6.65974 6.83378 6.79406 6.69946 6.95974 6.69946L9.07085 6.69946C9.23653 6.69946 9.37085 6.83378 9.37085 6.99946V9.11045C9.37085 9.27613 9.23653 9.41045 9.07085 9.41045H6.95974Z",fillRule:"evenodd",clipRule:"evenodd"}}]},cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"conditions",ref:t,icon:Ti}))});cr.displayName="Conditions";var Di={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_273_6444",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.54 0.84H16.54V16.84H0.54z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_273_6444)"},children:[{tag:"path",attrs:{d:"M6.67742 7.37473V5.64139H9.74408V7.37473H6.67742Z"}},{tag:"path",attrs:{d:"M2.41101 2.84136C2.41101 2.03134 3.06766 1.37469 3.87768 1.37469H13.211C14.021 1.37469 14.6777 2.03135 14.6777 2.84136V14.8414C14.6777 15.6514 14.021 16.308 13.211 16.308H3.87768C3.06767 16.308 2.41101 15.6514 2.41101 14.8414V2.84136ZM5.87742 10.0414C5.43559 10.0414 5.07742 10.3996 5.07742 10.8414C5.07742 11.2832 5.43559 11.6414 5.87742 11.6414H10.5441C10.9859 11.6414 11.3441 11.2832 11.3441 10.8414C11.3441 10.3996 10.9859 10.0414 10.5441 10.0414H5.87742ZM5.07742 12.8414C5.07742 12.3996 5.43559 12.0414 5.87742 12.0414H8.21075C8.65258 12.0414 9.01075 12.3996 9.01075 12.8414C9.01075 13.2832 8.65258 13.6414 8.21075 13.6414H5.87742C5.43559 13.6414 5.07742 13.2832 5.07742 12.8414ZM5.87742 4.04139C5.43559 4.04139 5.07742 4.39957 5.07742 4.84139V8.17473C5.07742 8.61655 5.43559 8.97473 5.87742 8.97473H10.5441C10.9859 8.97473 11.3441 8.61655 11.3441 8.17473V4.84139C11.3441 4.39957 10.9859 4.04139 10.5441 4.04139H5.87742Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"content-single-16",ref:t,icon:Di}))});ur.displayName="ContentSingle16";var xi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1141",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1141)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M5.4004 2.60213C5.25792 2.60213 5.14241 2.71763 5.14241 2.86011V4.32679C5.14241 4.67752 4.85809 4.96184 4.50736 4.96184C4.15663 4.96184 3.87231 4.67752 3.87231 4.32679V2.86011C3.87231 2.01618 4.55646 1.33203 5.4004 1.33203H13.14C13.984 1.33203 14.6681 2.01618 14.6681 2.86011V10.5998C14.6681 11.4437 13.984 12.1278 13.14 12.1278H11.6568C11.3061 12.1278 11.0218 11.8435 11.0218 11.4928C11.0218 11.1421 11.3061 10.8577 11.6568 10.8577H13.14C13.2825 10.8577 13.398 10.7422 13.398 10.5998V2.86011C13.398 2.71763 13.2825 2.60213 13.14 2.60213H5.4004Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.33203 5.40015C1.33203 4.55622 2.01618 3.87207 2.86011 3.87207H10.5998C11.4437 3.87207 12.1278 4.55622 12.1278 5.40015V13.1398C12.1278 13.9837 11.4437 14.6679 10.5998 14.6679H2.86011C2.01618 14.6679 1.33203 13.9837 1.33203 13.1398V5.40015ZM2.86011 5.14217C2.71763 5.14217 2.60213 5.25767 2.60213 5.40015V13.1398C2.60213 13.2823 2.71763 13.3978 2.86011 13.3978H10.5998C10.7422 13.3978 10.8577 13.2823 10.8577 13.1398V5.40015C10.8577 5.25767 10.7422 5.14217 10.5998 5.14217H2.86011Z"}}]}]},fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"copy",ref:t,icon:xi}))});fr.displayName="Copy";var Ni={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1093",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1093)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.69148 5.44796C7.69148 5.07977 7.393 4.7813 7.02481 4.7813H3.25445C2.88626 4.7813 2.58779 5.07977 2.58779 5.44796V10.5516C2.58779 10.9198 2.88626 11.2183 3.25445 11.2183H7.02481C7.393 11.2183 7.69148 10.9198 7.69148 10.5516V5.44796ZM2.58779 3.50537C1.88311 3.50537 1.31186 4.07662 1.31186 4.7813V11.2183C1.31186 11.923 1.88311 12.4942 2.58779 12.4942H7.69148C8.39613 12.4942 8.96739 11.923 8.96739 11.2183V4.7813C8.96739 4.07662 8.39613 3.50537 7.69148 3.50537H2.58779Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.8919 10.4557C11.9671 10.4869 12.0496 10.5041 12.1361 10.5041C12.2226 10.5041 12.3051 10.4869 12.3803 10.4557C12.4555 10.4246 12.526 10.3784 12.5872 10.3172L14.5011 8.40335C14.7502 8.15421 14.7502 7.75028 14.5011 7.50114C14.2519 7.252 13.848 7.252 13.5989 7.50114L12.774 8.32595V6.13406C12.774 5.78172 12.4884 5.49609 12.1361 5.49609C11.7837 5.49609 11.4981 5.78172 11.4981 6.13406V8.32595L10.6733 7.50114C10.4241 7.252 10.0202 7.252 9.77106 7.50114C9.52192 7.75028 9.52192 8.15421 9.77106 8.40335L11.6847 10.3169M6.97288 9.84189C6.69858 10.1235 6.25386 10.1235 5.97956 9.84189L5.17866 9.01974L4.37769 9.84195C4.1034 10.1235 3.65867 10.1235 3.38437 9.84195C3.11008 9.56038 3.11008 9.10385 3.38437 8.82228L4.18534 8.00007L3.38439 7.17787C3.11009 6.8963 3.11009 6.43977 3.38439 6.1582C3.65869 5.87663 4.10341 5.87663 4.37771 6.1582L5.17866 6.9804L5.97954 6.15826C6.25384 5.87669 6.69857 5.87669 6.97287 6.15826C7.24716 6.43984 7.24716 6.89636 6.97286 7.17793L6.17198 8.00007L6.97288 8.82222C7.24718 9.10379 7.24718 9.56031 6.97288 9.84189Z"}}]}]},dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-move-down",ref:t,icon:Ni}))});dr.displayName="DeleteCellMoveDown";var Vi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_252_31",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_252_31)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.29012 10.552C8.29012 10.9202 8.5886 11.2187 8.95679 11.2187L12.7271 11.2187C13.0953 11.2187 13.3938 10.9202 13.3938 10.552L13.3938 5.44836C13.3938 5.08016 13.0953 4.7817 12.7271 4.7817L8.95678 4.7817C8.5886 4.7817 8.29012 5.08016 8.29012 5.44836L8.29012 10.552ZM13.3938 12.4946C14.0985 12.4946 14.6697 11.9234 14.6697 11.2187L14.6697 4.7817C14.6697 4.07703 14.0985 3.50576 13.3938 3.50576L8.29012 3.50576C7.58547 3.50576 7.0142 4.07703 7.0142 4.7817L7.0142 11.2187C7.0142 11.9234 7.58547 12.4946 8.29012 12.4946L13.3938 12.4946Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M1.37899 7.7562C1.34779 7.83142 1.33053 7.9139 1.33053 8.0004C1.33053 8.0869 1.34779 8.16938 1.37899 8.2446C1.41013 8.31985 1.45626 8.39034 1.51739 8.45151L3.43133 10.3654C3.68046 10.6145 4.08439 10.6145 4.33353 10.3654C4.58266 10.1163 4.58266 9.71232 4.33353 9.46318L3.50873 8.63836L5.70059 8.63836C6.05293 8.63836 6.33855 8.35273 6.33855 8.0004C6.33855 7.64806 6.05293 7.36244 5.70059 7.36244L3.50873 7.36244L4.33353 6.53762C4.58266 6.28848 4.58266 5.88455 4.33353 5.63541C4.08439 5.38627 3.68046 5.38627 3.43133 5.63541L1.51773 7.54899M9.00896 6.15858C9.28326 5.87701 9.72798 5.87701 10.0023 6.15858L10.8032 6.98073L11.6042 6.15852C11.8784 5.87695 12.3232 5.87695 12.5975 6.15852C12.8718 6.44009 12.8718 6.89661 12.5975 7.17819L11.7965 8.00041L12.5975 8.8226C12.8718 9.10417 12.8718 9.56069 12.5975 9.84227C12.3232 10.1238 11.8784 10.1238 11.6041 9.84227L10.8032 9.02007L10.0023 9.84221C9.728 10.1238 9.28327 10.1238 9.00897 9.84221C8.73468 9.56063 8.73468 9.10411 9.00898 8.82254L9.80987 8.00041L9.00896 7.17825C8.73466 6.89668 8.73466 6.44016 9.00896 6.15858Z"}}]}]},hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-left",ref:t,icon:Vi}))});hr.displayName="DeleteCellShiftLeft";var Pi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1088",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1088)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.70985 5.44796C7.70985 5.07977 7.41137 4.7813 7.04318 4.7813H3.27282C2.90463 4.7813 2.60616 5.07977 2.60616 5.44796V10.5516C2.60616 10.9198 2.90463 11.2183 3.27282 11.2183H7.04318C7.41137 11.2183 7.70985 10.9198 7.70985 10.5516V5.44796ZM2.60616 3.50537C1.90148 3.50537 1.33023 4.07662 1.33023 4.7813V11.2183C1.33023 11.923 1.90148 12.4942 2.60616 12.4942H7.70985C8.4145 12.4942 8.98576 11.923 8.98576 11.2183V4.7813C8.98576 4.07662 8.4145 3.50537 7.70985 3.50537H2.60616Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M14.621 8.2438C14.6522 8.16858 14.6695 8.0861 14.6695 7.9996C14.6695 7.9131 14.6522 7.83062 14.621 7.7554C14.5899 7.68015 14.5438 7.60966 14.4826 7.54849L12.5687 5.63461C12.3196 5.38547 11.9156 5.38547 11.6665 5.63461C11.4174 5.88375 11.4174 6.28768 11.6665 6.53682L12.4913 7.36164H10.2994C9.94711 7.36164 9.66148 7.64727 9.66148 7.9996C9.66148 8.35194 9.94711 8.63756 10.2994 8.63756H12.4913L11.6665 9.46238C11.4174 9.71152 11.4174 10.1155 11.6665 10.3646C11.9156 10.6137 12.3196 10.6137 12.5687 10.3646L14.4823 8.45101M6.99107 9.84142C6.71677 10.123 6.27205 10.123 5.99775 9.84142L5.19685 9.01927L4.39588 9.84148C4.12159 10.1231 3.67686 10.1231 3.40256 9.84148C3.12826 9.55991 3.12826 9.10339 3.40256 8.82181L4.20353 7.99959L3.40258 7.1774C3.12828 6.89583 3.12828 6.43931 3.40258 6.15773C3.67688 5.87616 4.1216 5.87616 4.3959 6.15773L5.19685 6.97993L5.99773 6.15779C6.27203 5.87622 6.71676 5.87622 6.99106 6.15779C7.26535 6.43937 7.26535 6.89589 6.99105 7.17746L6.19017 7.99959L6.99107 8.82175C7.26537 9.10332 7.26537 9.55984 6.99107 9.84142Z"}}]}]},vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-right",ref:t,icon:Pi}))});vr.displayName="DeleteCellShiftRight";var Ai={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_252_36",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z",transform:"matrix(1 0 0 -1 0 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_252_36)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.69172 10.552C7.69172 10.9202 7.39324 11.2187 7.02506 11.2187H3.2547C2.8865 11.2187 2.58803 10.9202 2.58803 10.552V5.44836C2.58803 5.08016 2.8865 4.7817 3.2547 4.7817H7.02506C7.39324 4.7817 7.69172 5.08016 7.69172 5.44836V10.552ZM2.58803 12.4946C1.88335 12.4946 1.3121 11.9234 1.3121 11.2187V4.7817C1.3121 4.07703 1.88335 3.50576 2.58803 3.50576H7.69172C8.39637 3.50576 8.96764 4.07703 8.96764 4.7817V11.2187C8.96764 11.9234 8.39637 12.4946 7.69172 12.4946H2.58803Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.892 5.54431C11.9672 5.51312 12.0497 5.49591 12.1362 5.49591C12.2227 5.49591 12.3052 5.51312 12.3804 5.54431C12.4557 5.57545 12.5261 5.62159 12.5873 5.68276L14.5012 7.59665C14.7503 7.84579 14.7503 8.24972 14.5012 8.49886C14.2521 8.748 13.8481 8.748 13.599 8.49886L12.7741 7.67405V9.86594C12.7741 10.2183 12.4885 10.5039 12.1362 10.5039C11.7839 10.5039 11.4983 10.2183 11.4983 9.86594V7.67405L10.6734 8.49886C10.4243 8.748 10.0203 8.748 9.77121 8.49886C9.52207 8.24972 9.52207 7.84579 9.77121 7.59665L11.6848 5.68305M6.97304 6.15811C6.69874 5.87653 6.25401 5.87654 5.97972 6.15811L5.17881 6.98026L4.37784 6.15805C4.10355 5.87647 3.65882 5.87647 3.38453 6.15805C3.11023 6.43962 3.11023 6.89615 3.38453 7.17772L4.18549 7.99993L3.38454 8.82213C3.11024 9.1037 3.11024 9.56023 3.38454 9.8418C3.65884 10.1234 4.10356 10.1234 4.37786 9.8418L5.17881 9.0196L5.9797 9.84174C6.254 10.1233 6.69872 10.1233 6.97302 9.84174C7.24732 9.56016 7.24732 9.10364 6.97302 8.82207L6.17213 7.99993L6.97304 7.17778C7.24734 6.89621 7.24734 6.43969 6.97304 6.15811Z"}}]}]},mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-up",ref:t,icon:Ai}))});mr.displayName="DeleteCellShiftUp";var Ri={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1098",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1098)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.9503 1.33317C12.6866 1.33317 13.2836 1.9301 13.2836 2.6665V13.3332C13.2836 14.0695 12.6866 14.6665 11.9503 14.6665H9.28359C8.54721 14.6665 7.95026 14.0696 7.95026 13.3332L7.95026 2.6665C7.95026 1.9301 8.54721 1.33317 9.28359 1.33317H11.9503ZM11.9503 2.6665V13.3332H9.28359V2.6665H11.9503Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M3.8542 6.29716C3.59385 6.03681 3.17174 6.03681 2.91139 6.29716C2.65104 6.55751 2.65104 6.97962 2.91139 7.23997L3.67157 8.00014L2.9114 8.76031C2.65105 9.02066 2.65105 9.44277 2.9114 9.70312C3.17175 9.96347 3.59387 9.96347 3.85421 9.70312L4.61437 8.94296L5.37459 9.70318C5.63494 9.96352 6.05705 9.96353 6.31741 9.70318C6.57775 9.44283 6.57775 9.02072 6.31741 8.76036L5.55718 8.00014L6.31742 7.23991C6.57777 6.97956 6.57777 6.55745 6.31742 6.2971C6.05707 6.03675 5.63496 6.03675 5.37461 6.2971L4.61437 7.05734L3.8542 6.29716Z"}}]}]},pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-column",ref:t,icon:Ri}))});pr.displayName="DeleteColumn";var ji={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1103",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1103)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14.6666 11.9502C14.6666 12.6866 14.0697 13.2835 13.3333 13.2835H2.66665C1.93027 13.2835 1.33331 12.6866 1.33331 11.9502V9.28353C1.33331 8.54715 1.93027 7.9502 2.66665 7.9502L13.3333 7.9502C14.0697 7.9502 14.6666 8.54715 14.6666 9.28353V11.9502ZM13.3333 11.9502H2.66665V9.28353H13.3333V11.9502Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M9.60134 3.85438C9.86169 3.59403 9.86169 3.17192 9.60134 2.91157C9.34099 2.65122 8.91888 2.65122 8.65853 2.91157L7.89835 3.67175L7.13819 2.91159C6.87784 2.65124 6.45573 2.65124 6.19538 2.91159C5.93503 3.17194 5.93503 3.59405 6.19538 3.8544L6.95554 4.61456L6.19532 5.37478C5.93497 5.63513 5.93497 6.05724 6.19532 6.31759C6.45567 6.57794 6.87778 6.57794 7.13813 6.31759L7.89835 5.55737L8.65859 6.3176C8.91893 6.57796 9.34105 6.57796 9.60139 6.3176C9.86175 6.05726 9.86175 5.63514 9.60139 5.3748L8.84116 4.61456L9.60134 3.85438Z"}}]}]},Cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-row",ref:t,icon:ji}))});Cr.displayName="DeleteRow";var ki={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_345",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_102_345)"},children:[{tag:"path",attrs:{d:"M3.00004 1.3335C2.07957 1.3335 1.33337 2.07969 1.33337 3.00016V13.0002C1.33337 13.9143 2.06935 14.6566 2.98108 14.6667C2.99252 14.6671 3.00399 14.6671 3.01547 14.6668H13C13.9205 14.6668 14.6667 13.9207 14.6667 13.0002V11.8335C14.6667 11.4653 14.3682 11.1668 14 11.1668C13.6319 11.1668 13.3334 11.4653 13.3334 11.8335V13.0002C13.3334 13.1843 13.1842 13.3335 13 13.3335H5.25636C5.61522 13.016 5.95119 12.6637 6.25105 12.2868C7.06748 11.2609 7.66671 9.98799 7.66671 8.66683V2.66683H13C13.1841 2.66683 13.3334 2.81606 13.3334 3.00016V4.66683C13.3334 5.03502 13.6319 5.3335 14 5.3335C14.3682 5.3335 14.6667 5.03502 14.6667 4.66683V3.00016C14.6667 2.0797 13.9205 1.3335 13 1.3335H3.00004ZM6.33337 2.66683H3.00004C2.81595 2.66683 2.66671 2.81607 2.66671 3.00016V13.0002C2.66671 13.1484 2.76345 13.274 2.89725 13.3173C3.70845 12.9437 4.55406 12.2781 5.20773 11.4566C5.90507 10.5803 6.33337 9.59203 6.33337 8.66683V2.66683Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{d:"M12.4714 5.86209C12.2111 5.60174 11.789 5.60174 11.5286 5.86209 11.2683 6.12244 11.2683 6.54455 11.5286 6.8049L12.3906 7.66683H10C9.63185 7.66683 9.33337 7.96531 9.33337 8.3335 9.33337 8.70169 9.63185 9.00016 10 9.00016H12.3906L11.5286 9.86209C11.2683 10.1224 11.2683 10.5446 11.5286 10.8049 11.789 11.0653 12.2111 11.0653 12.4714 10.8049L14.4714 8.8049C14.5935 8.68286 14.6583 8.52528 14.6659 8.36548 14.6665 8.35482 14.6667 8.34416 14.6667 8.3335L12.4714 5.86209zM12.4714 5.86209L14.4714 7.86209C14.6001 7.9907 14.6651 8.15878 14.6667 8.32734L12.4714 5.86209z"}}]}]},gr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"direct-export-single",ref:t,icon:ki}))});gr.displayName="DirectExportSingle";var $i={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.3999 2.8999V1.6C7.3999 1.26863 7.66853 1 7.9999 1C8.33127 1 8.5999 1.26863 8.5999 1.6V2.8999H10.2044C11.6655 2.8999 12.8499 4.08431 12.8499 5.54536C12.8499 5.87673 12.5813 6.14536 12.2499 6.14536C11.9185 6.14536 11.6499 5.87673 11.6499 5.54536C11.6499 4.74705 11.0028 4.0999 10.2044 4.0999H5.7384C4.97155 4.0999 4.3499 4.72155 4.3499 5.4884C4.3499 6.14439 4.80899 6.71087 5.45074 6.84677L10.7977 7.97906C11.994 8.23242 12.8499 9.28849 12.8499 10.5114C12.8499 11.941 11.691 13.0999 10.2614 13.0999H8.5999V14.4C8.5999 14.7314 8.33127 15 7.9999 15C7.66853 15 7.3999 14.7314 7.3999 14.4V13.0999H5.79536C4.33431 13.0999 3.1499 11.9155 3.1499 10.4544C3.1499 10.1231 3.41853 9.85445 3.7499 9.85445C4.08127 9.85445 4.3499 10.1231 4.3499 10.4544C4.3499 11.2527 4.99705 11.8999 5.79536 11.8999H10.2614C11.0283 11.8999 11.6499 11.2782 11.6499 10.5114C11.6499 9.85542 11.1908 9.28893 10.5491 9.15303L5.20214 8.02074C4.00575 7.76739 3.1499 6.71132 3.1499 5.4884C3.1499 4.05881 4.30881 2.8999 5.7384 2.8999H7.3999Z"}}]},br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"dollar-single",ref:t,icon:$i}))});br.displayName="DollarSingle";var Bi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1287",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1287)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M3.99992 1.33301H2.66659C1.93021 1.33301 1.33325 1.92996 1.33325 2.66634V3.99967H2.66659V2.66634L3.99992 2.66634V1.33301zM1.33325 9.33301H2.66659V6.66634H1.33325V9.33301zM6.66659 1.33301V2.66634H7.33325V5.33301H8.66659V2.66634H9.33325V1.33301H6.66659zM11.9999 1.33301V2.66634H13.3333V3.99967H14.6666V2.66634C14.6666 1.92996 14.0696 1.33301 13.3333 1.33301H11.9999zM14.6666 6.66634H13.3333V7.33301H10.6666V8.66634H13.3333V9.33301H14.6666V6.66634zM7.33325 13.333V10.6663H8.66659V13.333H7.33325zM5.33325 7.33301H2.66659V8.66634H5.33325V7.33301z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.33325 13.3333V12H2.66659L2.66659 13.3333H13.3333V12H14.6666V13.3333C14.6666 14.0697 14.0696 14.6667 13.3333 14.6667H2.66659C1.93021 14.6667 1.33325 14.0697 1.33325 13.3333Z"}}]}]},yr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"down-border",ref:t,icon:Bi}))});yr.displayName="DownBorder";var Ui={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM10.3097 5.69014C10.544 5.92445 10.544 6.30435 10.3097 6.53867L8.84843 7.9999L10.3099 9.46137C10.5442 9.69569 10.5442 10.0756 10.3099 10.3099C10.0756 10.5442 9.69569 10.5442 9.46137 10.3099L7.9999 8.84843L6.53842 10.3099C6.30411 10.5442 5.92421 10.5442 5.6899 10.3099C5.45558 10.0756 5.45558 9.69569 5.6899 9.46137L7.15137 7.9999L5.69014 6.53867C5.45583 6.30435 5.45583 5.92445 5.69014 5.69014C5.92445 5.45583 6.30435 5.45583 6.53867 5.69014L7.9999 7.15137L9.46113 5.69014C9.69544 5.45583 10.0753 5.45583 10.3097 5.69014Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"error-single",ref:t,icon:Ui}))});Sr.displayName="ErrorSingle";var Fi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.84964 5.80918C6.71946 3.63548 8.84516 2.2 11.3295 2.2C11.8324 2.2 12.3198 2.26279 12.7846 2.38065C13.1058 2.46209 13.4322 2.26773 13.5137 1.94652C13.5951 1.62532 13.4008 1.2989 13.0795 1.21746C12.5191 1.07535 11.9327 1 11.3295 1C8.17278 1 5.49724 2.96009 4.57394 5.80918H3.06582C2.73445 5.80918 2.46582 6.07781 2.46582 6.40918C2.46582 6.74055 2.73445 7.00918 3.06582 7.00918H4.29808C4.25287 7.33297 4.22949 7.66376 4.22949 8C4.22949 8.33608 4.25284 8.6667 4.29801 8.99033H3.06582C2.73445 8.99033 2.46582 9.25896 2.46582 9.59033C2.46582 9.9217 2.73445 10.1903 3.06582 10.1903H4.57378C5.49693 13.0397 8.1726 15 11.3295 15C11.9336 15 12.5209 14.9244 13.0821 14.7819C13.4033 14.7003 13.5975 14.3738 13.5159 14.0527C13.4344 13.7315 13.1079 13.5373 12.7867 13.6188C12.3213 13.737 11.8332 13.8 11.3295 13.8C8.84497 13.8 6.71914 12.3643 5.84944 10.1903H11.4291C11.7605 10.1903 12.0291 9.9217 12.0291 9.59033C12.0291 9.25896 11.7605 8.99033 11.4291 8.99033H5.51225C5.45783 8.66834 5.42949 8.33748 5.42949 8C5.42949 7.66235 5.45786 7.33133 5.51233 7.00918H11.4291C11.7605 7.00918 12.0291 6.74055 12.0291 6.40918C12.0291 6.07781 11.7605 5.80918 11.4291 5.80918H5.84964Z"}}]},Lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"euro-single",ref:t,icon:Fi}))});Lr.displayName="EuroSingle";var zi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.65005 1.05005C2.21411 1.05005 1.05005 2.21411 1.05005 3.65005V12.35C1.05005 13.7859 2.21411 14.95 3.65005 14.95H14.35C14.6813 14.95 14.95 14.6813 14.95 14.35C14.95 14.0186 14.6813 13.75 14.35 13.75H3.65005C2.87685 13.75 2.25005 13.1232 2.25005 12.35V3.65005C2.25005 2.87685 2.87685 2.25005 3.65005 2.25005H14.35C14.6813 2.25005 14.95 1.98142 14.95 1.65005C14.95 1.31868 14.6813 1.05005 14.35 1.05005H3.65005Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M11.6167 5.26668C11.851 5.03236 12.2309 5.03236 12.4652 5.26668L14.7743 7.57575C15.0086 7.81007 15.0086 8.18997 14.7743 8.42428L12.4652 10.7334C12.2309 10.9677 11.851 10.9677 11.6167 10.7334C11.3823 10.499 11.3823 10.1191 11.6167 9.88483L12.9015 8.60002H6.63784C6.30647 8.60002 6.03784 8.3314 6.03784 8.00002C6.03784 7.66865 6.30647 7.40002 6.63784 7.40002H12.9015L11.6167 6.11521C11.3823 5.88089 11.3823 5.50099 11.6167 5.26668Z"}}]},_r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"export-single",ref:t,icon:zi}))});_r.displayName="ExportSingle";var Zi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M0.571533 12.0016V4.69797C0.571533 3.37249 1.64605 2.29797 2.97153 2.29797H5.00397C5.90947 2.29797 6.77882 2.65328 7.42511 3.2875C7.84704 3.70155 8.4146 3.93351 9.00576 3.93351H11.6938C12.8536 3.93351 13.7938 4.87372 13.7938 6.03351V6.83533H13.8982C15.064 6.83533 15.8384 8.04207 15.3527 9.10188L13.6724 12.7686C13.4118 13.3374 12.8435 13.702 12.2179 13.702H2.17045C1.20587 13.702 0.515561 12.8793 0.571533 12.0016ZM1.77153 4.69797C1.77153 4.03523 2.30879 3.49797 2.97153 3.49797H5.00397C5.59513 3.49797 6.16269 3.72993 6.58462 4.14399C7.23091 4.77821 8.10026 5.13351 9.00576 5.13351H11.6938C12.1909 5.13351 12.5938 5.53646 12.5938 6.03351V6.83533H4.64069C3.6604 6.83533 2.76344 7.38669 2.32081 8.26136L1.77153 9.34679V4.69797ZM1.77153 12.1373V12.0664C1.77594 12.0179 1.78952 11.9689 1.81355 11.9214L3.39152 8.80319C3.62986 8.33222 4.11284 8.03533 4.64069 8.03533H13.8982C14.1896 8.03533 14.3832 8.33701 14.2618 8.60197L12.5815 12.2687C12.5164 12.4109 12.3743 12.502 12.2179 12.502H2.17045C1.95161 12.502 1.78924 12.3326 1.77153 12.1373Z",fillRule:"evenodd",clipRule:"evenodd"}}]},wr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"folder-single",ref:t,icon:Zi}))});wr.displayName="FolderSingle";var Wi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1198",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1198)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.68731 9.98425C5.73282 9.87144 5.77827 9.75442 5.82366 9.63323L6.3312 8.27586H9.65859L10.3523 10.1159C10.405 10.284 10.4868 10.4276 10.6023 10.5378C10.74 10.669 10.9119 10.7236 11.1014 10.714C11.3544 10.7131 11.5919 10.6379 11.6996 10.4032L11.7013 10.3992C11.7901 10.1937 11.7749 9.9634 11.6929 9.7289L8.85351 1.86337C8.79546 1.68828 8.6901 1.54881 8.54213 1.45002C8.38836 1.33863 8.1989 1.29112 7.98798 1.29112C7.78272 1.29112 7.59752 1.34014 7.4446 1.45198C7.30481 1.55223 7.20617 1.69184 7.14935 1.86343L4.324 9.70145L4.32281 9.70495C4.27002 9.86052 4.23828 10.0056 4.23828 10.1346C4.23828 10.2646 4.27116 10.3937 4.36281 10.4909C4.50256 10.6468 4.6921 10.714 4.90604 10.714C5.0369 10.714 5.15805 10.6745 5.26156 10.5916C5.3633 10.5247 5.44621 10.4332 5.51101 10.3217C5.57988 10.2177 5.63858 10.1051 5.68731 9.98425ZM6.72105 7.00152L8.00144 3.32827L9.28183 7.00152H6.72105Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"rect",attrs:{width:11.58,height:2.56,x:2.21,y:12.2,fill:"colorChannel1",rx:1.28}}]}]},Mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-color",ref:t,icon:Wi}))});Mr.displayName="FontColor";var Gi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.92494 2.4224C5.37364 1.19807 7.10523 1.19807 7.55394 2.4224L11.7284 13.8128C11.8425 14.124 11.6827 14.4686 11.3716 14.5827C11.0604 14.6967 10.7158 14.5369 10.6017 14.2258L9.02773 9.93099C9.02555 9.93101 9.02338 9.93102 9.0212 9.93102H3.74372C3.6469 9.93102 3.55544 9.90809 3.47447 9.86736L1.87714 14.2258C1.76312 14.5369 1.41845 14.6967 1.10732 14.5827C0.796186 14.4686 0.636401 14.124 0.750429 13.8128L4.92494 2.4224ZM3.89093 8.73102H8.58795L6.42722 2.83533C6.36312 2.66043 6.11576 2.66042 6.05165 2.83533L3.89093 8.73102Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M13.0504 2.47954C13.0504 2.14817 12.7818 1.87954 12.4504 1.87954C12.1191 1.87954 11.8504 2.14817 11.8504 2.47954V4.11554H10.2144C9.88305 4.11554 9.61442 4.38417 9.61442 4.71554C9.61442 5.04691 9.88305 5.31554 10.2144 5.31554H11.8504V6.95155C11.8504 7.28292 12.1191 7.55155 12.4504 7.55155C12.7818 7.55155 13.0504 7.28292 13.0504 6.95155V5.31554H14.6864C15.0178 5.31554 15.2864 5.04691 15.2864 4.71554C15.2864 4.38417 15.0178 4.11554 14.6864 4.11554H13.0504V2.47954Z"}}]},Er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-increase-single",ref:t,icon:Gi}))});Er.displayName="FontSizeIncreaseSingle";var Yi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_683",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_102_683)"},children:[{tag:"path",attrs:{d:"M3.38645 13.2745L4.16166 11.1001H9.17214L10.2121 13.993C10.2751 14.2073 10.3696 14.3774 10.4957 14.5035C10.6343 14.6421 10.8108 14.7052 11.0251 14.6926C11.3528 14.6926 11.5608 14.5917 11.649 14.39C11.7373 14.1758 11.731 13.9174 11.6301 13.6148L7.64064 2.02456C7.57761 1.82288 7.46417 1.66531 7.3003 1.55187C7.13644 1.42582 6.92215 1.36279 6.65745 1.36279C6.40535 1.36279 6.19737 1.42582 6.0335 1.55187C5.88224 1.66531 5.7751 1.82288 5.71207 2.02456L1.7415 13.577C1.60285 14.0056 1.60285 14.2955 1.7415 14.4468C1.88016 14.6106 2.07554 14.6926 2.32764 14.6926C2.46629 14.6926 2.58604 14.6484 2.68688 14.5602C2.80032 14.4846 2.89486 14.3774 2.97049 14.2388C3.05872 14.1001 3.13435 13.9489 3.19738 13.785C3.2604 13.6211 3.32343 13.451 3.38645 13.2745ZM6.67636 3.29136L8.83181 9.77662H4.5209L6.67636 3.29136Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{d:"M13.8056 3.96584C14.1806 3.96584 14.3681 3.7379 14.3681 3.28202C14.3681 3.06143 14.3203 2.89232 14.2248 2.77467C14.1292 2.64967 13.9931 2.58717 13.8167 2.58717H10.177C9.94168 2.58717 9.76889 2.646 9.6586 2.76364C9.55566 2.88129 9.50418 3.05408 9.50418 3.28202C9.50418 3.50996 9.55566 3.68276 9.6586 3.8004C9.76154 3.9107 9.93065 3.96584 10.1659 3.96584H13.8056Z"}}]}]},Or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-reduce-single-single",ref:t,icon:Yi}))});Or.displayName="FontSizeReduceSingleSingle";var qi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.14014 12.2599C1.14014 13.6958 2.3042 14.8599 3.74014 14.8599H12.2601C13.6961 14.8599 14.8601 13.6958 14.8601 12.2599V3.73989C14.8601 2.30395 13.6961 1.13989 12.2601 1.13989H3.74014C2.3042 1.13989 1.14014 2.30396 1.14014 3.73989V12.2599ZM2.68766 13.1831C2.47131 12.9367 2.34014 12.6136 2.34014 12.2599V11.9756L5.68213 8.21656V9.69237L2.68766 13.1831ZM3.85969 13.6599H5.68213V11.5354L3.85969 13.6599ZM6.88213 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V3.73989C13.6601 2.96669 13.0333 2.33989 12.2601 2.33989H6.88213V13.6599ZM5.68213 2.33989H5.10563L2.34014 5.5448V6.99379L5.68213 3.23472V2.33989ZM2.34014 8.79985V10.1696L5.68213 6.4105V5.04078L2.34014 8.79985ZM2.3405 3.70754L3.50344 2.35982C2.85328 2.47053 2.35588 3.02952 2.3405 3.70754Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-column-single",ref:t,icon:qi}))});Hr.displayName="FreezeColumnSingle";var Xi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.74015 1.13989C2.30421 1.13989 1.14015 2.30396 1.14015 3.73989V5.32866C1.14013 5.33155 1.14013 5.33444 1.14015 5.33732V12.2599C1.14015 13.6958 2.30421 14.8599 3.74015 14.8599H12.2602C13.6961 14.8599 14.8602 13.6958 14.8602 12.2599V3.73989C14.8602 2.46491 13.9424 1.40427 12.7315 1.18251C12.6397 1.14703 12.5407 1.13477 12.4436 1.14626C12.383 1.14204 12.3218 1.13989 12.2602 1.13989H3.74015ZM10.9392 2.33989H9.5695L5.81042 5.68188H7.18015L10.9392 2.33989ZM7.76344 2.33989H6.2816L2.34015 5.61425V5.68188H4.00437L7.76344 2.33989ZM2.34015 6.88188V12.2599C2.34015 13.0331 2.96695 13.6599 3.74015 13.6599H12.2602C13.0334 13.6599 13.6602 13.0331 13.6602 12.2599V6.88188H2.34015ZM13.6602 5.68188V4.48357L12.2714 5.68188H13.6602ZM13.4806 3.05349C13.3067 2.745 13.0193 2.50905 12.675 2.40238L8.98621 5.68188H10.4346L13.4806 3.05349ZM2.34015 4.05418L4.4037 2.33989H3.74015C2.96695 2.33989 2.34015 2.9667 2.34015 3.73989V4.05418Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-row-single",ref:t,icon:Xi}))});Ir.displayName="FreezeRowSingle";var Qi={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C12.3218 1.13989 12.383 1.14204 12.4436 1.14627C12.5406 1.13479 12.6397 1.14699 12.7315 1.18252C13.9424 1.4043 14.8601 2.46492 14.8601 3.73989V12.2599C14.8601 13.6905 13.7047 14.8513 12.2761 14.8598L12.2572 14.8599L3.74014 14.8599C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM12.2677 13.6599L12.2601 13.6599H7.99297L7.99256 8.10687C7.99254 7.88594 8.17163 7.70684 8.39256 7.70684H13.6572V12.2599C13.6572 13.0296 13.0361 13.6542 12.2677 13.6599ZM8.39256 6.50684H9.82177L13.4929 3.07581C13.3217 2.75868 13.0317 2.51513 12.6826 2.40475L8.25499 6.51267C8.30033 6.50881 8.34621 6.50684 8.39256 6.50684ZM13.6601 4.56202L11.5792 6.50684H13.6601V4.56202ZM6.81297 7.85057C6.79953 7.93405 6.79255 8.01969 6.79256 8.10696L6.79265 9.36615L2.72441 13.2234C2.48625 12.9724 2.34014 12.6332 2.34014 12.2599V12.0005L6.81297 7.85057ZM4.00811 13.6599H6.79297L6.79277 11.0197L4.00811 13.6599ZM9.57168 2.33989H10.9882L2.34014 10.3635V8.8534L9.57168 2.33989ZM7.77864 2.33989L2.34014 7.2384V5.61425L6.28159 2.33989H7.77864ZM4.40368 2.33989L2.34014 4.05418V3.73989C2.34014 2.9667 2.96694 2.33989 3.74014 2.33989H4.40368Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-to-selected-single",ref:t,icon:Qi}))});Tr.displayName="FreezeToSelectedSingle";var Ji={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.09318 3.78608C2.21639 2.9026 2.84219 1.3999 4.08689 1.3999H11.2079C11.7676 1.3999 12.3041 1.62335 12.6984 2.02063L13.2584 2.58488C13.4918 2.82009 13.4904 3.19998 13.2552 3.4334C13.02 3.66683 12.6401 3.66538 12.4066 3.43018L11.8467 2.86593C11.6777 2.69566 11.4477 2.5999 11.2079 2.5999H4.08689C3.90907 2.5999 3.81967 2.81458 3.94493 2.94079L8.24218 7.27082C8.66782 7.69971 8.66782 8.39164 8.24218 8.82053L3.94493 13.1506C3.81967 13.2768 3.90907 13.4915 4.08689 13.4915H11.2079C11.4477 13.4915 11.6777 13.3957 11.8467 13.2254L12.4066 12.6612C12.6401 12.426 13.02 12.4245 13.2552 12.658C13.4904 12.8914 13.4918 13.2713 13.2584 13.5065L12.6984 14.0707C12.3041 14.468 11.7676 14.6915 11.2079 14.6915H4.08689C2.84218 14.6915 2.2164 13.1888 3.09318 12.3053L7.32053 8.04568L3.09318 3.78608Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"function-single",ref:t,icon:Ji}))});Dr.displayName="FunctionSingle";var Ki={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_784",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_784)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.33325 2.60309C1.33325 1.90178 1.90178 1.33325 2.60309 1.33325H13.3967C14.0981 1.33325 14.6666 1.90178 14.6666 2.60309V13.3967C14.6666 14.0981 14.0981 14.6666 13.3967 14.6666H2.60309C1.90178 14.6666 1.33325 14.0981 1.33325 13.3967V2.60309ZM10.5396 13.3967H13.3967V10.5396H10.5396V13.3967ZM9.26976 10.5396V13.3967H6.41262V10.5396H9.26976ZM10.5396 9.26976H13.3967V6.73008H10.5396V9.26976ZM9.26976 6.73008V9.26976H6.41262V6.73008H9.26976ZM10.5396 5.46024H13.3967V2.60309H10.5396V5.46024ZM9.26976 2.60309V5.46024H6.41262V2.60309H9.26976ZM2.60309 2.60309H5.14278V5.46024H2.60309V2.60309ZM2.60309 6.73008H5.14278V9.26976H2.60309V6.73008ZM2.60309 10.5396H5.14278V13.3967H2.60309V10.5396Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},xr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"grid-single",ref:t,icon:Ki}))});xr.displayName="GridSingle";var eo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.9999 3.90137C4.66853 3.90137 4.3999 4.17 4.3999 4.50137 4.3999 4.83274 4.66853 5.10137 4.9999 5.10137H10.9999C11.3313 5.10137 11.5999 4.83274 11.5999 4.50137 11.5999 4.17 11.3313 3.90137 10.9999 3.90137H4.9999zM4.9999 10.8987C4.66853 10.8987 4.3999 11.1673 4.3999 11.4987 4.3999 11.8301 4.66853 12.0987 4.9999 12.0987H10.9999C11.3313 12.0987 11.5999 11.8301 11.5999 11.4987 11.5999 11.1673 11.3313 10.8987 10.9999 10.8987H4.9999z"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.7 2.0999H3.30005C2.85822 2.0999 2.50005 2.45807 2.50005 2.8999V13.0999C2.50005 13.5417 2.85822 13.8999 3.30005 13.8999H12.7C13.1419 13.8999 13.5 13.5417 13.5 13.0999V2.8999C13.5 2.45808 13.1419 2.0999 12.7 2.0999ZM3.30005 0.899902C2.19548 0.899902 1.30005 1.79533 1.30005 2.8999V13.0999C1.30005 14.2045 2.19548 15.0999 3.30005 15.0999H12.7C13.8046 15.0999 14.7 14.2045 14.7 13.0999V2.8999C14.7 1.79533 13.8046 0.899902 12.7 0.899902H3.30005Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"header-footer-single",ref:t,icon:eo}))});Nr.displayName="HeaderFooterSingle";var to={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1151",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1151)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.01519 4.9156C7.65059 4.9156 7.29055 4.96431 6.93757 5.05194C6.6062 5.1342 6.2709 4.93226 6.18864 4.60089C6.10638 4.26953 6.30831 3.93422 6.63968 3.85196C7.0796 3.74275 7.53991 3.6792 8.01519 3.6792C9.93752 3.6792 11.6225 4.71575 12.781 5.67605C13.3691 6.16346 13.8434 6.64946 14.171 7.01358C14.3351 7.19604 14.4633 7.34895 14.5515 7.45755C14.5956 7.51187 14.6298 7.5552 14.6535 7.58568C14.6653 7.60092 14.6745 7.61296 14.6811 7.62157L14.6889 7.63188L14.6913 7.63506L14.6921 7.63614C14.6921 7.63614 14.6927 7.63689 14.1972 8.0066C14.6927 8.37631 14.6925 8.37646 14.6925 8.37646L14.6921 8.37705L14.6913 8.37814L14.6889 8.38131L14.6811 8.39163C14.6745 8.40023 14.6653 8.41227 14.6535 8.42752C14.6298 8.458 14.5956 8.50132 14.5515 8.55565C14.4633 8.66425 14.3351 8.81715 14.171 8.99961C13.8434 9.36373 13.3691 9.84973 12.781 10.3371C12.5182 10.555 12.1284 10.5186 11.9106 10.2557C11.6927 9.99285 11.7291 9.60313 11.992 9.38524C12.5227 8.94536 12.9537 8.50406 13.2518 8.1727C13.3051 8.11347 13.354 8.05788 13.3984 8.0066C13.354 7.95531 13.3051 7.89972 13.2518 7.84049C12.9537 7.50913 12.5227 7.06783 11.992 6.62795C10.9131 5.73365 9.50709 4.9156 8.01519 4.9156ZM14.1972 8.0066L14.6925 8.37646C14.8562 8.15715 14.8563 7.8562 14.6927 7.63689L14.1972 8.0066ZM4.11981 5.75748C4.3377 6.02035 4.30123 6.41007 4.03837 6.62795C3.50769 7.06783 3.07669 7.50913 2.7786 7.84049C2.72531 7.89972 2.67639 7.95531 2.63203 8.0066C2.67639 8.05788 2.72531 8.11347 2.7786 8.17271C3.07669 8.50406 3.50769 8.94536 4.03837 9.38524C5.11729 10.2795 6.5233 11.0976 8.01519 11.0976C8.38283 11.0976 8.74582 11.0481 9.10157 10.9591C9.43279 10.8762 9.76846 11.0776 9.85131 11.4088C9.93417 11.74 9.73283 12.0757 9.40162 12.1585C8.95841 12.2694 8.49443 12.334 8.01519 12.334C6.09287 12.334 4.40788 11.2974 3.24935 10.3371C2.66132 9.84973 2.18698 9.36373 1.85941 8.99961C1.69527 8.81715 1.56704 8.66425 1.47887 8.55565C1.43476 8.50132 1.4006 8.458 1.37692 8.42752C1.36508 8.41227 1.35585 8.40023 1.3493 8.39162L1.34149 8.38131L1.3391 8.37813L1.33829 8.37705C1.33829 8.37705 1.33773 8.37631 1.8332 8.0066C1.33773 7.63689 1.33785 7.63673 1.33785 7.63673L1.3391 7.63506L1.34149 7.63188L1.3493 7.62157C1.35585 7.61296 1.36508 7.60092 1.37692 7.58568C1.4006 7.5552 1.43476 7.51187 1.47887 7.45755C1.56704 7.34895 1.69527 7.19604 1.85941 7.01358C2.18698 6.64946 2.66132 6.16346 3.24935 5.67605C3.51221 5.45816 3.90193 5.49462 4.11981 5.75748ZM1.8332 8.0066L1.33785 7.63673C1.1742 7.85604 1.17464 8.15774 1.33829 8.37705L1.8332 8.0066Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M3.8775 2.99454C3.63608 2.75312 3.24466 2.75312 3.00323 2.99454C2.76181 3.23596 2.76181 3.62739 3.00323 3.86881L6.11167 6.97725C5.94588 7.28339 5.85153 7.63423 5.85153 8.00647C5.85153 9.20144 6.82025 10.1702 8.01523 10.1702C8.38756 10.1702 8.73834 10.0758 9.04444 9.91001L12.1095 12.9751C12.3509 13.2165 12.7424 13.2165 12.9838 12.9751C13.2252 12.7337 13.2252 12.3422 12.9838 12.1008L3.8775 2.99454ZM8.0668 8.93237L7.08932 7.9549C7.0884 7.97197 7.08793 7.98916 7.08793 8.00647C7.08793 8.5186 7.5031 8.93377 8.01523 8.93377C8.03254 8.93377 8.04973 8.9333 8.0668 8.93237Z"}}]}]},Vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"hide",ref:t,icon:to}))});Vr.displayName="Hide";var no={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_248_114",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_248_114)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M1.33325 13.333V11.9997H2.66659L2.66659 13.333H3.99992V14.6663H2.66659C1.93021 14.6663 1.33325 14.0694 1.33325 13.333zM2.66659 1.33301H3.99992V2.66634L2.66659 2.66634V3.99967H1.33325V2.66634C1.33325 1.92996 1.93021 1.33301 2.66659 1.33301zM2.66659 9.33301H1.33325V6.66634H2.66659V9.33301zM6.66659 2.66634V1.33301H9.33325V2.66634H8.66496V3.9855H7.33496V2.66634H6.66659zM11.9999 2.66634V1.33301H13.3333C14.0696 1.33301 14.6666 1.92996 14.6666 2.66634V3.99967H13.3333V2.66634H11.9999zM13.3333 6.66634H14.6666V9.33301H13.3333V6.66634zM13.3333 11.9997H14.6666V13.333C14.6666 14.0694 14.0696 14.6663 13.3333 14.6663H11.9999V13.333H13.3333V11.9997zM9.33325 13.333V14.6663H6.66659V13.333H7.33496V12.0138H8.66496V13.333H9.33325zM7.33496 6.66159L7.33496 9.33768H8.66496V6.66159H7.33496z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.66687 7.33423H7.33354L2.66687 7.33431V8.66764H7.33354L8.66687 8.66756L13.3335 8.66764V7.33431L8.66687 7.33423Z"}}]}]},Pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-border",ref:t,icon:no}))});Pr.displayName="HorizontalBorder";var ro={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.91296 6.82256L5.89774 6.82237 2.83868 6.8223C1.89982 6.82228 1.13874 6.06119 1.13872 5.12234L1.13867 3.32265C1.13865 2.38375 1.89977 1.62261 2.83866 1.62261L5.90639 1.62259 5.91296 1.62256 5.91953 1.62259 10.0821 1.62258 10.0868 1.62256 10.0914 1.62258 13.1607 1.62256C14.0996 1.62256 14.8607 2.38368 14.8607 3.32256V5.12253C14.8607 6.06143 14.0996 6.82256 13.1607 6.82253L10.0975 6.82246 10.0868 6.82256 10.076 6.82246 5.92815 6.82237 5.91296 6.82256zM10.6868 5.62248L13.1607 5.62253C13.4368 5.62254 13.6607 5.39868 13.6607 5.12253V3.32256C13.6607 3.04642 13.4368 2.82256 13.1607 2.82256L10.6868 2.82257V5.62248zM9.48679 2.82258V5.62245L6.51296 5.62238V2.82259L9.48679 2.82258zM5.31296 2.8226V5.62236L2.8387 5.6223C2.56257 5.62229 2.33872 5.39845 2.33872 5.12231L2.33867 3.32262C2.33867 3.04647 2.56252 2.82261 2.83867 2.82261L5.31296 2.8226zM1.1387 10.8773L1.13878 12.6773C1.13883 13.6162 1.89994 14.3772 2.8388 14.3772L5.90638 14.3772 5.91296 14.3772 5.91955 14.3772 10.0775 14.3772C10.0806 14.3772 10.0837 14.3772 10.0868 14.3772 10.0899 14.3772 10.093 14.3772 10.0961 14.3772L13.1607 14.3772C14.0996 14.3771 14.8607 13.616 14.8607 12.6772V10.8772C14.8607 9.93836 14.0996 9.17725 13.1607 9.17725H2.8387C1.89978 9.17725 1.13865 9.93841 1.1387 10.8773zM9.48679 10.3772H6.51296V13.1772L9.48679 13.1772V10.3772zM10.6868 13.1772V10.3772H13.1607C13.4369 10.3772 13.6607 10.6011 13.6607 10.8772V12.6772C13.6607 12.9533 13.4369 13.1771 13.1607 13.1772L10.6868 13.1772zM5.31296 13.1772V10.3772H2.8387C2.56254 10.3772 2.33868 10.6011 2.3387 10.8773L2.33878 12.6773C2.33879 12.9534 2.56265 13.1772 2.83879 13.1772L5.31296 13.1772z",fillRule:"evenodd",clipRule:"evenodd"}}]},Ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-merge-single",ref:t,icon:ro}))});Ar.displayName="HorizontalMergeSingle";var io={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM3.33315 5.56641C3.00178 5.56641 2.73315 5.83504 2.73315 6.16641 2.73315 6.49778 3.00178 6.76641 3.33315 6.76641H12.6665C12.9979 6.76641 13.2665 6.49778 13.2665 6.16641 13.2665 5.83504 12.9979 5.56641 12.6665 5.56641H3.33315zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM3.33315 12.9004C3.00178 12.9004 2.73315 13.169 2.73315 13.5004 2.73315 13.8318 3.00178 14.1004 3.33315 14.1004H12.6665C12.9979 14.1004 13.2665 13.8318 13.2665 13.5004 13.2665 13.169 12.9979 12.9004 12.6665 12.9004H3.33315z"}}]},Rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontally-single",ref:t,icon:io}))});Rr.displayName="HorizontallySingle";var oo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1307",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1307)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M1.33325 11.9997V13.333C1.33325 14.0694 1.93021 14.6663 2.66659 14.6663H3.99992V13.333H2.66659L2.66659 11.9997H1.33325ZM3.99992 1.33301H2.66659C1.93021 1.33301 1.33325 1.92996 1.33325 2.66634V3.99967H2.66659V2.66634L3.99992 2.66634V1.33301ZM1.33325 9.33301H2.66659V6.66634H1.33325V9.33301ZM6.66659 1.33301V2.66634H9.33325V1.33301H6.66659ZM11.9999 1.33301V2.66634H13.3333V3.99967H14.6666V2.66634C14.6666 1.92996 14.0696 1.33301 13.3333 1.33301H11.9999ZM14.6666 6.66634H13.3333V9.33301H14.6666V6.66634ZM14.6666 11.9997H13.3333V13.333H11.9999V14.6663H13.3333C14.0696 14.6663 14.6666 14.0694 14.6666 13.333V11.9997ZM9.33325 14.6663V13.333H6.66659V14.6663H9.33325Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.66693 7.33415V2.66748H7.3336V7.33415H2.66693V8.66748H7.3336V13.3341H8.66693V8.66748H13.3336V7.33415H8.66693Z"}}]}]},jr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"inner-border",ref:t,icon:oo}))});jr.displayName="InnerBorder";var ao={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1113",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1113)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.66105 5.44796C7.66105 5.07977 7.36257 4.7813 6.99439 4.7813H3.22403C2.85583 4.7813 2.55736 5.07977 2.55736 5.44796V10.5516C2.55736 10.9198 2.85583 11.2183 3.22403 11.2183H6.99439C7.36257 11.2183 7.66105 10.9198 7.66105 10.5516V5.44796ZM2.55736 3.50537C1.85268 3.50537 1.28143 4.07662 1.28143 4.7813V11.2183C1.28143 11.923 1.85268 12.4942 2.55736 12.4942H7.66105C8.3657 12.4942 8.93697 11.923 8.93697 11.2183V4.7813C8.93697 4.07662 8.3657 3.50537 7.66105 3.50537H2.55736Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.9225 10.465C11.9977 10.4962 12.0802 10.5134 12.1667 10.5134C12.2532 10.5134 12.3357 10.4962 12.4109 10.465C12.4862 10.4338 12.5567 10.3877 12.6178 10.3265L14.5317 8.41263C14.7808 8.16349 14.7808 7.75956 14.5317 7.51042C14.2826 7.26128 13.8786 7.26128 13.6295 7.51042L12.8047 8.33523V6.14333C12.8047 5.791 12.5191 5.50537 12.1667 5.50537C11.8144 5.50537 11.5288 5.791 11.5288 6.14333V8.33523L10.7039 7.51042C10.4548 7.26128 10.0509 7.26128 9.80172 7.51042C9.55258 7.75956 9.55258 8.16349 9.80172 8.41263L11.7153 10.3262"}}]}]},kr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-down",ref:t,icon:ao}))});kr.displayName="InsertCellDown";var so={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1108",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1108)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.56614 5.44796C7.56614 5.07977 7.26766 4.7813 6.89948 4.7813H3.12912C2.76092 4.7813 2.46245 5.07977 2.46245 5.44796V10.5516C2.46245 10.9198 2.76092 11.2183 3.12912 11.2183H6.89948C7.26766 11.2183 7.56614 10.9198 7.56614 10.5516V5.44796ZM2.46245 3.50537C1.75777 3.50537 1.18652 4.07662 1.18652 4.7813V11.2183C1.18652 11.923 1.75777 12.4942 2.46245 12.4942H7.56614C8.27079 12.4942 8.84206 11.923 8.84206 11.2183V4.7813C8.84206 4.07662 8.27079 3.50537 7.56614 3.50537H2.46245Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M14.7651 8.2438C14.7963 8.16858 14.8135 8.0861 14.8135 7.9996C14.8135 7.9131 14.7963 7.83062 14.7651 7.7554C14.7339 7.68015 14.6878 7.60966 14.6266 7.54849L12.7127 5.63461C12.4636 5.38547 12.0597 5.38547 11.8105 5.63461C11.5614 5.88375 11.5614 6.28768 11.8105 6.53682L12.6353 7.36164H10.4434C10.0911 7.36164 9.80548 7.64727 9.80548 7.9996C9.80548 8.35194 10.0911 8.63756 10.4434 8.63756H12.6353L11.8105 9.46238C11.5614 9.71152 11.5614 10.1155 11.8105 10.3646C12.0597 10.6137 12.4636 10.6137 12.7127 10.3646L14.6263 8.45101"}}]}]},$r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-shift-right",ref:t,icon:so}))});$r.displayName="InsertCellShiftRight";var lo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1128",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1128)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.3333 13.4087C14.0697 13.4087 14.6666 12.8117 14.6666 12.0754L14.6666 9.40869C14.6666 8.67231 14.0697 8.07536 13.3333 8.07536L2.66663 8.07536C1.93023 8.07536 1.33329 8.67231 1.33329 9.40869L1.33329 12.0754C1.33329 12.8117 1.93023 13.4087 2.66663 13.4087L13.3333 13.4087ZM2.66663 12.0754L13.3333 12.0754L13.3333 9.40869L2.66663 9.40869L2.66663 12.0754Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.74168 2.59137C8.10987 2.59137 8.40835 2.88984 8.40835 3.25804L8.40835 4.33309L9.48348 4.33309C9.85167 4.33309 10.1501 4.63156 10.1501 4.99976C10.1501 5.36794 9.85167 5.66642 9.48348 5.66642L8.40835 5.66642L8.40835 6.74154C8.40835 7.10973 8.10987 7.4082 7.74168 7.4082C7.37349 7.4082 7.07501 7.10973 7.07501 6.74154L7.07501 5.66642L5.99998 5.66642C5.63179 5.66642 5.33331 5.36794 5.33331 4.99976C5.33331 4.63156 5.63179 4.33309 5.99998 4.33309L7.07501 4.33309L7.07501 3.25804C7.07501 2.88984 7.37349 2.59137 7.74168 2.59137Z"}}]}]},Br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-above",ref:t,icon:lo}))});Br.displayName="InsertRowAbove";var co={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1133",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1133)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.66671 2.59131C1.93033 2.59131 1.33337 3.18826 1.33337 3.92464L1.33337 6.59131C1.33337 7.32769 1.93033 7.92464 2.66671 7.92464L13.3334 7.92464C14.0698 7.92464 14.6667 7.32769 14.6667 6.59131L14.6667 3.92464C14.6667 3.18826 14.0698 2.59131 13.3334 2.59131L2.66671 2.59131ZM13.3334 3.92464L2.66671 3.92464L2.66671 6.59131L13.3334 6.59131L13.3334 3.92464Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M8.25838 13.4086C7.8902 13.4086 7.59172 13.1102 7.59172 12.742L7.59172 11.6669L6.51658 11.6669C6.14839 11.6669 5.84992 11.3684 5.84991 11.0002C5.84991 10.6321 6.14839 10.3336 6.51658 10.3336L7.59172 10.3336L7.59171 9.25846C7.59171 8.89027 7.89019 8.5918 8.25838 8.5918C8.62657 8.5918 8.92505 8.89027 8.92505 9.25846L8.92505 10.3336L10.0001 10.3336C10.3683 10.3336 10.6667 10.6321 10.6667 11.0002C10.6667 11.3684 10.3683 11.6669 10.0001 11.6669L8.92505 11.6669L8.92505 12.742C8.92505 13.1102 8.62658 13.4086 8.25838 13.4086Z"}}]}]},Ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-below",ref:t,icon:co}))});Ur.displayName="InsertRowBelow";var uo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_233_16",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_233_16)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.53337 14C2.35658 14 2.18704 13.9297 2.06203 13.8047C1.93703 13.6797 1.86681 13.5101 1.86681 13.3333C1.86681 13.1565 1.93703 12.987 2.06203 12.862C2.18704 12.7369 2.35658 12.6667 2.53337 12.6667L13.4667 12.6667C13.6435 12.6667 13.813 12.7369 13.938 12.862C14.063 12.987 14.1333 13.1565 14.1333 13.3333C14.1333 13.5101 14.063 13.6797 13.938 13.8047C13.813 13.9297 13.6435 14 13.4667 14L2.53337 14ZM2.53337 3.33333C2.35658 3.33331 2.18703 3.26306 2.06203 3.13804C1.93703 3.01301 1.86681 2.84346 1.86681 2.66667C1.86681 2.48987 1.93703 2.32032 2.06203 2.1953C2.18703 2.07028 2.35658 2.00003 2.53337 2L13.4667 2C13.6435 2.00003 13.813 2.07028 13.938 2.1953C14.063 2.32032 14.1333 2.48987 14.1333 2.66667C14.1333 2.84346 14.063 3.01301 13.938 3.13803C13.813 3.26306 13.6435 3.33331 13.4667 3.33333L2.53337 3.33333Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M11.0573 7.33327L10.1953 6.47127C10.0703 6.34627 10.0001 6.17672 10.0001 5.99994C10.0001 5.82315 10.0703 5.65361 10.1953 5.52861C10.3203 5.4036 10.4899 5.33337 10.6667 5.33337C10.8434 5.33337 11.013 5.4036 11.138 5.52861L13.138 7.5286C13.2 7.59046 13.2491 7.66393 13.2827 7.74481C13.3162 7.82569 13.3335 7.91238 13.3335 7.99994C13.3335 8.08749 13.3162 8.17419 13.2827 8.25507C13.2491 8.33594 13.2 8.40941 13.138 8.47127L11.138 10.4713C11.0761 10.5332 11.0026 10.5823 10.9217 10.6158C10.8409 10.6493 10.7542 10.6665 10.6667 10.6665C10.5791 10.6665 10.4925 10.6493 10.4116 10.6158C10.3307 10.5823 10.2572 10.5332 10.1953 10.4713C10.1334 10.4094 10.0843 10.3359 10.0508 10.255C10.0173 10.1742 10.0001 10.0875 10.0001 9.99994C10.0001 9.9124 10.0173 9.82573 10.0508 9.74486C10.0843 9.66398 10.1334 9.5905 10.1953 9.52861L11.0573 8.6666L3.33333 8.66661C3.15652 8.66661 2.98695 8.59637 2.86193 8.47134C2.7369 8.34632 2.66666 8.17675 2.66666 7.99994C2.66666 7.82313 2.7369 7.65356 2.86193 7.52853C2.98695 7.40351 3.15652 7.33327 3.33333 7.33327L11.0573 7.33327Z"}}]}]},Fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert",ref:t,icon:uo}))});Fr.displayName="Insert";var fo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9.80385 1.40005H11.9997C12.3311 1.40005 12.5997 1.66868 12.5997 2.00005C12.5997 2.33143 12.3311 2.60005 11.9997 2.60005H10.1185L7.12251 13.4001H9.33324C9.66461 13.4001 9.93324 13.6687 9.93324 14.0001C9.93324 14.3314 9.66461 14.6001 9.33324 14.6001H6.34785C6.33847 14.6003 6.32905 14.6003 6.31962 14.6001H3.9999C3.66853 14.6001 3.3999 14.3314 3.3999 14.0001C3.3999 13.6687 3.66853 13.4001 3.9999 13.4001H5.87719L8.87322 2.60005H6.66641C6.33504 2.60005 6.06641 2.33143 6.06641 2.00005C6.06641 1.66868 6.33504 1.40005 6.66641 1.40005H9.52916C9.61698 1.37929 9.71064 1.3781 9.80385 1.40005Z"}}]},zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"italic-single",ref:t,icon:fo}))});zr.displayName="ItalicSingle";var ho={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.39986 6.33339C3.39986 6.00202 3.66849 5.73339 3.99986 5.73339H4.66652C4.99789 5.73339 5.26652 6.00202 5.26652 6.33339 5.26652 6.66476 4.99789 6.93339 4.66652 6.93339H3.99986C3.66849 6.93339 3.39986 6.66476 3.39986 6.33339zM6.99986 5.73339C6.66849 5.73339 6.39986 6.00202 6.39986 6.33339 6.39986 6.66476 6.66849 6.93339 6.99986 6.93339H7.66652C7.99789 6.93339 8.26652 6.66476 8.26652 6.33339 8.26652 6.00202 7.99789 5.73339 7.66652 5.73339H6.99986zM9.06636 6.33339C9.06636 6.00202 9.33499 5.73339 9.66636 5.73339H11.9997C12.3311 5.73339 12.5997 6.00202 12.5997 6.33339 12.5997 6.66476 12.3311 6.93339 11.9997 6.93339H9.66636C9.33499 6.93339 9.06636 6.66476 9.06636 6.33339zM3.99986 8.73339C3.66849 8.73339 3.39986 9.00202 3.39986 9.33339 3.39986 9.66476 3.66849 9.93339 3.99986 9.93339H11.9999C12.3312 9.93339 12.5999 9.66476 12.5999 9.33339 12.5999 9.00202 12.3312 8.73339 11.9999 8.73339H3.99986z"}},{tag:"path",attrs:{fill:"currentColor",d:"M3.33338 1.73345L12.6667 1.7334C14.1026 1.73339 15.2667 2.89745 15.2667 4.3334V11C15.2667 12.4359 14.1027 13.6 12.6667 13.6H3.33355C1.89763 13.6 0.733583 12.4359 0.73355 11L0.733398 4.33351C0.733366 2.89755 1.89742 1.73346 3.33338 1.73345ZM12.6667 2.9334L3.33339 2.93345C2.56018 2.93346 1.93338 3.56028 1.9334 4.33348L1.93355 11C1.93357 11.7732 2.56036 12.4 3.33355 12.4H12.6667C13.4399 12.4 14.0667 11.7732 14.0667 11V4.3334C14.0667 3.5602 13.4399 2.93339 12.6667 2.9334Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"keyboard-single",ref:t,icon:ho}))});Zr.displayName="KeyboardSingle";var vo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1292",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1292)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M14.6664 3.99967L14.6664 2.66634C14.6664 1.92996 14.0694 1.33301 13.333 1.33301L11.9997 1.33301 11.9997 2.66634 13.333 2.66634 13.333 3.99967 14.6664 3.99967zM6.66638 1.33301L6.66638 2.66634 9.33305 2.66634 9.33305 1.33301 6.66638 1.33301zM14.6664 6.66634L13.333 6.66634 13.333 7.33301 10.6664 7.33301 10.6664 8.66634 13.333 8.66634 13.333 9.33301 14.6664 9.33301 14.6664 6.66634zM14.6664 11.9997L13.333 11.9997 13.333 13.333 11.9997 13.333 11.9997 14.6663 13.333 14.6663C14.0694 14.6663 14.6664 14.0694 14.6664 13.333L14.6664 11.9997zM9.33305 14.6663L9.33305 13.333 8.66638 13.333 8.66638 10.6663 7.33305 10.6663 7.33305 13.333 6.66638 13.333 6.66638 14.6663 9.33305 14.6663zM2.66638 7.33301L5.33305 7.33301 5.33305 8.66634 2.66638 8.66634 2.66638 7.33301zM8.66638 5.33301L8.66638 2.66634 7.33305 2.66634 7.33305 5.33301 8.66638 5.33301z"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.66667 1.33301L4 1.33301L4 2.66634L2.66667 2.66634L2.66667 13.333L4 13.333L4 14.6663L2.66667 14.6663C1.93029 14.6663 1.33333 14.0694 1.33333 13.333L1.33333 2.66634C1.33333 1.92996 1.93029 1.33301 2.66667 1.33301Z"}}]}]},Wr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-border",ref:t,icon:vo}))});Wr.displayName="LeftBorder";var mo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_29",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.46 0.72H16.46V16.72H0.46z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_29)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.75537 3.11333L14.8806 8.21036L14.3808 9.30132L4.52076 4.78394L9.03813 14.644L7.94718 15.1438L2.85015 4.01855L2.5419 3.87733L2.66368 3.61154L2.52319 3.30491L2.8788 3.14199L3.04172 2.78638L3.34836 2.92686L3.61415 2.80509L3.75537 3.11333Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M1.80017 12.8102L1.80017 14.1743C1.80017 14.8371 2.33743 15.3743 3.00017 15.3743L4.3643 15.3743L4.3643 14.0443L3.13017 14.0443L3.13017 12.8102L1.80017 12.8102ZM4.3643 2.06128L3.00017 2.06128C2.33743 2.06128 1.80017 2.59854 1.80017 3.26128L1.80017 4.62541L3.13017 4.62541L3.13017 3.39128L4.3643 3.39128L4.3643 2.06128ZM1.80017 10.0819L3.13017 10.0819L3.13017 7.35367L1.80017 7.35367L1.80017 10.0819ZM7.09256 2.06128L7.09256 3.39128L9.82081 3.39128L9.82081 2.06128L7.09256 2.06128ZM12.5491 2.06128L12.5491 3.39128L13.7832 3.39128L13.7832 4.62541L15.1132 4.62541L15.1132 3.26128C15.1132 2.59854 14.5759 2.06128 13.9132 2.06128L12.5491 2.06128ZM15.1132 7.35367L13.7832 7.35367L13.7832 10.0819L15.1132 10.0819L15.1132 7.35367ZM15.1132 12.8102L13.7832 12.8102L13.7832 14.0443L12.5491 14.0443L12.5491 15.3743L13.9132 15.3743C14.5759 15.3743 15.1132 14.8371 15.1132 14.1743L15.1132 12.8102ZM9.82082 15.3743L9.82082 14.0443L7.09256 14.0443L7.09256 15.3743L9.82082 15.3743Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Gr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-double-diagonal-single",ref:t,icon:mo}))});Gr.displayName="LeftDoubleDiagonalSingle";var po={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1118",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1118)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.4322 2.66683C13.4322 1.93045 12.8352 1.3335 12.0989 1.3335H9.43219C8.69581 1.3335 8.09886 1.93045 8.09886 2.66683V13.3335C8.09886 14.0699 8.69581 14.6668 9.43219 14.6668H12.0989C12.8352 14.6668 13.4322 14.0699 13.4322 13.3335V2.66683ZM12.0989 13.3335V2.66683H9.43219V13.3335H12.0989Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M2.56769 7.99978C2.56769 7.63159 2.86616 7.33311 3.23435 7.33311H4.30941V6.25798C4.30941 5.88979 4.60788 5.59131 4.97607 5.59131C5.34426 5.59131 5.64274 5.88979 5.64274 6.25798V7.33311H6.71785C7.08604 7.33311 7.38452 7.63159 7.38452 7.99978C7.38452 8.36797 7.08604 8.66644 6.71785 8.66644H5.64274V9.74148C5.64274 10.1097 5.34426 10.4081 4.97607 10.4081C4.60788 10.4081 4.30941 10.1097 4.30941 9.74148V8.66644H3.23435C2.86616 8.66644 2.56769 8.36797 2.56769 7.99978Z"}}]}]},Yr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-insert-column",ref:t,icon:po}))});Yr.displayName="LeftInsertColumn";var Co={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H11.3332C11.6646 6.76641 11.9332 6.49778 11.9332 6.16641 11.9332 5.83504 11.6646 5.56641 11.3332 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H11.3332C11.6646 14.1004 11.9332 13.8318 11.9332 13.5004 11.9332 13.169 11.6646 12.9004 11.3332 12.9004H1.9999z"}}]},qr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-justifying-single",ref:t,icon:Co}))});qr.displayName="LeftJustifyingSingle";var go={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3732 3.94019C0.82475 2.75718 2.04917 1.53276 3.23218 2.0812L10.0657 5.24921C10.3663 5.38859 10.497 5.74529 10.3576 6.04592C10.2183 6.34656 9.86157 6.47728 9.56094 6.33791L6.86664 5.08883L4.42613 7.52934C4.41111 7.54436 4.3955 7.55841 4.37936 7.5715L5.6299 10.2689C5.76928 10.5696 5.63855 10.9263 5.33791 11.0656C5.03728 11.205 4.68058 11.0743 4.54121 10.7737L1.3732 3.94019ZM2.72746 3.1699L5.70713 4.55128L3.84327 6.41514L2.46189 3.43547C2.38354 3.26647 2.55846 3.09155 2.72746 3.1699Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.56311 13.7359C4.32879 13.9702 4.32879 14.3501 4.56311 14.5844C4.79742 14.8188 5.17732 14.8188 5.41163 14.5844L13.3083 6.68776L13.3842 8.21165C13.4006 8.54261 13.6823 8.79755 14.0133 8.78108C14.3442 8.76461 14.5992 8.48295 14.5827 8.15199L14.4844 6.17786C14.4413 5.3118 13.3917 4.90732 12.7786 5.52046L4.56311 13.7359Z"}}]},Xr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-forty-five-degrees-single",ref:t,icon:go}))});Xr.displayName="LeftRotationFortyFiveDegreesSingle";var bo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.4046 13.9395C11.4046 14.2708 11.6732 14.5395 12.0046 14.5395C12.336 14.5395 12.6046 14.2708 12.6046 13.9395V2.77186L13.7358 3.79578C13.9815 4.01815 14.3609 3.99927 14.5833 3.75359C14.8057 3.50792 14.7868 3.12849 14.5411 2.90612L13.0757 1.57967C12.4328 0.997761 11.4046 1.45394 11.4046 2.32106V13.9395Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.22244 9.26836C0.998116 8.81966 0.998119 7.08807 2.22245 6.63936L9.29456 4.04749C9.60569 3.93346 9.95036 4.09325 10.0644 4.40438C10.1784 4.71551 10.0186 5.06018 9.70749 5.1742L6.91911 6.19613V9.64753C6.91911 9.66877 6.918 9.68974 6.91585 9.71041L9.70749 10.7335C10.0186 10.8476 10.1784 11.1922 10.0644 11.5033C9.95036 11.8145 9.60569 11.9743 9.29456 11.8602L2.22244 9.26836ZM2.63538 7.76608L5.71911 6.63592V9.27181L2.63538 8.14165C2.46047 8.07755 2.46047 7.83018 2.63538 7.76608Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Qr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-ninety-degrees-single",ref:t,icon:bo}))});Qr.displayName="LeftRotationNinetyDegreesSingle";var yo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_43",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.33 0.72H16.33V16.72H0.33z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_43)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.33875 3.57255L2.23657 3.79614L2.72883 4.0211L7.58275 14.6428L8.67419 14.144L5.10931 6.34311L13.5649 14.7987L14.4134 13.9502L5.96172 5.49847L13.7573 9.0609L14.2561 7.96947L3.63438 3.11555L3.40942 2.62329L3.18782 2.72456L3.09973 2.63647L2.93861 2.7976L2.73534 2.70471L2.60444 2.99116L2.31799 3.12206L2.41088 3.32533L2.2512 3.485L2.33875 3.57255Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M1.6759 12.8102L1.6759 14.1743C1.6759 14.8371 2.21316 15.3743 2.8759 15.3743L4.24003 15.3743L4.24003 14.0443L3.0059 14.0443L3.0059 12.8102L1.6759 12.8102ZM4.24003 2.06128L2.8759 2.06128C2.21316 2.06128 1.6759 2.59854 1.6759 3.26128L1.6759 4.62541L3.0059 4.62541L3.0059 3.39128L4.24003 3.39128L4.24003 2.06128ZM1.6759 10.0819L3.0059 10.0819L3.0059 7.35367L1.6759 7.35367L1.6759 10.0819ZM6.96829 2.06128L6.96829 3.39128L9.69655 3.39128L9.69655 2.06128L6.96829 2.06128ZM12.4248 2.06128L12.4248 3.39128L13.6589 3.39128L13.6589 4.62541L14.9889 4.62541L14.9889 3.26128C14.9889 2.59854 14.4517 2.06128 13.7889 2.06128L12.4248 2.06128ZM14.9889 7.35367L13.6589 7.35367L13.6589 10.0819L14.9889 10.0819L14.9889 7.35367ZM14.9889 12.8102L13.6589 12.8102L13.6589 14.0443L12.4248 14.0443L12.4248 15.3743L13.7889 15.3743C14.4517 15.3743 14.9889 14.8371 14.9889 14.1743L14.9889 12.8102ZM9.69655 15.3743L9.69655 14.0443L6.96829 14.0443L6.96829 15.3743L9.69655 15.3743Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},Jr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-tridiagonal-single",ref:t,icon:yo}))});Jr.displayName="LeftTridiagonalSingle";var So={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.96708 8.23432V11.6842C4.96708 12.0156 5.2357 12.2842 5.56708 12.2842 5.89845 12.2842 6.16708 12.0156 6.16708 11.6842V5.62199C6.16708 4.70621 4.87775 4.5088 4.60373 5.38261L3.2564 9.67905 1.90905 5.3826C1.64268 4.53318.345703 4.6789.345703 5.62021V11.6842C.345703 12.0156.614332 12.2842.945703 12.2842 1.27707 12.2842 1.5457 12.0156 1.5457 11.6842V8.23428L2.49305 11.2552C2.72747 12.0027 3.78534 12.0027 4.01975 11.2552L4.96708 8.23432zM9.59409 8.3393C9.59409 7.86618 9.18572 7.49641 8.71492 7.54323L7.64429 7.64971C7.31454 7.6825 7.02065 7.44178 6.98785 7.11203 6.95506 6.78229 7.19578 6.48839 7.52553 6.4556L8.59616 6.34912C9.77317 6.23206 10.7941 7.15649 10.7941 8.3393V11.684C10.7941 12.0154 10.5255 12.284 10.1941 12.284 9.86272 12.284 9.59409 12.0154 9.59409 11.684V8.3393z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M6.79541 10.2064C6.79541 9.10233 7.69047 8.20728 8.79458 8.20728 9.89869 8.20728 10.7938 9.10233 10.7938 10.2064 10.7938 11.3106 9.89869 12.2056 8.79458 12.2056 7.69047 12.2056 6.79541 11.3106 6.79541 10.2064zM8.79458 9.40728C8.35321 9.40728 7.99541 9.76508 7.99541 10.2064 7.99541 10.6478 8.35321 11.0056 8.79458 11.0056 9.23595 11.0056 9.59375 10.6478 9.59375 10.2064 9.59375 9.76508 9.23595 9.40728 8.79458 9.40728zM15.386 6.62139C15.6666 6.79764 15.7454 7.16426 15.562 7.44024L12.5296 12.0032C12.3462 12.2791 11.9701 12.36 11.6894 12.1837 11.4088 12.0075 11.33 11.6409 11.5135 11.3649L14.5458 6.80196C14.7292 6.52598 15.1054 6.44513 15.386 6.62139z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M11.6892 6.62139C11.4086 6.79764 11.3298 7.16426 11.5132 7.44024L14.5456 12.0032C14.729 12.2791 15.1051 12.36 15.3857 12.1837C15.6664 12.0075 15.7451 11.6409 15.5617 11.3649L12.5294 6.80196C12.3459 6.52598 11.9698 6.44513 11.6892 6.62139Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Kr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"max-single",ref:t,icon:So}))});Kr.displayName="MaxSingle";var Lo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"rect",attrs:{width:20,height:1.5,x:2,y:3.75,fill:"currentColor",rx:.75}},{tag:"rect",attrs:{width:20,height:1.5,x:2,y:11.25,fill:"currentColor",rx:.75}},{tag:"rect",attrs:{width:20,height:1.5,x:2,y:18.75,fill:"currentColor",rx:.75}}]},e3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"menu-single-24",ref:t,icon:Lo}))});e3.displayName="MenuSingle24";var _o={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.5939 1.13916L10.6607 1.1392C9.5563 1.13922 8.66094 2.03448 8.66079 3.13893L8.66064 4.19191C8.6606 4.52328 8.92919 4.79194 9.26056 4.79199 9.59193 4.79204 9.8606 4.52344 9.86064 4.19207L9.86079 3.13909C9.86085 2.69731 10.219 2.33921 10.6608 2.3392L12.594 2.33916C13.0358 2.33915 13.394 2.69732 13.394 3.13916L13.394 7.40012H10.4947L11.0464 6.84845C11.2807 6.61414 11.2807 6.23424 11.0464 5.99993 10.8121 5.76561 10.4322 5.76561 10.1979 5.99993L9.31395 6.88384C8.68914 7.50867 8.68914 8.52171 9.31396 9.14654L10.1979 10.0305C10.4322 10.2648 10.8121 10.2648 11.0464 10.0305 11.2807 9.79614 11.2807 9.41624 11.0464 9.18192L10.4646 8.60012H13.394L13.394 12.8612C13.394 13.303 13.0359 13.6612 12.594 13.6612H10.6606C10.2188 13.6612 9.86064 13.303 9.86064 12.8612V11.8084C9.86064 11.4771 9.59202 11.2084 9.26064 11.2084 8.92927 11.2084 8.66064 11.4771 8.66064 11.8084V12.8612C8.66064 13.9658 9.55607 14.8612 10.6606 14.8612H12.594C13.6986 14.8612 14.594 13.9658 14.594 12.8612L14.594 8.0066 14.594 8.00012 14.594 7.99363 14.594 3.13915C14.594 2.03457 13.6985 1.13914 12.5939 1.13916zM5.33889 1.13919L3.4057 1.13926C2.30115 1.13931 1.40576 2.03474 1.40578 3.13928L1.40582 7.99139 1.40576 8.00012 1.40582 8.00886 1.40587 12.8612C1.40588 13.9658 2.30131 14.8612 3.40587 14.8612H5.33897C6.44354 14.8612 7.33897 13.9658 7.33897 12.8612V11.8084C7.33897 11.4771 7.07034 11.2084 6.73897 11.2084 6.4076 11.2084 6.13897 11.4771 6.13897 11.8084V12.8612C6.13897 13.303 5.7808 13.6612 5.33897 13.6612H3.40587C2.96405 13.6612 2.60588 13.303 2.60587 12.8612L2.60583 8.60012H5.53538L4.95357 9.18193C4.71925 9.41624 4.71925 9.79614 4.95357 10.0305 5.18788 10.2648 5.56778 10.2648 5.8021 10.0305L6.68599 9.14656C7.31083 8.52172 7.31083 7.50866 6.68599 6.88382L5.8021 5.99993C5.56778 5.76561 5.18788 5.76561 4.95357 5.99993 4.71925 6.23424 4.71925 6.61414 4.95357 6.84845L5.50523 7.40012H2.60582L2.60578 3.13927C2.60577 2.69745 2.96393 2.33928 3.40574 2.33926L5.33894 2.33919C5.78078 2.33917 6.13897 2.69735 6.13897 3.13919V4.192C6.13897 4.52337 6.4076 4.792 6.73897 4.792 7.07034 4.792 7.33897 4.52337 7.33897 4.192V3.13919C7.33897 2.03459 6.44349 1.13914 5.33889 1.13919z"}}]},t3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"merge-all-single",ref:t,icon:_o}))});t3.displayName="MergeAllSingle";var wo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6707 7.03525C9.0573 7.03525 9.3707 6.72185 9.3707 6.33525 9.3707 5.94866 9.0573 5.63525 8.6707 5.63525 8.28411 5.63525 7.9707 5.94866 7.9707 6.33525 7.9707 6.72185 8.28411 7.03525 8.6707 7.03525zM8.671 12.2842C8.33963 12.2842 8.071 12.0156 8.071 11.6842L8.071 8.20615C8.071 7.87478 8.33962 7.60615 8.671 7.60615 9.00237 7.60615 9.271 7.87478 9.271 8.20615L9.271 11.6842C9.271 12.0156 9.00237 12.2842 8.671 12.2842zM13.5105 9.62735C13.5105 9.09992 13.0091 8.71683 12.5002 8.8555L12.1671 8.94628C11.7319 9.06486 11.43 9.46007 11.43 9.9111V11.6842C11.43 12.0156 11.1614 12.2842 10.83 12.2842 10.4986 12.2842 10.23 12.0156 10.23 11.6842V9.9111C10.23 8.91884 10.8942 8.04938 11.8516 7.7885L12.1847 7.69771C13.4569 7.35104 14.7105 8.30878 14.7105 9.62735V11.6842C14.7105 12.0156 14.4419 12.2842 14.1105 12.2842 13.7792 12.2842 13.5105 12.0156 13.5105 11.6842V9.62735z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M10.8377 7.66644C11.169 7.66642 11.4377 7.93503 11.4377 8.2664L11.438 11.6841C11.438 12.0155 11.1694 12.2841 10.838 12.2842 10.5066 12.2842 10.238 12.0156 10.238 11.6842L10.2377 8.26649C10.2377 7.93512 10.5063 7.66647 10.8377 7.66644zM5.91043 8.23408V11.684C5.91043 12.0154 6.17906 12.284 6.51043 12.284 6.84181 12.284 7.11043 12.0154 7.11043 11.684V5.62174C7.11043 4.70597 5.82111 4.50856 5.54709 5.38237L4.19976 9.67881 2.85241 5.38235C2.58604 4.53293 1.28906 4.67865 1.28906 5.61997V11.684C1.28906 12.0154 1.55769 12.284 1.88906 12.284 2.22043 12.284 2.48906 12.0154 2.48906 11.684V8.23404L3.43641 11.255C3.67082 12.0025 4.7287 12.0025 4.9631 11.255L5.91043 8.23408z",fillRule:"evenodd",clipRule:"evenodd"}}]},n3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"min-single",ref:t,icon:wo}))});n3.displayName="MinSingle";var Mo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},W1=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-down-single",ref:t,icon:Mo}))});W1.displayName="MoreDownSingle";var Eo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 3.30078C8.55228 3.30078 9 2.85307 9 2.30078 9 1.7485 8.55228 1.30078 8 1.30078 7.44772 1.30078 7 1.7485 7 2.30078 7 2.85307 7.44772 3.30078 8 3.30078zM8 9.00012C8.55228 9.00012 9 8.55241 9 8.00012 9 7.44784 8.55228 7.00012 8 7.00012 7.44772 7.00012 7 7.44784 7 8.00012 7 8.55241 7.44772 9.00012 8 9.00012zM9 13.6995C9 14.2517 8.55228 14.6995 8 14.6995 7.44772 14.6995 7 14.2517 7 13.6995 7 13.1472 7.44772 12.6995 8 12.6995 8.55228 12.6995 9 13.1472 9 13.6995z"}}]},r3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-function-single",ref:t,icon:Eo}))});r3.displayName="MoreFunctionSingle";var Oo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z",fillRule:"evenodd",clipRule:"evenodd"}}]},_t=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-single",ref:t,icon:Oo}))});_t.displayName="MoreSingle";var Ho={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.1349 1.3999C6.80353 1.3999 6.5349 1.66853 6.5349 1.9999 6.5349 2.33127 6.80353 2.5999 7.1349 2.5999H7.67993V4.55065C7.67993 4.88203 7.94856 5.15065 8.27993 5.15065 8.6113 5.15065 8.87993 4.88203 8.87993 4.55065V2.5999H9.4049C9.73627 2.5999 10.0049 2.33127 10.0049 1.9999 10.0049 1.66853 9.73627 1.3999 9.4049 1.3999H7.1349zM2.5999 7.1349C2.5999 6.80353 2.33127 6.5349 1.9999 6.5349 1.66853 6.5349 1.3999 6.80353 1.3999 7.1349V9.4049C1.3999 9.73627 1.66853 10.0049 1.9999 10.0049 2.33127 10.0049 2.5999 9.73627 2.5999 9.4049V8.86968H4.54992C4.88129 8.86968 5.14992 8.60105 5.14992 8.26968 5.14992 7.93831 4.88129 7.66968 4.54992 7.66968H2.5999V7.1349zM15.1399 7.1349C15.1399 6.80353 14.8713 6.5349 14.5399 6.5349 14.2085 6.5349 13.9399 6.80353 13.9399 7.1349V7.66968H12.0099C11.6786 7.66968 11.4099 7.93831 11.4099 8.26968 11.4099 8.60105 11.6786 8.86968 12.0099 8.86968H13.9399V9.4049C13.9399 9.73627 14.2085 10.0049 14.5399 10.0049 14.8713 10.0049 15.1399 9.73627 15.1399 9.4049V8.27463L15.1399 8.26968 15.1399 8.26472V7.1349zM7.1349 13.9399C6.80353 13.9399 6.5349 14.2085 6.5349 14.5399 6.5349 14.8713 6.80353 15.1399 7.1349 15.1399H8.24962C8.25966 15.1404 8.26977 15.1407 8.27993 15.1407 8.2901 15.1407 8.3002 15.1404 8.31024 15.1399H9.4049C9.73627 15.1399 10.0049 14.8713 10.0049 14.5399 10.0049 14.2085 9.73627 13.9399 9.4049 13.9399H8.87993V12.0107C8.87993 11.6793 8.6113 11.4107 8.27993 11.4107 7.94856 11.4107 7.67993 11.6793 7.67993 12.0107V13.9399H7.1349zM2.60991 4.00967C2.60991 3.23647 3.23671 2.60967 4.00991 2.60967H4.33991C4.67128 2.60967 4.93991 2.34104 4.93991 2.00967 4.93991 1.6783 4.67128 1.40967 4.33991 1.40967H4.00991C2.57397 1.40967 1.40991 2.57373 1.40991 4.00967V4.33967C1.40991 4.67104 1.67854 4.93967 2.00991 4.93967 2.34128 4.93967 2.60991 4.67104 2.60991 4.33967V4.00967zM12.1999 1.40967C11.8685 1.40967 11.5999 1.6783 11.5999 2.00967 11.5999 2.34104 11.8685 2.60967 12.1999 2.60967H12.5299C13.3031 2.60967 13.9299 3.23647 13.9299 4.00967V4.33967C13.9299 4.67104 14.1985 4.93967 14.5299 4.93967 14.8613 4.93967 15.1299 4.67104 15.1299 4.33967V4.00967C15.1299 2.57373 13.9659 1.40967 12.5299 1.40967H12.1999zM2.60991 12.1997C2.60991 11.8683 2.34128 11.5997 2.00991 11.5997 1.67854 11.5997 1.40991 11.8683 1.40991 12.1997V12.5297C1.40991 13.9656 2.57397 15.1297 4.00991 15.1297H4.33991C4.67128 15.1297 4.93991 14.861 4.93991 14.5297 4.93991 14.1983 4.67128 13.9297 4.33991 13.9297H4.00991C3.23671 13.9297 2.60991 13.3029 2.60991 12.5297V12.1997zM15.1299 12.1997C15.1299 11.8683 14.8613 11.5997 14.5299 11.5997 14.1985 11.5997 13.9299 11.8683 13.9299 12.1997V12.5297C13.9299 13.3029 13.3031 13.9297 12.5299 13.9297H12.1999C11.8685 13.9297 11.5999 14.1983 11.5999 14.5297 11.5999 14.861 11.8685 15.1297 12.1999 15.1297H12.5299C13.9659 15.1297 15.1299 13.9656 15.1299 12.5297V12.1997z"}}]},i3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-border-single",ref:t,icon:Ho}))});i3.displayName="NoBorderSingle";var Io={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.665 2.66496H3.33496C2.96493 2.66496 2.66496 2.96493 2.66496 3.33496V12.665C2.66496 13.035 2.96493 13.335 3.33496 13.335H12.665C13.035 13.335 13.335 13.035 13.335 12.665V3.33496C13.335 2.96493 13.035 2.66496 12.665 2.66496ZM3.33496 1.33496C2.23039 1.33496 1.33496 2.23039 1.33496 3.33496V12.665C1.33496 13.7695 2.23039 14.665 3.33496 14.665H12.665C13.7695 14.665 14.665 13.7695 14.665 12.665V3.33496C14.665 2.23039 13.7695 1.33496 12.665 1.33496H3.33496Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M13.2559 14.1963L1.64941 2.58984L2.58987 1.64939L14.1963 13.2558L13.2559 14.1963Z",fillRule:"evenodd",clipRule:"evenodd"}}]},o3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-color",ref:t,icon:Io}))});o3.displayName="NoColor";var To={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.671 2.24246C7.1197 1.01814 8.85129 1.01814 9.3 2.24246L11.8919 9.31458C12.0059 9.62571 11.8461 9.97038 11.535 10.0844C11.2238 10.1984 10.8792 10.0386 10.7652 9.72751L9.74324 6.93913H6.29183C6.2706 6.93913 6.24962 6.93802 6.22895 6.93587L5.20584 9.72751C5.09181 10.0386 4.74715 10.1984 4.43601 10.0844C4.12488 9.97038 3.96509 9.62571 4.07912 9.31458L6.671 2.24246ZM8.17328 2.6554L9.30345 5.73913H6.66755L7.79771 2.6554C7.86181 2.48049 8.10918 2.48049 8.17328 2.6554Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 11.4246C1.66853 11.4246 1.3999 11.6933 1.3999 12.0246C1.3999 12.356 1.66853 12.6246 1.9999 12.6246H13.1675L12.1436 13.7558C11.9212 14.0015 11.9401 14.3809 12.1858 14.6033C12.4314 14.8257 12.8109 14.8068 13.0332 14.5611L14.3597 13.0957C14.9416 12.4528 14.4854 11.4246 13.6183 11.4246H1.9999Z"}}]},a3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-rotation-single",ref:t,icon:To}))});a3.displayName="NoRotationSingle";var Do={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.65465 3.96697V2.9942C1.65465 2.9188 1.64353 2.86563 1.62465 2.83387 1.61052 2.81011 1.58943 2.79243 1.53852 2.79243H1.44483C1.23836 2.79243 1.07099 2.62506 1.07099 2.41859 1.07099 2.23956 1.19714 2.09152 1.36369 2.04728 1.4425 2.02634 1.51336 2.00423 1.57642 1.98104 1.65529 1.94986 1.73286 1.91381 1.80913 1.87285 1.8974 1.82544 1.99768 1.79517 2.10303 1.79517 2.41692 1.79517 2.67137 2.04962 2.67137 2.36351V4.02047C2.67137 4.12385 2.75517 4.20765 2.85855 4.20765 3.0614 4.20765 3.22585 4.3721 3.22585 4.57495V4.63332C3.22585 4.86842 3.03527 5.059 2.80018 5.059H1.41884C1.1829 5.059.993164 4.86511.993164 4.63087.993164 4.39932 1.18072 4.20765 1.41398 4.20765 1.5469 4.20765 1.65465 4.09989 1.65465 3.96697zM.949709 9.2145C1.14957 9.02907 1.33226 8.85497 1.49677 8.69321 1.6914 8.50496 1.84244 8.33306 1.95136 8.17747 2.05826 8.02476 2.10492 7.89219 2.10492 7.77781 2.10492 7.65255 2.07293 7.57986 2.02759 7.53865L2.0245 7.5357C1.97641 7.48761 1.9103 7.46013 1.81635 7.46013 1.71986 7.46013 1.6383 7.47348 1.5822 7.51611L1.58034 7.51749C1.42279 7.63092 1.19425 7.67086 1.03149 7.50811L1.02187 7.49849C.868433 7.34505.852261 7.07998 1.03819 6.93364 1.12802 6.86293 1.21897 6.8051 1.31109 6.76081 1.48788 6.67257 1.69616 6.63037 1.93278 6.63037 2.15191 6.63037 2.34929 6.67491 2.52246 6.76665 2.69563 6.85514 2.83257 6.98323 2.93172 7.14966 3.03175 7.31758 3.08022 7.51184 3.08022 7.72929 3.08022 7.91104 3.03028 8.09333 2.93429 8.27521 2.84374 8.45283 2.72797 8.62691 2.58859 8.79616 2.51109 8.88842 2.43304 8.97759 2.35442 9.06369 2.34919 9.06941 2.34388 9.07573 2.33892 9.08228 2.34542 9.08201 2.35268 9.08151 2.36075 9.08073 2.46266 9.07087 2.54985 9.06576 2.62168 9.06576H2.78662C3.02915 9.06576 3.22576 9.26237 3.22576 9.5049 3.22576 9.74742 3.02915 9.94403 2.78662 9.94403H1.23472C1.00261 9.94403.814453 9.75587.814453 9.52376.814453 9.40615.86379 9.29421.949709 9.2145zM1.2579 14.674C1.45109 14.7553 1.67487 14.7946 1.92711 14.7946 2.1451 14.7946 2.34841 14.7599 2.53619 14.6895L2.53746 14.689C2.7264 14.6148 2.88145 14.5071 2.99952 14.3647L3.00018 14.3639C3.12167 14.2138 3.18089 14.0326 3.18089 13.8252 3.18089 13.6181 3.12169 13.4411 2.99737 13.3022 2.91596 13.2112 2.81864 13.1388 2.70642 13.0846 2.80611 13.023 2.88805 12.9505 2.95017 12.8661 3.04138 12.7422 3.08609 12.5977 3.08609 12.4365 3.08609 12.1403 2.97594 11.9041 2.7521 11.7404 2.53645 11.5772 2.25212 11.5002 1.90815 11.5002 1.7136 11.5002 1.52963 11.5372 1.35712 11.6115 1.28512 11.6418 1.21426 11.6776 1.14456 11.7188.938688 11.8404.928034 12.1099 1.06649 12.2774 1.21291 12.4544 1.46028 12.4561 1.63989 12.363 1.70891 12.3286 1.78521 12.3109 1.87023 12.3109 1.96356 12.3109 2.01717 12.3317 2.04691 12.3578 2.07449 12.3821 2.09529 12.4231 2.09529 12.4981 2.09529 12.5709 2.0658 12.6284 1.99667 12.6764 1.96042 12.6999 1.8978 12.7216 1.80025 12.7355 1.61051 12.7625 1.44118 12.9145 1.44118 13.1237 1.44118 13.3319 1.60937 13.4885 1.80489 13.5068 1.87785 13.5136 1.93575 13.5234 1.97985 13.5355 2.07997 13.562 2.12905 13.596 2.14927 13.6246 2.17519 13.6614 2.19008 13.7078 2.19008 13.7684 2.19008 13.8334 2.16583 13.8754 2.1142 13.9064 2.05357 13.9428 1.96521 13.965 1.84179 13.965 1.749 13.965 1.6547 13.9433 1.55817 13.8981 1.363 13.7983 1.08846 13.8083.942801 14.01L.936366 14.0189C.827321 14.1699.821861 14.401.994678 14.5262 1.07406 14.5836 1.16225 14.633 1.2579 14.674zM5.13037 2.827C4.799 2.827 4.53037 3.09563 4.53037 3.427 4.53037 3.75837 4.799 4.027 5.13037 4.027H15.1489C15.4803 4.027 15.7489 3.75837 15.7489 3.427 15.7489 3.09563 15.4803 2.827 15.1489 2.827H5.13037zM4.53037 8.28711C4.53037 7.95574 4.799 7.68711 5.13037 7.68711H15.1489C15.4803 7.68711 15.7489 7.95574 15.7489 8.28711 15.7489 8.61848 15.4803 8.88711 15.1489 8.88711H5.13037C4.799 8.88711 4.53037 8.61848 4.53037 8.28711zM5.13037 12.5475C4.799 12.5475 4.53037 12.8161 4.53037 13.1475 4.53037 13.4788 4.799 13.7475 5.13037 13.7475H15.1489C15.4803 13.7475 15.7489 13.4788 15.7489 13.1475 15.7489 12.8161 15.4803 12.5475 15.1489 12.5475H5.13037z"}}]},s3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"order-single",ref:t,icon:Do}))});s3.displayName="OrderSingle";var xo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1302",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1302)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.3333 2.66634H2.66659V13.333H13.3333V2.66634ZM2.66659 1.33301C1.93021 1.33301 1.33325 1.92996 1.33325 2.66634V13.333C1.33325 14.0694 1.93021 14.6663 2.66659 14.6663H13.3333C14.0696 14.6663 14.6666 14.0694 14.6666 13.333V2.66634C14.6666 1.92996 14.0696 1.33301 13.3333 1.33301H2.66659Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M7.33311 2.66748V5.33415H8.66644V2.66748H7.33311zM7.33311 10.6675V13.3341H8.66644V10.6675H7.33311zM13.3331 7.33415H10.6664V8.66748H13.3331V7.33415zM5.33311 7.33415H2.66644V8.66748H5.33311V7.33415z"}}]}]},l3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"outer-border",ref:t,icon:xo}))});l3.displayName="OuterBorder";var No={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.9999.733154C8.33127.733154 8.5999 1.00178 8.5999 1.33315V5.33315C8.5999 5.66453 8.33127 5.93315 7.9999 5.93315 7.66853 5.93315 7.3999 5.66453 7.3999 5.33315V1.33315C7.3999 1.00178 7.66853.733154 7.9999.733154zM2.46621 2.73315C2.79758 2.73315 3.06621 3.00178 3.06621 3.33315V12.6665C3.06621 12.9979 2.79758 13.2665 2.46621 13.2665 2.13484 13.2665 1.86621 12.9979 1.86621 12.6665V3.33315C1.86621 3.00178 2.13484 2.73315 2.46621 2.73315zM5.3334 7.3999C5.00203 7.3999 4.7334 7.66853 4.7334 7.9999 4.7334 8.33127 5.00203 8.5999 5.3334 8.5999H12.603L11.9252 9.28591C11.6922 9.52163 11.6945 9.90152 11.9302 10.1344 12.166 10.3673 12.5458 10.3651 12.7788 10.1293L14.4577 8.43018C14.69 8.19509 14.6884 7.81641 14.4542 7.58324L12.7753 5.91184C12.5404 5.67806 12.1605 5.67891 11.9267 5.91375 11.6929 6.14859 11.6938 6.52849 11.9286 6.76228L12.5691 7.3999H5.3334zM8.5999 10.6667C8.5999 10.3353 8.33127 10.0667 7.9999 10.0667 7.66853 10.0667 7.3999 10.3353 7.3999 10.6667V14.6667C7.3999 14.998 7.66853 15.2667 7.9999 15.2667 8.33127 15.2667 8.5999 14.998 8.5999 14.6667V10.6667z"}}]},c3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"overflow-single",ref:t,icon:No}))});c3.displayName="OverflowSingle";var Vo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1204",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1204)"},children:[{tag:"rect",attrs:{width:12.62,height:2.79,x:1.69,y:12.25,fill:"colorChannel1",rx:1.4}},{tag:"path",attrs:{fill:"currentColor",d:"M7.74646 2.1642C7.34284 1.65121 6.85947 1.28205 6.38447 1.09593C5.86863 0.893787 5.15166 0.852126 4.70047 1.42917C4.29842 1.94344 4.33082 2.70249 4.57691 3.50395C4.68808 3.8661 4.86846 4.22254 5.12522 4.56617C5.13695 4.58185 5.14927 4.5968 5.16211 4.61102C5.17152 4.6214 5.18122 4.63139 5.19115 4.64096C5.20459 4.65393 5.21855 4.66618 5.23296 4.6777L3.5064 6.40422C3.26756 6.64306 3.26756 7.03033 3.5064 7.26919L7.23756 11.0004C7.47648 11.2392 7.86375 11.2392 8.1026 11.0004L12.8329 6.27001C13.0717 6.03117 13.0717 5.6439 12.8329 5.40505L9.10172 1.67387C8.86288 1.43503 8.47561 1.43503 8.23676 1.67387L7.74646 2.1642ZM7.46162 4.50638C7.47252 4.57574 7.48163 4.64652 7.4888 4.71868C7.52232 5.05481 7.82194 5.30013 8.15807 5.26661C8.4942 5.23311 8.73954 4.93345 8.70601 4.59732C8.65786 4.11463 8.54251 3.6666 8.37892 3.26169L8.66928 2.97135L11.5354 5.83753L10.6106 6.76237H4.87824L7.40802 4.2326C7.42885 4.32128 7.44684 4.41255 7.46162 4.50638ZM6.87284 3.03784C6.57441 2.62008 6.22261 2.34634 5.93815 2.23487C5.80233 2.18165 5.71528 2.17827 5.67638 2.18335C5.6725 2.18387 5.66929 2.18443 5.6666 2.18497L5.6619 2.18607C5.64166 2.21954 5.53594 2.45979 5.74626 3.1449C5.81241 3.36036 5.92262 3.58602 6.09307 3.81761L6.87284 3.03784Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.1932 11.5463C12.6454 11.5463 13.012 11.1797 13.012 10.7275C13.012 10.4475 12.6981 9.92821 12.459 9.5733C12.3299 9.38173 12.0564 9.38174 11.9274 9.57331C11.6883 9.92822 11.3744 10.4475 11.3744 10.7275C11.3744 11.1797 11.741 11.5463 12.1932 11.5463Z"}}]}]},u3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paint-bucket",ref:t,icon:Vo}))});u3.displayName="PaintBucket";var Po={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1138",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1138)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M7.74692 9.12463C7.74692 9.46018 8.01893 9.73219 8.35448 9.73219H11.4933C11.8288 9.73219 12.1009 9.46018 12.1009 9.12463 12.1009 8.78909 11.8288 8.51707 11.4933 8.51707H8.35448C8.01893 8.51707 7.74692 8.78909 7.74692 9.12463zM10.8636 10.8523C10.8636 11.1879 10.5915 11.4599 10.256 11.4599H8.35448C8.01893 11.4599 7.74692 11.1879 7.74692 10.8523 7.74692 10.5168 8.01893 10.2447 8.35448 10.2447H10.256C10.5915 10.2447 10.8636 10.5168 10.8636 10.8523z"}},{tag:"path",attrs:{fill:"currentColor",d:"M5.4791 1.98268C5.47913 1.71529 5.87912 1.49854 6.37252 1.49854C6.86593 1.49854 7.26592 1.71529 7.26595 1.98268H7.62187C8.22277 1.98268 8.72459 2.39534 8.84412 2.9452H9.39563C10.0856 2.9452 10.6449 3.48923 10.6449 4.16032V6.00569H12.1261C13.161 6.00569 14 6.82174 14 7.82838V11.334C14 11.8174 13.8025 12.281 13.4511 12.6228L12.0693 13.9647C11.7179 14.3065 11.2412 14.4985 10.7442 14.4985H7.91116C7.05024 14.4985 6.32492 14.0431 6.10535 13.2737H3.34925C2.6593 13.2737 2.09998 12.7297 2.09998 12.0586V4.16032C2.09998 3.48923 2.6593 2.9452 3.34925 2.9452H3.90107C4.0206 2.39534 4.52241 1.98268 5.12332 1.98268H5.4791ZM3.97249 4.16032H3.24925L3.24925 12.0586H6.03725V7.82838C6.03725 6.82174 6.87623 6.00569 7.91116 6.00569H9.49563V4.16032H8.7727C8.58289 4.59611 8.13909 4.90183 7.62187 4.90183H5.12332C4.6061 4.90183 4.1623 4.59611 3.97249 4.16032ZM5.12332 2.89403H7.62187C7.79436 2.89403 7.93419 3.03003 7.93419 3.19781V3.68671C7.93419 3.85448 7.79436 3.99049 7.62187 3.99049H5.12332C4.95083 3.99049 4.811 3.85448 4.811 3.68671V3.19781C4.811 3.03003 4.95083 2.89403 5.12332 2.89403ZM7.91116 7.11157C7.56618 7.11157 7.28652 7.38359 7.28652 7.71913V12.7851C7.28652 13.1206 7.56618 13.3927 7.91116 13.3927H10.7442C10.8401 13.3927 10.9337 13.3712 11.0182 13.3311C11.1373 13.2746 11.1859 13.1423 11.1859 13.0134V12.0066C11.1859 11.8724 11.2978 11.7636 11.4358 11.7636H12.4709C12.6034 11.7636 12.7394 11.7163 12.7975 11.6004C12.8388 11.5182 12.8608 11.4272 12.8608 11.334V7.71913C12.8608 7.38359 12.5811 7.11157 12.2362 7.11157H7.91116Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},f3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paste-special",ref:t,icon:Po}))});f3.displayName="PasteSpecial";var Ao={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_561_2",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_561_2)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{d:"M4.91876 2.65039C3.66601 2.65039 2.65045 3.66595 2.65045 4.9187 2.65045 6.17146 3.66601 7.18702 4.91876 7.18702 6.17152 7.18702 7.18708 6.17146 7.18708 4.9187 7.18708 3.66595 6.17152 2.65039 4.91876 2.65039zM3.94663 4.9187C3.94663 4.38181 4.38187 3.94657 4.91876 3.94657 5.45566 3.94657 5.8909 4.38181 5.8909 4.9187 5.8909 5.4556 5.45566 5.89084 4.91876 5.89084 4.38187 5.89084 3.94663 5.4556 3.94663 4.9187zM11.0812 8.81299C9.82842 8.81299 8.81286 9.82855 8.81286 11.0813 8.81286 12.3341 9.82842 13.3496 11.0812 13.3496 12.3339 13.3496 13.3495 12.3341 13.3495 11.0813 13.3495 9.82855 12.3339 8.81299 11.0812 8.81299zM10.109 11.0813C10.109 10.5444 10.5443 10.1092 11.0812 10.1092 11.6181 10.1092 12.0533 10.5444 12.0533 11.0813 12.0533 11.6182 11.6181 12.0534 11.0812 12.0534 10.5443 12.0534 10.109 11.6182 10.109 11.0813zM13.1597 2.84021C13.4128 3.09331 13.4128 3.50365 13.1597 3.75675L3.7568 13.1596C3.5037 13.4127 3.09336 13.4127 2.84026 13.1596 2.58717 12.9065 2.58717 12.4962 2.84026 12.2431L12.2431 2.84021C12.4962 2.58712 12.9066 2.58712 13.1597 2.84021z"}}]}]},d3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"percent-single",ref:t,icon:Ao}))});d3.displayName="PercentSingle";var Ro={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.35928 2.57764C3.61338 1.77872 4.36128 1.19995 5.24437 1.19995C6.12746 1.19995 6.87537 1.77872 7.12947 2.57764H11.7885C13.4928 2.57764 14.7999 3.8461 14.7997 5.5888C14.7995 7.33129 13.4929 8.59984 11.7885 8.59984H6.63121L6.6224 8.5999H4.21143C3.16019 8.5999 2.4001 9.34071 2.4002 10.4109C2.40029 11.4814 3.16029 12.2221 4.21143 12.2221H8.87045C9.12449 11.4231 9.87245 10.8442 10.7556 10.8442C11.6388 10.8442 12.3868 11.4231 12.6408 12.2222H14.1999C14.5312 12.2222 14.7999 12.4908 14.7999 12.8222C14.7999 13.1535 14.5312 13.4222 14.1999 13.4222H12.6407C12.3866 14.221 11.6387 14.7998 10.7556 14.7998C9.87252 14.7998 9.12461 14.221 8.87051 13.4221H4.21143C2.50701 13.4221 1.20035 12.1536 1.2002 10.4111C1.20004 8.66836 2.50712 7.3999 4.21143 7.3999H6.61326L6.62208 7.39984H11.7885C12.8396 7.39984 13.5996 6.65912 13.5997 5.58868C13.5998 4.51844 12.8397 3.77764 11.7885 3.77764H7.12952C6.87548 4.57664 6.12753 5.1555 5.24437 5.1555C4.36122 5.1555 3.61327 4.57664 3.35922 3.77764H1.8002C1.46882 3.77764 1.2002 3.50901 1.2002 3.17764C1.2002 2.84627 1.46882 2.57764 1.8002 2.57764H3.35928ZM4.46671 3.16449C4.47377 2.74105 4.81924 2.39995 5.24437 2.39995C5.67026 2.39995 6.0162 2.74226 6.02207 3.16675L6.02197 3.17764L6.02207 3.1886C6.01625 3.61314 5.67029 3.95549 5.24437 3.95549C4.81921 3.95549 4.47372 3.61435 4.46671 3.19085L4.46685 3.17764L4.46671 3.16449ZM9.97788 12.8307C9.98254 13.2562 10.329 13.5998 10.7556 13.5998C11.1815 13.5998 11.5274 13.2575 11.5333 12.8331C11.5332 12.8294 11.5332 12.8258 11.5332 12.8222C11.5332 12.8185 11.5332 12.8148 11.5333 12.8111C11.5275 12.3866 11.1815 12.0442 10.7556 12.0442C10.3289 12.0442 9.98248 12.3878 9.97788 12.8134C9.97792 12.8163 9.97794 12.8192 9.97794 12.8221C9.97794 12.825 9.97792 12.8278 9.97788 12.8307Z",fillRule:"evenodd",clipRule:"evenodd"}}]},h3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"piping-single",ref:t,icon:Ro}))});h3.displayName="PipingSingle";var jo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.273 2.72206C11.0214 2.50641 10.9922 2.12763 11.2079 1.87603C11.4235 1.62444 11.8023 1.59531 12.0539 1.81097L14.3833 3.80761C14.5134 3.91733 14.5962 4.08137 14.5967 4.26477L14.5967 4.2665C14.5967 4.41745 14.541 4.55538 14.4489 4.66083C14.44 4.67109 14.4307 4.68108 14.421 4.69077L12.0877 7.02411C11.8534 7.25842 11.4735 7.25843 11.2392 7.02412C11.0049 6.78981 11.0049 6.40991 11.2392 6.17559L12.5482 4.8665H6.63324C4.40569 4.8665 2.5999 6.67229 2.5999 8.89984C2.5999 11.1274 4.40569 12.9332 6.63324 12.9332H11.9972C12.3286 12.9332 12.5972 13.2018 12.5972 13.5332C12.5972 13.8645 12.3286 14.1332 11.9972 14.1332H6.63324C3.74295 14.1332 1.3999 11.7901 1.3999 8.89984C1.3999 6.00955 3.74295 3.6665 6.63324 3.6665H12.3748L11.273 2.72206Z"}}]},v3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"redo-single",ref:t,icon:jo}))});v3.displayName="RedoSingle";var ko={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.33307 1.3916C5.14145 1.3916 4.06641 2.27555 4.06641 3.49366V6.49777C4.06641 7.71586 5.14145 8.59982 6.33307 8.59982C7.52469 8.59982 8.59974 7.71586 8.59974 6.49777V3.49366C8.59974 2.27555 7.52469 1.3916 6.33307 1.3916ZM5.26641 3.49366C5.26641 3.05264 5.68376 2.5916 6.33307 2.5916C6.98239 2.5916 7.39974 3.05264 7.39974 3.49366V6.49777C7.39974 6.93878 6.98239 7.39982 6.33307 7.39982C5.68376 7.39982 5.26641 6.93878 5.26641 6.49777V3.49366Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.90913 9.5417C8.14345 9.30739 8.52335 9.30739 8.75766 9.5417 8.99198 9.77602 8.99198 10.1559 8.75766 10.3902L7.78193 11.366H13.9999C14.3313 11.366 14.5999 11.6346 14.5999 11.966 14.5999 12.2973 14.3313 12.566 13.9999 12.566H7.78193L8.75766 13.5417C8.99198 13.776 8.99198 14.1559 8.75766 14.3902 8.52335 14.6245 8.14345 14.6245 7.90913 14.3902L5.91739 12.3985C5.80388 12.2893 5.73324 12.1359 5.73324 11.966 5.73324 11.796 5.80388 11.6426 5.91739 11.5334L7.90913 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z"}}]},m3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce-digits-single",ref:t,icon:ko}))});m3.displayName="ReduceDigitsSingle";var $o={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_233_11",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_233_11)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.53331 14C2.35652 14 2.18697 13.9297 2.06197 13.8047C1.93697 13.6797 1.86675 13.5101 1.86675 13.3333C1.86675 13.1565 1.93697 12.987 2.06197 12.862C2.18697 12.7369 2.35652 12.6667 2.53331 12.6667L13.4666 12.6667C13.6434 12.6667 13.813 12.7369 13.938 12.862C14.063 12.987 14.1332 13.1565 14.1332 13.3333C14.1332 13.5101 14.063 13.6797 13.938 13.8047C13.813 13.9297 13.6434 14 13.4666 14L2.53331 14ZM2.53331 3.33333C2.35652 3.33331 2.18697 3.26306 2.06197 3.13804C1.93697 3.01301 1.86675 2.84346 1.86675 2.66667C1.86675 2.48987 1.93697 2.32032 2.06197 2.1953C2.18697 2.07028 2.35652 2.00003 2.53331 2L13.4666 2C13.6434 2.00003 13.813 2.07028 13.938 2.1953C14.063 2.32032 14.1332 2.48987 14.1332 2.66667C14.1332 2.84346 14.063 3.01301 13.938 3.13803C13.813 3.26306 13.6434 3.33331 13.4666 3.33333L2.53331 3.33333Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M10.8142 10.8141C10.5588 11.0695 10.1447 11.0695 9.88929 10.8141L7.97868 8.90354L6.14021 10.742C5.89652 10.9857 5.50142 10.9857 5.25774 10.742C5.01405 10.4983 5.01405 10.1032 5.25774 9.85955L7.09621 8.02107L5.18561 6.11047C4.93021 5.85507 4.93021 5.44098 5.18561 5.18557C5.44101 4.93017 5.8551 4.93017 6.11051 5.18557L8.02111 7.09618L9.85959 5.2577C10.1033 5.01401 10.4984 5.01401 10.7421 5.2577C10.9857 5.50139 10.9857 5.89648 10.7421 6.14017L8.90358 7.97865L10.8142 9.88925C11.0696 10.1447 11.0696 10.5587 10.8142 10.8141Z"}}]}]},p3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce",ref:t,icon:$o}))});p3.displayName="Reduce";var Bo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1297",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1297)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M1.33325 3.99992L1.33325 2.66659C1.33325 1.93021 1.93021 1.33325 2.66659 1.33325L3.99992 1.33325 3.99992 2.66659 2.66659 2.66659 2.66659 3.99992 1.33325 3.99992zM9.33325 1.33325L9.33325 2.66658 6.66659 2.66659 6.66659 1.33325 9.33325 1.33325zM1.33325 6.66659L2.66659 6.66659 2.66659 7.33325 5.33325 7.33325 5.33325 8.66659 2.66659 8.66659 2.66659 9.33325 1.33325 9.33325 1.33325 6.66659zM1.33325 11.9999L2.66659 11.9999 2.66659 13.3333 3.99992 13.3333 3.99992 14.6666 2.66659 14.6666C1.93021 14.6666 1.33325 14.0696 1.33325 13.3333L1.33325 11.9999zM6.66659 14.6666L6.66659 13.3333 7.33325 13.3333 7.33325 10.6666 8.66659 10.6666 8.66659 13.3333 9.33325 13.3333 9.33325 14.6666 6.66659 14.6666zM13.3333 7.33325L10.6666 7.33325 10.6666 8.66659 13.3333 8.66658 13.3333 7.33325zM7.33325 5.33325L7.33325 2.66659 8.66659 2.66659 8.66659 5.33325 7.33325 5.33325z"}},{tag:"path",attrs:{fill:"currentColor",d:"M13.3333 1.33325L12 1.33325L12 2.66659L13.3333 2.66659L13.3333 13.3333L12 13.3333L12 14.6666L13.3333 14.6666C14.0697 14.6666 14.6667 14.0696 14.6667 13.3333L14.6667 2.66659C14.6667 1.93021 14.0697 1.33325 13.3333 1.33325Z"}}]}]},C3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-border",ref:t,icon:Bo}))});C3.displayName="RightBorder";var Uo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_42",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.54 0.48H16.54V16.48H0.54z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_42)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M13.2368 2.87507L2.11162 7.97208L2.61144 9.06304L12.4714 4.54568L7.95409 14.4057L9.04505 14.9055L14.1421 3.78029L14.4503 3.63905L14.3286 3.37322L14.469 3.0666L14.1134 2.90369L13.9505 2.5481L13.6439 2.68857L13.3781 2.56678L13.2368 2.87507Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M4.44524 1.82495L3.08111 1.82495C2.41837 1.82495 1.88111 2.36221 1.88111 3.02495L1.88111 4.38908L3.21111 4.38908L3.21111 3.15495L4.44524 3.15495L4.44524 1.82495ZM15.1941 4.38908L15.1941 3.02495C15.1941 2.36221 14.6569 1.82495 13.9941 1.82495L12.63 1.82495L12.63 3.15495L13.8641 3.15495L13.8641 4.38908L15.1941 4.38908ZM7.17349 1.82495L7.17349 3.15495L9.90175 3.15495L9.90175 1.82495L7.17349 1.82495ZM15.1941 7.11734L13.8641 7.11734L13.8641 9.84559L15.1941 9.84559L15.1941 7.11734ZM15.1941 12.5739L13.8641 12.5739L13.8641 13.808L12.63 13.808L12.63 15.138L13.9941 15.138C14.6569 15.138 15.1941 14.6007 15.1941 13.938L15.1941 12.5739ZM9.90175 15.138L9.90175 13.808L7.17349 13.808L7.17349 15.138L9.90175 15.138ZM4.44524 15.138L4.44524 13.808L3.21111 13.808L3.21111 12.5739L1.88111 12.5739L1.88111 13.938C1.88111 14.6007 2.41837 15.138 3.08111 15.138L4.44524 15.138ZM1.88111 9.8456L3.21111 9.8456L3.21111 7.11734L1.88111 7.11734L1.88111 9.8456Z",fillRule:"evenodd",clipRule:"evenodd"}}]}]},g3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-double-diagonal-single",ref:t,icon:Uo}))});g3.displayName="RightDoubleDiagonalSingle";var Fo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_1123",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"}}]},{tag:"g",attrs:{mask:"url(#mask0_102_1123)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.56781 13.3332C2.56781 14.0695 3.16476 14.6665 3.90114 14.6665L6.56781 14.6665C7.30419 14.6665 7.90114 14.0695 7.90114 13.3332L7.90114 2.6665C7.90114 1.9301 7.30419 1.33317 6.56781 1.33317L3.90114 1.33317C3.16476 1.33317 2.56781 1.9301 2.56781 2.6665L2.56781 13.3332ZM3.90114 2.6665L3.90114 13.3332L6.56781 13.3332L6.56781 2.6665L3.90114 2.6665Z"}},{tag:"path",attrs:{fill:"colorChannel1",d:"M13.4323 8.00022C13.4323 8.36841 13.1338 8.66689 12.7656 8.66689L11.6906 8.66689L11.6906 9.74202C11.6906 10.1102 11.3921 10.4087 11.0239 10.4087C10.6557 10.4087 10.3573 10.1102 10.3573 9.74202L10.3573 8.66689L9.28215 8.66689C8.91396 8.66689 8.61548 8.36841 8.61548 8.00022C8.61548 7.63203 8.91396 7.33356 9.28214 7.33356L10.3573 7.33356L10.3573 6.25852C10.3573 5.89033 10.6557 5.59186 11.0239 5.59186C11.3921 5.59186 11.6906 5.89033 11.6906 6.25852L11.6906 7.33356L12.7656 7.33356C13.1338 7.33356 13.4323 7.63203 13.4323 8.00022Z"}}]}]},b3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-insert-column",ref:t,icon:Fo}))});b3.displayName="RightInsertColumn";var zo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM4.66665 5.56641C4.33528 5.56641 4.06665 5.83504 4.06665 6.16641 4.06665 6.49778 4.33528 6.76641 4.66665 6.76641H14C14.3314 6.76641 14.6 6.49778 14.6 6.16641 14.6 5.83504 14.3314 5.56641 14 5.56641H4.66665zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM4.66665 12.9004C4.33528 12.9004 4.06665 13.169 4.06665 13.5004 4.06665 13.8318 4.33528 14.1004 4.66665 14.1004H14C14.3314 14.1004 14.6 13.8318 14.6 13.5004 14.6 13.169 14.3314 12.9004 14 12.9004H4.66665z"}}]},y3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-justifying-single",ref:t,icon:zo}))});y3.displayName="RightJustifyingSingle";var Zo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.1994 1.49307C13.3824 0.944623 14.6068 2.16904 14.0584 3.35206L10.8904 10.1855C10.751 10.4862 10.3943 10.6169 10.0937 10.4775C9.79302 10.3381 9.66229 9.98144 9.80166 9.68081L11.0507 6.98651L8.61023 4.546C8.59522 4.53098 8.58116 4.51537 8.56807 4.49924L5.87063 5.74977C5.57 5.88915 5.2133 5.75842 5.07392 5.45779C4.93455 5.15715 5.06528 4.80045 5.36591 4.66108L12.1994 1.49307ZM12.9697 2.84734L11.5883 5.82701L9.72443 3.96315L12.7041 2.58177C12.8731 2.50342 13.048 2.67833 12.9697 2.84734Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.40366 4.68273C2.16934 4.44842 1.78945 4.44842 1.55513 4.68273C1.32082 4.91705 1.32082 5.29695 1.55513 5.53126L9.45182 13.4279L7.92792 13.5038C7.59696 13.5203 7.34202 13.8019 7.35849 14.1329C7.37497 14.4639 7.65662 14.7188 7.98758 14.7023L9.96172 14.6041C10.8278 14.5609 11.2323 13.5113 10.6191 12.8982L2.40366 4.68273Z"}}]},S3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-forty-five-degrees-single",ref:t,icon:Zo}))});S3.displayName="RightRotationFortyFiveDegreesSingle";var Wo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"g",attrs:{fill:"currentColor",clipPath:"url(#right-rotation-ninety-degrees-single_clip0_927_166)"},children:[{tag:"path",attrs:{d:"M3.11339 1.41934C3.11339 1.08797 2.84476 0.819336 2.51339 0.819336C2.18201 0.819336 1.91338 1.08797 1.91338 1.41934V12.5869L0.782193 11.563C0.53652 11.3406 0.157091 11.3595 -0.0652855 11.6052C-0.287662 11.8509 -0.268776 12.2303 -0.0231021 12.4527L1.44231 13.7791C2.08518 14.361 3.11338 13.9049 3.11338 13.0377L3.11339 1.41934Z"}},{tag:"path",attrs:{d:"M12.2955 9.26826C13.5199 8.81955 13.5199 7.08797 12.2955 6.63926L5.22343 4.04738C4.9123 3.93336 4.56763 4.09314 4.45361 4.40428C4.33958 4.71541 4.49936 5.06007 4.8105 5.1741L7.59888 6.19602V9.64743C7.59888 9.66866 7.59999 9.68964 7.60214 9.71031L4.8105 10.7334C4.49936 10.8474 4.33958 11.1921 4.45361 11.5032C4.56763 11.8144 4.9123 11.9742 5.22343 11.8601L12.2955 9.26826ZM11.8826 7.76597L8.79888 6.63581V9.27171L11.8826 8.14155C12.0575 8.07745 12.0575 7.83008 11.8826 7.76597Z",fillRule:"evenodd",clipRule:"evenodd"}}]},{tag:"defs",attrs:{},children:[{tag:"clipPath",attrs:{id:"right-rotation-ninety-degrees-single_clip0_927_166"},children:[{tag:"path",attrs:{fill:"#fff",d:"M0 0H16V16H0z"}}]}]}],defIds:["right-rotation-ninety-degrees-single_clip0_927_166"]},L3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-ninety-degrees-single",ref:t,icon:Wo}))});L3.displayName="RightRotationNinetyDegreesSingle";var Go={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.9445 1.55649C12.2184 1.744 12.2895 2.11755 12.1033 2.39085L9.24342 6.58659H12.8001C13.1315 6.58659 13.4001 6.85522 13.4001 7.18659C13.4001 7.51796 13.1315 7.78659 12.8001 7.78659H8.5999V9.91276H13.2221C13.5534 9.91276 13.8221 10.1814 13.8221 10.5128C13.8221 10.8441 13.5534 11.1128 13.2221 11.1128H8.5999V14.0877C8.5999 14.4191 8.33127 14.6877 7.9999 14.6877C7.66853 14.6877 7.3999 14.4191 7.3999 14.0877V11.1128H2.77773C2.44636 11.1128 2.17773 10.8441 2.17773 10.5128C2.17773 10.1814 2.44636 9.91276 2.77773 9.91276H7.3999V7.78659H3.2001C2.86873 7.78659 2.6001 7.51796 2.6001 7.18659C2.6001 6.85522 2.86873 6.58659 3.2001 6.58659H6.75736L3.89753 2.39085C3.71125 2.11755 3.78234 1.744 4.05631 1.55649C4.33029 1.36899 4.7034 1.43854 4.88968 1.71184L7.94595 6.19577C7.96752 6.22741 7.98564 6.2604 8.00039 6.29429C8.01514 6.2604 8.03326 6.22741 8.05483 6.19577L11.1111 1.71184C11.2974 1.43854 11.6705 1.36899 11.9445 1.55649Z"}}]},_3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rmb-single",ref:t,icon:Go}))});_3.displayName="RmbSingle";var Yo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9.72502 1.02051H6.07803C4.97346 1.02051 4.07803 1.91594 4.07803 3.02051V7.57046H3.00039C2.66902 7.57046 2.40039 7.83909 2.40039 8.17046C2.40039 8.50183 2.66902 8.77046 3.00039 8.77046H4.07803V10.4854H3.00039C2.66902 10.4854 2.40039 10.754 2.40039 11.0854C2.40039 11.4167 2.66902 11.6854 3.00039 11.6854H4.07803V14.3795C4.07803 14.7108 4.34666 14.9795 4.67803 14.9795C5.0094 14.9795 5.27803 14.7108 5.27803 14.3795V11.6854H10.3637C10.695 11.6854 10.9637 11.4167 10.9637 11.0854C10.9637 10.754 10.695 10.4854 10.3637 10.4854H5.27803V8.77046H9.72503C11.8651 8.77046 13.6 7.03557 13.6 4.89548C13.6 2.75539 11.8651 1.02051 9.72502 1.02051ZM9.72503 7.57046H5.27803V3.12051C5.27803 2.62345 5.68097 2.22051 6.17803 2.22051H9.72502C11.2024 2.22051 12.4 3.41814 12.4 4.89548C12.4 6.37283 11.2024 7.57046 9.72503 7.57046Z",fillRule:"evenodd",clipRule:"evenodd"}}]},w3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rouble-single",ref:t,icon:Yo}))});w3.displayName="RoubleSingle";var qo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_436_41",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#D9D9D9",d:"M0.35 0.48H16.35V16.48H0.35z"}}]},{tag:"g",attrs:{mask:"url(#mask0_436_41)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.27177 13.714L13.5855 2.40025L14.434 3.24878L3.1203 14.5625L2.27177 13.714Z"}},{tag:"path",attrs:{fill:"#E5E5E5",d:"M4.2603 1.82495L2.89617 1.82495C2.23343 1.82495 1.69617 2.36221 1.69617 3.02495L1.69617 4.38908L3.02617 4.38908L3.02617 3.15495L4.2603 3.15495L4.2603 1.82495ZM15.0092 4.38908L15.0092 3.02495C15.0092 2.36221 14.4719 1.82495 13.8092 1.82495L12.4451 1.82495L12.4451 3.15495L13.6792 3.15495L13.6792 4.38908L15.0092 4.38908ZM6.98856 1.82495L6.98856 3.15495L9.71681 3.15495L9.71681 1.82495L6.98856 1.82495ZM15.0092 7.11734L13.6792 7.11734L13.6792 9.84559L15.0092 9.84559L15.0092 7.11734ZM15.0092 12.5739L13.6792 12.5739L13.6792 13.808L12.4451 13.808L12.4451 15.138L13.8092 15.138C14.4719 15.138 15.0092 14.6007 15.0092 13.938L15.0092 12.5739ZM9.71681 15.138L9.71681 13.808L6.98856 13.808L6.98856 15.138L9.71681 15.138ZM4.2603 15.138L4.2603 13.808L3.02617 13.808L3.02617 12.5739L1.69617 12.5739L1.69617 13.938C1.69617 14.6007 2.23343 15.138 2.89617 15.138L4.2603 15.138ZM1.69617 9.8456L3.02617 9.8456L3.02617 7.11734L1.69617 7.11734L1.69617 9.8456Z"}}]}]},M3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"slash-single",ref:t,icon:qo}))});M3.displayName="SlashSingle";var Xo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.00033 1.20996C6.43345 1.20996 5.23596 1.88077 4.64804 2.94304 4.06338 3.99943 4.15123 5.32084 4.90099 6.47062 5.08199 6.7482 5.45374 6.82648 5.73131 6.64548 6.00888 6.46448 6.08716 6.09273 5.90616 5.81516 5.36418 4.98402 5.35768 4.13897 5.69797 3.52412 6.035 2.91515 6.78176 2.40996 8.00033 2.40996 9.19423 2.40996 10.0017 2.93409 10.5236 3.46755 10.7871 3.73682 10.9756 4.00712 11.0974 4.20903 11.158 4.30951 11.2013 4.39164 11.2284 4.44625 11.2419 4.47351 11.2514 4.49377 11.2568 4.50588L11.2621 4.51771C11.3901 4.82216 11.7407 4.96686 12.046 4.83992 12.3519 4.71267 12.4968 4.36149 12.3695 4.05552L11.8231 4.28278C12.3695 4.05552 12.3697 4.0558 12.3695 4.05552L12.3691 4.05437 12.3685 4.05298 12.367 4.04953 12.3629 4.03993 12.3498 4.01036C12.3388 3.98619 12.3234 3.95326 12.3033 3.91282 12.2632 3.83203 12.2043 3.72072 12.1249 3.58908 11.9666 3.32674 11.7235 2.97805 11.3814 2.62834 10.6921 1.92381 9.59192 1.20996 8.00033 1.20996zM2.11953 8.5999H7.88935C10.1109 9.46549 10.5895 10.7649 10.4268 11.6869 10.2475 12.703 9.26939 13.5898 8.00009 13.5898 6.63323 13.5898 5.77631 13.0502 5.25534 12.528 4.99021 12.2623 4.80823 11.9965 4.69365 11.7993 4.63659 11.7011 4.59698 11.6211 4.5727 11.5686 4.56059 11.5424 4.55236 11.5231 4.54774 11.512L4.54352 11.5016C4.4267 11.193 4.0823 11.0363 3.77279 11.1516 3.46228 11.2673 3.30438 11.6129 3.4201 11.9234L3.9649 11.7203C3.4201 11.9234 3.41998 11.9231 3.4201 11.9234L3.4206 11.9247 3.42118 11.9263 3.42262 11.9301 3.42661 11.9403C3.42977 11.9484 3.43394 11.9588 3.43914 11.9713 3.44956 11.9965 3.46418 12.0304 3.48334 12.0719 3.52161 12.1547 3.57828 12.2682 3.65608 12.4021 3.81124 12.6692 4.0534 13.0223 4.40584 13.3756 5.12 14.0914 6.27196 14.7898 8.00009 14.7898 9.82574 14.7898 11.3236 13.5101 11.6085 11.8955 11.812 10.7422 11.3901 9.55402 10.2665 8.5999H13.8804C14.2117 8.5999 14.4803 8.33127 14.4803 7.9999 14.4803 7.66853 14.2117 7.3999 13.8804 7.3999H8.01411C8.0048 7.39968 7.99551 7.39969 7.98625 7.3999H2.11953C1.78816 7.3999 1.51953 7.66853 1.51953 7.9999 1.51953 8.33127 1.78816 8.5999 2.11953 8.5999z"}}]},E3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"strikethrough-single",ref:t,icon:Xo}))});E3.displayName="StrikethroughSingle";var Qo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"path",attrs:{stroke:"currentColor",d:"M2.08596 14.1387L10.3379 2.66873M10.3379 14.1387L2.08596 2.66873M12.8098 10.0174C13.4565 9.45285 14.781 9.44507 15.0272 10.5759 15.2798 11.736 13.8101 13.2515 12.7376 14.1033 12.7227 14.1151 12.7315 14.1389 12.7505 14.1388L15.2251 14.1388",strokeLinecap:"round",strokeWidth:1.2}}]},O3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"subscript-single",ref:t,icon:Qo}))});O3.displayName="SubscriptSingle";var Jo={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.7245 6.42417C11.9588 6.18985 11.9588 5.80995 11.7245 5.57564C11.4901 5.34132 11.1102 5.34132 10.8759 5.57564L7.3002 9.15137L5.72446 7.57564C5.49014 7.34132 5.11025 7.34132 4.87593 7.57564C4.64162 7.80995 4.64162 8.18985 4.87593 8.42417L6.87593 10.4242C7.11025 10.6585 7.49014 10.6585 7.72446 10.4242L11.7245 6.42417Z",fillRule:"evenodd",clipRule:"evenodd"}}]},H3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"success-single",ref:t,icon:Jo}))});H3.displayName="SuccessSingle";var Ko={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M.394135 6.52121C.394135 5.4474 1.26463 4.5769 2.33844 4.5769H3.90929C4.24066 4.5769 4.50929 4.84553 4.50929 5.1769 4.50929 5.50828 4.24066 5.7769 3.90929 5.7769H2.33844C1.92737 5.7769 1.59414 6.11014 1.59414 6.52121 1.59414 6.93228 1.92737 7.26552 2.33844 7.26552H2.45171C3.59368 7.26552 4.50929 8.20288 4.50929 9.33362 4.50929 10.4761 3.58419 11.4231 2.43051 11.4231H.893457C.562086 11.4231.293457 11.1544.293457 10.8231.293457 10.4917.562086 10.2231.893457 10.2231H2.43051C2.91024 10.2231 3.30929 9.82458 3.30929 9.33362 3.30929 8.85437 2.91974 8.46552 2.45171 8.46552H2.33844C1.26463 8.46552.394135 7.59502.394135 6.52121zM15.1061 11.4231C14.7747 11.4231 14.5061 11.1545 14.5061 10.8231L14.5061 8.31006C14.5061 7.97762 14.2366 7.70812 13.9041 7.70812 13.5717 7.70812 13.3022 7.97762 13.3022 8.31006L13.3022 10.8231C13.3022 11.1545 13.0335 11.4231 12.7022 11.4231 12.3708 11.4231 12.1022 11.1545 12.1022 10.8231L12.1022 8.31006C12.1022 7.31488 12.9089 6.50812 13.9041 6.50812 14.8993 6.50812 15.7061 7.31488 15.7061 8.31006L15.7061 10.8231C15.7061 11.1545 15.4374 11.4231 15.1061 11.4231z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M12.7022 11.4231C12.3709 11.4231 12.1022 11.1545 12.1022 10.8231L12.1022 8.31006C12.1022 7.97762 11.8327 7.70812 11.5003 7.70812 11.1679 7.70812 10.8984 7.97762 10.8984 8.31006L10.8984 10.8231C10.8984 11.1545 10.6297 11.4231 10.2984 11.4231 9.967 11.4231 9.69837 11.1545 9.69837 10.8231L9.69837 8.31006C9.69837 7.31488 10.5051 6.50812 11.5003 6.50812 12.4955 6.50812 13.3022 7.31488 13.3022 8.31006L13.3022 10.8231C13.3022 11.1545 13.0336 11.4231 12.7022 11.4231zM5.58193 6.69556C5.9133 6.69556 6.18193 6.96419 6.18193 7.29556L6.18193 9.43683C6.18193 9.87101 6.53391 10.223 6.96809 10.223 7.40228 10.223 7.75425 9.87101 7.75425 9.43683L7.75425 7.29556C7.75425 6.96419 8.02288 6.69556 8.35425 6.69556 8.68563 6.69556 8.95425 6.96419 8.95425 7.29556L8.95425 9.43683C8.95425 10.5338 8.06502 11.423 6.96809 11.423 5.87117 11.423 4.98193 10.5338 4.98193 9.43683L4.98193 7.29556C4.98193 6.96419 5.25056 6.69556 5.58193 6.69556z",fillRule:"evenodd",clipRule:"evenodd"}}]},I3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"sum-single",ref:t,icon:Ko}))});I3.displayName="SumSingle";var e2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"path",attrs:{stroke:"currentColor",d:"M2.10904 14.4537L10.299 3.06987M10.2989 14.4537L2.10899 3.06987M12.7525 3.35933C13.3943 2.79901 14.7089 2.79129 14.9533 3.91363 15.204 5.06487 13.7456 6.56876 12.6812 7.41429 12.6663 7.4261 12.6751 7.44982 12.6941 7.44982L15.1497 7.44977",strokeLinecap:"round",strokeWidth:1.2}}]},T3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"superscript-single",ref:t,icon:e2}))});T3.displayName="SuperscriptSingle";var t2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.21572 1.80029C2.54709 1.80029 2.81572 2.06892 2.81572 2.40029V14.0003C2.81572 14.3317 2.54709 14.6003 2.21572 14.6003 1.88435 14.6003 1.61572 14.3317 1.61572 14.0003V2.40029C1.61572 2.06892 1.88435 1.80029 2.21572 1.80029zM13.7841 1.80029C14.1155 1.80029 14.3841 2.06892 14.3841 2.40029V14.0003C14.3841 14.3317 14.1155 14.6003 13.7841 14.6003 13.4527 14.6003 13.1841 14.3317 13.1841 14.0003V8.60259H7.13467C6.8033 8.60259 6.53467 8.33396 6.53467 8.00259 6.53467 7.67122 6.8033 7.40259 7.13467 7.40259H13.1841V2.40029C13.1841 2.06892 13.4527 1.80029 13.7841 1.80029z"}}]},D3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"truncation-single",ref:t,icon:t2}))});D3.displayName="TruncationSingle";var n2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.46416 2.03237C4.46416 1.701 4.19553 1.43237 3.86416 1.43237 3.53279 1.43237 3.26416 1.701 3.26416 2.03237V7.33338C3.26416 10.0313 5.35834 12.2667 7.9999 12.2667 10.6415 12.2667 12.7356 10.0313 12.7356 7.33338V2.03237C12.7356 1.701 12.467 1.43237 12.1356 1.43237 11.8043 1.43237 11.5356 1.701 11.5356 2.03237V7.33338C11.5356 9.42194 9.92656 11.0667 7.9999 11.0667 6.07325 11.0667 4.46416 9.42194 4.46416 7.33338V2.03237zM2.66641 13.4663C2.33504 13.4663 2.06641 13.7349 2.06641 14.0663 2.06641 14.3977 2.33504 14.6663 2.66641 14.6663H13.3331C13.6644 14.6663 13.9331 14.3977 13.9331 14.0663 13.9331 13.7349 13.6644 13.4663 13.3331 13.4663H2.66641z"}}]},x3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"underline-single",ref:t,icon:n2}))});x3.displayName="UnderlineSingle";var r2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.72365 2.72206C4.97524 2.50641 5.00437 2.12763 4.78872 1.87603C4.57306 1.62444 4.19428 1.59531 3.94269 1.81097L1.61333 3.80761C1.48281 3.91768 1.3999 4.08241 1.3999 4.2665C1.3999 4.41745 1.45564 4.55538 1.54766 4.66083C1.55661 4.67109 1.56594 4.68108 1.57563 4.69077L3.9089 7.02411C4.14321 7.25842 4.52311 7.25843 4.75743 7.02412C4.99175 6.78981 4.99175 6.40991 4.75744 6.17559L3.44839 4.8665H9.36337C11.5909 4.8665 13.3967 6.67229 13.3967 8.89984C13.3967 11.1274 11.5909 12.9332 9.36337 12.9332H3.99937C3.668 12.9332 3.39937 13.2018 3.39937 13.5332C3.39937 13.8645 3.668 14.1332 3.99937 14.1332H9.36337C12.2537 14.1332 14.5967 11.7901 14.5967 8.89984C14.5967 6.00955 12.2537 3.6665 9.36337 3.6665H3.62183L4.72365 2.72206Z"}}]},N3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"undo-single",ref:t,icon:r2}))});N3.displayName="UndoSingle";var i2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.03012 3.14006C3.03012 3.59845 2.65851 3.97006 2.20012 3.97006 1.74172 3.97006 1.37012 3.59845 1.37012 3.14006 1.37012 2.68166 1.74172 2.31006 2.20012 2.31006 2.65851 2.31006 3.03012 2.68166 3.03012 3.14006zM4.53027 2.54014C4.1989 2.54014 3.93027 2.80877 3.93027 3.14014 3.93027 3.47151 4.1989 3.74014 4.53027 3.74014H14.5488C14.8802 3.74014 15.1488 3.47151 15.1488 3.14014 15.1488 2.80877 14.8802 2.54014 14.5488 2.54014H4.53027zM2.20012 8.82992C2.65851 8.82992 3.03012 8.45832 3.03012 7.99992 3.03012 7.54153 2.65851 7.16992 2.20012 7.16992 1.74172 7.16992 1.37012 7.54153 1.37012 7.99992 1.37012 8.45832 1.74172 8.82992 2.20012 8.82992zM4.53027 7.4C4.1989 7.4 3.93027 7.66863 3.93027 8 3.93027 8.33137 4.1989 8.6 4.53027 8.6H14.5488C14.8802 8.6 15.1488 8.33137 15.1488 8 15.1488 7.66863 14.8802 7.4 14.5488 7.4H4.53027zM2.20012 13.6905C2.65851 13.6905 3.03012 13.3189 3.03012 12.8605 3.03012 12.4021 2.65851 12.0305 2.20012 12.0305 1.74172 12.0305 1.37012 12.4021 1.37012 12.8605 1.37012 13.3189 1.74172 13.6905 2.20012 13.6905zM4.53027 12.2604C4.1989 12.2604 3.93027 12.529 3.93027 12.8604 3.93027 13.1917 4.1989 13.4604 4.53027 13.4604H14.5488C14.8802 13.4604 15.1488 13.1917 15.1488 12.8604 15.1488 12.529 14.8802 12.2604 14.5488 12.2604H4.53027z"}}]},V3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"unorder-single",ref:t,icon:i2}))});V3.displayName="UnorderSingle";var o2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_107_1282",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_107_1282)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M4.0001 14.667H2.66677C1.93039 14.667 1.33344 14.07 1.33344 13.3337V12.0003H2.66677V13.3337L4.0001 13.3337V14.667zM1.33344 6.66699H2.66677V9.33366H1.33344V6.66699zM6.66677 14.667V13.3337H7.33344V10.667H8.66677V13.3337H9.33344V14.667H6.66677zM12.0001 14.667V13.3337H13.3334V12.0003H14.6668V13.3337C14.6668 14.07 14.0698 14.667 13.3334 14.667H12.0001zM14.6668 9.33366H13.3334V8.66699H10.6668V7.33366H13.3334V6.66699H14.6668V9.33366zM7.33344 2.66699V5.33366H8.66677V2.66699H7.33344zM5.33344 8.66699H2.66677V7.33366H5.33344V8.66699z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1.33344 2.66789V4.00122H2.66677L2.66677 2.66789H13.3334V4.00122H14.6668V2.66789C14.6668 1.93151 14.0698 1.33455 13.3334 1.33455H2.66677C1.93039 1.33455 1.33344 1.93151 1.33344 2.66789Z"}}]}]},P3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"up-border",ref:t,icon:o2}))});P3.displayName="UpBorder";var a2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_248_119",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M16 0H32V16H16z",transform:"rotate(90 16 0)"}}]},{tag:"g",attrs:{mask:"url(#mask0_248_119)"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M2.66699 1.33325L4.00033 1.33325 4.00033 2.66658 2.66699 2.66659 2.66699 3.99992 1.33366 3.99992 1.33366 2.66659C1.33366 1.93021 1.93061 1.33325 2.66699 1.33325zM14.667 2.66659L14.667 3.99992 13.3337 3.99992 13.3337 2.66659 12.0003 2.66659 12.0003 1.33325 13.3337 1.33325C14.07 1.33325 14.667 1.93021 14.667 2.66659zM6.66699 2.66658L6.66699 1.33325 9.33366 1.33325 9.33366 2.66659 6.66699 2.66658zM13.3337 6.66659L14.667 6.66659 14.667 9.33325 13.3337 9.33325 13.3337 8.66496 12.0145 8.66496 12.0145 7.33496 13.3337 7.33496 13.3337 6.66659zM13.3337 11.9999L14.667 11.9999 14.667 13.3333C14.667 14.0696 14.07 14.6666 13.3337 14.6666L12.0003 14.6666 12.0003 13.3333 13.3337 13.3333 13.3337 11.9999zM9.33366 13.3333L9.33366 14.6666 6.66699 14.6666 6.66699 13.3333 9.33366 13.3333zM4.00032 13.3333L4.00032 14.6666 2.66699 14.6666C1.93061 14.6666 1.33366 14.0696 1.33366 13.3333L1.33366 11.9999 2.66699 11.9999 2.66699 13.3333 4.00032 13.3333zM2.66699 9.33325L1.33366 9.33325 1.33366 6.66658 2.66699 6.66658 2.66699 7.33496 3.98624 7.33496 3.98624 8.66496 2.66699 8.66496 2.66699 9.33325zM9.33841 7.33496L6.66232 7.33496 6.66232 8.66496 9.33841 8.66496 9.33841 7.33496z"}},{tag:"path",attrs:{fill:"currentColor",d:"M8.66577 8.66675L8.66577 7.33342L8.66569 2.66675L7.33236 2.66675L7.33236 7.33341L7.33244 8.66675L7.33236 13.3334L8.66569 13.3334L8.66577 8.66675Z"}}]}]},A3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-border",ref:t,icon:a2}))});A3.displayName="VerticalBorder";var s2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.9999.733398C8.33127.733398 8.5999 1.00203 8.5999 1.3334V4.55137L9.57564 3.57564C9.80995 3.34132 10.1899 3.34132 10.4242 3.57564 10.6585 3.80995 10.6585 4.18985 10.4242 4.42417L8.42417 6.42417C8.18985 6.65848 7.80995 6.65848 7.57564 6.42417L5.57564 4.42417C5.34132 4.18985 5.34132 3.80995 5.57564 3.57564 5.80995 3.34132 6.18985 3.34132 6.42417 3.57564L7.3999 4.55137V1.3334C7.3999 1.00203 7.66853.733398 7.9999.733398zM5.57564 11.5756L7.57564 9.57564C7.80995 9.34132 8.18985 9.34132 8.42417 9.57564L10.4242 11.5756C10.6585 11.81 10.6585 12.1899 10.4242 12.4242 10.1899 12.6585 9.80995 12.6585 9.57564 12.4242L8.5999 11.4484V14.6665C8.5999 14.9979 8.33127 15.2665 7.9999 15.2665 7.66853 15.2665 7.3999 14.9979 7.3999 14.6665V11.4484L6.42417 12.4242C6.18985 12.6585 5.80995 12.6585 5.57564 12.4242 5.34132 12.1899 5.34132 11.81 5.57564 11.5756zM1.9999 7.40015C1.66853 7.40015 1.3999 7.66878 1.3999 8.00015 1.3999 8.33152 1.66853 8.60015 1.9999 8.60015H13.9999C14.3313 8.60015 14.5999 8.33152 14.5999 8.00015 14.5999 7.66878 14.3313 7.40015 13.9999 7.40015H1.9999z"}}]},R3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-center-single",ref:t,icon:s2}))});R3.displayName="VerticalCenterSingle";var l2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 17",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_102_709",style:{maskType:"alpha"},width:17,height:17,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0.88 0.24H16.88V16.24H0.88z"}}]},{tag:"g",attrs:{fill:"currentColor",mask:"url(#mask0_102_709)",fillRule:"evenodd",clipRule:"evenodd"},children:[{tag:"path",attrs:{d:"M2.2157 2.90265C2.2157 2.16628 2.81264 1.56934 3.54901 1.56934H6.21565C6.95202 1.56934 7.54896 2.16628 7.54896 2.90265V13.5692C7.54896 14.3056 6.95202 14.9025 6.21565 14.9025H3.54901C2.81264 14.9025 2.2157 14.3056 2.2157 13.5692V2.90265zM3.54901 2.90265H6.21565V5.5622H3.54901V2.90265zM3.54901 6.89552V9.57631H6.21565V6.89552H3.54901zM3.54901 13.5692V10.9096H6.21565V13.5692H3.54901zM10.2156 2.90265C10.2156 2.16628 10.8125 1.56934 11.5489 1.56934H14.2155C14.9519 1.56934 15.5489 2.16628 15.5489 2.90265V13.5692C15.5489 14.3056 14.9519 14.9025 14.2155 14.9025H11.5489C10.8125 14.9025 10.2156 14.3056 10.2156 13.5692V2.90265zM11.5489 2.90265H14.2155V5.5622H11.5489V2.90265zM11.5489 6.89552V9.57631H14.2155V6.89552H11.5489zM11.5489 13.5692V10.9096H14.2155V13.5692H11.5489z"}}]}]},j3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-integration-single",ref:t,icon:l2}))});j3.displayName="VerticalIntegrationSingle";var c2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.55504 2.73208C4.55504 2.40071 4.28641 2.13208 3.95504 2.13208C3.62367 2.13208 3.35504 2.40071 3.35504 2.73208V12.5172L2.21439 11.5276C1.96409 11.3104 1.58515 11.3373 1.36799 11.5876C1.15084 11.8379 1.17771 12.2169 1.42801 12.434L2.89972 13.7108C3.54718 14.2726 4.55504 13.8127 4.55504 12.9555L4.55504 2.73208Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M9.00725 4.01095C9.45595 2.78663 11.1875 2.78662 11.6362 4.01095L14.743 12.488C14.8571 12.7992 14.6973 13.1438 14.3861 13.2578C14.075 13.3719 13.7303 13.2121 13.6163 12.9009L12.4148 9.62242H8.36729C8.32154 9.62242 8.27699 9.6173 8.23417 9.6076L7.02719 12.9009C6.91316 13.2121 6.5685 13.3719 6.25736 13.2578C5.94623 13.1438 5.78644 12.7992 5.90047 12.488L9.00725 4.01095ZM10.5095 4.42388L11.975 8.42242H8.66853L10.134 4.42389C10.1981 4.24898 10.4454 4.24898 10.5095 4.42388Z",fillRule:"evenodd",clipRule:"evenodd"}}]},k3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-text-single",ref:t,icon:c2}))});k3.displayName="VerticalTextSingle";var u2={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM8.00008 12.3671C8.46031 12.3671 8.83342 11.994 8.83342 11.5338C8.83342 11.0735 8.46031 10.7004 8.00008 10.7004C7.53985 10.7004 7.16675 11.0735 7.16675 11.5338C7.16675 11.994 7.53985 12.3671 8.00008 12.3671ZM8.5999 4.4335C8.5999 4.10213 8.33127 3.8335 7.9999 3.8335C7.66853 3.8335 7.3999 4.10213 7.3999 4.4335V9.36683C7.3999 9.6982 7.66853 9.96683 7.9999 9.96683C8.33127 9.96683 8.5999 9.6982 8.5999 9.36683V4.4335Z",fillRule:"evenodd",clipRule:"evenodd"}}]},wt=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"warning-single",ref:t,icon:u2}))});wt.displayName="WarningSingle";class ke{constructor(){ee(this,"_components",new Map);ee(this,"_componentsReverse",new Map);const t={AlignBottomSingle:Zn,AlignTopSingle:Gn,AllBorderSingle:Yn,AmplifySingle:qn,AutowrapSingle:Jn,BoldSingle:tr,BrushSingle:nr,Copy:fr,ClearFormat:ar,DownBorder:yr,FontColor:Mr,FunctionSingle:Dr,HorizontallySingle:Rr,InnerBorder:jr,ItalicSingle:zr,KeyboardSingle:Zr,ContentSingle16:ur,LeftBorder:Wr,LeftJustifyingSingle:qr,LeftRotationFortyFiveDegreesSingle:Xr,LeftRotationNinetyDegreesSingle:Qr,MergeAllSingle:t3,HorizontalMergeSingle:Ar,VerticalIntegrationSingle:j3,PipingSingle:h3,CancelMergeSingle:ir,NoBorderSingle:i3,NoColor:o3,NoRotationSingle:a3,OuterBorder:l3,OverflowSingle:c3,PaintBucket:u3,PasteSpecial:f3,MenuSingle24:e3,RedoSingle:v3,RightBorder:C3,RightJustifyingSingle:y3,AlignTextBothSingle:Wn,RightRotationFortyFiveDegreesSingle:S3,RightRotationNinetyDegreesSingle:L3,StrikethroughSingle:E3,OrderSingle:s3,UnorderSingle:V3,SuperscriptSingle:T3,SubscriptSingle:O3,TruncationSingle:D3,UnderlineSingle:x3,UndoSingle:N3,UpBorder:P3,VerticalBorder:A3,VerticalCenterSingle:R3,VerticalTextSingle:k3,Insert:Fr,InsertCellDown:kr,InsertCellShiftRight:$r,InsertRowAbove:Br,InsertRowBelow:Ur,LeftInsertColumn:Yr,RightInsertColumn:b3,DeleteColumn:pr,DeleteRow:Cr,DeleteCellShiftUp:mr,DeleteCellShiftRight:vr,DeleteCellShiftLeft:hr,DeleteCellMoveDown:dr,Reduce:p3,Hide:Vr,HorizontalBorder:Pr,AutoHeight:Xn,AutoWidth:Qn,AdjustHeight:Fn,AdjustWidth:zn,AvgSingle:Kn,CntSingle:sr,MaxSingle:Kr,MinSingle:n3,SumSingle:I3,CancelFreezeSingle:rr,FreezeColumnSingle:Hr,FreezeRowSingle:Ir,GridSingle:xr,HeaderFooterSingle:Nr,FreezeToSelectedSingle:Tr,CodeSingle:lr,FontSizeIncreaseSingle:Er,FontSizeReduceSingleSingle:Or,BackSlashSingle:er,LeftDoubleDiagonalSingle:Gr,LeftTridiagonalSingle:Jr,SlashSingle:M3,RightDoubleDiagonalSingle:g3,DirectExportSingle:gr,FolderSingle:wr,ExportSingle:_r,Conditions:cr,RmbSingle:_3,MoreDownSingle:W1,AddDigitsSingle:Un,ReduceDigitsSingle:m3,PercentSingle:d3,EuroSingle:Lr,RoubleSingle:w3,DollarSingle:br};for(const n in t)this.register(n,t[n])}register(t,n,r){const{framework:i="react"}=r||{};return this._components.has(t)&&console.warn(`Component ${t} already exists.`),this._components.set(t,{framework:i,component:n}),this._componentsReverse.set(n,t),d.toDisposable(()=>{this._components.delete(t),this._componentsReverse.delete(n)})}getKey(t){return this._componentsReverse.get(t)}get(t){if(!t)return;const n=this._components.get(t);if((n==null?void 0:n.framework)==="react")return n.component;if((n==null?void 0:n.framework)==="vue3")return r=>s.cloneElement(s.createElement($3,{component:n.component,props:{...r}}))}delete(t){this._components.delete(t)}}async function f2(e,t,n){try{const{h:r,render:i}=await import("vue"),a=r(e,n),o=document.createElement("div");return document.body.appendChild(o),i(a,t),()=>{document.body.removeChild(o)}}catch{}}function $3(e){const t=s.useRef(null),{component:n,props:r}=e;return s.useEffect(()=>{if(!t.current)return;const i=f2(n,t.current,r);return()=>{i.then(a=>a==null?void 0:a())}},[r]),s.createElement("div",{ref:t})}class T1{constructor(){ee(this,"_list",new Map)}setIndex(t,n){this._list.set(t,n)}getIndex(t){return this._list.get(t)}removeIndex(t){this._list.delete(t)}getMaxIndex(){let t=-9999999;return this._list.forEach(n=>{+n>t&&(t=+n)}),t}}Dn=new WeakMap,xn=new WeakMap,kn(T1,Dn,2147483647),kn(T1,xn,-2147483647);function B3(e,t,n,r){const i=e.get(d.IUniverInstanceService);return new te.Observable(a=>{const o=i.focused$.subscribe(m=>{if(m==null||n&&n!==m||r&&(Array.isArray(r)?r.includes(m):r===m))return a.next(!0);const v=i.getUnitType(m);a.next(v!==t)}),l=i.getFocusedUnit();if(l==null)return a.next(!0);const u=i.getUnitType(l.getUnitId());return a.next(u!==t),()=>o.unsubscribe()})}function d2(e){const t=e.get(d.IUniverInstanceService);return new te.Observable(n=>{const r=t.focused$.subscribe(o=>{if(o==null)return n.next(!0);const l=t.getUniverDocInstance(o),u=l==null?void 0:l.getSnapshot().documentStyle.documentFlavor;n.next(u!==d.DocumentFlavor.TRADITIONAL)}),i=t.getCurrentUniverDocInstance();if(i==null)return n.next(!0);const a=i==null?void 0:i.getSnapshot().documentStyle.documentFlavor;return n.next(a!==d.DocumentFlavor.TRADITIONAL),()=>r.unsubscribe()})}function U3(e,t){return!t||!e||(["type","icon","title","tooltip"].forEach(i=>{t[i]!==void 0&&(e[i]=t[i])}),["hidden","disabled","activated"].forEach(i=>{h2(e,`${i}$`,t[i])})),e}function h2(e,t,n){if(n!==void 0)if(e[t]){const r=e[t].pipe(te.switchMap(()=>new te.BehaviorSubject(n)));e[t]=r}else e[t]=new te.Observable(r=>{r.next(n)})}var G1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Et={exports:{}},D1={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var F3;function v2(){if(F3)return
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
10
|
+
*/var F3;function v2(){if(F3)return D1;F3=1;var e=s,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,m){var v,f={},p=null,S=null;m!==void 0&&(p=""+m),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(S=u.ref);for(v in u)r.call(u,v)&&!a.hasOwnProperty(v)&&(f[v]=u[v]);if(l&&l.defaultProps)for(v in u=l.defaultProps,u)f[v]===void 0&&(f[v]=u[v]);return{$$typeof:t,type:l,key:p,ref:S,props:f,_owner:i.current}}return D1.Fragment=n,D1.jsx=o,D1.jsxs=o,D1}var z3;function m2(){return z3||(z3=1,Et.exports=v2()),Et.exports}var y=m2();function Ie(e){const{title:t,icon:n,label:r,value:i,value$:a}=e,o=d.useDependency(d.LocaleService),l=d.useDependency(ke),[u,m]=s.useState(i),[v,f]=s.useState(""),p=[];let S=0;s.useEffect(()=>{if(a){const b=a.subscribe(H=>{m(H)});return()=>{b.unsubscribe()}}},[a]);const E=s.useMemo(()=>i!=null?i:u,[u,i]);s.useEffect(()=>{let b=null;return te.isObservable(n)?b=n.subscribe(H=>{f(H)}):f(n!=null?n:""),()=>{b==null||b.unsubscribe()}},[n]);const M=s.useMemo(()=>E&&typeof E=="string"?new d.ColorKit(E).isValid:!1,[E]);if(n){const b=l.get(v!=null?v:"");b&&p.push(y.jsx(b,{extend:{colorChannel1:M?E:"rgb(var(--primary-color))"}},S++))}if(r){const b=typeof r=="string",H=b?{...e}:{...r==null?void 0:r.props,...e},x=b?r:r==null?void 0:r.name,T=l.get(x);T?p.push(y.jsx(T,{...H,value:E},S++)):p.push(y.jsx("span",{children:o.t(x)},S++))}return t&&p.push(y.jsx("span",{children:typeof t=="string"?o.t(t):t},S++)),y.jsx(y.Fragment,{children:p})}const Z3={uiPluginSheetsFontFamily:"univer-ui-plugin-sheets-font-family",uiPluginSheetsFontFamilyItem:"univer-ui-plugin-sheets-font-family-item"},p2=e=>{const{value:t}=e,n=d.useDependency(d.LocaleService),r=s.useMemo(()=>{if(t==null)return"";let i=n.t(`fontFamily.${`${t!=null?t:""}`.replace(/\s/g,"")}`);return i.startsWith("fontFamily.")&&typeof t=="string"&&(i=t.split(",")[0]),i},[t]);return y.jsx("div",{className:Z3.uiPluginSheetsFontFamily,style:{fontFamily:t},children:r})},C2=e=>{const{value:t}=e,n=d.useDependency(d.LocaleService);return y.jsx("span",{className:Z3.uiPluginSheetsFontFamilyItem,style:{fontFamily:t},children:n.t(`fontFamily.${`${t!=null?t:""}`.replace(/\s/g,"")}`)})},g2=[{value:"Arial"},{value:"Times New Roman"},{value:"Tahoma"},{value:"Verdana"},{value:"Microsoft YaHei"},{value:"SimSun"},{value:"SimHei"},{value:"Kaiti"},{value:"FangSong"},{value:"NSimSun"},{value:"STXinwei"},{value:"STXingkai"},{value:"STLiti"}];function b2(e){return typeof e=="function"?e():e}function W3(e,t){const n=s.useRef(t);return s.useEffect(()=>{if(e){const r=b2(e).subscribe(i=>{n.current=i});return()=>r.unsubscribe()}},[e]),n}const G3={uiPluginSheetsFontSize:"univer-ui-plugin-sheets-font-size",uiPluginSheetsFontSizeInput:"univer-ui-plugin-sheets-font-size-input"},y2=e=>{const{value:t,min:n,max:r,onChange:i,disabled$:a}=e,o=d.useObservable(a),[l,u]=s.useState(Number(t!=null?t:0)),m=s.useMemo(()=>Number(t!=null?t:l),[t]);function v(p){p!==null&&u(p)}function f(p){p.stopPropagation(),p.code==="Enter"&&i(l.toString())}return y.jsx("div",{className:G3.uiPluginSheetsFontSize,children:y.jsx(le.InputNumber,{className:G3.uiPluginSheetsFontSizeInput,value:m,controls:!1,min:n,max:r,onKeyDown:f,onChange:v,disabled:o})})},S2=[{label:"9",value:9},{label:"10",value:10},{label:"11",value:11},{label:"12",value:12},{label:"14",value:14},{label:"16",value:16},{label:"18",value:18},{label:"20",value:20},{label:"22",value:22},{label:"24",value:24},{label:"26",value:26},{label:"28",value:28},{label:"36",value:36},{label:"48",value:48},{label:"72",value:72}];var Y1={},Y3;function L2(){if(Y3)return Y1;Y3=1,Object.defineProperty(Y1,"__esModule",{value:!0}),Y1.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return Y1}var _2=L2();const w2=Mt(_2);function Ot(e){const t=s.useRef(e);return t.current=e,s.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function q3(e,t){const n=Ot(()=>{if(!e||!t)return;const r=e.style,i=e.getBoundingClientRect(),{y:a}=i,o=t.getBoundingClientRect(),l=e.scrollHeight>i.height,u=a<0||a+i.height>o.height;if(!u&&!l){r.overflowY="",r.maxHeight="";return}u&&(r.overflowY="scroll",r.maxHeight=a<0?`${e.scrollHeight+a}px`:`${o.height-a}px`)});s.useEffect(()=>{if(!w2()||!e||!t)return;n();const r=le.resizeObserverCtor(n);return r.observe(e),()=>{r.unobserve(e)}},[e,t])}function M2(e,t,...n){return e.t(t)}function x1(e){var t=J.useRef();t.current=e;var n=J.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function E2(e){if(Array.isArray(e))return e}function O2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],u=!0,m=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(v){m=!0,i=v}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(m)throw i}}return l}}function X3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function H2(e,t){if(e){if(typeof e=="string")return X3(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X3(e,t):void 0}}function I2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q3(e,t){return E2(e)||O2(e,t)||H2(e,t)||I2()}function Ht(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function It(e){var t=J.useRef(!1),n=J.useState(e),r=Q3(n,2),i=r[0],a=r[1];J.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(l,u){u&&t.current||a(l)}return[i,o]}function f1(e){"@babel/helpers - typeof";return f1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f1(e)}var Tt={exports:{}},ce={};/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-is.production.min.js
|
|
14
14
|
*
|
|
@@ -16,19 +16,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var K3;function I2(){if(K3)return le;K3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function M(b){if(typeof b=="object"&&b!==null){var O=b.$$typeof;switch(O){case e:switch(b=b.type,b){case n:case i:case r:case v:case m:return b;default:switch(b=b&&b.$$typeof,b){case l:case a:case h:case p:case u:case o:return b;default:return O}}case t:return O}}}return le.ContextConsumer=a,le.ContextProvider=o,le.Element=e,le.ForwardRef=h,le.Fragment=n,le.Lazy=p,le.Memo=u,le.Portal=t,le.Profiler=i,le.StrictMode=r,le.Suspense=v,le.SuspenseList=m,le.isAsyncMode=function(){return!1},le.isConcurrentMode=function(){return!1},le.isContextConsumer=function(b){return M(b)===a},le.isContextProvider=function(b){return M(b)===o},le.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},le.isForwardRef=function(b){return M(b)===h},le.isFragment=function(b){return M(b)===n},le.isLazy=function(b){return M(b)===p},le.isMemo=function(b){return M(b)===u},le.isPortal=function(b){return M(b)===t},le.isProfiler=function(b){return M(b)===i},le.isStrictMode=function(b){return M(b)===r},le.isSuspense=function(b){return M(b)===v},le.isSuspenseList=function(b){return M(b)===m},le.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===v||b===m||b===L||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===u||b.$$typeof===o||b.$$typeof===a||b.$$typeof===h||b.$$typeof===E||b.getModuleId!==void 0)},le.typeOf=M,le}var e6;function T2(){return e6||(e6=1,Tt.exports=I2()),Tt.exports}var Q1=T2(),D2=function(t,n){typeof t=="function"?t(n):f1(t)==="object"&&t&&"current"in t&&(t.current=n)},x2=function(t){var n,r,i=Q1.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==Q1.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Q1.ForwardRef)};function t6(e){return s.isValidElement(e)&&!Q1.isFragment(e)}Number(s.version.split(".")[0])>=19;function N2(e,t){if(f1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(f1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V2(e){var t=N2(e,"string");return f1(t)=="symbol"?t:t+""}function A2(e,t,n){return(t=V2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function P2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n6(Object(n),!0).forEach(function(r){A2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const R2={popupFixed:"univer-popup-fixed"},r6=s.createContext({current:void 0}),o1=8;function i6(e){const{position:t,width:n,height:r,containerHeight:i,containerWidth:o,direction:a="vertical"}=e;if(a==="vertical"||a.includes("top")||a.includes("bottom")){const{left:L,top:E,right:M,bottom:b}=t,O=a.indexOf("top")>-1?{top:Math.max(E-r,o1)}:{top:Math.min(b,i-r-o1)};let x;if(a.includes("center")){const $=(M-L-n)/2;x={left:L+$}}else x=L+n>o?{left:Math.max(M-n,o1)}:{left:Math.min(L,o-n-o1)};return{...O,...x}}const{left:l,top:h,right:v,bottom:m}=t,u=a==="left"?{left:Math.max(l-n,o1)}:{left:Math.min(v,o-n-o1)};return{...h+r>i?{top:Math.max(m-r,o1)}:{top:Math.min(h,i-r-o1)},...u}}function J1(e){const{children:t,anchorRect$:n,direction:r="vertical",onClickOutside:i,excludeOutside:o,excludeRects:a,onPointerEnter:l,onPointerLeave:h,onClick:v,hidden:m,onContextMenu:u}=e,p=s.useRef(null),L=N1(i!=null?i:()=>{}),E=N1(u!=null?u:()=>{}),M=s.useRef({top:-9999,left:-9999}),b=a,O=s.useRef();return s.useEffect(()=>{const x=n.subscribe(I=>{O.current=I,requestAnimationFrame(()=>{if(!p.current)return;const{clientWidth:$,clientHeight:H}=p.current,T=window.innerWidth,A=window.innerHeight;M.current=i6({position:I,width:$,height:H,containerWidth:T,containerHeight:A,direction:r}),p.current.style.top=`${M.current.top}px`,p.current.style.left=`${M.current.left}px`})});return()=>x.unsubscribe()},[n,r]),s.useEffect(()=>{const x=I=>{var A;if(o&&(o.indexOf(I.target)>-1||o.some(R=>R.contains(I.target))))return;const $=I.clientX,H=I.clientY,T=[...(A=b==null?void 0:b.current)!=null?A:[]];O.current&&T.push(O.current);for(const R of T)if($<=R.right&&$>=R.left&&H<=R.bottom&&H>=R.top)return;L(I)};return window.addEventListener("pointerdown",x),()=>{window.removeEventListener("pointerdown",x)}},[L,o,b]),s.useEffect(()=>{const x=I=>{I.ctrlKey&&I.button===0||E()};return window.addEventListener("contextmenu",x),()=>{window.removeEventListener("contextmenu",x)}},[E]),y.jsx("section",{onPointerEnter:l,onPointerLeave:h,ref:p,style:{...M.current,...m?{display:"none"}:null},className:R2.popupFixed,onPointerDown:x=>x.stopPropagation(),onClick:v,children:y.jsx(r6.Provider,{value:O,children:t})})}J1.calcPopupPosition=i6,J1.useContext=()=>s.useContext(r6);const o6=e=>typeof e=="number";function j2(e){const t=s.useRef(e);return t.current=e,t}const k2=(e,t)=>{const{containerTarget:n,itemHeight:r,overscan:i=5}=t,o=j2(r),[a,l]=s.useState(null),h=s.useRef(!1),[v,m]=s.useState([]),[u,p]=s.useState({height:void 0,marginTop:void 0}),L=(I,$)=>{if(typeof o.current=="number")return Math.ceil(I/o.current);let H=0,T=0;for(let A=$;A<e.length;A++){const R=o.current(A,e[A]);if(H+=R,T=A,H>=I)break}return T-$},E=I=>{if(o6(o.current))return Math.floor(I/o.current);let $=0,H=0;for(let T=0;T<e.length;T++){const A=o.current(T,e[T]);if($+=A,$>=I){H=T;break}}return H+1},M=I=>typeof o.current=="number"?I*o.current:e.slice(0,I).reduce((H,T,A)=>H+o.current(A,e[A]),0),b=s.useMemo(()=>o6(o.current)?e.length*o.current:e.reduce((I,$,H)=>I+o.current(H,e[H]),0),[e]),O=()=>{const I=n.current;if(I){const{scrollTop:$,clientHeight:H}=I,T=E($),A=L(H,T),R=Math.max(0,T-i),k=Math.min(e.length,T+A+i),Z=M(R);p({height:`${b-Z}px`,marginTop:`${Z}px`}),m(e.slice(R,k).map((W,Y)=>({data:W,index:Y+R})))}};return s.useEffect(()=>{if(n.current){const I=()=>{const H=n.current.clientWidth,T=n.current.clientHeight;(H!==(a==null?void 0:a.width)||T!==(a==null?void 0:a.height))&&l({width:H,height:T})};I();const $=new ResizeObserver(I);return $.observe(n.current),()=>{$.disconnect()}}},[]),s.useEffect(()=>{!(a!=null&&a.width)||!(a!=null&&a.height)||O()},[a==null?void 0:a.width,a==null?void 0:a.height,e]),[v,{wrapperStyle:u,scrollTo:Ot(I=>{const $=n.current;$&&(h.current=!0,$.scrollTop=M(I),O())}),containerProps:{onScroll:I=>{if(h.current){h.current=!1;return}I.preventDefault(),O()}}}]};function a6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=a6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ie(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=a6(e))&&(r&&(r+=" "),r+=t);return r}var $2=Object.defineProperty,B2=Object.getOwnPropertyDescriptor,U2=(e,t,n,r)=>{for(var i=r>1?void 0:r?B2(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&$2(t,n,i),i},s6=(e,t)=>(n,r)=>t(n,r,e);const F2="FOCUSING_UNIVER",z2=["univer-app-layout","univer-toolbar-btn","univer-menu-item","univer-button","univer-sheet-bar-btn","univer-render-canvas","univer-workbench-layout"],n1=f.createIdentifier("ui.layout-service");C.DesktopLayoutService=class extends f.Disposable{constructor(n,r){super();te(this,"_rootContainerElement",null);te(this,"_isFocused",!1);te(this,"_focusHandlers",new Map);te(this,"_contentElements",[]);te(this,"_allContainers",[]);this._contextService=n,this._univerInstanceService=r,this._initUniverFocusListener(),this._initEditorStatus()}get isFocused(){return this._isFocused}get rootContainerElement(){return this._rootContainerElement}focus(){const n=this._univerInstanceService.getFocusedUnit();if(!n)return;let r;n instanceof f.Workbook?r=this._focusHandlers.get(f.UniverInstanceType.UNIVER_SHEET):n instanceof f.DocumentDataModel?r=this._focusHandlers.get(f.UniverInstanceType.UNIVER_DOC):n instanceof f.SlideDataModel&&(r=this._focusHandlers.get(f.UniverInstanceType.UNIVER_SLIDE)),r&&r(n.getUnitId())}registerFocusHandler(n,r){if(this._focusHandlers.has(n))throw new Error(`[DesktopLayoutService]: handler of type ${n} bas been registered!`);return this._focusHandlers.set(n,r),f.toDisposable(()=>this._focusHandlers.delete(n))}registerContentElement(n){if(this._contentElements.indexOf(n)===-1)return this._contentElements.push(n),f.toDisposable(()=>f.remove(this._contentElements,n));throw new Error("[DesktopLayoutService]: content container already registered!")}getContentElement(){return this._contentElements[0]}registerRootContainerElement(n){if(this._rootContainerElement)throw new Error("[DesktopLayoutService]: root container already registered!");this._rootContainerElement=n;const r=this.registerContainerElement(n);return f.toDisposable(()=>{this._rootContainerElement=null,r.dispose()})}registerContainerElement(n){if(this._allContainers.indexOf(n)===-1)return this._allContainers.push(n),f.toDisposable(()=>f.remove(this._allContainers,n));throw new Error("[LayoutService]: container already registered!")}checkElementInCurrentContainers(n){return this._allContainers.some(r=>r.contains(n))}checkContentIsFocused(){return this._contentElements.some(n=>n===document.activeElement||n.contains(document.activeElement))}_initUniverFocusListener(){this.disposeWithMe(re.fromEvent(window,"focusin").subscribe(n=>{const r=n.target;if(z2.some(i=>r.classList.contains(i))){queueMicrotask(()=>this.focus());return}r&&this.checkElementInCurrentContainers(r)?this._isFocused=!0:this._isFocused=!1,this._contextService.setContextValue(F2,this._isFocused),this._contextService.setContextValue(f.FOCUSING_UNIVER_EDITOR,l6())}))}_initEditorStatus(){this._contextService.setContextValue(f.FOCUSING_UNIVER_EDITOR,l6())}},C.DesktopLayoutService=U2([s6(0,f.IContextService),s6(1,f.IUniverInstanceService)],C.DesktopLayoutService);function l6(){var e;return!!((e=document.activeElement)!=null&&e.classList.contains("univer-editor"))}var Te=(e=>(e[e.BUTTON=0]="BUTTON",e[e.SELECTOR=1]="SELECTOR",e[e.BUTTON_SELECTOR=2]="BUTTON_SELECTOR",e[e.SUBITEMS=3]="SUBITEMS",e))(Te||{}),V1=(e=>(e.RIBBON="ribbon",e.CONTEXT_MENU="contextMenu",e))(V1||{}),r1=(e=>(e.START="ribbon.start",e.INSERT="ribbon.insert",e.FORMULAS="ribbon.formulas",e.DATA="ribbon.data",e.VIEW="ribbon.view",e.OTHERS="ribbon.others",e))(r1||{}),Fe=(e=>(e.HISTORY="ribbon.start.history",e.FORMAT="ribbon.start.format",e.LAYOUT="ribbon.start.layout",e.FORMULAS_INSERT="ribbon.start.insert",e.FORMULAS_VIEW="ribbon.start.view",e.FILE="ribbon.start.file",e.OTHERS="ribbon.start.others",e))(Fe||{}),Dt=(e=>(e.OTHERS="ribbon.insert.others",e))(Dt||{}),xt=(e=>(e.OTHERS="ribbon.formulas.others",e))(xt||{}),Nt=(e=>(e.OTHERS="ribbon.data.others",e))(Nt||{}),Vt=(e=>(e.OTHERS="ribbon.view.others",e))(Vt||{}),At=(e=>(e.OTHERS="ribbon.others.others",e))(At||{}),d1=(e=>(e.MAIN_AREA="contextMenu.mainArea",e.COL_HEADER="contextMenu.colHeader",e.ROW_HEADER="contextMenu.rowHeader",e.FOOTER_TABS="contextMenu.footerTabs",e.FOOTER_MENU="contextMenu.footerMenu",e))(d1||{}),_e=(e=>(e.FORMAT="contextMenu.format",e.LAYOUT="contextMenu.layout",e.DATA="contextMenu.data",e.OTHERS="contextMenu.others",e))(_e||{}),Z2=Object.defineProperty,W2=Object.getOwnPropertyDescriptor,G2=(e,t,n,r)=>{for(var i=r>1?void 0:r?W2(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&Z2(t,n,i),i},c6=(e,t)=>(n,r)=>t(n,r,e);const qe=f.createIdentifier("univer.menu-manager-service");C.MenuManagerService=class extends f.Disposable{constructor(n,r){super();te(this,"menuChanged$",new re.Subject);te(this,"_menu",{[V1.RIBBON]:{[r1.START]:{order:0,[Fe.HISTORY]:{order:0},[Fe.FORMAT]:{order:1},[Fe.LAYOUT]:{order:2},[Fe.FORMULAS_INSERT]:{order:3},[Fe.FORMULAS_VIEW]:{order:4},[Fe.FILE]:{order:5},[Fe.OTHERS]:{order:6}},[r1.INSERT]:{order:1,[Dt.OTHERS]:{order:0}},[r1.FORMULAS]:{order:2,[xt.OTHERS]:{order:0}},[r1.DATA]:{order:3,[Nt.OTHERS]:{order:0}},[r1.VIEW]:{order:4,[Vt.OTHERS]:{order:0}},[r1.OTHERS]:{order:5,[At.OTHERS]:{order:0}}},[V1.CONTEXT_MENU]:{[d1.MAIN_AREA]:{order:0,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[d1.COL_HEADER]:{order:1,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[d1.ROW_HEADER]:{order:2,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[d1.FOOTER_TABS]:{order:3,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[d1.FOOTER_MENU]:{order:4,[_e.OTHERS]:{order:3}}}});this._injector=n,this._configService=r}dispose(){this.menuChanged$.complete()}mergeMenu(n,r){const i=r!=null?r:this._menu;for(const[o,a]of Object.entries(i))if(o in n){const l=o;f.Tools.deepMerge(i[l],n[l]),this.menuChanged$.next()}else this.mergeMenu(n,a)}appendRootMenu(n){f.Tools.deepMerge(this._menu,n),this.menuChanged$.next()}_buildMenuSchema(n){const r=[];for(const[i,o]of Object.entries(n)){const a={key:i,order:o.order};if(o.menuItemFactory){const h=this._injector.invoke(o.menuItemFactory);if(h){const v=this._configService.getConfig("menu");if(v&&h.id in v){const m=h.id;a.item=U3(h,v[m])}else a.item=h}}const l=this._buildMenuSchema(o);l.length>0&&(a.children=l.sort((h,v)=>h.order-v.order)),(a.item||a.children)&&r.push(a)}return r}getMenuByPositionKey(n){const r=i=>{if(n in i)return this._buildMenuSchema(i[n]);for(const o in i){if(o===n)return this._buildMenuSchema(i[o]);if(typeof i[o]=="object"){const a=r(i[o]);if(a)return a}}};return r(this._menu)}},C.MenuManagerService=G2([c6(0,f.Inject(f.Injector)),c6(1,f.IConfigService)],C.MenuManagerService);const ze={menuItemNoHover:"univer-menu-item-no-hover",menuItemActive:"univer-menu-item-active",menuItemActivated:"univer-menu-item-activated",menuItemContent:"univer-menu-item-content",menuItemSelectable:"univer-menu-item-selectable",menuItemSelectableIcon:"univer-menu-item-selectable-icon",menuItemMoreIcon:"univer-menu-item-more-icon"};function u6(e){const{menuType:t,onOptionSelect:n}=e,r=f.useDependency(qe);if(!t)return null;const i=r.getMenuByPositionKey(t),o=s.useMemo(()=>i.filter(a=>{var v;if(!a.children)return a;let l=!1;const h=(v=a.children)==null?void 0:v.map(m=>{var u,p;return(p=(u=m.item)==null?void 0:u.hidden$)!=null?p:new re.Observable(L=>(L.next(!1),L.unsubscribe()))});return re.combineLatest(h).subscribe(m=>{l=m.every(u=>u===!0),l||(l=!0)}).unsubscribe(),l}),[i]);return o&&o.map(a=>{var l;return a.item?y.jsx(d6,{menuItem:a.item,onClick:h=>{n==null||n({value:"",label:a.key,...h})}},a.key):(l=a.children)!=null&&l.length?y.jsx(he.MenuItemGroup,{eventKey:a.key,children:a.children.map(h=>h.item&&y.jsx(d6,{menuItem:h.item,onClick:v=>{n==null||n({value:"",label:h.key,...v})}},h.key))},a.key):null})}function f6(e){var o;const{options:t,value:n,onOptionSelect:r,parentKey:i}=e;return(o=t==null?void 0:t.map((a,l)=>{var p,L,E;const h=`${i}-${(p=a.label)!=null?p:a.id}-${l}`,v=M=>{r==null||r({value:M,label:a==null?void 0:a.label,commandId:a==null?void 0:a.commandId})},m=()=>{typeof a.value>"u"||r==null||r({...a})},u=Ie({[ze.menuItemNoHover]:typeof a.label!="string"&&!((L=a.label)!=null&&L.hoverable)});return y.jsx(he.MenuItem,{disabled:a.disabled,eventKey:h,className:u,onClick:m,children:y.jsxs("span",{className:Ie(ze.menuItemContent,{[ze.menuItemSelectable]:!(typeof a.label!="string"&&!((E=a.label)!=null&&E.hoverable))}),children:[typeof n<"u"&&String(n)===String(a.value)&&y.jsx("span",{className:ze.menuItemSelectableIcon,children:y.jsx(or,{style:{color:"rgb(var(--success-color))"}})}),y.jsx(Ve,{value$:a.value$,value:a.value,label:a.label,icon:a.icon,onChange:v})]})},h)}))!=null?o:null}const K1=e=>{const{overViewport:t,...n}=e,[r,i]=s.useState(),o=f.useDependency(n1);return X3(t==="scroll"?r:null,o.rootContainerElement),y.jsxs(he.Menu,{ref:a=>(a==null?void 0:a.list)&&i(a.list),selectable:!1,children:[y.jsx(f6,{...n}),y.jsx(u6,{...n})]})};function d6({menuItem:e,onClick:t}){const n=f.useDependency(qe),r=f.useObservable(e.disabled$,!1),i=f.useObservable(e.activated$,!1),o=f.useObservable(e.hidden$,!1),a=f.useObservable(e.value$),l=e,h=f.useObservable(re.isObservable(l.selections)?l.selections:void 0),[v,m]=s.useState(a);if(o)return null;const u=b=>{const O=f.isRealNum(b)&&typeof b=="string"?Number.parseInt(b):b;m(O)},p=()=>{const b=e,{title:O,label:x}=b;return y.jsx(he.MenuItem,{eventKey:b.id,disabled:r,className:Ie({[ze.menuItemActivated]:i}),onClick:()=>{t({commandId:b.commandId,value:v,id:b.id})},children:y.jsx("span",{className:ze.menuItemContent,children:y.jsx(Ve,{value:a,title:O,label:x,icon:b.icon,onChange:u})})},b.id)},L=()=>{var O;const b=(O=h!=null?h:l.selections)!=null?O:[];return b.length>0?y.jsx(he.SubMenu,{eventKey:l.id,popupOffset:[18,0],title:y.jsxs("span",{className:ze.menuItemContent,children:[y.jsx(Ve,{title:l.title,value:v,onChange:u,icon:l.icon,label:l.label}),l.shortcut&&` (${l.shortcut})`]}),expandIcon:y.jsx(_t,{className:ze.menuItemMoreIcon}),children:b.length>0&&y.jsx(f6,{parentKey:l.id,menuType:l.id,options:b,onOptionSelect:x=>{t({value:x.value,id:l.id,commandId:x.commandId})}})},l.id):y.jsx(he.MenuItem,{eventKey:l.id,children:y.jsxs("span",{className:ze.menuItemContent,children:[y.jsx(Ve,{title:l.title,value:v,icon:l.icon,label:l.label,onChange:u}),l.shortcut&&` (${l.shortcut})`]})},l.id)},E=e.id?n.getMenuByPositionKey(e.id):[],M=()=>{const b=e;return y.jsx(he.SubMenu,{eventKey:b.id,popupOffset:[18,0],title:y.jsx("span",{className:ze.menuItemContent,children:y.jsx(Ve,{title:b.title,icon:b.icon,label:b.label,onChange:u})}),expandIcon:y.jsx(_t,{className:ze.menuItemMoreIcon}),children:E.length&&y.jsx(u6,{menuType:b.id,parentKey:b.id,onOptionSelect:t})},b.id)};return y.jsxs(y.Fragment,{children:[e.type===Te.SELECTOR&&L(),e.type===Te.SUBITEMS&&M(),e.type===Te.BUTTON&&p()]})}const A1={progressBar:"univer-progress-bar",progressBarContainer:"univer-progress-bar-container",progressBarLabel:"univer-progress-bar-label",progressBarInner:"univer-progress-bar-inner",progressBarCloseButton:"univer-progress-bar-close-button"};function Y2(e){const{barColor:t,progress:n,onTerminate:r,onClearProgress:i}=e,{count:o,done:a,label:l=""}=n,h=f.useDependency(f.ThemeService),v=t!=null?t:h.getCurrentTheme().primaryColor,m=s.useRef(null),u=s.useRef(null);return s.useEffect(()=>{const p=m.current,L=u.current;if(!p||!L)return;if(o===0&&a===0){L.style.display="none",p.style.width="0%";return}else if(o>0){L.style.display="flex";const M=Math.floor(a/o*100);a===o?requestAnimationFrame(()=>{p.style.width=`${M-1}%`,requestAnimationFrame(()=>{p.style.width=`${M}%`})}):p.style.width=`${M}%`}const E=()=>{a===o&&(L.style.display="none",p.style.width="0%",i&&i())};return p.addEventListener("transitionend",E),()=>{p.removeEventListener("transitionend",E)}},[o,a]),y.jsxs("div",{ref:u,className:A1.progressBarContainer,style:{display:"none"},children:[y.jsx(he.Tooltip,{showIfEllipsis:!0,title:l,children:y.jsx("span",{className:A1.progressBarLabel,children:l})}),y.jsx("div",{className:A1.progressBar,children:y.jsx("div",{ref:m,className:A1.progressBarInner,style:{backgroundColor:v}})}),y.jsxs("div",{className:A1.progressBarCloseButton,onClick:r,children:[" ",y.jsx(G1,{})]})]})}const q2="UNI_DISABLE_CHANGING_FOCUS",h6="ui.config",X2={},b1=f.createIdentifier("ui.message.service");var Q2=Object.defineProperty,J2=Object.getOwnPropertyDescriptor,K2=(e,t,n,r)=>{for(var i=r>1?void 0:r?J2(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&Q2(t,n,i),i},v6=(e,t)=>(n,r)=>t(n,r,e);C.ErrorController=class extends f.Disposable{constructor(t,n){super(),this._errorService=t,this._messageService=n,this.disposeWithMe(this._errorService.error$.subscribe(r=>{this._messageService.show({content:r.errorKey,type:he.MessageType.Error})}))}},C.ErrorController=K2([v6(0,f.Inject(f.ErrorService)),v6(1,b1)],C.ErrorController);class et extends f.Disposable{constructor(){super(...arguments);te(this,"_open$",new re.BehaviorSubject(!1));te(this,"open$",this._open$.pipe(re.distinctUntilChanged()))}get isOpen(){return this._open$.getValue()}dispose(){super.dispose(),this._open$.next(!1),this._open$.complete()}open(){this._open$.next(!0)}close(){this._open$.next(!1)}}const e4=f.createIdentifier("ui.left-sidebar.service"),y1=f.createIdentifier("ui.sidebar.service"),m6="ShortcutPanel",P1={id:"base-ui.operation.toggle-shortcut-panel",type:f.CommandType.OPERATION,handler:e=>{const t=e.get(et),n=e.get(y1);return t.isOpen?(t.close(),n.close()):(t.open(),n.open({header:{title:"shortcut-panel.title"},children:{label:m6}})),!0}};function t4(e){return{id:P1.id,title:"toggle-shortcut-panel",tooltip:"toggle-shortcut-panel",icon:"KeyboardSingle",type:Te.BUTTON,hidden$:B3(e,f.UniverInstanceType.UNIVER_SHEET)}}function n4(e){const t=e.get(f.IUndoRedoService);return{id:f.UndoCommand.id,type:Te.BUTTON,icon:"UndoSingle",title:"Undo",tooltip:"toolbar.undo",disabled$:t.undoRedoStatus$.pipe($n.map(n=>n.undos<=0))}}function r4(e){const t=e.get(f.IUndoRedoService);return{id:f.RedoCommand.id,type:Te.BUTTON,icon:"RedoSingle",title:"Redo",tooltip:"toolbar.redo",disabled$:t.undoRedoStatus$.pipe($n.map(n=>n.redos<=0))}}const Pt={[Fe.HISTORY]:{[f.UndoCommand.id]:{order:0,menuItemFactory:n4},[f.RedoCommand.id]:{order:1,menuItemFactory:r4}},[Fe.OTHERS]:{[P1.id]:{order:99,menuItemFactory:t4}}},p6="univer.command.copy",Rt={id:p6,name:p6,multi:!0,priority:0,type:f.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},C6="univer.command.cut",jt={id:C6,name:C6,multi:!0,priority:0,type:f.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},g6="univer.command.paste",kt={id:g6,name:g6,multi:!0,priority:0,type:f.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0};var a1=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ESC=27]="ESC",e[e.SPACE=32]="SPACE",e[e.ARROW_LEFT=37]="ARROW_LEFT",e[e.ARROW_UP=38]="ARROW_UP",e[e.ARROW_RIGHT=39]="ARROW_RIGHT",e[e.ARROW_DOWN=40]="ARROW_DOWN",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NUM_LOCK=144]="NUM_LOCK",e[e.SCROLL_LOCK=145]="SCROLL_LOCK",e[e.EQUAL=187]="EQUAL",e[e.COMMA=188]="COMMA",e[e.MINUS=189]="MINUS",e[e.PERIOD=190]="PERIOD",e[e.BACK_SLASH=220]="BACK_SLASH",e))(a1||{});const i4={8:"Backspace",9:"Tab",13:"Enter",46:"Del",27:"Esc",32:"Space",37:"←",39:"→",38:"↑",40:"↓",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",189:"-",187:"=",190:".",188:",",220:"\\"};var He=(e=>(e[e.SHIFT=1024]="SHIFT",e[e.ALT=2048]="ALT",e[e.CTRL_COMMAND=4096]="CTRL_COMMAND",e[e.MAC_CTRL=8192]="MAC_CTRL",e))(He||{});function o4(e,t,n){return window.addEventListener(e,t,n),f.toDisposable(()=>window.removeEventListener(e,t,n))}const tt=f.createIdentifier("ui.platform.service");class $t{get isMac(){return/Mac/.test(navigator.appVersion)}get isWindows(){return/Windows/.test(navigator.appVersion)}get isLinux(){return/Linux/.test(navigator.appVersion)}}var a4=Object.defineProperty,s4=Object.getOwnPropertyDescriptor,l4=(e,t,n,r)=>{for(var i=r>1?void 0:r?s4(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&a4(t,n,i),i},nt=(e,t)=>(n,r)=>t(n,r,e);const S1=f.createIdentifier("ui.shortcut.service");C.ShortcutService=class extends f.Disposable{constructor(n,r,i,o){super();te(this,"_shortCutMapping",new Map);te(this,"_commandIDMapping",new Map);te(this,"_shortcutChanged$",new re.Subject);te(this,"shortcutChanged$",this._shortcutChanged$.asObservable());te(this,"_forceEscaped",!1);this._commandService=n,this._platformService=r,this._contextService=i,this._layoutService=o,this.disposeWithMe(o4("keydown",a=>{this._resolveKeyboardEvent(a)},{capture:!0}))}getAllShortcuts(){return Array.from(this._shortCutMapping.values()).map(n=>Array.from(n.values())).flat()}registerShortcut(n){const r=this._getBindingFromItem(n),i=this._shortCutMapping.get(r);i?i.add(n):this._shortCutMapping.set(r,new Set([n]));const o=n.id,a=this._commandIDMapping.get(o);return a?a.add(n):this._commandIDMapping.set(o,new Set([n])),this._emitShortcutChanged(),f.toDisposable(()=>{var l,h,v,m;(l=this._shortCutMapping.get(r))==null||l.delete(n),((h=this._shortCutMapping.get(r))==null?void 0:h.size)===0&&this._shortCutMapping.delete(r),(v=this._commandIDMapping.get(o))==null||v.delete(n),((m=this._commandIDMapping.get(o))==null?void 0:m.size)===0&&this._commandIDMapping.delete(o),this._emitShortcutChanged()})}getShortcutDisplayOfCommand(n){const r=this._commandIDMapping.get(n);if(!r)return null;const i=r.values().next().value;return i?this.getShortcutDisplay(i):null}getShortcutDisplay(n){var v;const r=this._getBindingFromItem(n),i=r&He.CTRL_COMMAND,o=r&He.SHIFT,a=r&He.ALT,l=r&He.MAC_CTRL,h=(v=i4[r&255])!=null?v:"<->";return this._platformService.isMac?`${i?"⌘":""}${o?"⇧":""}${a?"⌥":""}${l?"⌃":""}${h}`:`${i?"Ctrl+":""}${o?"Shift+":""}${a?"Alt+":""}${h}`}_emitShortcutChanged(){this._shortcutChanged$.next()}forceEscape(){return this._forceEscaped=!0,f.toDisposable(()=>this._forceEscaped=!1)}_resolveKeyboardEvent(n){if(this._forceEscaped||this._layoutService&&!this._layoutService.checkElementInCurrentContainers(n.target))return;this._dispatch(n)&&n.preventDefault()}_dispatch(n){const r=this._deriveBindingFromEvent(n);if(r===null)return!1;const i=this._shortCutMapping.get(r);if(i===void 0)return!1;const o=Array.from(i).sort((a,l)=>{var h,v;return((h=l.priority)!=null?h:0)-((v=a.priority)!=null?v:0)}).find(a=>{var l,h;return(h=(l=a.preconditions)==null?void 0:l.call(a,this._contextService))!=null?h:!0});return o?(this._commandService.executeCommand(o.id,o.staticParameters),!0):!1}_getBindingFromItem(n){return this._platformService.isMac&&n.mac?n.mac:this._platformService.isWindows&&n.win?n.win:this._platformService.isLinux&&n.linux?n.linux:n.binding}_deriveBindingFromEvent(n){const{shiftKey:r,metaKey:i,altKey:o,keyCode:a}=n;let l=a;return r&&(l|=He.SHIFT),o&&(l|=He.ALT),(this._platformService.isMac?i:n.ctrlKey)&&(l|=He.CTRL_COMMAND),this._platformService.isMac&&n.ctrlKey&&(l|=He.MAC_CTRL),l}},C.ShortcutService=l4([nt(0,f.ICommandService),nt(1,tt),nt(2,f.IContextService),nt(3,f.Optional(n1))],C.ShortcutService);var c4=Object.defineProperty,u4=Object.getOwnPropertyDescriptor,f4=(e,t,n,r)=>{for(var i=r>1?void 0:r?u4(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&c4(t,n,i),i},b6=(e,t)=>(n,r)=>t(n,r,e);function rt(e){return e.getContextValue(f.FOCUSING_UNIVER_EDITOR)}const y6={id:Rt.id,description:"shortcut.copy",group:"1_common-edit",binding:a1.C|He.CTRL_COMMAND,preconditions:rt},S6={id:jt.id,description:"shortcut.cut",group:"1_common-edit",binding:a1.X|He.CTRL_COMMAND,preconditions:rt},d4={id:kt.id,description:"shortcut.paste",group:"1_common-edit",binding:a1.V|He.CTRL_COMMAND,preconditions:()=>!1},L6={id:f.UndoCommand.id,description:"shortcut.undo",group:"1_common-edit",binding:a1.Z|He.CTRL_COMMAND,preconditions:rt},_6={id:f.RedoCommand.id,description:"shortcut.redo",group:"1_common-edit",binding:a1.Y|He.CTRL_COMMAND,preconditions:rt};C.SharedController=class extends f.Disposable{constructor(t,n){super(),this._shortcutService=t,this._commandService=n,this.initialize()}initialize(){this._registerCommands(),this._registerShortcuts()}_registerCommands(){[jt,Rt,kt].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_registerShortcuts(){const t=[L6,_6];t.push(S6,y6,d4),t.forEach(n=>this.disposeWithMe(this._shortcutService.registerShortcut(n)))}},C.SharedController=f4([b6(0,S1),b6(1,f.ICommandService)],C.SharedController);const L1={shortcutPanelGroupTitle:"univer-shortcut-panel-group-title",shortcutPanelItem:"univer-shortcut-panel-item",shortcutPanelItemTitle:"univer-shortcut-panel-item-title",shortcutPanelItemShortcut:"univer-shortcut-panel-item-shortcut"};function h4(){const e=f.useDependency(S1),t=f.useDependency(f.LocaleService),n=f.useObservable(t.currentLocale$),[r,i]=s.useState([]),o=s.useCallback(()=>{var v;const a=new Map,l=e.getAllShortcuts().filter(m=>!!m.group);for(const m of l){const u=m.group,p={title:t.t((v=m.description)!=null?v:m.id),shortcut:e.getShortcutDisplay(m)};if(!/\d+_[a-zA-Z0-9]/.test(u))throw new Error(`[ShortcutPanel]: Invalid shortcut group: ${u}!`);a.has(u)||a.set(u,[]),a.get(u).push(p)}const h=Array.from(a.entries()).map(([m,u])=>{const p=m.split("_")[0],L=m.slice(p.length+1);return{sequence:+p,name:t.t(L),items:u}}).sort((m,u)=>m.sequence-u.sequence);i(h)},[e,t,n]);return s.useEffect(()=>{o();const a=e.shortcutChanged$.subscribe(()=>o());return()=>a.unsubscribe()},[e,o]),y.jsx("div",{className:L1.shortcutPanel,children:r.map(a=>y.jsxs("div",{className:L1.shortcutPanelGroup,children:[y.jsx("div",{className:L1.shortcutPanelGroupTitle,children:a.name}),a.items.map((l,h)=>y.jsxs("div",{className:L1.shortcutPanelItem,children:[y.jsx("span",{className:L1.shortcutPanelItemTitle,children:l.title}),y.jsx("span",{className:L1.shortcutPanelItemShortcut,children:l.shortcut})]},`${l.title}-${l.shortcut}`))]},a.name))})}var v4=Object.defineProperty,m4=Object.getOwnPropertyDescriptor,p4=(e,t,n,r)=>{for(var i=r>1?void 0:r?m4(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&v4(t,n,i),i},R1=(e,t)=>(n,r)=>t(n,r,e);const C4={id:P1.id,binding:He.CTRL_COMMAND|a1.BACK_SLASH,description:"shortcut.shortcut-panel",group:"10_global-shortcut"};C.ShortcutPanelController=class extends f.Disposable{constructor(t,n,r,i,o){super(),this._menuManagerService=i,this.disposeWithMe(n.register(m6,h4)),this.disposeWithMe(o.registerCommand(P1)),this.disposeWithMe(r.registerShortcut(C4))}},C.ShortcutPanelController=p4([R1(0,f.Inject(f.Injector)),R1(1,f.Inject(ke)),R1(2,S1),R1(3,qe),R1(4,f.ICommandService)],C.ShortcutPanelController);const j1=f.createIdentifier("univer.ui.ui-controller");var h1={},Bt={exports:{}},Ut={exports:{}},w6;function k1(){return w6||(w6=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ut)),Ut.exports}var M6;function g4(){return M6||(M6=1,function(e){var t=k1().default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(n=function(h){return h?a:o})(i)}function r(i,o){if(!o&&i&&i.__esModule)return i;if(i===null||t(i)!="object"&&typeof i!="function")return{default:i};var a=n(o);if(a&&a.has(i))return a.get(i);var l={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in i)if(v!=="default"&&{}.hasOwnProperty.call(i,v)){var m=h?Object.getOwnPropertyDescriptor(i,v):null;m&&(m.get||m.set)?Object.defineProperty(l,v,m):l[v]=i[v]}return l.default=i,a&&a.set(i,l),l}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Bt)),Bt.exports}var Ft={exports:{}},E6;function b4(){return E6||(E6=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ft)),Ft.exports}var zt={exports:{}},O6;function y4(){return O6||(O6=1,function(e){var t=k1().default;function n(){e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(F,V,P){F[V]=P.value},h=typeof Symbol=="function"?Symbol:{},v=h.iterator||"@@iterator",m=h.asyncIterator||"@@asyncIterator",u=h.toStringTag||"@@toStringTag";function p(F,V,P){return Object.defineProperty(F,V,{value:P,enumerable:!0,configurable:!0,writable:!0}),F[V]}try{p({},"")}catch{p=function(P,q,Q){return P[q]=Q}}function L(F,V,P,q){var Q=V&&V.prototype instanceof $?V:$,G=Object.create(Q.prototype),ee=new fe(q||[]);return l(G,"_invoke",{value:K(F,P,ee)}),G}function E(F,V,P){try{return{type:"normal",arg:F.call(V,P)}}catch(q){return{type:"throw",arg:q}}}i.wrap=L;var M="suspendedStart",b="suspendedYield",O="executing",x="completed",I={};function $(){}function H(){}function T(){}var A={};p(A,v,function(){return this});var R=Object.getPrototypeOf,k=R&&R(R(be([])));k&&k!==o&&a.call(k,v)&&(A=k);var Z=T.prototype=$.prototype=Object.create(A);function W(F){["next","throw","return"].forEach(function(V){p(F,V,function(P){return this._invoke(V,P)})})}function Y(F,V){function P(Q,G,ee,se){var Ce=E(F[Q],F,G);if(Ce.type!=="throw"){var xe=Ce.arg,we=xe.value;return we&&t(we)=="object"&&a.call(we,"__await")?V.resolve(we.__await).then(function(Me){P("next",Me,ee,se)},function(Me){P("throw",Me,ee,se)}):V.resolve(we).then(function(Me){xe.value=Me,ee(xe)},function(Me){return P("throw",Me,ee,se)})}se(Ce.arg)}var q;l(this,"_invoke",{value:function(G,ee){function se(){return new V(function(Ce,xe){P(G,ee,Ce,xe)})}return q=q?q.then(se,se):se()}})}function K(F,V,P){var q=M;return function(Q,G){if(q===O)throw Error("Generator is already running");if(q===x){if(Q==="throw")throw G;return{value:r,done:!0}}for(P.method=Q,P.arg=G;;){var ee=P.delegate;if(ee){var se=oe(ee,P);if(se){if(se===I)continue;return se}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(q===M)throw q=x,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);q=O;var Ce=E(F,V,P);if(Ce.type==="normal"){if(q=P.done?x:b,Ce.arg===I)continue;return{value:Ce.arg,done:P.done}}Ce.type==="throw"&&(q=x,P.method="throw",P.arg=Ce.arg)}}}function oe(F,V){var P=V.method,q=F.iterator[P];if(q===r)return V.delegate=null,P==="throw"&&F.iterator.return&&(V.method="return",V.arg=r,oe(F,V),V.method==="throw")||P!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+P+"' method")),I;var Q=E(q,F.iterator,V.arg);if(Q.type==="throw")return V.method="throw",V.arg=Q.arg,V.delegate=null,I;var G=Q.arg;return G?G.done?(V[F.resultName]=G.value,V.next=F.nextLoc,V.method!=="return"&&(V.method="next",V.arg=r),V.delegate=null,I):G:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,I)}function ve(F){var V={tryLoc:F[0]};1 in F&&(V.catchLoc=F[1]),2 in F&&(V.finallyLoc=F[2],V.afterLoc=F[3]),this.tryEntries.push(V)}function ie(F){var V=F.completion||{};V.type="normal",delete V.arg,F.completion=V}function fe(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(ve,this),this.reset(!0)}function be(F){if(F||F===""){var V=F[v];if(V)return V.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var P=-1,q=function Q(){for(;++P<F.length;)if(a.call(F,P))return Q.value=F[P],Q.done=!1,Q;return Q.value=r,Q.done=!0,Q};return q.next=q}}throw new TypeError(t(F)+" is not iterable")}return H.prototype=T,l(Z,"constructor",{value:T,configurable:!0}),l(T,"constructor",{value:H,configurable:!0}),H.displayName=p(T,u,"GeneratorFunction"),i.isGeneratorFunction=function(F){var V=typeof F=="function"&&F.constructor;return!!V&&(V===H||(V.displayName||V.name)==="GeneratorFunction")},i.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,T):(F.__proto__=T,p(F,u,"GeneratorFunction")),F.prototype=Object.create(Z),F},i.awrap=function(F){return{__await:F}},W(Y.prototype),p(Y.prototype,m,function(){return this}),i.AsyncIterator=Y,i.async=function(F,V,P,q,Q){Q===void 0&&(Q=Promise);var G=new Y(L(F,V,P,q),Q);return i.isGeneratorFunction(V)?G:G.next().then(function(ee){return ee.done?ee.value:G.next()})},W(Z),p(Z,u,"Generator"),p(Z,v,function(){return this}),p(Z,"toString",function(){return"[object Generator]"}),i.keys=function(F){var V=Object(F),P=[];for(var q in V)P.push(q);return P.reverse(),function Q(){for(;P.length;){var G=P.pop();if(G in V)return Q.value=G,Q.done=!1,Q}return Q.done=!0,Q}},i.values=be,fe.prototype={constructor:fe,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(ie),!V)for(var P in this)P.charAt(0)==="t"&&a.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=r)},stop:function(){this.done=!0;var V=this.tryEntries[0].completion;if(V.type==="throw")throw V.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var P=this;function q(xe,we){return ee.type="throw",ee.arg=V,P.next=xe,we&&(P.method="next",P.arg=r),!!we}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var G=this.tryEntries[Q],ee=G.completion;if(G.tryLoc==="root")return q("end");if(G.tryLoc<=this.prev){var se=a.call(G,"catchLoc"),Ce=a.call(G,"finallyLoc");if(se&&Ce){if(this.prev<G.catchLoc)return q(G.catchLoc,!0);if(this.prev<G.finallyLoc)return q(G.finallyLoc)}else if(se){if(this.prev<G.catchLoc)return q(G.catchLoc,!0)}else{if(!Ce)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return q(G.finallyLoc)}}}},abrupt:function(V,P){for(var q=this.tryEntries.length-1;q>=0;--q){var Q=this.tryEntries[q];if(Q.tryLoc<=this.prev&&a.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var G=Q;break}}G&&(V==="break"||V==="continue")&&G.tryLoc<=P&&P<=G.finallyLoc&&(G=null);var ee=G?G.completion:{};return ee.type=V,ee.arg=P,G?(this.method="next",this.next=G.finallyLoc,I):this.complete(ee)},complete:function(V,P){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&P&&(this.next=P),I},finish:function(V){for(var P=this.tryEntries.length-1;P>=0;--P){var q=this.tryEntries[P];if(q.finallyLoc===V)return this.complete(q.completion,q.afterLoc),ie(q),I}},catch:function(V){for(var P=this.tryEntries.length-1;P>=0;--P){var q=this.tryEntries[P];if(q.tryLoc===V){var Q=q.completion;if(Q.type==="throw"){var G=Q.arg;ie(q)}return G}}throw Error("illegal catch attempt")},delegateYield:function(V,P,q){return this.delegate={iterator:be(V),resultName:P,nextLoc:q},this.method==="next"&&(this.arg=r),I}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(zt)),zt.exports}var Zt={exports:{}},H6;function S4(){return H6||(H6=1,function(e){function t(r,i,o,a,l,h,v){try{var m=r[h](v),u=m.value}catch(p){return void o(p)}m.done?i(u):Promise.resolve(u).then(a,l)}function n(r){return function(){var i=this,o=arguments;return new Promise(function(a,l){var h=r.apply(i,o);function v(u){t(h,a,l,v,m,"next",u)}function m(u){t(h,a,l,v,m,"throw",u)}v(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Zt)),Zt.exports}var Wt={exports:{}},Gt={exports:{}},Yt={exports:{}},qt={exports:{}},I6;function L4(){return I6||(I6=1,function(e){var t=k1().default;function n(r,i){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(qt)),qt.exports}var T6;function _4(){return T6||(T6=1,function(e){var t=k1().default,n=L4();function r(i){var o=n(i,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Yt)),Yt.exports}var D6;function w4(){return D6||(D6=1,function(e){var t=_4();function n(r,i,o){return(i=t(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Gt)),Gt.exports}var x6;function M4(){return x6||(x6=1,function(e){var t=w4();function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);o&&(l=l.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),a.push.apply(a,l)}return a}function r(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?n(Object(a),!0).forEach(function(l){t(i,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(a,l))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Wt)),Wt.exports}var N6;function E4(){if(N6)return h1;N6=1;var e=g4().default,t=b4().default;Object.defineProperty(h1,"__esModule",{value:!0}),h1._r=O,h1._u=T,h1.render=x,h1.unmount=A;var n=t(y4()),r=t(S4()),i=t(k1()),o=t(M4()),a=e(T1),l=(0,o.default)({},a),h=l.version,v=l.render,m=l.unmountComponentAtNode,u;try{var p=Number((h||"").split(".")[0]);p>=18&&(u=l.createRoot)}catch{}function L(k){var Z=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Z&&(0,i.default)(Z)==="object"&&(Z.usingClientEntryPoint=k)}var E="__rc_react_root__";function M(k,Z){L(!0);var W=Z[E]||u(Z);L(!1),W.render(k),Z[E]=W}function b(k,Z){v(k,Z)}function O(k,Z){}function x(k,Z){if(u){M(k,Z);return}b(k,Z)}function I(k){return $.apply(this,arguments)}function $(){return $=(0,r.default)((0,n.default)().mark(function k(Z){return(0,n.default)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",Promise.resolve().then(function(){var K;(K=Z[E])===null||K===void 0||K.unmount(),delete Z[E]}));case 1:case"end":return Y.stop()}},k)})),$.apply(this,arguments)}function H(k){m(k)}function T(k){}function A(k){return R.apply(this,arguments)}function R(){return R=(0,r.default)((0,n.default)().mark(function k(Z){return(0,n.default)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(u===void 0){Y.next=2;break}return Y.abrupt("return",I(Z));case 2:H(Z);case 3:case"end":return Y.stop()}},k)})),R.apply(this,arguments)}return h1}var _1=E4(),ge=(e=>(e.GLOBAL="global",e.HEADER="header",e.HEADER_MENU="header-menu",e.CONTENT="content",e.FOOTER="footer",e.LEFT_SIDEBAR="left-sidebar",e.FLOATING="floating",e.UNIT="unit",e))(ge||{});const Xe=f.createIdentifier("ui.parts.service");class Xt extends f.Disposable{constructor(){super(...arguments);te(this,"_componentsByPart",new Map);te(this,"_componentRegistered$",new re.Subject);te(this,"componentRegistered$",this._componentRegistered$.asObservable())}dispose(){super.dispose(),this._componentRegistered$.complete()}registerComponent(n,r){const i=r(),o=(this._componentsByPart.get(n)||this._componentsByPart.set(n,new Set).get(n)).add(i);return this._componentRegistered$.next(n),f.toDisposable(()=>{o.delete(i),o.size===0&&this._componentsByPart.delete(n),this._componentRegistered$.next(n)})}getComponents(n){return new Set([...this._componentsByPart.get(n)||new Set])}}class it{constructor(){te(this,"_domLayerMap",new Map);te(this,"_domLayers$",new re.BehaviorSubject([]));te(this,"domLayers$",this._domLayers$.asObservable())}get domLayers(){return Array.from(this._domLayerMap.entries())}_notice(){this._domLayers$.next(Array.from(this._domLayerMap.entries()))}addFloatDom(t){this._domLayerMap.set(t.id,t),this._notice()}removeFloatDom(t){this._domLayerMap.delete(t)&&this._notice()}removeAll(){this._domLayerMap.clear(),this._notice()}}const V6={floatDomWrapper:"univer-float-dom-wrapper",floatDom:"univer-float-dom"},O4=s.memo(e=>{var M,b;const{layer:t,id:n}=e,r=f.useDependency(ke),i=s.useMemo(()=>t.position$.pipe(re.distinctUntilChanged((O,x)=>O.absolute.left===x.absolute.left&&O.absolute.top===x.absolute.top&&O.endX-O.startX===x.endX-x.startX&&O.endY-O.startY===x.endY-x.startY)),[t.position$]),o=f.useObservable(s.useMemo(()=>t.position$.pipe(re.first()),[t.position$])),a=s.useRef(null),l=s.useRef(null),h=s.useRef(`transform: rotate(${o==null?void 0:o.rotate}deg) translate(${o==null?void 0:o.startX}px, ${o==null?void 0:o.startY}px)`),v=s.useRef((M=o==null?void 0:o.startY)!=null?M:0),m=s.useRef((b=o==null?void 0:o.startX)!=null?b:0),u=s.useRef({}),p=typeof t.componentKey=="string"?r.get(t.componentKey):t.componentKey,L=s.useMemo(()=>({data:t.data,...t.props}),[t.data,t.props]);s.useEffect(()=>{const O=t.position$.subscribe(I=>{h.current=`rotate(${I.rotate}deg)`,v.current=I.startY,m.current=I.startX,a.current&&(a.current.style.transform=h.current,a.current.style.top=`${v.current}px`,a.current.style.left=`${m.current}px`)}),x=i.subscribe(I=>{if(a.current&&(a.current.style.width=`${Math.max(I.endX-I.startX-2,0)}px`,a.current.style.height=`${Math.max(I.endY-I.startY-2,0)}px`),l.current){const $={width:`${I.width-4}px`,height:`${I.height-4}px`,left:`${I.absolute.left?0:"auto"}`,top:`${I.absolute.top?0:"auto"}`,right:`${I.absolute.left?"auto":0}`,bottom:`${I.absolute.top?"auto":0}`};l.current.style.width=$.width,l.current.style.height=$.height,l.current.style.left=$.left,l.current.style.top=$.top,l.current.style.right=$.right,l.current.style.bottom=$.bottom,u.current=$}});return()=>{O.unsubscribe(),x.unsubscribe()}},[t.position$,i]);const E=s.useMemo(()=>p?y.jsx(p,{...L}):null,[p,L]);return o?y.jsx("div",{ref:a,className:V6.floatDomWrapper,style:{position:"absolute",top:v.current,left:m.current,width:Math.max(o.endX-o.startX-2,0),height:Math.max(o.endY-o.startY-2,0),transform:h.current,overflow:"hidden",transformOrigin:"center center"},onPointerMove:O=>{t.onPointerMove(O.nativeEvent)},onPointerDown:O=>{t.onPointerDown(O.nativeEvent)},onPointerUp:O=>{t.onPointerUp(O.nativeEvent)},onWheel:O=>{t.onWheel(O.nativeEvent)},children:y.jsx("div",{id:n,ref:l,className:V6.floatDom,style:{position:"absolute",...u.current},children:E})}):null}),Qt=({unitId:e})=>{var o,a;const t=f.useDependency(f.IUniverInstanceService),n=f.useDependency(it),r=f.useObservable(n.domLayers$),i=e||((o=t.getCurrentUnitForType(f.UniverInstanceType.UNIVER_SHEET))==null?void 0:o.getUnitId());return(a=r==null?void 0:r.filter(l=>l[1].unitId===i))==null?void 0:a.map(l=>y.jsx(O4,{id:l[0],layer:l[1]},l[0]))},ot=f.createIdentifier("ui.popup.service");class Jt extends f.Disposable{constructor(){super(...arguments);te(this,"_popupMap",new Map);te(this,"_popups$",new re.BehaviorSubject([]));te(this,"popups$",this._popups$.asObservable());te(this,"_activePopupId",null)}get popups(){return Array.from(this._popupMap.entries())}get activePopupId(){return this._activePopupId}_update(){this._popups$.next(Array.from(this._popupMap.entries()))}dispose(){super.dispose(),this._popups$.next([]),this._popups$.complete(),this._popupMap.clear()}addPopup(n){const r=f.Tools.generateRandomId();return this._popupMap.set(r,{...n,onPointerEnter:()=>{this._activePopupId=r},onPointerLeave:()=>{this._activePopupId===r&&(this._activePopupId=null)}}),this._update(),r}removePopup(n){this._popupMap.delete(n)&&this._update()}removeAll(){this._popupMap.clear(),this._update()}}const H4=({popup:e,children:t})=>{const[n,r]=s.useState(!1),i=s.useMemo(()=>e.anchorRect$.pipe(re.throttleTime(0,re.animationFrameScheduler),re.map(u=>{var x;const{bottom:p,left:L,right:E,top:M}=u,[b=0,O=0]=(x=e.offset)!=null?x:[];return{left:L-b,right:E+b,top:M-O,bottom:p+O}})),[e.anchorRect$,e.offset]),o=s.useMemo(()=>{var u,p;return(p=(u=e.hiddenRects$)==null?void 0:u.pipe(re.throttleTime(0,re.animationFrameScheduler)))!=null?p:re.of([])},[e.hiddenRects$]),a=s.useMemo(()=>{var u;return(u=e.excludeRects$)==null?void 0:u.pipe(re.throttleTime(0,re.animationFrameScheduler))},[e.excludeRects$]),l=W3(a,e.excludeRects),{canvasElement:h,hideOnInvisible:v=!0,hiddenType:m="destroy"}=e;return s.useEffect(()=>{if(!v)return;const u=re.combineLatest([i,o]).subscribe(([p,L])=>{const E=h.getBoundingClientRect(),{top:M,left:b,bottom:O,right:x}=E,I=p.bottom-p.top,$=p.right-p.left,H=L.some(T=>p.top>=T.top-.5*I&&p.bottom<=T.bottom+.5*I&&p.left>=T.left-.5*$&&p.right<=T.right+.5*$);p.bottom<M||p.top>O||p.right<b||p.left>x||H?r(!0):r(!1)});return()=>u.unsubscribe()},[h,v,i,o]),n&&m==="destroy"?null:y.jsx(J1,{hidden:n,anchorRect$:i,direction:e.direction,onClickOutside:e.onClickOutside,excludeOutside:e.excludeOutside,excludeRects:l,onPointerEnter:e.onPointerEnter,onPointerLeave:e.onPointerLeave,onClick:e.onClick,onContextMenu:e.onContextMenu,children:t})};function Kt(){const e=f.useDependency(ot),t=f.useDependency(ke);return f.useObservable(e.popups$,void 0,!0).map(r=>{const[i,o]=r,a=t.get(o.componentKey);return y.jsx(H4,{popup:o,children:a?y.jsx(a,{popup:o}):null},i)})}const $1=f.createIdentifier("univer.zen-zone-service");function De(e){const{components:t,fallback:n,sharedProps:r}=e;return!t||t.size===0?n!=null?n:null:Array.from(t.values()).map((i,o)=>{var a;return s.createElement(i,{key:`${(a=i.displayName)!=null?a:o}`,...r})})}function Ae(e,t){var o;const n=(o=t==null?void 0:t.get(Xe))!=null?o:f.useDependency(Xe),r=s.useRef(0),i=f.useObservable(()=>n.componentRegistered$.pipe(re.filter(a=>a===e),re.debounceTime(200),re.map(()=>r.current+=1),re.startWith(r.current+=1)),void 0,void 0,[n,e]);return s.useMemo(()=>n.getComponents(e),[i])}const B1=f.createIdentifier("ui.contextmenu.service");class en extends f.Disposable{constructor(){super(...arguments);te(this,"_currentHandler",null);te(this,"disabled",!1)}get visible(){var n,r;return(r=(n=this._currentHandler)==null?void 0:n.visible)!=null?r:!1}disable(){this.disabled=!0}enable(){this.disabled=!1}triggerContextMenu(n,r){var i;n.stopPropagation(),!this.disabled&&((i=this._currentHandler)==null||i.handleContextMenu(n,r))}hideContextMenu(){var n;(n=this._currentHandler)==null||n.hideContextMenu()}registerContextMenuHandler(n){if(this._currentHandler)throw new Error("There is already a context menu handler!");return this._currentHandler=n,f.toDisposable(()=>this._currentHandler=null)}}function A6(){const e=s.useRef(null),[t,n]=s.useState(!1),[r,i]=s.useState(""),[o,a]=s.useState([0,0]),l=s.useRef(t),h=f.useDependency(B1),v=f.useDependency(f.ICommandService),m=f.useInjector();l.current=t,s.useEffect(()=>{const L=h.registerContextMenuHandler({handleContextMenu:u,hideContextMenu(){n(!1)},get visible(){return l.current}});function E(M){e.current&&!e.current.contains(M.target)&&p()}return document.addEventListener("pointerdown",E),document.addEventListener("wheel",p),()=>{document.removeEventListener("pointerdown",E),document.removeEventListener("wheel",p),L.dispose()}},[h]);function u(L,E){n(!1),requestAnimationFrame(()=>{i(E),a([L.clientX,L.clientY]),n(!0)})}function p(){n(!1)}return y.jsx(he.Popup,{visible:t,offset:o,children:y.jsx("section",{ref:e,children:r&&y.jsx(K1,{menuType:r,onOptionSelect:L=>{const{label:E,commandId:M,value:b}=L;v&&v.executeCommand(M!=null?M:E,{value:b}),m.get(n1).focus(),n(!1)}})})})}const P6={toolbarBtn:"univer-toolbar-btn",toolbarBtnActive:"univer-toolbar-btn-active"};function tn(e){const{children:t,className:n,style:r,disabled:i=!1,active:o=!1,onClick:a,onDoubleClick:l,...h}=e,v=p=>{if(i){p.preventDefault();return}a&&a(p)},m=p=>{if(i){p.preventDefault();return}l&&l(p)},u=Ie(P6.toolbarBtn,{[`${P6.toolbarBtn}-active`]:o},n);return y.jsx("button",{className:u,style:r,disabled:i,onClick:v,onDoubleClick:m,...h,children:t})}const me={headerbar:"univer-headerbar",headerMenu:"univer-header-menu",menubar:"univer-menubar",menubarItem:"univer-menubar-item",menubarItemActive:"univer-menubar-item-active",toolbar:"univer-toolbar",toolbarContainer:"univer-toolbar-container",toolbarMore:"univer-toolbar-more",toolbarMoreContainer:"univer-toolbar-more-container",toolbarGroup:"univer-toolbar-group",toolbarItemSelectButton:"univer-toolbar-item-select-button",toolbarItemSelectButtonDisabled:"univer-toolbar-item-select-button-disabled",toolbarItemSelectButtonActivated:"univer-toolbar-item-select-button-activated",toolbarItemSelectButtonLabel:"univer-toolbar-item-select-button-label",toolbarItemSelectButtonArrow:"univer-toolbar-item-select-button-arrow",toolbarItemSelect:"univer-toolbar-item-select",toolbarItemSelectDisabled:"univer-toolbar-item-select-disabled",toolbarItemSelectActivated:"univer-toolbar-item-select-activated",toolbarItemSelectArrow:"univer-toolbar-item-select-arrow",toolbarItemSelectArrowDisabled:"univer-toolbar-item-select-arrow-disabled",toolbarItemSelectArrowActivated:"univer-toolbar-item-select-arrow-activated"};function R6(e){const{disabled$:t,hidden$:n,activated$:r,value$:i}=e,[o,a]=s.useState(),[l,h]=s.useState(!1),[v,m]=s.useState(!1),[u,p]=s.useState(!1);return s.useEffect(()=>{const L=[];return t&&L.push(t.subscribe(E=>h(E))),n&&L.push(n.subscribe(E=>p(E))),r&&L.push(r.subscribe(E=>m(E))),i&&L.push(i.subscribe(E=>a(E))),()=>L.forEach(E=>E.unsubscribe())},[r,t,n,i]),{disabled:l,value:o,activated:v,hidden:u}}const j6=s.createContext({dropdownVisible:!1,setDropdownVisible:e=>{}}),k6=s.forwardRef((e,t)=>{const{children:n,...r}=e,[i,o]=s.useState(!1),[a,l]=s.useState(!1);function h(u){o(a?!1:u)}function v(u){l(u),o(!1)}const m=s.useMemo(()=>({dropdownVisible:a,setDropdownVisible:v}),[a]);return y.jsx(he.Tooltip,{ref:t,...r,visible:i,onVisibleChange:h,children:y.jsx("span",{children:y.jsx(j6.Provider,{value:m,children:n})})})});function nn(e){const{children:t,...n}=e,{setDropdownVisible:r}=s.useContext(j6);function i(o){r(o)}return y.jsx(he.Dropdown,{onVisibleChange:i,...n,children:y.jsx("div",{onClick:o=>o.stopPropagation(),children:t})})}const w1=s.forwardRef((e,t)=>{const{align:n}=e,r=f.useDependency(f.LocaleService),i=f.useDependency(f.ICommandService),o=f.useDependency(n1),a=f.useDependency(ke),{value:l,hidden:h,disabled:v,activated:m}=R6(e),u=(Y,K)=>{o.focus(),i.executeCommand(Y,K)},{tooltip:p,shortcut:L,icon:E,title:M,label:b,id:O,commandId:x}=e,I=r.t(p!=null?p:"")+(L?` (${L})`:""),{selections:$}=e,H=s.useMemo(()=>re.isObservable($)?$:new re.Observable(Y=>{Y.next($)}),[$]),T=f.useObservable(H),A=s.useMemo(()=>re.isObservable(E)?E:new re.Observable(Y=>{var oe,ve;const K=(ve=(oe=T==null?void 0:T.find(ie=>ie.value===l))==null?void 0:oe.icon)!=null?ve:E;Y.next(K)}),[E,T,l]),R=f.useObservable(A,void 0,!0);function k(Y){var F;const K=e.selectionsCommandId,oe=x!=null?x:O,ve=(F=K!=null?K:x)!=null?F:O;function ie(V){if(v)return;let P=ve;V.id&&(P=V.id),u(P,{value:V.value})}function fe(V){v||u(ve,{value:V})}function be(){v||Y===Te.BUTTON_SELECTOR&&u(oe,{value:l})}return Y===Te.BUTTON_SELECTOR?y.jsxs("div",{className:Ie(me.toolbarItemSelectButton,{[me.toolbarItemSelectButtonDisabled]:v,[me.toolbarItemSelectButtonActivated]:m}),"data-disabled":v,children:[y.jsx("div",{className:me.toolbarItemSelectButtonLabel,onClick:be,children:y.jsx(Ve,{icon:R,title:M,value:l,label:b,onChange:fe})}),y.jsx(nn,{disabled:v,align:n!=null?n:{targetOffset:[32,-12]},overlay:y.jsx(K1,{overViewport:"scroll",menuType:O,options:T,onOptionSelect:ie,value:l}),children:y.jsx("div",{className:Ie(me.toolbarItemSelectButtonArrow,{[me.toolbarItemSelectButtonArrowDisabled]:v,[me.toolbarItemSelectButtonArrowActivated]:m}),"data-disabled":v,children:y.jsx(Y1,{style:{height:"100%"}})})})]}):y.jsx(nn,{disabled:v,overlay:y.jsx(K1,{overViewport:"scroll",menuType:O,options:T,onOptionSelect:ie,value:l}),children:y.jsxs("div",{className:Ie(me.toolbarItemSelect,{[me.toolbarItemSelectDisabled]:v,[me.toolbarItemSelectActivated]:m}),children:[y.jsx(Ve,{icon:R,title:M,value:l,label:b,onChange:fe}),y.jsx("div",{className:Ie(me.toolbarItemSelectArrow,{[me.toolbarItemSelectArrowDisabled]:v}),children:y.jsx(Y1,{})})]})})}function Z(){var K;const Y=a.get(typeof b=="string"?b:(K=b==null?void 0:b.name)!=null?K:"");return y.jsx("span",{children:y.jsx(tn,{className:me.toolbarItemTextButton,active:m,disabled:v,onClick:()=>{var oe;return u((oe=e.commandId)!=null?oe:e.id)},onDoubleClick:()=>e.subId&&u(e.subId),children:Y?y.jsx(Ve,{title:M,value:l,label:b}):y.jsx(Ve,{icon:E})})})}function W(){switch(e.type){case Te.BUTTON_SELECTOR:case Te.SELECTOR:case Te.SUBITEMS:return k(e.type);case Te.BUTTON:default:return Z()}}return!h&&y.jsx(k6,{ref:t,title:I,placement:"bottom",children:W()})});function $6(e){const{headerMenuComponents:t}=e,n=f.useDependency(qe),r=f.useDependency(f.LocaleService),i=s.useRef(null),o=s.useRef({}),[a,l]=s.useState([]),[h,v]=s.useState(r1.START),[m,u]=s.useState([]);s.useEffect(()=>{function M(){const O=n.getMenuByPositionKey(V1.RIBBON);l(O)}M();const b=n.menuChanged$.subscribe(M);return()=>{b.unsubscribe()}},[n]),s.useEffect(()=>{const M=new ResizeObserver(b=>{const x=b[0].target.clientWidth,I=Object.values(o.current),$=[];let H=90;for(const{el:T,key:A}of I)T&&(H+=T.clientWidth+8,H>x&&$.push(A));u($)});return i.current&&M.observe(i.current),()=>{M.disconnect()}},[a]);const p=s.useMemo(()=>t&&t.size>0||a.length>1,[t,a]),L=s.useMemo(()=>{var x,I;const M=(I=(x=a.find($=>$.key===h))==null?void 0:x.children)!=null?I:[],b=[],O=[];for(const $ of M)if($.children){const H=$.children.filter(T=>!m.includes(T.key));b.push({...$,children:H}),H.length<$.children.length&&O.push({...$,children:$.children.filter(T=>m.includes(T.key))})}return{allGroups:M,visibleGroups:b,hiddenGroups:O}},[a,h,m]),E=s.useMemo(()=>L.allGroups.map(M=>{var b;return y.jsx("div",{className:me.toolbarGroup,children:(b=M.children)==null?void 0:b.map(O=>O.item&&y.jsx(w1,{ref:x=>{o.current[O.key]={el:x==null?void 0:x.nativeElement,key:O.key}},...O.item},O.key))},M.key)}),[L.allGroups]);return y.jsxs(y.Fragment,{children:[p&&y.jsxs("header",{className:me.headerbar,children:[y.jsx("div",{className:me.menubar,children:a.length>1&&a.map(M=>y.jsx("a",{className:Ie(me.menubarItem,{[me.menubarItemActive]:M.key===h}),onClick:()=>{v(M.key)},children:r.t(M.key)},M.key))}),y.jsx("div",{className:me.headerMenu,children:y.jsx(De,{components:t})})]}),y.jsx("section",{role:"ribbon",className:me.toolbar,children:y.jsxs("div",{className:me.toolbarContainer,children:[L.visibleGroups.map(M=>{var b,O;return(((b=M.children)==null?void 0:b.length)||M.item)&&y.jsx("div",{className:me.toolbarGroup,children:M.children?(O=M.children)==null?void 0:O.map(x=>x.item&&y.jsx(w1,{...x.item},x.key)):M.item&&y.jsx(w1,{...M.item},M.key)},M.key)}),m.length>0&&y.jsx(k6,{title:r.t("ribbon.more"),placement:"bottom",children:y.jsx(nn,{forceRender:!0,overlay:y.jsx("div",{className:me.toolbarMoreContainer,children:L.hiddenGroups.map(M=>{var b;return y.jsx("div",{className:me.toolbarGroup,children:M.children?(b=M.children)==null?void 0:b.map(O=>O.item&&y.jsx(w1,{...O.item},O.key)):M.item&&y.jsx(w1,{...M.item},M.key)},M.key)})}),children:y.jsx(tn,{className:me.toolbarItemTextButton,children:y.jsx(r3,{})})})})]})}),y.jsx("div",{ref:i,className:me.toolbarContainer,style:{position:"absolute",top:-9999,left:-9999,opacity:0},children:E})]})}const v1={sidebar:"univer-sidebar",sidebarOpen:"univer-sidebar-open",sidebarContainer:"univer-sidebar-container",sidebarHeader:"univer-sidebar-header",sidebarHeaderClose:"univer-sidebar-header-close",sidebarBody:"univer-sidebar-body",sidebarFooter:"univer-sidebar-footer"};function rn(){const e=f.useDependency(y1),t=f.useObservable(e.sidebarOptions$),n=s.useRef(null),r=s.useMemo(()=>{if(!t)return null;const l={...t};for(const h of["children","header","footer"]){const v=h;if(t[v]){const m=t[v];m&&(l[v]=y.jsx(Ve,{...m}))}}return l},[t]);s.useEffect(()=>(n.current&&e.setContainer(n.current),()=>{e.setContainer(void 0)}),[e]),s.useEffect(()=>{const l=v=>{e.scrollEvent$.next(v)},h=n.current;return h&&h.addEventListener("scroll",l),()=>{h==null||h.removeEventListener("scroll",l)}},[e]);const i=Ie(v1.sidebar,{[v1.sidebarOpen]:r==null?void 0:r.visible}),o=s.useMemo(()=>r!=null&&r.visible?typeof r.width=="number"?`${r.width}px`:r.width:0,[r]);function a(){var h;const l={...t,visible:!1};e.sidebarOptions$.next(l),(h=l==null?void 0:l.onClose)==null||h.call(l)}return y.jsx("section",{className:i,style:{width:o},children:y.jsxs("section",{className:v1.sidebarContainer,ref:n,children:[y.jsxs("header",{className:v1.sidebarHeader,children:[r==null?void 0:r.header,y.jsx("a",{className:v1.sidebarHeaderClose,onClick:a,children:y.jsx(G1,{})})]}),y.jsx("section",{className:v1.sidebarBody,style:r==null?void 0:r.bodyStyle,children:r==null?void 0:r.children}),(r==null?void 0:r.footer)&&y.jsx("footer",{className:v1.sidebarFooter,children:r.footer})]})})}const at={zenZone:"univer-zen-zone",zenZoneOpen:"univer-zen-zone-open",zenZoneClose:"univer-zen-zone-close",zenZoneEditorContainer:"univer-zen-zone-editor-container"};function on(){const e=f.useDependency($1),[t,n]=s.useState(!1),[r,i]=s.useState(),o=f.useObservable(e.temporaryHidden$),a=f.useDependency(ke);s.useEffect(()=>{const v=[e.visible$.subscribe(m=>{n(m)}),e.componentKey$.subscribe(m=>{i(m)})];return()=>{v.forEach(m=>{m.unsubscribe()})}},[]);const l=Ie(at.zenZone,t?at.zenZoneOpen:at.zenZoneClose),h=s.useMemo(()=>{const v=a.get(r!=null?r:"");if(v)return v},[r]);return y.jsx("section",{style:o?{opacity:0,zIndex:-1}:void 0,className:l,children:y.jsx("div",{className:at.zenZoneEditorContainer,children:h&&y.jsx(h,{})})})}const st=f.createIdentifier("univer.global-zone-service"),B6={globalZone:"univer-global-zone",globalZoneOpen:"univer-global-zone-open",globalZoneClose:"univer-global-zone-close"};function U6(){const e=f.useDependency(st),[t,n]=s.useState(!1),r=f.useObservable(e.componentKey$,e.componentKey),i=f.useDependency(ke),o=Ie(B6.globalZone,B6.globalZoneOpen),a=s.useMemo(()=>{const l=i.get(r!=null?r:"");if(l)return l},[r,i]);return s.useEffect(()=>{const l=e.visible$.subscribe(h=>{n(h)});return()=>{l.unsubscribe()}},[e.visible$]),t?y.jsx("section",{className:o,children:a&&y.jsx(a,{})}):null}const an=new Set([U6]),Qe={workbenchLayout:"univer-workbench-layout",workbenchContainer:"univer-workbench-container",workbenchContainerHeader:"univer-workbench-container-header",workbenchContainerWrapper:"univer-workbench-container-wrapper",workbenchContainerContent:"univer-workbench-container-content",workbenchContainerDocContent:"univer-workbench-container-doc-content",workbenchContainerCanvas:"univer-workbench-container-canvas",workbenchContainerLeftSidebar:"univer-workbench-container-left-sidebar",workbenchContainerSidebar:"univer-workbench-container-sidebar"};function I4(e){const{header:t=!0,toolbar:n=!0,footer:r=!0,contextMenu:i=!0,mountContainer:o,onRendered:a}=e,l=f.useDependency(f.LocaleService),h=f.useDependency(f.ThemeService),v=f.useDependency(b1),m=f.useDependency(f.IUniverInstanceService),u=s.useRef(null),p=Ae(ge.FOOTER),L=Ae(ge.HEADER),E=Ae(ge.HEADER_MENU),M=Ae(ge.CONTENT),b=Ae(ge.LEFT_SIDEBAR),O=Ae(ge.GLOBAL),x=f.useDependency($1);f.useObservable(x.visible$,x.visible);const[I,$]=s.useState(null);s.useEffect(()=>{const R=m.focused$.subscribe(k=>{if(k==null)return;const Z=m.getUnitType(k),W=m.getUnit(k);Z===f.UniverInstanceType.UNIVER_DOC&&W&&$(W.getSnapshot())});return()=>{R.unsubscribe()}},[]),s.useEffect(()=>{h.getCurrentTheme()||h.setTheme(he.defaultTheme)},[]),s.useEffect(()=>{u.current&&(a==null||a(u.current))},[a]);const[H,T]=s.useState(l.getLocales()),A=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(A),v.setContainer(A);const R=[l.localeChanged$.subscribe(()=>{T(l.getLocales())}),h.currentTheme$.subscribe(k=>{he.themeInstance.setTheme(o,k),A&&he.themeInstance.setTheme(A,k)})];return()=>{R.forEach(k=>k.unsubscribe()),document.body.removeChild(A)}},[l,v,o,A,h.currentTheme$]),y.jsxs(he.ConfigProvider,{locale:H==null?void 0:H.design,mountContainer:A,children:[y.jsxs("div",{className:Qe.workbenchLayout,tabIndex:-1,onBlur:R=>R.stopPropagation(),children:[t&&n&&y.jsx("header",{className:Qe.workbenchContainerHeader,children:y.jsx($6,{headerMenuComponents:E})}),y.jsxs("section",{className:Qe.workbenchContainer,children:[y.jsxs("div",{className:Qe.workbenchContainerWrapper,children:[y.jsx("aside",{className:Qe.workbenchContainerLeftSidebar,children:y.jsx(De,{components:b},"left-sidebar")}),y.jsxs("section",{className:Ie(Qe.workbenchContainerContent,{[Qe.workbenchContainerDocContent]:(I==null?void 0:I.documentStyle.documentFlavor)===f.DocumentFlavor.TRADITIONAL}),children:[y.jsx("header",{children:t&&y.jsx(De,{components:L},"header")}),y.jsx("section",{className:Qe.workbenchContainerCanvas,ref:u,"data-range-selector":!0,onContextMenu:R=>R.preventDefault(),children:y.jsx(De,{components:M},"content")})]}),y.jsx("aside",{className:Qe.workbenchContainerSidebar,children:y.jsx(rn,{})})]}),r&&y.jsx("footer",{className:Qe.workbenchFooter,children:y.jsx(De,{components:p,sharedProps:{contextMenu:i}},"footer")}),y.jsx(on,{})]})]}),y.jsx(De,{components:O},"global"),y.jsx(De,{components:an},"built-in-global"),i&&y.jsx(A6,{}),y.jsx(T4,{})]})}function T4(){const{mountContainer:e}=s.useContext(he.ConfigContext),t=Ae(ge.FLOATING);return T1.createPortal(y.jsx(De,{components:t},"floating"),e)}var D4=Object.defineProperty,x4=Object.getOwnPropertyDescriptor,N4=(e,t,n,r)=>{for(var i=r>1?void 0:r?x4(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&D4(t,n,i),i},m1=(e,t)=>(n,r)=>t(n,r,e);const V4=3e3;C.DesktopUIController=class extends f.Disposable{constructor(n,r,i,o,a,l,h,v){super();te(this,"_steadyTimeout");te(this,"_renderTimeout");this._config=n,this._renderManagerService=r,this._instanceSrv=i,this._injector=o,this._lifecycleService=a,this._uiPartsService=l,this._menuManagerService=h,this._layoutService=v,this._initBuiltinComponents(),this._initMenus(),this._bootstrapWorkbench()}_initMenus(){this._menuManagerService.mergeMenu(Pt)}_bootstrapWorkbench(){this.disposeWithMe(this._instanceSrv.unitDisposed$.subscribe(n=>{clearTimeout(this._steadyTimeout)})),this.disposeWithMe(A4(this._injector,this._config,(n,r)=>{this._layoutService&&(this.disposeWithMe(this._layoutService.registerRootContainerElement(r)),this.disposeWithMe(this._layoutService.registerContentElement(n))),this._renderManagerService.currentRender$.subscribe(i=>{if(i){const o=this._renderManagerService.getRenderById(i);if(!o.unitId||f.isInternalEditorID(o.unitId))return;o.engine.setContainer(n)}}),this.disposeWithMe(this._lifecycleService.lifecycle$.pipe(re.filter(i=>i===f.LifecycleStages.Ready),re.take(1)).subscribe(()=>{this._renderTimeout=setTimeout(()=>{const i=this._renderManagerService.getRenderAll();for(const[o,a]of i)f.isInternalEditorID(o)||!a.isRenderUnit||a.engine.setContainer(n);this._lifecycleService.stage=f.LifecycleStages.Rendered,this._steadyTimeout=setTimeout(()=>{this._lifecycleService.stage=f.LifecycleStages.Steady},V4)},300)}))}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.FLOATING,()=>f.connectInjector(Kt,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>f.connectInjector(Qt,this._injector)))}},C.DesktopUIController=N4([m1(1,I1.IRenderManagerService),m1(2,f.IUniverInstanceService),m1(3,f.Inject(f.Injector)),m1(4,f.Inject(f.LifecycleService)),m1(5,Xe),m1(6,qe),m1(7,f.Optional(n1))],C.DesktopUIController);function A4(e,t,n){let r;const i=t.container;if(typeof i=="string"){const h=document.getElementById(i);h?r=h:r=F6(i)}else i instanceof HTMLElement?r=i:r=F6("univer");const o=f.connectInjector(I4,e),a=h=>n(h,r);function l(){_1.render(y.jsx(o,{...t,mountContainer:r,onRendered:a}),r)}return l(),f.toDisposable(()=>{_1.render(y.jsx("div",{}),r),setTimeout(()=>_1.render(y.jsx("div",{}),r),200),setTimeout(()=>_1.unmount(r),500)})}function F6(e){const t=document.createElement("div");return t.id=e,t}const lt={mobileMenuContainer:"univer-mobile-menu-container",mobileMenuItem:"univer-mobile-menu-item"};function P4(e){const{menuType:t,onOptionSelect:n}=e,r=f.useDependency(qe);if(!t)return null;const i=s.useMemo(()=>{const o=r.getMenuByPositionKey(t);function a(l){return l.reduce((h,v)=>v.children?[...h,...a(v.children)]:[...h,v],[])}return a(o)},[t]);return y.jsx("div",{className:lt.mobileMenuContainer,style:{gridTemplateColumns:`repeat(${Math.min(2,i.length)}, 48px)`},children:i.map(o=>o.item&&y.jsx(R4,{menuItem:o.item,onClick:a=>n==null?void 0:n({value:"",label:o.key,...a})},o.key))})}function R4(e){const{menuItem:t,onClick:n}=e,{id:r,type:i,title:o,label:a,icon:l}=t;if(i!==Te.BUTTON)throw new Error(`[MobileMenuItem]: on mobile devices only "BUTTON" type menu items are supported. Please check "${r}".`);const h=f.useObservable(t.disabled$,!1),v=f.useObservable(t.activated$,!1),m=f.useObservable(t.hidden$,!1),u=f.useObservable(t.value$),p=Ie(lt.mobileMenuItem,{[lt.mobileMenuItemActivated]:v,[lt.mobileMenuItemHidden]:m});return y.jsx("button",{type:"button",className:p,disabled:h,onClick:()=>n({id:r}),children:y.jsx(Ve,{value:u,title:o,label:a,icon:l})},r)}function z6(){const[e,t]=s.useState(!1),[n,r]=s.useState(""),[i,o]=s.useState([0,0]),a=s.useRef(e),l=f.useDependency(B1),h=f.useDependency(f.ICommandService);a.current=e,s.useEffect(()=>{const u=l.registerContextMenuHandler({handleContextMenu:v,hideContextMenu(){t(!1)},get visible(){return a.current}});return document.addEventListener("pointerdown",m),document.addEventListener("wheel",m),()=>{document.removeEventListener("pointerdown",m),document.removeEventListener("wheel",m),u.dispose()}},[l]);function v(u,p){r(p),o([u.clientX,u.clientY]),t(!0)}function m(){t(!1)}return y.jsx(he.Popup,{visible:e,offset:i,children:y.jsx("section",{onPointerDown:u=>u.stopPropagation(),children:n&&y.jsx(P4,{menuType:n,onOptionSelect:u=>{const{label:p,value:L,commandId:E}=u;h&&h.executeCommand(E!=null?E:p,{value:L}),t(!1)}})})})}const Je={appLayout:"univer-app-layout",appHeader:"univer-app-header",appContainer:"univer-app-container",appContainerHeader:"univer-app-container-header",appContainerWrapper:"univer-app-container-wrapper",appContainerContent:"univer-app-container-content",appContainerCanvas:"univer-app-container-canvas",appContainerLeftSidebar:"univer-app-container-left-sidebar",appContainerSidebar:"univer-app-container-sidebar"};function j4(e){const{header:t=!0,footer:n=!0,contextMenu:r=!0,mountContainer:i,onRendered:o}=e,a=f.useDependency(f.LocaleService),l=f.useDependency(f.ThemeService),h=f.useDependency(b1),v=s.useRef(null),m=Ae(ge.FOOTER),u=Ae(ge.HEADER);Ae(ge.HEADER_MENU);const p=Ae(ge.CONTENT),L=Ae(ge.LEFT_SIDEBAR),E=Ae(ge.GLOBAL);s.useEffect(()=>{l.getCurrentTheme()||l.setTheme(he.defaultTheme)},[]),s.useEffect(()=>{v.current&&(o==null||o(v.current))},[o]);const[M,b]=s.useState(a.getLocales()),O=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(O),h.setContainer(O);const x=[a.localeChanged$.subscribe(()=>{b(a.getLocales())}),l.currentTheme$.subscribe(I=>{he.themeInstance.setTheme(i,I),O&&he.themeInstance.setTheme(O,I)})];return()=>{x.forEach(I=>I.unsubscribe()),document.body.removeChild(O)}},[a,h,i,O,l.currentTheme$]),y.jsxs(he.ConfigProvider,{locale:M==null?void 0:M.design,mountContainer:O,children:[y.jsxs("div",{className:Je.appLayout,tabIndex:-1,onBlur:x=>x.stopPropagation(),children:[t&&y.jsx("header",{className:Je.appContainerHeader}),y.jsxs("section",{className:Je.appContainer,children:[y.jsxs("div",{className:Je.appContainerWrapper,children:[y.jsx("aside",{className:Je.appContainerLeftSidebar,children:y.jsx(De,{components:L},"left-sidebar")}),y.jsxs("section",{className:Je.appContainerContent,children:[y.jsx("header",{className:Je.appHeader,children:t&&y.jsx(De,{components:u},"header")}),y.jsx("section",{className:Je.appContainerCanvas,ref:v,"data-range-selector":!0,onContextMenu:x=>x.preventDefault(),children:y.jsx(De,{components:p},"content")})]}),y.jsx("aside",{className:Je.appContainerSidebar,children:y.jsx(rn,{})})]}),n&&y.jsx("footer",{className:Je.appFooter,children:y.jsx(De,{components:m},"footer")}),y.jsx(on,{})]})]}),y.jsx(De,{components:E},"global"),y.jsx(De,{components:an},"built-in-global"),r&&y.jsx(z6,{})]})}var k4=Object.defineProperty,$4=Object.getOwnPropertyDescriptor,B4=(e,t,n,r)=>{for(var i=r>1?void 0:r?$4(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&k4(t,n,i),i},p1=(e,t)=>(n,r)=>t(n,r,e);const U4=3e3;let sn=class extends f.Disposable{constructor(e,t,n,r,i,o,a,l){super(),this._config=e,this._instanceService=t,this._renderManagerService=n,this._injector=r,this._lifecycleService=i,this._uiPartsService=o,this._menuManagerService=a,this._layoutService=l,this._initBuiltinComponents(),Promise.resolve().then(()=>this._bootstrapWorkbench())}_initMenus(){this._menuManagerService.mergeMenu(Pt)}_bootstrapWorkbench(){this.disposeWithMe(F4(this._injector,this._config,(e,t)=>{this._layoutService&&(this.disposeWithMe(this._layoutService.registerRootContainerElement(t)),this.disposeWithMe(this._layoutService.registerContentElement(e))),this._renderManagerService.currentRender$.subscribe(n=>{if(n){const r=this._renderManagerService.getRenderById(n);if(!r.unitId||this._instanceService.getUnitType(r.unitId)!==f.UniverInstanceType.UNIVER_SHEET)return;r.engine.setContainer(e)}}),setTimeout(()=>{var r;const n=(r=this._renderManagerService.getFirst())==null?void 0:r.engine;n==null||n.setContainer(e),this._lifecycleService.stage=f.LifecycleStages.Rendered,setTimeout(()=>this._lifecycleService.stage=f.LifecycleStages.Steady,U4)},300)}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>f.connectInjector(Kt,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>f.connectInjector(Qt,this._injector)))}};sn=B4([p1(1,f.IUniverInstanceService),p1(2,I1.IRenderManagerService),p1(3,f.Inject(f.Injector)),p1(4,f.Inject(f.LifecycleService)),p1(5,Xe),p1(6,qe),p1(7,f.Optional(n1))],sn);function F4(e,t,n){let r;const i=t.container;if(typeof i=="string"){const h=document.getElementById(i);h?r=h:r=Z6(i)}else i instanceof HTMLElement?r=i:r=Z6("univer");const o=f.connectInjector(j4,e),a=h=>n(h,r);function l(){_1.render(y.jsx(o,{...t,mountContainer:r,onRendered:a}),r)}return l(),f.toDisposable(()=>{_1.unmount(r)})}function Z6(e){const t=document.createElement("div");return t.id=e,t}const U1=f.createIdentifier("ui.notification.service");var z4=Object.defineProperty,Z4=Object.getOwnPropertyDescriptor,W4=(e,t,n,r)=>{for(var i=r>1?void 0:r?Z4(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&z4(t,n,i),i},G4=(e,t)=>(n,r)=>t(n,r,e);const ln=f.createIdentifier("univer.ui.before-close-service");C.DesktopBeforeCloseService=class{constructor(t){te(this,"_beforeUnloadCallbacks",[]);te(this,"_onCloseCallbacks",[]);this._notificationService=t,this._init()}registerBeforeClose(t){return this._beforeUnloadCallbacks.push(t),{dispose:()=>{this._beforeUnloadCallbacks=this._beforeUnloadCallbacks.filter(n=>n!==t)}}}registerOnClose(t){return this._onCloseCallbacks.push(t),{dispose:()=>{this._onCloseCallbacks=this._onCloseCallbacks.filter(n=>n!==t)}}}_init(){window.addEventListener("beforeunload",t=>{let n=t;const r=this._beforeUnloadCallbacks.map(i=>i()).filter(i=>!!i).join(`
|
|
20
|
-
|
|
19
|
+
*/var J3;function T2(){if(J3)return ce;J3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function M(b){if(typeof b=="object"&&b!==null){var H=b.$$typeof;switch(H){case e:switch(b=b.type,b){case n:case i:case r:case m:case v:return b;default:switch(b=b&&b.$$typeof,b){case l:case o:case u:case p:case f:case a:return b;default:return H}}case t:return H}}}return ce.ContextConsumer=o,ce.ContextProvider=a,ce.Element=e,ce.ForwardRef=u,ce.Fragment=n,ce.Lazy=p,ce.Memo=f,ce.Portal=t,ce.Profiler=i,ce.StrictMode=r,ce.Suspense=m,ce.SuspenseList=v,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(b){return M(b)===o},ce.isContextProvider=function(b){return M(b)===a},ce.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ce.isForwardRef=function(b){return M(b)===u},ce.isFragment=function(b){return M(b)===n},ce.isLazy=function(b){return M(b)===p},ce.isMemo=function(b){return M(b)===f},ce.isPortal=function(b){return M(b)===t},ce.isProfiler=function(b){return M(b)===i},ce.isStrictMode=function(b){return M(b)===r},ce.isSuspense=function(b){return M(b)===m},ce.isSuspenseList=function(b){return M(b)===v},ce.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===m||b===v||b===S||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===f||b.$$typeof===a||b.$$typeof===o||b.$$typeof===u||b.$$typeof===E||b.getModuleId!==void 0)},ce.typeOf=M,ce}var K3;function D2(){return K3||(K3=1,Tt.exports=T2()),Tt.exports}var q1=D2(),x2=function(t,n){typeof t=="function"?t(n):f1(t)==="object"&&t&&"current"in t&&(t.current=n)},N2=function(t){var n,r,i=q1.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==q1.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==q1.ForwardRef)};function e6(e){return s.isValidElement(e)&&!q1.isFragment(e)}Number(s.version.split(".")[0])>=19;function V2(e,t){if(f1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(f1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P2(e){var t=V2(e,"string");return f1(t)=="symbol"?t:t+""}function A2(e,t,n){return(t=P2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function R2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t6(Object(n),!0).forEach(function(r){A2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const j2={popupFixed:"univer-popup-fixed"},n6=s.createContext({current:void 0}),n1=8;function r6(e){const{position:t,width:n,height:r,containerHeight:i,containerWidth:a,direction:o="vertical"}=e;if(o==="vertical"||o.includes("top")||o.includes("bottom")){const{left:S,top:E,right:M,bottom:b}=t,H=o==="vertical"&&b>i-r-n1||o.indexOf("top")>-1?{top:Math.max(E-r,n1)}:{top:Math.min(b,i-r-n1)};let x;if(o.includes("center")){const k=(M-S-n)/2;x={left:S+k}}else x=S+n>a?{left:Math.max(M-n,n1)}:{left:Math.min(S,a-n-n1)};return{...H,...x}}const{left:l,top:u,right:m,bottom:v}=t,f=o==="left"?{left:Math.max(l-n,n1)}:{left:Math.min(m,a-n-n1)};return{...u+r>i?{top:Math.max(v-r,n1)}:{top:Math.min(u,i-r-n1)},...f}}function X1(e){const{children:t,anchorRect$:n,direction:r="vertical",onClickOutside:i,excludeOutside:a,excludeRects:o,onPointerEnter:l,onPointerLeave:u,onClick:m,hidden:v,onContextMenu:f}=e,p=s.useRef(null),S=x1(i!=null?i:()=>{}),E=x1(f!=null?f:()=>{}),M=s.useRef({top:-9999,left:-9999}),b=o,H=s.useRef();return s.useEffect(()=>{const x=n.subscribe(T=>{H.current=T,requestAnimationFrame(()=>{if(!p.current)return;const{clientWidth:k,clientHeight:O}=p.current,I=window.innerWidth,V=window.innerHeight;M.current=r6({position:T,width:k,height:O,containerWidth:I,containerHeight:V,direction:r}),p.current.style.top=`${M.current.top}px`,p.current.style.left=`${M.current.left}px`})});return()=>x.unsubscribe()},[n,r]),s.useEffect(()=>{const x=T=>{var V;if(a&&(a.indexOf(T.target)>-1||a.some(A=>A.contains(T.target))))return;const k=T.clientX,O=T.clientY,I=[...(V=b==null?void 0:b.current)!=null?V:[]];H.current&&I.push(H.current);for(const A of I)if(k<=A.right&&k>=A.left&&O<=A.bottom&&O>=A.top)return;S(T)};return window.addEventListener("pointerdown",x),()=>{window.removeEventListener("pointerdown",x)}},[S,a,b]),s.useEffect(()=>{const x=T=>{T.ctrlKey&&T.button===0||E()};return window.addEventListener("contextmenu",x),()=>{window.removeEventListener("contextmenu",x)}},[E]),y.jsx("section",{onPointerEnter:l,onPointerLeave:u,ref:p,style:{...M.current,...v?{display:"none"}:null},className:j2.popupFixed,onPointerDown:x=>x.stopPropagation(),onClick:m,children:y.jsx(n6.Provider,{value:H,children:t})})}X1.calcPopupPosition=r6,X1.useContext=()=>s.useContext(n6);const i6=e=>typeof e=="number";function k2(e){const t=s.useRef(e);return t.current=e,t}const $2=(e,t)=>{const{containerTarget:n,itemHeight:r,overscan:i=5}=t,a=k2(r),[o,l]=s.useState(null),u=s.useRef(!1),[m,v]=s.useState([]),[f,p]=s.useState({height:void 0,marginTop:void 0}),S=(T,k)=>{if(typeof a.current=="number")return Math.ceil(T/a.current);let O=0,I=0;for(let V=k;V<e.length;V++){const A=a.current(V,e[V]);if(O+=A,I=V,O>=T)break}return I-k},E=T=>{if(i6(a.current))return Math.floor(T/a.current);let k=0,O=0;for(let I=0;I<e.length;I++){const V=a.current(I,e[I]);if(k+=V,k>=T){O=I;break}}return O+1},M=T=>typeof a.current=="number"?T*a.current:e.slice(0,T).reduce((O,I,V)=>O+a.current(V,e[V]),0),b=s.useMemo(()=>i6(a.current)?e.length*a.current:e.reduce((T,k,O)=>T+a.current(O,e[O]),0),[e]),H=()=>{const T=n.current;if(T){const{scrollTop:k,clientHeight:O}=T,I=E(k),V=S(O,I),A=Math.max(0,I-i),$=Math.min(e.length,I+V+i),z=M(A);p({height:`${b-z}px`,marginTop:`${z}px`}),v(e.slice(A,$).map((W,Y)=>({data:W,index:Y+A})))}};return s.useEffect(()=>{if(n.current){const T=()=>{const O=n.current.clientWidth,I=n.current.clientHeight;(O!==(o==null?void 0:o.width)||I!==(o==null?void 0:o.height))&&l({width:O,height:I})};T();const k=new ResizeObserver(T);return k.observe(n.current),()=>{k.disconnect()}}},[]),s.useEffect(()=>{!(o!=null&&o.width)||!(o!=null&&o.height)||H()},[o==null?void 0:o.width,o==null?void 0:o.height,e]),[m,{wrapperStyle:f,scrollTo:Ot(T=>{const k=n.current;k&&(u.current=!0,k.scrollTop=M(T),H())}),containerProps:{onScroll:T=>{if(u.current){u.current=!1;return}T.preventDefault(),H()}}}]};function o6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=o6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Te(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=o6(e))&&(r&&(r+=" "),r+=t);return r}var B2=Object.defineProperty,U2=Object.getOwnPropertyDescriptor,F2=(e,t,n,r)=>{for(var i=r>1?void 0:r?U2(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&B2(t,n,i),i},a6=(e,t)=>(n,r)=>t(n,r,e);const z2="FOCUSING_UNIVER",Z2=["univer-app-layout","univer-toolbar-btn","univer-menu-item","univer-button","univer-sheet-bar-btn","univer-render-canvas","univer-workbench-layout"],r1=d.createIdentifier("ui.layout-service");C.DesktopLayoutService=class extends d.Disposable{constructor(n,r){super();ee(this,"_rootContainerElement",null);ee(this,"_isFocused",!1);ee(this,"_focusHandlers",new Map);ee(this,"_contentElements",[]);ee(this,"_allContainers",[]);this._contextService=n,this._univerInstanceService=r,this._initUniverFocusListener(),this._initEditorStatus()}get isFocused(){return this._isFocused}get rootContainerElement(){return this._rootContainerElement}focus(){const n=this._univerInstanceService.getFocusedUnit();if(!n)return;let r;n instanceof d.Workbook?r=this._focusHandlers.get(d.UniverInstanceType.UNIVER_SHEET):n instanceof d.DocumentDataModel?r=this._focusHandlers.get(d.UniverInstanceType.UNIVER_DOC):n instanceof d.SlideDataModel&&(r=this._focusHandlers.get(d.UniverInstanceType.UNIVER_SLIDE)),r&&r(n.getUnitId())}registerFocusHandler(n,r){if(this._focusHandlers.has(n))throw new Error(`[DesktopLayoutService]: handler of type ${n} bas been registered!`);return this._focusHandlers.set(n,r),d.toDisposable(()=>this._focusHandlers.delete(n))}registerContentElement(n){if(this._contentElements.indexOf(n)===-1)return this._contentElements.push(n),d.toDisposable(()=>d.remove(this._contentElements,n));throw new Error("[DesktopLayoutService]: content container already registered!")}getContentElement(){return this._contentElements[0]}registerRootContainerElement(n){if(this._rootContainerElement)throw new Error("[DesktopLayoutService]: root container already registered!");this._rootContainerElement=n;const r=this.registerContainerElement(n);return d.toDisposable(()=>{this._rootContainerElement=null,r.dispose()})}registerContainerElement(n){if(this._allContainers.indexOf(n)===-1)return this._allContainers.push(n),d.toDisposable(()=>d.remove(this._allContainers,n));throw new Error("[LayoutService]: container already registered!")}checkElementInCurrentContainers(n){return this._allContainers.some(r=>r.contains(n))}checkContentIsFocused(){return this._contentElements.some(n=>n===document.activeElement||n.contains(document.activeElement))}_initUniverFocusListener(){this.disposeWithMe(te.fromEvent(window,"focusin").subscribe(n=>{const r=n.target;if(Z2.some(i=>r.classList.contains(i))){queueMicrotask(()=>this.focus());return}r&&this.checkElementInCurrentContainers(r)?this._isFocused=!0:this._isFocused=!1,this._contextService.setContextValue(z2,this._isFocused),this._contextService.setContextValue(d.FOCUSING_UNIVER_EDITOR,s6())}))}_initEditorStatus(){this._contextService.setContextValue(d.FOCUSING_UNIVER_EDITOR,s6())}},C.DesktopLayoutService=F2([a6(0,d.IContextService),a6(1,d.IUniverInstanceService)],C.DesktopLayoutService);function s6(){var e;return!!((e=document.activeElement)!=null&&e.classList.contains("univer-editor"))}var De=(e=>(e[e.BUTTON=0]="BUTTON",e[e.SELECTOR=1]="SELECTOR",e[e.BUTTON_SELECTOR=2]="BUTTON_SELECTOR",e[e.SUBITEMS=3]="SUBITEMS",e))(De||{}),N1=(e=>(e.RIBBON="ribbon",e.CONTEXT_MENU="contextMenu",e))(N1||{}),i1=(e=>(e.START="ribbon.start",e.INSERT="ribbon.insert",e.FORMULAS="ribbon.formulas",e.DATA="ribbon.data",e.VIEW="ribbon.view",e.OTHERS="ribbon.others",e))(i1||{}),Fe=(e=>(e.HISTORY="ribbon.start.history",e.FORMAT="ribbon.start.format",e.LAYOUT="ribbon.start.layout",e.FORMULAS_INSERT="ribbon.start.insert",e.FORMULAS_VIEW="ribbon.start.view",e.FILE="ribbon.start.file",e.OTHERS="ribbon.start.others",e))(Fe||{}),Dt=(e=>(e.OTHERS="ribbon.insert.others",e))(Dt||{}),xt=(e=>(e.OTHERS="ribbon.formulas.others",e))(xt||{}),Nt=(e=>(e.OTHERS="ribbon.data.others",e))(Nt||{}),Vt=(e=>(e.OTHERS="ribbon.view.others",e))(Vt||{}),Pt=(e=>(e.OTHERS="ribbon.others.others",e))(Pt||{}),d1=(e=>(e.MAIN_AREA="contextMenu.mainArea",e.COL_HEADER="contextMenu.colHeader",e.ROW_HEADER="contextMenu.rowHeader",e.FOOTER_TABS="contextMenu.footerTabs",e.FOOTER_MENU="contextMenu.footerMenu",e))(d1||{}),Le=(e=>(e.FORMAT="contextMenu.format",e.LAYOUT="contextMenu.layout",e.DATA="contextMenu.data",e.OTHERS="contextMenu.others",e))(Le||{}),W2=Object.defineProperty,G2=Object.getOwnPropertyDescriptor,Y2=(e,t,n,r)=>{for(var i=r>1?void 0:r?G2(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&W2(t,n,i),i},l6=(e,t)=>(n,r)=>t(n,r,e);const Qe=d.createIdentifier("univer.menu-manager-service");C.MenuManagerService=class extends d.Disposable{constructor(n,r){super();ee(this,"menuChanged$",new te.Subject);ee(this,"_menu",{[N1.RIBBON]:{[i1.START]:{order:0,[Fe.HISTORY]:{order:0},[Fe.FORMAT]:{order:1},[Fe.LAYOUT]:{order:2},[Fe.FORMULAS_INSERT]:{order:3},[Fe.FORMULAS_VIEW]:{order:4},[Fe.FILE]:{order:5},[Fe.OTHERS]:{order:6}},[i1.INSERT]:{order:1,[Dt.OTHERS]:{order:0}},[i1.FORMULAS]:{order:2,[xt.OTHERS]:{order:0}},[i1.DATA]:{order:3,[Nt.OTHERS]:{order:0}},[i1.VIEW]:{order:4,[Vt.OTHERS]:{order:0}},[i1.OTHERS]:{order:5,[Pt.OTHERS]:{order:0}}},[N1.CONTEXT_MENU]:{[d1.MAIN_AREA]:{order:0,[Le.FORMAT]:{order:0},[Le.LAYOUT]:{order:1},[Le.DATA]:{order:2},[Le.OTHERS]:{order:3}},[d1.COL_HEADER]:{order:1,[Le.FORMAT]:{order:0},[Le.LAYOUT]:{order:1},[Le.DATA]:{order:2},[Le.OTHERS]:{order:3}},[d1.ROW_HEADER]:{order:2,[Le.FORMAT]:{order:0},[Le.LAYOUT]:{order:1},[Le.DATA]:{order:2},[Le.OTHERS]:{order:3}},[d1.FOOTER_TABS]:{order:3,[Le.FORMAT]:{order:0},[Le.LAYOUT]:{order:1},[Le.DATA]:{order:2},[Le.OTHERS]:{order:3}},[d1.FOOTER_MENU]:{order:4,[Le.OTHERS]:{order:3}}}});this._injector=n,this._configService=r}dispose(){this.menuChanged$.complete()}mergeMenu(n,r){const i=r!=null?r:this._menu;for(const[a,o]of Object.entries(i))if(a in n){const l=a;i[l]=d.merge({},i[l],n[l]),this.menuChanged$.next()}else this.mergeMenu(n,o)}appendRootMenu(n){this._menu=d.merge({},this._menu,n),this.menuChanged$.next()}_buildMenuSchema(n){const r=[];for(const[i,a]of Object.entries(n)){const o={key:i,order:a.order};if(a.menuItemFactory){const u=this._injector.invoke(a.menuItemFactory);if(u){const m=this._configService.getConfig("menu");if(m&&u.id in m){const v=u.id;o.item=U3(u,m[v])}else o.item=u}}const l=this._buildMenuSchema(a);l.length>0&&(o.children=l.sort((u,m)=>u.order-m.order)),(o.item||o.children)&&r.push(o)}return r}getMenuByPositionKey(n){const r=i=>{if(n in i)return this._buildMenuSchema(i[n]);for(const a in i){if(a===n)return this._buildMenuSchema(i[a]);if(typeof i[a]=="object"){const o=r(i[a]);if(o)return o}}};return r(this._menu)}},C.MenuManagerService=Y2([l6(0,d.Inject(d.Injector)),l6(1,d.IConfigService)],C.MenuManagerService);const ze={menuItemNoHover:"univer-menu-item-no-hover",menuItemActive:"univer-menu-item-active",menuItemActivated:"univer-menu-item-activated",menuItemContent:"univer-menu-item-content",menuItemSelectable:"univer-menu-item-selectable",menuItemSelectableIcon:"univer-menu-item-selectable-icon",menuItemMoreIcon:"univer-menu-item-more-icon"};function c6(e){const{menuType:t,onOptionSelect:n}=e,r=d.useDependency(Qe);if(!t)return null;const i=r.getMenuByPositionKey(t),a=s.useMemo(()=>i.filter(o=>{var m;if(!o.children)return o;let l=!1;const u=(m=o.children)==null?void 0:m.map(v=>{var f,p;return(p=(f=v.item)==null?void 0:f.hidden$)!=null?p:new te.Observable(S=>(S.next(!1),S.unsubscribe()))});return te.combineLatest(u).subscribe(v=>{l=v.every(f=>f===!0),l||(l=!0)}).unsubscribe(),l}),[i]);return a&&a.map(o=>{var l;return o.item?y.jsx(f6,{menuItem:o.item,onClick:u=>{n==null||n({value:"",label:o.key,...u})}},o.key):(l=o.children)!=null&&l.length?y.jsx(le.MenuItemGroup,{eventKey:o.key,children:o.children.map(u=>u.item&&y.jsx(f6,{menuItem:u.item,onClick:m=>{n==null||n({value:"",label:u.key,...m})}},u.key))},o.key):null})}function u6(e){var a;const{options:t,value:n,onOptionSelect:r,parentKey:i}=e;return(a=t==null?void 0:t.map((o,l)=>{var p,S,E;const u=`${i}-${(p=o.label)!=null?p:o.id}-${l}`,m=M=>{r==null||r({value:M,label:o==null?void 0:o.label,commandId:o==null?void 0:o.commandId})},v=()=>{typeof o.value>"u"||r==null||r({...o})},f=Te({[ze.menuItemNoHover]:typeof o.label!="string"&&!((S=o.label)!=null&&S.hoverable)});return y.jsx(le.MenuItem,{disabled:o.disabled,eventKey:u,className:f,onClick:v,children:y.jsxs("span",{className:Te(ze.menuItemContent,{[ze.menuItemSelectable]:!(typeof o.label!="string"&&!((E=o.label)!=null&&E.hoverable))}),children:[typeof n<"u"&&String(n)===String(o.value)&&y.jsx("span",{className:ze.menuItemSelectableIcon,children:y.jsx(or,{style:{color:"rgb(var(--success-color))"}})}),y.jsx(Ie,{value$:o.value$,value:o.value,label:o.label,icon:o.icon,onChange:m})]})},u)}))!=null?a:null}const Q1=e=>{const{overViewport:t,...n}=e,[r,i]=s.useState(),a=d.useDependency(r1);return q3(t==="scroll"?r:null,a.rootContainerElement),y.jsxs(le.Menu,{ref:o=>(o==null?void 0:o.list)&&i(o.list),selectable:!1,children:[y.jsx(u6,{...n}),y.jsx(c6,{...n})]})};function f6({menuItem:e,onClick:t}){const n=d.useDependency(Qe),r=d.useObservable(e.disabled$,!1),i=d.useObservable(e.activated$,!1),a=d.useObservable(e.hidden$,!1),o=d.useObservable(e.value$),l=e,u=d.useObservable(te.isObservable(l.selections)?l.selections:void 0),[m,v]=s.useState(o);if(a)return null;const f=b=>{const H=d.isRealNum(b)&&typeof b=="string"?Number.parseInt(b):b;v(H)},p=()=>{const b=e,{title:H,label:x}=b;return y.jsx(le.MenuItem,{eventKey:b.id,disabled:r,className:Te({[ze.menuItemActivated]:i}),onClick:()=>{t({commandId:b.commandId,value:m,id:b.id})},children:y.jsx("span",{className:ze.menuItemContent,children:y.jsx(Ie,{value:o,title:H,label:x,icon:b.icon,onChange:f})})},b.id)},S=()=>{var H;const b=(H=u!=null?u:l.selections)!=null?H:[];return b.length>0?y.jsx(le.SubMenu,{eventKey:l.id,popupOffset:[18,0],title:y.jsxs("span",{className:ze.menuItemContent,children:[y.jsx(Ie,{title:l.title,value:m,onChange:f,icon:l.icon,label:l.label}),l.shortcut&&` (${l.shortcut})`]}),expandIcon:y.jsx(_t,{className:ze.menuItemMoreIcon}),children:b.length>0&&y.jsx(u6,{parentKey:l.id,menuType:l.id,options:b,onOptionSelect:x=>{t({value:x.value,id:l.id,commandId:x.commandId})}})},l.id):y.jsx(le.MenuItem,{eventKey:l.id,children:y.jsxs("span",{className:ze.menuItemContent,children:[y.jsx(Ie,{title:l.title,value:m,icon:l.icon,label:l.label,onChange:f}),l.shortcut&&` (${l.shortcut})`]})},l.id)},E=e.id?n.getMenuByPositionKey(e.id):[],M=()=>{const b=e;return y.jsx(le.SubMenu,{eventKey:b.id,popupOffset:[18,0],title:y.jsx("span",{className:ze.menuItemContent,children:y.jsx(Ie,{title:b.title,icon:b.icon,label:b.label,onChange:f})}),expandIcon:y.jsx(_t,{className:ze.menuItemMoreIcon}),children:E.length&&y.jsx(c6,{menuType:b.id,parentKey:b.id,onOptionSelect:t})},b.id)};return y.jsxs(y.Fragment,{children:[e.type===De.SELECTOR&&S(),e.type===De.SUBITEMS&&M(),e.type===De.BUTTON&&p()]})}const V1={progressBar:"univer-progress-bar",progressBarContainer:"univer-progress-bar-container",progressBarLabel:"univer-progress-bar-label",progressBarInner:"univer-progress-bar-inner",progressBarCloseButton:"univer-progress-bar-close-button"};function q2(e){const{barColor:t,progress:n,onTerminate:r,onClearProgress:i}=e,{count:a,done:o,label:l=""}=n,u=d.useDependency(d.ThemeService),m=t!=null?t:u.getCurrentTheme().primaryColor,v=s.useRef(null),f=s.useRef(null);return s.useEffect(()=>{const p=v.current,S=f.current;if(!p||!S)return;if(a===0&&o===0){S.style.display="none",p.style.width="0%";return}else if(a>0){S.style.display="flex";const M=Math.floor(o/a*100);o===a?requestAnimationFrame(()=>{p.style.width=`${M-1}%`,requestAnimationFrame(()=>{p.style.width=`${M}%`})}):p.style.width=`${M}%`}const E=()=>{o===a&&(S.style.display="none",p.style.width="0%",i&&i())};return p.addEventListener("transitionend",E),()=>{p.removeEventListener("transitionend",E)}},[a,o]),y.jsxs("div",{ref:f,className:V1.progressBarContainer,style:{display:"none"},children:[y.jsx(le.Tooltip,{showIfEllipsis:!0,title:l,children:y.jsx("span",{className:V1.progressBarLabel,children:l})}),y.jsx("div",{className:V1.progressBar,children:y.jsx("div",{ref:v,className:V1.progressBarInner,style:{backgroundColor:m}})}),y.jsxs("div",{className:V1.progressBarCloseButton,onClick:r,children:[" ",y.jsx(Z1,{})]})]})}const X2="UNI_DISABLE_CHANGING_FOCUS",d6="ui.config",h6={},J1=d.createIdentifier("ui.message.service");var Q2=Object.defineProperty,J2=Object.getOwnPropertyDescriptor,K2=(e,t,n,r)=>{for(var i=r>1?void 0:r?J2(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Q2(t,n,i),i},v6=(e,t)=>(n,r)=>t(n,r,e);C.ErrorController=class extends d.Disposable{constructor(t,n){super(),this._errorService=t,this._messageService=n,this.disposeWithMe(this._errorService.error$.subscribe(r=>{this._messageService.show({content:r.errorKey,type:le.MessageType.Error})}))}},C.ErrorController=K2([v6(0,d.Inject(d.ErrorService)),v6(1,J1)],C.ErrorController);class K1 extends d.Disposable{constructor(){super(...arguments);ee(this,"_open$",new te.BehaviorSubject(!1));ee(this,"open$",this._open$.pipe(te.distinctUntilChanged()))}get isOpen(){return this._open$.getValue()}dispose(){super.dispose(),this._open$.next(!1),this._open$.complete()}open(){this._open$.next(!0)}close(){this._open$.next(!1)}}const e4=d.createIdentifier("ui.left-sidebar.service"),b1=d.createIdentifier("ui.sidebar.service"),m6="ShortcutPanel",P1={id:"base-ui.operation.toggle-shortcut-panel",type:d.CommandType.OPERATION,handler:e=>{const t=e.get(K1),n=e.get(b1);return t.isOpen?(t.close(),n.close()):(t.open(),n.open({header:{title:"shortcut-panel.title"},children:{label:m6}})),!0}};function t4(e){return{id:P1.id,title:"toggle-shortcut-panel",tooltip:"toggle-shortcut-panel",icon:"KeyboardSingle",type:De.BUTTON,hidden$:B3(e,d.UniverInstanceType.UNIVER_SHEET)}}function n4(e){const t=e.get(d.IUndoRedoService);return{id:d.UndoCommand.id,type:De.BUTTON,icon:"UndoSingle",title:"Undo",tooltip:"toolbar.undo",disabled$:t.undoRedoStatus$.pipe($n.map(n=>n.undos<=0))}}function r4(e){const t=e.get(d.IUndoRedoService);return{id:d.RedoCommand.id,type:De.BUTTON,icon:"RedoSingle",title:"Redo",tooltip:"toolbar.redo",disabled$:t.undoRedoStatus$.pipe($n.map(n=>n.redos<=0))}}const At={[Fe.HISTORY]:{[d.UndoCommand.id]:{order:0,menuItemFactory:n4},[d.RedoCommand.id]:{order:1,menuItemFactory:r4}},[Fe.OTHERS]:{[P1.id]:{order:99,menuItemFactory:t4}}},p6="univer.command.copy",Rt={id:p6,name:p6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},C6="univer.command.cut",jt={id:C6,name:C6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},g6="univer.command.paste",kt={id:g6,name:g6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},i4="sheet.command.paste-bu-short-key";var a1=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ESC=27]="ESC",e[e.SPACE=32]="SPACE",e[e.ARROW_LEFT=37]="ARROW_LEFT",e[e.ARROW_UP=38]="ARROW_UP",e[e.ARROW_RIGHT=39]="ARROW_RIGHT",e[e.ARROW_DOWN=40]="ARROW_DOWN",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NUM_LOCK=144]="NUM_LOCK",e[e.SCROLL_LOCK=145]="SCROLL_LOCK",e[e.EQUAL=187]="EQUAL",e[e.COMMA=188]="COMMA",e[e.MINUS=189]="MINUS",e[e.PERIOD=190]="PERIOD",e[e.BACK_SLASH=220]="BACK_SLASH",e))(a1||{});const o4={8:"Backspace",9:"Tab",13:"Enter",46:"Del",27:"Esc",32:"Space",37:"←",39:"→",38:"↑",40:"↓",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",189:"-",187:"=",190:".",188:",",220:"\\"};var Oe=(e=>(e[e.SHIFT=1024]="SHIFT",e[e.ALT=2048]="ALT",e[e.CTRL_COMMAND=4096]="CTRL_COMMAND",e[e.MAC_CTRL=8192]="MAC_CTRL",e))(Oe||{});function a4(e,t,n){return window.addEventListener(e,t,n),d.toDisposable(()=>window.removeEventListener(e,t,n))}const et=d.createIdentifier("ui.platform.service");class $t{get isMac(){return/Mac/.test(navigator.appVersion)}get isWindows(){return/Windows/.test(navigator.appVersion)}get isLinux(){return/Linux/.test(navigator.appVersion)}}var s4=Object.defineProperty,l4=Object.getOwnPropertyDescriptor,c4=(e,t,n,r)=>{for(var i=r>1?void 0:r?l4(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&s4(t,n,i),i},tt=(e,t)=>(n,r)=>t(n,r,e);const y1=d.createIdentifier("ui.shortcut.service");C.ShortcutService=class extends d.Disposable{constructor(n,r,i,a){super();ee(this,"_shortCutMapping",new Map);ee(this,"_commandIDMapping",new Map);ee(this,"_shortcutChanged$",new te.Subject);ee(this,"shortcutChanged$",this._shortcutChanged$.asObservable());ee(this,"_forceEscaped",!1);this._commandService=n,this._platformService=r,this._contextService=i,this._layoutService=a,this.disposeWithMe(a4("keydown",o=>{this._resolveKeyboardEvent(o)},{capture:!0}))}getAllShortcuts(){return Array.from(this._shortCutMapping.values()).map(n=>Array.from(n.values())).flat()}registerShortcut(n){const r=this._getBindingFromItem(n),i=this._shortCutMapping.get(r);i?i.add(n):this._shortCutMapping.set(r,new Set([n]));const a=n.id,o=this._commandIDMapping.get(a);return o?o.add(n):this._commandIDMapping.set(a,new Set([n])),this._emitShortcutChanged(),d.toDisposable(()=>{var l,u,m,v;(l=this._shortCutMapping.get(r))==null||l.delete(n),((u=this._shortCutMapping.get(r))==null?void 0:u.size)===0&&this._shortCutMapping.delete(r),(m=this._commandIDMapping.get(a))==null||m.delete(n),((v=this._commandIDMapping.get(a))==null?void 0:v.size)===0&&this._commandIDMapping.delete(a),this._emitShortcutChanged()})}getShortcutDisplayOfCommand(n){const r=this._commandIDMapping.get(n);if(!r)return null;const i=r.values().next().value;return i?this.getShortcutDisplay(i):null}getShortcutDisplay(n){var m;const r=this._getBindingFromItem(n),i=r&Oe.CTRL_COMMAND,a=r&Oe.SHIFT,o=r&Oe.ALT,l=r&Oe.MAC_CTRL,u=(m=o4[r&255])!=null?m:"<->";return this._platformService.isMac?`${i?"⌘":""}${a?"⇧":""}${o?"⌥":""}${l?"⌃":""}${u}`:`${i?"Ctrl+":""}${a?"Shift+":""}${o?"Alt+":""}${u}`}_emitShortcutChanged(){this._shortcutChanged$.next()}forceEscape(){return this._forceEscaped=!0,d.toDisposable(()=>this._forceEscaped=!1)}_resolveKeyboardEvent(n){const r=this.dispatch(n);r&&(this._commandService.executeCommand(r.id,r.staticParameters),n.preventDefault())}dispatch(n){if(this._forceEscaped||this._layoutService&&!this._layoutService.checkElementInCurrentContainers(n.target))return;const r=this._deriveBindingFromEvent(n);if(r===null)return;const i=this._shortCutMapping.get(r);return i===void 0?void 0:Array.from(i).sort((o,l)=>{var u,m;return((u=l.priority)!=null?u:0)-((m=o.priority)!=null?m:0)}).find(o=>{var l,u;return(u=(l=o.preconditions)==null?void 0:l.call(o,this._contextService))!=null?u:!0})}_getBindingFromItem(n){return this._platformService.isMac&&n.mac?n.mac:this._platformService.isWindows&&n.win?n.win:this._platformService.isLinux&&n.linux?n.linux:n.binding}_deriveBindingFromEvent(n){const{shiftKey:r,metaKey:i,altKey:a,keyCode:o}=n;let l=o;return r&&(l|=Oe.SHIFT),a&&(l|=Oe.ALT),(this._platformService.isMac?i:n.ctrlKey)&&(l|=Oe.CTRL_COMMAND),this._platformService.isMac&&n.ctrlKey&&(l|=Oe.MAC_CTRL),l}},C.ShortcutService=c4([tt(0,d.ICommandService),tt(1,et),tt(2,d.IContextService),tt(3,d.Optional(r1))],C.ShortcutService);var u4=Object.defineProperty,f4=Object.getOwnPropertyDescriptor,d4=(e,t,n,r)=>{for(var i=r>1?void 0:r?f4(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&u4(t,n,i),i},b6=(e,t)=>(n,r)=>t(n,r,e);function nt(e){return e.getContextValue(d.FOCUSING_UNIVER_EDITOR)}const y6={id:Rt.id,description:"shortcut.copy",group:"1_common-edit",binding:a1.C|Oe.CTRL_COMMAND,preconditions:nt},S6={id:jt.id,description:"shortcut.cut",group:"1_common-edit",binding:a1.X|Oe.CTRL_COMMAND,preconditions:nt},h4={id:kt.id,description:"shortcut.paste",group:"1_common-edit",binding:a1.V|Oe.CTRL_COMMAND,preconditions:()=>!1},L6={id:d.UndoCommand.id,description:"shortcut.undo",group:"1_common-edit",binding:a1.Z|Oe.CTRL_COMMAND,preconditions:nt},_6={id:d.RedoCommand.id,description:"shortcut.redo",group:"1_common-edit",binding:a1.Y|Oe.CTRL_COMMAND,preconditions:nt};C.SharedController=class extends d.Disposable{constructor(t,n){super(),this._shortcutService=t,this._commandService=n,this.initialize()}initialize(){this._registerCommands(),this._registerShortcuts()}_registerCommands(){[jt,Rt,kt].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_registerShortcuts(){const t=[L6,_6];t.push(S6,y6,h4),t.forEach(n=>this.disposeWithMe(this._shortcutService.registerShortcut(n)))}},C.SharedController=d4([b6(0,y1),b6(1,d.ICommandService)],C.SharedController);const S1={shortcutPanelGroupTitle:"univer-shortcut-panel-group-title",shortcutPanelItem:"univer-shortcut-panel-item",shortcutPanelItemTitle:"univer-shortcut-panel-item-title",shortcutPanelItemShortcut:"univer-shortcut-panel-item-shortcut"};function v4(){const e=d.useDependency(y1),t=d.useDependency(d.LocaleService),n=d.useObservable(t.currentLocale$),[r,i]=s.useState([]),a=s.useCallback(()=>{var m;const o=new Map,l=e.getAllShortcuts().filter(v=>!!v.group);for(const v of l){const f=v.group,p={title:t.t((m=v.description)!=null?m:v.id),shortcut:e.getShortcutDisplay(v)};if(!/\d+_[a-zA-Z0-9]/.test(f))throw new Error(`[ShortcutPanel]: Invalid shortcut group: ${f}!`);o.has(f)||o.set(f,[]),o.get(f).push(p)}const u=Array.from(o.entries()).map(([v,f])=>{const p=v.split("_")[0],S=v.slice(p.length+1);return{sequence:+p,name:t.t(S),items:f}}).sort((v,f)=>v.sequence-f.sequence);i(u)},[e,t,n]);return s.useEffect(()=>{a();const o=e.shortcutChanged$.subscribe(()=>a());return()=>o.unsubscribe()},[e,a]),y.jsx("div",{className:S1.shortcutPanel,children:r.map(o=>y.jsxs("div",{className:S1.shortcutPanelGroup,children:[y.jsx("div",{className:S1.shortcutPanelGroupTitle,children:o.name}),o.items.map((l,u)=>y.jsxs("div",{className:S1.shortcutPanelItem,children:[y.jsx("span",{className:S1.shortcutPanelItemTitle,children:l.title}),y.jsx("span",{className:S1.shortcutPanelItemShortcut,children:l.shortcut})]},`${l.title}-${l.shortcut}`))]},o.name))})}var m4=Object.defineProperty,p4=Object.getOwnPropertyDescriptor,C4=(e,t,n,r)=>{for(var i=r>1?void 0:r?p4(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&m4(t,n,i),i},A1=(e,t)=>(n,r)=>t(n,r,e);const g4={id:P1.id,binding:Oe.CTRL_COMMAND|a1.BACK_SLASH,description:"shortcut.shortcut-panel",group:"10_global-shortcut"};C.ShortcutPanelController=class extends d.Disposable{constructor(t,n,r,i,a){super(),this._menuManagerService=i,this.disposeWithMe(n.register(m6,v4)),this.disposeWithMe(a.registerCommand(P1)),this.disposeWithMe(r.registerShortcut(g4))}},C.ShortcutPanelController=C4([A1(0,d.Inject(d.Injector)),A1(1,d.Inject(ke)),A1(2,y1),A1(3,Qe),A1(4,d.ICommandService)],C.ShortcutPanelController);const R1=d.createIdentifier("univer.ui.ui-controller");var h1={},Bt={exports:{}},Ut={exports:{}},w6;function j1(){return w6||(w6=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ut)),Ut.exports}var M6;function b4(){return M6||(M6=1,function(e){var t=j1().default;function n(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,o=new WeakMap;return(n=function(u){return u?o:a})(i)}function r(i,a){if(!a&&i&&i.__esModule)return i;if(i===null||t(i)!="object"&&typeof i!="function")return{default:i};var o=n(a);if(o&&o.has(i))return o.get(i);var l={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in i)if(m!=="default"&&{}.hasOwnProperty.call(i,m)){var v=u?Object.getOwnPropertyDescriptor(i,m):null;v&&(v.get||v.set)?Object.defineProperty(l,m,v):l[m]=i[m]}return l.default=i,o&&o.set(i,l),l}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Bt)),Bt.exports}var Ft={exports:{}},E6;function y4(){return E6||(E6=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ft)),Ft.exports}var zt={exports:{}},O6;function S4(){return O6||(O6=1,function(e){var t=j1().default;function n(){e.exports=n=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var r,i={},a=Object.prototype,o=a.hasOwnProperty,l=Object.defineProperty||function(B,P,R){B[P]=R.value},u=typeof Symbol=="function"?Symbol:{},m=u.iterator||"@@iterator",v=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(B,P,R){return Object.defineProperty(B,P,{value:R,enumerable:!0,configurable:!0,writable:!0}),B[P]}try{p({},"")}catch{p=function(R,q,Q){return R[q]=Q}}function S(B,P,R,q){var Q=P&&P.prototype instanceof k?P:k,G=Object.create(Q.prototype),K=new he(q||[]);return l(G,"_invoke",{value:ne(B,R,K)}),G}function E(B,P,R){try{return{type:"normal",arg:B.call(P,R)}}catch(q){return{type:"throw",arg:q}}}i.wrap=S;var M="suspendedStart",b="suspendedYield",H="executing",x="completed",T={};function k(){}function O(){}function I(){}var V={};p(V,m,function(){return this});var A=Object.getPrototypeOf,$=A&&A(A(Ce([])));$&&$!==a&&o.call($,m)&&(V=$);var z=I.prototype=k.prototype=Object.create(V);function W(B){["next","throw","return"].forEach(function(P){p(B,P,function(R){return this._invoke(P,R)})})}function Y(B,P){function R(Q,G,K,se){var ge=E(B[Q],B,G);if(ge.type!=="throw"){var xe=ge.arg,_e=xe.value;return _e&&t(_e)=="object"&&o.call(_e,"__await")?P.resolve(_e.__await).then(function(we){R("next",we,K,se)},function(we){R("throw",we,K,se)}):P.resolve(_e).then(function(we){xe.value=we,K(xe)},function(we){return R("throw",we,K,se)})}se(ge.arg)}var q;l(this,"_invoke",{value:function(G,K){function se(){return new P(function(ge,xe){R(G,K,ge,xe)})}return q=q?q.then(se,se):se()}})}function ne(B,P,R){var q=M;return function(Q,G){if(q===H)throw Error("Generator is already running");if(q===x){if(Q==="throw")throw G;return{value:r,done:!0}}for(R.method=Q,R.arg=G;;){var K=R.delegate;if(K){var se=ae(K,R);if(se){if(se===T)continue;return se}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(q===M)throw q=x,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);q=H;var ge=E(B,P,R);if(ge.type==="normal"){if(q=R.done?x:b,ge.arg===T)continue;return{value:ge.arg,done:R.done}}ge.type==="throw"&&(q=x,R.method="throw",R.arg=ge.arg)}}}function ae(B,P){var R=P.method,q=B.iterator[R];if(q===r)return P.delegate=null,R==="throw"&&B.iterator.return&&(P.method="return",P.arg=r,ae(B,P),P.method==="throw")||R!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+R+"' method")),T;var Q=E(q,B.iterator,P.arg);if(Q.type==="throw")return P.method="throw",P.arg=Q.arg,P.delegate=null,T;var G=Q.arg;return G?G.done?(P[B.resultName]=G.value,P.next=B.nextLoc,P.method!=="return"&&(P.method="next",P.arg=r),P.delegate=null,T):G:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,T)}function ve(B){var P={tryLoc:B[0]};1 in B&&(P.catchLoc=B[1]),2 in B&&(P.finallyLoc=B[2],P.afterLoc=B[3]),this.tryEntries.push(P)}function ie(B){var P=B.completion||{};P.type="normal",delete P.arg,B.completion=P}function he(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(ve,this),this.reset(!0)}function Ce(B){if(B||B===""){var P=B[m];if(P)return P.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var R=-1,q=function Q(){for(;++R<B.length;)if(o.call(B,R))return Q.value=B[R],Q.done=!1,Q;return Q.value=r,Q.done=!0,Q};return q.next=q}}throw new TypeError(t(B)+" is not iterable")}return O.prototype=I,l(z,"constructor",{value:I,configurable:!0}),l(I,"constructor",{value:O,configurable:!0}),O.displayName=p(I,f,"GeneratorFunction"),i.isGeneratorFunction=function(B){var P=typeof B=="function"&&B.constructor;return!!P&&(P===O||(P.displayName||P.name)==="GeneratorFunction")},i.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,I):(B.__proto__=I,p(B,f,"GeneratorFunction")),B.prototype=Object.create(z),B},i.awrap=function(B){return{__await:B}},W(Y.prototype),p(Y.prototype,v,function(){return this}),i.AsyncIterator=Y,i.async=function(B,P,R,q,Q){Q===void 0&&(Q=Promise);var G=new Y(S(B,P,R,q),Q);return i.isGeneratorFunction(P)?G:G.next().then(function(K){return K.done?K.value:G.next()})},W(z),p(z,f,"Generator"),p(z,m,function(){return this}),p(z,"toString",function(){return"[object Generator]"}),i.keys=function(B){var P=Object(B),R=[];for(var q in P)R.push(q);return R.reverse(),function Q(){for(;R.length;){var G=R.pop();if(G in P)return Q.value=G,Q.done=!1,Q}return Q.done=!0,Q}},i.values=Ce,he.prototype={constructor:he,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(ie),!P)for(var R in this)R.charAt(0)==="t"&&o.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=r)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var R=this;function q(xe,_e){return K.type="throw",K.arg=P,R.next=xe,_e&&(R.method="next",R.arg=r),!!_e}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var G=this.tryEntries[Q],K=G.completion;if(G.tryLoc==="root")return q("end");if(G.tryLoc<=this.prev){var se=o.call(G,"catchLoc"),ge=o.call(G,"finallyLoc");if(se&&ge){if(this.prev<G.catchLoc)return q(G.catchLoc,!0);if(this.prev<G.finallyLoc)return q(G.finallyLoc)}else if(se){if(this.prev<G.catchLoc)return q(G.catchLoc,!0)}else{if(!ge)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return q(G.finallyLoc)}}}},abrupt:function(P,R){for(var q=this.tryEntries.length-1;q>=0;--q){var Q=this.tryEntries[q];if(Q.tryLoc<=this.prev&&o.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var G=Q;break}}G&&(P==="break"||P==="continue")&&G.tryLoc<=R&&R<=G.finallyLoc&&(G=null);var K=G?G.completion:{};return K.type=P,K.arg=R,G?(this.method="next",this.next=G.finallyLoc,T):this.complete(K)},complete:function(P,R){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&R&&(this.next=R),T},finish:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var q=this.tryEntries[R];if(q.finallyLoc===P)return this.complete(q.completion,q.afterLoc),ie(q),T}},catch:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var q=this.tryEntries[R];if(q.tryLoc===P){var Q=q.completion;if(Q.type==="throw"){var G=Q.arg;ie(q)}return G}}throw Error("illegal catch attempt")},delegateYield:function(P,R,q){return this.delegate={iterator:Ce(P),resultName:R,nextLoc:q},this.method==="next"&&(this.arg=r),T}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(zt)),zt.exports}var Zt={exports:{}},H6;function L4(){return H6||(H6=1,function(e){function t(r,i,a,o,l,u,m){try{var v=r[u](m),f=v.value}catch(p){return void a(p)}v.done?i(f):Promise.resolve(f).then(o,l)}function n(r){return function(){var i=this,a=arguments;return new Promise(function(o,l){var u=r.apply(i,a);function m(f){t(u,o,l,m,v,"next",f)}function v(f){t(u,o,l,m,v,"throw",f)}m(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Zt)),Zt.exports}var Wt={exports:{}},Gt={exports:{}},Yt={exports:{}},qt={exports:{}},I6;function _4(){return I6||(I6=1,function(e){var t=j1().default;function n(r,i){if(t(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var o=a.call(r,i||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(qt)),qt.exports}var T6;function w4(){return T6||(T6=1,function(e){var t=j1().default,n=_4();function r(i){var a=n(i,"string");return t(a)=="symbol"?a:a+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Yt)),Yt.exports}var D6;function M4(){return D6||(D6=1,function(e){var t=w4();function n(r,i,a){return(i=t(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Gt)),Gt.exports}var x6;function E4(){return x6||(x6=1,function(e){var t=M4();function n(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),o.push.apply(o,l)}return o}function r(i){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?n(Object(o),!0).forEach(function(l){t(i,l,o[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(o,l))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Wt)),Wt.exports}var N6;function O4(){if(N6)return h1;N6=1;var e=b4().default,t=y4().default;Object.defineProperty(h1,"__esModule",{value:!0}),h1._r=H,h1._u=I,h1.render=x,h1.unmount=V;var n=t(S4()),r=t(L4()),i=t(j1()),a=t(E4()),o=e(I1),l=(0,a.default)({},o),u=l.version,m=l.render,v=l.unmountComponentAtNode,f;try{var p=Number((u||"").split(".")[0]);p>=18&&(f=l.createRoot)}catch{}function S($){var z=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;z&&(0,i.default)(z)==="object"&&(z.usingClientEntryPoint=$)}var E="__rc_react_root__";function M($,z){S(!0);var W=z[E]||f(z);S(!1),W.render($),z[E]=W}function b($,z){m($,z)}function H($,z){}function x($,z){if(f){M($,z);return}b($,z)}function T($){return k.apply(this,arguments)}function k(){return k=(0,r.default)((0,n.default)().mark(function $(z){return(0,n.default)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",Promise.resolve().then(function(){var ne;(ne=z[E])===null||ne===void 0||ne.unmount(),delete z[E]}));case 1:case"end":return Y.stop()}},$)})),k.apply(this,arguments)}function O($){v($)}function I($){}function V($){return A.apply(this,arguments)}function A(){return A=(0,r.default)((0,n.default)().mark(function $(z){return(0,n.default)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(f===void 0){Y.next=2;break}return Y.abrupt("return",T(z));case 2:O(z);case 3:case"end":return Y.stop()}},$)})),A.apply(this,arguments)}return h1}var L1=O4(),pe=(e=>(e.GLOBAL="global",e.HEADER="header",e.HEADER_MENU="header-menu",e.CONTENT="content",e.FOOTER="footer",e.LEFT_SIDEBAR="left-sidebar",e.FLOATING="floating",e.UNIT="unit",e.CUSTOM_HEADER="custom-header",e))(pe||{});const Ze=d.createIdentifier("ui.parts.service");class Xt extends d.Disposable{constructor(){super(...arguments);ee(this,"_componentsByPart",new Map);ee(this,"_componentRegistered$",new te.Subject);ee(this,"componentRegistered$",this._componentRegistered$.asObservable());ee(this,"_uiVisible",new Map);ee(this,"_uiVisibleChange$",new te.Subject);ee(this,"uiVisibleChange$",this._uiVisibleChange$.asObservable())}dispose(){super.dispose(),this._componentRegistered$.complete()}setUIVisible(n,r){this._uiVisible.set(n,r),this._uiVisibleChange$.next({ui:n,visible:r})}isUIVisible(n){var r;return(r=this._uiVisible.get(n))!=null?r:!0}registerComponent(n,r){const i=r(),a=(this._componentsByPart.get(n)||this._componentsByPart.set(n,new Set).get(n)).add(i);return this._componentRegistered$.next(n),d.toDisposable(()=>{a.delete(i),a.size===0&&this._componentsByPart.delete(n),this._componentRegistered$.next(n)})}getComponents(n){return new Set([...this._componentsByPart.get(n)||new Set])}}class rt{constructor(){ee(this,"_domLayerMap",new Map);ee(this,"_domLayers$",new te.BehaviorSubject([]));ee(this,"domLayers$",this._domLayers$.asObservable())}get domLayers(){return Array.from(this._domLayerMap.entries())}_notice(){this._domLayers$.next(Array.from(this._domLayerMap.entries()))}addFloatDom(t){this._domLayerMap.set(t.id,t),this._notice()}removeFloatDom(t){this._domLayerMap.delete(t)&&this._notice()}removeAll(){this._domLayerMap.clear(),this._notice()}}const V6={floatDomWrapper:"univer-float-dom-wrapper",floatDom:"univer-float-dom"},H4=s.memo(e=>{var M,b;const{layer:t,id:n}=e,r=d.useDependency(ke),i=s.useMemo(()=>t.position$.pipe(te.distinctUntilChanged((H,x)=>H.absolute.left===x.absolute.left&&H.absolute.top===x.absolute.top&&H.endX-H.startX===x.endX-x.startX&&H.endY-H.startY===x.endY-x.startY)),[t.position$]),a=d.useObservable(s.useMemo(()=>t.position$.pipe(te.first()),[t.position$])),o=s.useRef(null),l=s.useRef(null),u=s.useRef(`transform: rotate(${a==null?void 0:a.rotate}deg) translate(${a==null?void 0:a.startX}px, ${a==null?void 0:a.startY}px)`),m=s.useRef((M=a==null?void 0:a.startY)!=null?M:0),v=s.useRef((b=a==null?void 0:a.startX)!=null?b:0),f=s.useRef({}),p=typeof t.componentKey=="string"?r.get(t.componentKey):t.componentKey,S=s.useMemo(()=>({data:t.data,...t.props}),[t.data,t.props]);s.useEffect(()=>{const H=t.position$.subscribe(T=>{u.current=`rotate(${T.rotate}deg)`,m.current=T.startY,v.current=T.startX,o.current&&(o.current.style.transform=u.current,o.current.style.top=`${m.current}px`,o.current.style.left=`${v.current}px`)}),x=i.subscribe(T=>{if(o.current&&(o.current.style.width=`${Math.max(T.endX-T.startX-2,0)}px`,o.current.style.height=`${Math.max(T.endY-T.startY-2,0)}px`),l.current){const k={width:`${T.width-4}px`,height:`${T.height-4}px`,left:`${T.absolute.left?0:"auto"}`,top:`${T.absolute.top?0:"auto"}`,right:`${T.absolute.left?"auto":0}`,bottom:`${T.absolute.top?"auto":0}`};l.current.style.width=k.width,l.current.style.height=k.height,l.current.style.left=k.left,l.current.style.top=k.top,l.current.style.right=k.right,l.current.style.bottom=k.bottom,f.current=k}});return()=>{H.unsubscribe(),x.unsubscribe()}},[t.position$,i]);const E=s.useMemo(()=>p?y.jsx(p,{...S}):null,[p,S]);return a?y.jsx("div",{ref:o,className:V6.floatDomWrapper,style:{position:"absolute",top:m.current,left:v.current,width:Math.max(a.endX-a.startX-2,0),height:Math.max(a.endY-a.startY-2,0),transform:u.current,overflow:"hidden",transformOrigin:"center center"},onPointerMove:H=>{t.onPointerMove(H.nativeEvent)},onPointerDown:H=>{t.onPointerDown(H.nativeEvent)},onPointerUp:H=>{t.onPointerUp(H.nativeEvent)},onWheel:H=>{t.onWheel(H.nativeEvent)},children:y.jsx("div",{id:n,ref:l,className:V6.floatDom,style:{position:"absolute",...f.current},children:E})}):null}),Qt=({unitId:e})=>{var a,o;const t=d.useDependency(d.IUniverInstanceService),n=d.useDependency(rt),r=d.useObservable(n.domLayers$),i=e||((a=t.getCurrentUnitForType(d.UniverInstanceType.UNIVER_SHEET))==null?void 0:a.getUnitId());return(o=r==null?void 0:r.filter(l=>l[1].unitId===i))==null?void 0:o.map(l=>y.jsx(H4,{id:l[0],layer:l[1]},l[0]))},it=d.createIdentifier("ui.popup.service");class Jt extends d.Disposable{constructor(){super(...arguments);ee(this,"_popupMap",new Map);ee(this,"_popups$",new te.BehaviorSubject([]));ee(this,"popups$",this._popups$.asObservable());ee(this,"_activePopupId",null)}get popups(){return Array.from(this._popupMap.entries())}get activePopupId(){return this._activePopupId}_update(){this._popups$.next(Array.from(this._popupMap.entries()))}dispose(){super.dispose(),this._popups$.next([]),this._popups$.complete(),this._popupMap.clear()}addPopup(n){const r=d.Tools.generateRandomId();return this._popupMap.set(r,{...n,onPointerEnter:()=>{this._activePopupId=r},onPointerLeave:()=>{this._activePopupId===r&&(this._activePopupId=null)}}),this._update(),r}removePopup(n){this._popupMap.delete(n)&&this._update()}removeAll(){this._popupMap.clear(),this._update()}}const I4=({popup:e,children:t})=>{const[n,r]=s.useState(!1),i=s.useMemo(()=>e.anchorRect$.pipe(te.throttleTime(0,te.animationFrameScheduler),te.map(f=>{var x;const{bottom:p,left:S,right:E,top:M}=f,[b=0,H=0]=(x=e.offset)!=null?x:[];return{left:S-b,right:E+b,top:M-H,bottom:p+H}})),[e.anchorRect$,e.offset]),a=s.useMemo(()=>{var f,p;return(p=(f=e.hiddenRects$)==null?void 0:f.pipe(te.throttleTime(0,te.animationFrameScheduler)))!=null?p:te.of([])},[e.hiddenRects$]),o=s.useMemo(()=>{var f;return(f=e.excludeRects$)==null?void 0:f.pipe(te.throttleTime(0,te.animationFrameScheduler))},[e.excludeRects$]),l=W3(o,e.excludeRects),{canvasElement:u,hideOnInvisible:m=!0,hiddenType:v="destroy"}=e;return s.useEffect(()=>{if(!m)return;const f=te.combineLatest([i,a]).subscribe(([p,S])=>{const E=u.getBoundingClientRect(),{top:M,left:b,bottom:H,right:x}=E,T=p.bottom-p.top,k=p.right-p.left,O=S.some(I=>p.top>=I.top-.5*T&&p.bottom<=I.bottom+.5*T&&p.left>=I.left-.5*k&&p.right<=I.right+.5*k);p.bottom<M||p.top>H||p.right<b||p.left>x||O?r(!0):r(!1)});return()=>f.unsubscribe()},[u,m,i,a]),n&&v==="destroy"?null:y.jsx(X1,{hidden:n,anchorRect$:i,direction:e.direction,onClickOutside:e.onClickOutside,excludeOutside:e.excludeOutside,excludeRects:l,onPointerEnter:e.onPointerEnter,onPointerLeave:e.onPointerLeave,onClick:e.onClick,onContextMenu:e.onContextMenu,children:t})};function Kt(){const e=d.useDependency(it),t=d.useDependency(ke);return d.useObservable(e.popups$,void 0,!0).map(r=>{const[i,a]=r,o=t.get(a.componentKey);return y.jsx(I4,{popup:a,children:o?y.jsx(o,{popup:a}):null},i)})}function He(e){const{components:t,fallback:n,sharedProps:r}=e;return!t||t.size===0?n!=null?n:null:Array.from(t.values()).map((i,a)=>{var o;return s.createElement(i,{key:`${(o=i.displayName)!=null?o:a}`,...r})})}function Ve(e,t){var o;const n=(o=t==null?void 0:t.get(Ze))!=null?o:d.useDependency(Ze),r=s.useMemo(()=>n.uiVisibleChange$.pipe(te.filter(l=>l.ui===e)),[e,n]);d.useObservable(r);const i=s.useRef(0),a=d.useObservable(()=>n.componentRegistered$.pipe(te.filter(l=>l===e),te.debounceTime(200),te.map(()=>i.current+=1),te.startWith(i.current+=1)),void 0,void 0,[n,e]);return s.useMemo(()=>n.isUIVisible(e)?n.getComponents(e):new Set,[a])}const k1=d.createIdentifier("ui.contextmenu.service");class en extends d.Disposable{constructor(){super(...arguments);ee(this,"_currentHandler",null);ee(this,"disabled",!1)}get visible(){var n,r;return(r=(n=this._currentHandler)==null?void 0:n.visible)!=null?r:!1}disable(){this.disabled=!0}enable(){this.disabled=!1}triggerContextMenu(n,r){var i;n.stopPropagation(),!this.disabled&&((i=this._currentHandler)==null||i.handleContextMenu(n,r))}hideContextMenu(){var n;(n=this._currentHandler)==null||n.hideContextMenu()}registerContextMenuHandler(n){if(this._currentHandler)throw new Error("There is already a context menu handler!");return this._currentHandler=n,d.toDisposable(()=>this._currentHandler=null)}}function P6(){const e=s.useRef(null),[t,n]=s.useState(!1),[r,i]=s.useState(""),[a,o]=s.useState([0,0]),l=s.useRef(t),u=d.useDependency(k1),m=d.useDependency(d.ICommandService),v=d.useInjector();l.current=t,s.useEffect(()=>{const S=u.registerContextMenuHandler({handleContextMenu:f,hideContextMenu(){n(!1)},get visible(){return l.current}});function E(M){e.current&&!e.current.contains(M.target)&&p()}return document.addEventListener("pointerdown",E),document.addEventListener("wheel",p),()=>{document.removeEventListener("pointerdown",E),document.removeEventListener("wheel",p),S.dispose()}},[u]);function f(S,E){n(!1),requestAnimationFrame(()=>{i(E),o([S.clientX,S.clientY]),n(!0)})}function p(){n(!1)}return y.jsx(le.Popup,{visible:t,offset:a,children:y.jsx("section",{ref:e,children:r&&y.jsx(Q1,{menuType:r,onOptionSelect:S=>{const{label:E,commandId:M,value:b}=S;m&&m.executeCommand(M!=null?M:E,{value:b}),v.get(r1).focus(),n(!1)}})})})}const tn={toolbarBtn:"univer-toolbar-btn",toolbarBtnNoIcon:"univer-toolbar-btn-no-icon",toolbarBtnActive:"univer-toolbar-btn-active"};function nn(e){const{children:t,className:n,style:r,disabled:i=!1,active:a=!1,noIcon:o,onClick:l,onDoubleClick:u,...m}=e,v=S=>{if(i){S.preventDefault();return}l&&l(S)},f=S=>{if(i){S.preventDefault();return}u&&u(S)},p=Te(tn.toolbarBtn,{[`
|
|
20
|
+
${tn.toolbarBtnActive}
|
|
21
|
+
`]:a,[`
|
|
22
|
+
${tn.toolbarBtnNoIcon}
|
|
23
|
+
`]:o},n);return y.jsx("button",{type:"button",className:p,style:r,disabled:i,onClick:v,onDoubleClick:f,...m,children:t})}const Pe={toolbar:"univer-toolbar",toolbarContainer:"univer-toolbar-container",toolbarMore:"univer-toolbar-more",toolbarMoreContainer:"univer-toolbar-more-container",toolbarGroup:"univer-toolbar-group",toolbarItemSelectButton:"univer-toolbar-item-select-button",toolbarItemSelectButtonDisabled:"univer-toolbar-item-select-button-disabled",toolbarItemSelectButtonActivated:"univer-toolbar-item-select-button-activated",toolbarItemSelectButtonLabel:"univer-toolbar-item-select-button-label",toolbarItemSelectButtonArrow:"univer-toolbar-item-select-button-arrow",toolbarItemSelect:"univer-toolbar-item-select",toolbarItemSelectDisabled:"univer-toolbar-item-select-disabled",toolbarItemSelectArrow:"univer-toolbar-item-select-arrow",toolbarItemSelectArrowDisabled:"univer-toolbar-item-select-arrow-disabled",toolbarItemSelectArrowActivated:"univer-toolbar-item-select-arrow-activated"};function A6(e){const{disabled$:t,hidden$:n,activated$:r,value$:i}=e,[a,o]=s.useState(),[l,u]=s.useState(!1),[m,v]=s.useState(!1),[f,p]=s.useState(!1);return s.useEffect(()=>{const S=[];return t&&S.push(t.subscribe(E=>u(E))),n&&S.push(n.subscribe(E=>p(E))),r&&S.push(r.subscribe(E=>v(E))),i&&S.push(i.subscribe(E=>o(E))),()=>S.forEach(E=>E.unsubscribe())},[r,t,n,i]),{disabled:l,value:a,activated:m,hidden:f}}const R6=s.createContext({dropdownVisible:!1,setDropdownVisible:e=>{}}),j6=s.forwardRef((e,t)=>{const{children:n,...r}=e,i=s.useRef(null),[a,o]=s.useState(!1),[l,u]=s.useState(!1);function m(p){o(l?!1:p)}function v(p){u(p),o(!1)}const f=s.useMemo(()=>({dropdownVisible:l,setDropdownVisible:v}),[l]);return s.useImperativeHandle(t,()=>({el:i.current})),y.jsx(le.Tooltip,{...r,visible:a,onVisibleChange:m,children:y.jsx("span",{ref:i,children:y.jsx(R6.Provider,{value:f,children:n})})})});function rn({children:e,overlay:t,disabled:n,offset:r}){const{setDropdownVisible:i}=s.useContext(R6);function a(o){i(o)}return y.jsxs(le.DropdownProvider,{disabled:n,onVisibleChange:a,children:[y.jsx(le.DropdownTrigger,{children:y.jsx("div",{className:"univer-h-full",onClick:o=>o.stopPropagation(),children:e})}),y.jsx(le.DropdownOverlay,{offset:r,children:y.jsx("div",{className:"univer-grid univer-gap-2 univer-theme",children:t})})]})}const _1=s.forwardRef((e,t)=>{const n=d.useDependency(d.LocaleService),r=d.useDependency(d.ICommandService),i=d.useDependency(r1),a=d.useDependency(ke),{value:o,hidden:l,disabled:u,activated:m}=A6(e),v=(W,Y)=>{i.focus(),r.executeCommand(W,Y)},{tooltip:f,shortcut:p,icon:S,title:E,label:M,id:b,commandId:H}=e,x=n.t(f!=null?f:"")+(p?` (${p})`:""),{selections:T}=e,k=s.useMemo(()=>te.isObservable(T)?T:new te.Observable(W=>{W.next(T)}),[T]),O=d.useObservable(k),I=s.useMemo(()=>te.isObservable(S)?S:new te.Observable(W=>{var ne,ae;const Y=(ae=(ne=O==null?void 0:O.find(ve=>ve.value===o))==null?void 0:ne.icon)!=null?ae:S;W.next(Y)}),[S,O,o]),V=d.useObservable(I,void 0,!0);function A(W){var Ce;const Y=e.selectionsCommandId,ne=H!=null?H:b,ae=(Ce=Y!=null?Y:H)!=null?Ce:b;function ve(B){if(u)return;let P=ae;B.id&&(P=B.id),v(P,{value:B.value})}function ie(B){u||v(ae,{value:B})}function he(){u||W===De.BUTTON_SELECTOR&&v(ne,{value:o})}return W===De.BUTTON_SELECTOR?y.jsxs("div",{className:Te(Pe.toolbarItemSelectButton,`
|
|
24
|
+
univer-pr-5 univer-h-6 univer-group univer-transition-colors
|
|
25
|
+
hover:univer-bg-gray-100
|
|
26
|
+
`,{"univer-cursor-not-allowed univer-text-gray-200 univer-pointer-events-none":u}),"data-disabled":u,children:[y.jsx("div",{className:Te(Pe.toolbarItemSelectButtonLabel,`
|
|
27
|
+
univer-transition-colors
|
|
28
|
+
hover:univer-bg-gray-200
|
|
29
|
+
`,{"univer-bg-gray-200":m}),onClick:he,children:y.jsx(Ie,{icon:V,title:E,value:o,label:M,onChange:ie})}),y.jsx(rn,{disabled:u,offset:{x:-24},overlay:y.jsx(Q1,{overViewport:"scroll",menuType:b,options:O,onOptionSelect:ve,value:o}),children:y.jsx("div",{className:Te(`
|
|
30
|
+
univer-absolute univer-top-0 univer-right-0 univer-box-border text-gray-400
|
|
31
|
+
univer-transition-colors univer-w-5 univer-flex univer-justify-center univer-items-center
|
|
32
|
+
univer-h-6
|
|
33
|
+
hover:univer-bg-gray-200
|
|
34
|
+
`,{"univer-cursor-not-allowed univer-text-gray-400 univer-pointer-events-none":u,"univer-bg-gray-200":m}),"data-disabled":u,children:y.jsx(W1,{className:"univer-text-gray-400"})})})]}):y.jsx(rn,{disabled:u,overlay:y.jsx(Q1,{overViewport:"scroll",menuType:b,options:O,onOptionSelect:ve,value:o}),children:y.jsxs("div",{className:Te(Pe.toolbarItemSelect,{"univer-cursor-not-allowed univer-text-gray-200 univer-pointer-events-none":u,[Pe.toolbarItemSelectActivated]:m}),children:[y.jsx(Ie,{icon:V,title:E,value:o,label:M,onChange:ie}),y.jsx("div",{className:Te(Pe.toolbarItemSelectArrow,{"univer-cursor-not-allowed univer-text-gray-200 univer-pointer-events-none":u}),children:y.jsx(W1,{className:"univer-text-gray-400"})})]})})}function $(){var Y;const W=a.get(typeof M=="string"?M:(Y=M==null?void 0:M.name)!=null?Y:"");return y.jsx("span",{children:y.jsx(nn,{noIcon:!S,active:m,disabled:u,onClick:()=>{var ne;return v((ne=e.commandId)!=null?ne:e.id)},onDoubleClick:()=>e.subId&&v(e.subId),children:W?y.jsx(Ie,{title:E,value:o,label:M}):S?y.jsx(Ie,{icon:S}):y.jsx(Ie,{title:E})})})}function z(){switch(e.type){case De.BUTTON_SELECTOR:case De.SELECTOR:case De.SUBITEMS:return A(e.type);case De.BUTTON:default:return $()}}return!l&&y.jsx(j6,{ref:t,title:x,placement:"bottom",children:z()})});function k6(e){const{headerMenuComponents:t}=e,n=d.useDependency(Qe),r=d.useDependency(d.LocaleService),i=s.useRef(null),a=s.useRef({}),[o,l]=s.useState([]),[u,m]=s.useState(i1.START),[v,f]=s.useState([]),p=s.useCallback(M=>{a.current={},m(M.key)},[]);s.useEffect(()=>{function M(){const H=n.getMenuByPositionKey(N1.RIBBON);l(H)}M();const b=n.menuChanged$.subscribe(M);return()=>{b.unsubscribe()}},[n]),s.useEffect(()=>{const M=new ResizeObserver(b=>{requestAnimationFrame(()=>{var V,A;const x=b[0].target.clientWidth,T=Object.values(a.current),k=[];let O=0;const I=(A=(V=o.find($=>$.key===u))==null?void 0:V.children)!=null?A:[];for(const{el:$,key:z}of T)$&&(O+=$.getBoundingClientRect().width+8,O>x-32-8*(I.length-1)&&k.push(z));f(k)})});return i.current&&M.observe(i.current),()=>{M.disconnect()}},[o,u]);const S=s.useMemo(()=>{var x,T;const M=(T=(x=o.find(k=>k.key===u))==null?void 0:x.children)!=null?T:[],b=[],H=[];for(const k of M)if(k.children){const O=k.children.filter(I=>!v.includes(I.key));b.push({...k,children:O}),O.length<k.children.length&&H.push({...k,children:k.children.filter(I=>v.includes(I.key))})}return{allGroups:M,visibleGroups:b,hiddenGroups:H}},[o,u,v]),E=s.useMemo(()=>S.allGroups.map(M=>{var b;return y.jsx("div",{className:Pe.toolbarGroup,children:(b=M.children)==null?void 0:b.map(H=>H.item&&y.jsx(_1,{...H.item,ref:x=>{x!=null&&x.el&&(a.current[H.key]={el:x.el,key:H.key})}},H.key))},M.key)}),[S.allGroups]);return y.jsxs(y.Fragment,{children:[y.jsxs("header",{className:"univer-relative univer-select-none",children:[y.jsx("div",{className:le.clsx(`
|
|
35
|
+
univer-animate-in univer-flex univer-gap-2 univer-justify-center univer-items-center univer-h-0
|
|
36
|
+
univer-transition-all univer-overflow-hidden
|
|
37
|
+
`,{"univer-h-8 univer-slide-in-from-top-full":o.length>1||t&&t.size>0}),children:o.length>1&&o.map(M=>y.jsx("a",{className:le.clsx(`
|
|
38
|
+
univer-text-gray-700 univer-text-sm univer-rounded univer-px-2 univer-py-0.5
|
|
39
|
+
univer-cursor-pointer univer-transition-colors univer-box-border
|
|
40
|
+
hover:univer-bg-gray-300
|
|
41
|
+
`,{"univer-bg-primary-500 univer-text-white hover:!univer-bg-primary-500":M.key===u}),onClick:()=>p(M),children:r.t(M.key)},M.key))}),t&&t.size>0&&y.jsx("div",{className:`
|
|
42
|
+
univer-absolute univer-top-0 univer-right-2 univer-h-full univer-flex univer-gap-2
|
|
43
|
+
univer-items-center
|
|
44
|
+
[&>*]:univer-inline-flex [&>*]:univer-items-center [&>*]:univer-rounded
|
|
45
|
+
[&>*]:univer-transition-colors [&>*]:univer-px-1 [&>*]:univer-h-6
|
|
46
|
+
hover:[&>*]:univer-bg-gray-300
|
|
47
|
+
`,children:y.jsx(He,{components:t})})]}),y.jsx("section",{role:"toolbar",className:Pe.toolbar,children:y.jsxs("div",{className:Pe.toolbarContainer,children:[S.visibleGroups.map(M=>{var b,H;return(((b=M.children)==null?void 0:b.length)||M.item)&&y.jsx("div",{className:Pe.toolbarGroup,children:M.children?(H=M.children)==null?void 0:H.map(x=>x.item&&y.jsx(_1,{...x.item},x.key)):M.item&&y.jsx(_1,{...M.item},M.key)},M.key)}),v.length>0&&y.jsx(j6,{title:r.t("ribbon.more"),placement:"bottom",children:y.jsx(rn,{overlay:y.jsx("div",{className:Pe.toolbarMoreContainer,children:S.hiddenGroups.map(M=>{var b;return y.jsx("div",{className:Pe.toolbarGroup,children:M.children?(b=M.children)==null?void 0:b.map(H=>H.item&&y.jsx(_1,{...H.item},H.key)):M.item&&y.jsx(_1,{...M.item},M.key)},M.key)})}),children:y.jsx(nn,{className:Pe.toolbarItemTextButton,children:y.jsx(r3,{})})})})]})}),y.jsx("div",{"aria-hidden":!0,ref:i,className:Pe.toolbarContainer,style:{position:"absolute",top:-9999,left:0,right:0},children:E})]})}const v1={sidebar:"univer-sidebar",sidebarOpen:"univer-sidebar-open",sidebarContainer:"univer-sidebar-container",sidebarHeader:"univer-sidebar-header",sidebarHeaderClose:"univer-sidebar-header-close",sidebarBody:"univer-sidebar-body",sidebarFooter:"univer-sidebar-footer"};function on(){const e=d.useDependency(b1),t=d.useObservable(e.sidebarOptions$),n=s.useRef(null),r=s.useMemo(()=>{if(!t)return null;const l={...t};for(const u of["children","header","footer"]){const m=u;if(t[m]){const v=t[m];v&&(l[m]=y.jsx(Ie,{...v}))}}return l},[t]);s.useEffect(()=>(n.current&&e.setContainer(n.current),()=>{e.setContainer(void 0)}),[e]),s.useEffect(()=>{const l=m=>{e.scrollEvent$.next(m)},u=n.current;return u&&u.addEventListener("scroll",l),()=>{u==null||u.removeEventListener("scroll",l)}},[e]);const i=Te(v1.sidebar,{[v1.sidebarOpen]:r==null?void 0:r.visible}),a=s.useMemo(()=>r!=null&&r.visible?typeof r.width=="number"?`${r.width}px`:r.width:0,[r]);function o(){var u;const l={...t,visible:!1};e.sidebarOptions$.next(l),(u=l==null?void 0:l.onClose)==null||u.call(l)}return y.jsx("section",{className:i,style:{width:a},children:y.jsxs("section",{className:v1.sidebarContainer,ref:n,children:[y.jsxs("header",{className:v1.sidebarHeader,children:[r==null?void 0:r.header,y.jsx("a",{className:v1.sidebarHeaderClose,onClick:o,children:y.jsx(Z1,{})})]}),y.jsx("section",{className:v1.sidebarBody,style:r==null?void 0:r.bodyStyle,children:r==null?void 0:r.children}),(r==null?void 0:r.footer)&&y.jsx("footer",{className:v1.sidebarFooter,children:r.footer})]})})}const ot=d.createIdentifier("univer.zen-zone-service"),at={zenZone:"univer-zen-zone",zenZoneOpen:"univer-zen-zone-open",zenZoneClose:"univer-zen-zone-close",zenZoneEditorContainer:"univer-zen-zone-editor-container"};function an(){const e=d.useDependency(ot),[t,n]=s.useState(!1),[r,i]=s.useState(),a=d.useObservable(e.temporaryHidden$),o=d.useDependency(ke);s.useEffect(()=>{const m=[e.visible$.subscribe(v=>{n(v)}),e.componentKey$.subscribe(v=>{i(v)})];return()=>{m.forEach(v=>{v.unsubscribe()})}},[]);const l=Te(at.zenZone,t?at.zenZoneOpen:at.zenZoneClose),u=s.useMemo(()=>{const m=o.get(r!=null?r:"");if(m)return m},[r]);return y.jsx("section",{style:a?{opacity:0,zIndex:-1}:void 0,className:l,children:y.jsx("div",{className:at.zenZoneEditorContainer,children:u&&y.jsx(u,{})})})}const st=d.createIdentifier("univer.global-zone-service"),$6={globalZone:"univer-global-zone",globalZoneOpen:"univer-global-zone-open",globalZoneClose:"univer-global-zone-close"};function B6(){const e=d.useDependency(st),[t,n]=s.useState(!1),r=d.useObservable(e.componentKey$,e.componentKey),i=d.useDependency(ke),a=Te($6.globalZone,$6.globalZoneOpen),o=s.useMemo(()=>{const l=i.get(r!=null?r:"");if(l)return l},[r,i]);return s.useEffect(()=>{const l=e.visible$.subscribe(u=>{n(u)});return()=>{l.unsubscribe()}},[e.visible$]),t?y.jsx("section",{className:a,children:o&&y.jsx(o,{})}):null}const sn=new Set([B6]),We={workbenchLayout:"univer-workbench-layout",workbenchCustomHeader:"univer-workbench-custom-header",workbenchContainer:"univer-workbench-container",workbenchContainerHeader:"univer-workbench-container-header",workbenchContainerWrapper:"univer-workbench-container-wrapper",workbenchContainerContent:"univer-workbench-container-content",workbenchContainerDocContent:"univer-workbench-container-doc-content",workbenchContainerCanvas:"univer-workbench-container-canvas",workbenchContainerLeftSidebar:"univer-workbench-container-left-sidebar",workbenchContainerSidebar:"univer-workbench-container-sidebar"};function T4(e){const{header:t=!0,toolbar:n=!0,footer:r=!0,contextMenu:i=!0,mountContainer:a,onRendered:o}=e,l=d.useDependency(d.LocaleService),u=d.useDependency(d.ThemeService),m=d.useDependency(d.IUniverInstanceService),v=s.useRef(null),f=Ve(pe.CUSTOM_HEADER),p=Ve(pe.FOOTER),S=Ve(pe.HEADER),E=Ve(pe.HEADER_MENU),M=Ve(pe.CONTENT),b=Ve(pe.LEFT_SIDEBAR),H=Ve(pe.GLOBAL),[x,T]=s.useState(null);s.useEffect(()=>{const V=m.focused$.subscribe(A=>{if(A==null)return;const $=m.getUnitType(A),z=m.getUnit(A);$===d.UniverInstanceType.UNIVER_DOC&&z&&T(z.getSnapshot())});return()=>{V.unsubscribe()}},[]),s.useEffect(()=>{u.getCurrentTheme()||u.setTheme(le.defaultTheme)},[]),s.useEffect(()=>{v.current&&(o==null||o(v.current))},[o]);const[k,O]=s.useState(l.getLocales()),I=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(I);const V=[l.localeChanged$.subscribe(()=>{O(l.getLocales())}),u.currentTheme$.subscribe(A=>{le.themeInstance.setTheme(a,A),I&&le.themeInstance.setTheme(I,A)})];return()=>{V.forEach(A=>A.unsubscribe()),document.body.removeChild(I)}},[l,a,I,u.currentTheme$]),y.jsxs(le.ConfigProvider,{locale:k==null?void 0:k.design,mountContainer:I,children:[y.jsxs("div",{className:We.workbenchLayout,tabIndex:-1,onBlur:V=>V.stopPropagation(),children:[y.jsx("div",{className:We.workbenchCustomHeader,children:y.jsx(He,{components:f},"custom-header")}),t&&n&&y.jsx("header",{className:We.workbenchContainerHeader,children:y.jsx(k6,{headerMenuComponents:E})}),y.jsxs("section",{className:We.workbenchContainer,children:[y.jsxs("div",{className:We.workbenchContainerWrapper,children:[y.jsx("aside",{className:We.workbenchContainerLeftSidebar,children:y.jsx(He,{components:b},"left-sidebar")}),y.jsxs("section",{className:Te(We.workbenchContainerContent,{[We.workbenchContainerDocContent]:(x==null?void 0:x.documentStyle.documentFlavor)===d.DocumentFlavor.TRADITIONAL}),children:[y.jsx("header",{children:t&&y.jsx(He,{components:S},"header")}),y.jsx("section",{className:We.workbenchContainerCanvas,ref:v,"data-range-selector":!0,onContextMenu:V=>V.preventDefault(),children:y.jsx(He,{components:M},"content")})]}),y.jsx("aside",{className:We.workbenchContainerSidebar,children:y.jsx(on,{})})]}),r&&y.jsx("footer",{className:We.workbenchFooter,children:y.jsx(He,{components:p,sharedProps:{contextMenu:i}},"footer")}),y.jsx(an,{})]})]}),y.jsx(He,{components:H},"global"),y.jsx(He,{components:sn},"built-in-global"),i&&y.jsx(P6,{}),y.jsx(D4,{})]})}function D4(){const{mountContainer:e}=s.useContext(le.ConfigContext),t=Ve(pe.FLOATING);return I1.createPortal(y.jsx(He,{components:t},"floating"),e)}var x4=Object.defineProperty,N4=Object.getOwnPropertyDescriptor,V4=(e,t,n,r)=>{for(var i=r>1?void 0:r?N4(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&x4(t,n,i),i},m1=(e,t)=>(n,r)=>t(n,r,e);const P4=3e3;C.DesktopUIController=class extends d.Disposable{constructor(n,r,i,a,o,l,u,m){super();ee(this,"_steadyTimeout");ee(this,"_renderTimeout");this._config=n,this._renderManagerService=r,this._instanceSrv=i,this._injector=a,this._lifecycleService=o,this._uiPartsService=l,this._menuManagerService=u,this._layoutService=m,this._initBuiltinComponents(),this._initMenus(),this._bootstrapWorkbench()}_initMenus(){this._menuManagerService.mergeMenu(At)}_bootstrapWorkbench(){this.disposeWithMe(this._instanceSrv.unitDisposed$.subscribe(n=>{clearTimeout(this._steadyTimeout)})),this.disposeWithMe(A4(this._injector,this._config,(n,r)=>{this._layoutService&&(this.disposeWithMe(this._layoutService.registerRootContainerElement(r)),this.disposeWithMe(this._layoutService.registerContentElement(n))),this._renderManagerService.currentRender$.subscribe(i=>{if(i){const a=this._renderManagerService.getRenderById(i);if(!a.unitId||d.isInternalEditorID(a.unitId))return;a.engine.setContainer(n)}}),this.disposeWithMe(this._lifecycleService.lifecycle$.pipe(te.filter(i=>i===d.LifecycleStages.Ready),te.take(1)).subscribe(()=>{this._renderTimeout=setTimeout(()=>{const i=this._renderManagerService.getRenderAll();for(const[a,o]of i)d.isInternalEditorID(a)||!o.isRenderUnit||o.engine.setContainer(n);this._lifecycleService.stage=d.LifecycleStages.Rendered,this._steadyTimeout=setTimeout(()=>{this._lifecycleService.stage=d.LifecycleStages.Steady},P4)},300)}))}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(pe.FLOATING,()=>d.connectInjector(Kt,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(pe.CONTENT,()=>d.connectInjector(Qt,this._injector)))}},C.DesktopUIController=V4([m1(1,H1.IRenderManagerService),m1(2,d.IUniverInstanceService),m1(3,d.Inject(d.Injector)),m1(4,d.Inject(d.LifecycleService)),m1(5,Ze),m1(6,Qe),m1(7,d.Optional(r1))],C.DesktopUIController);function A4(e,t,n){let r;const i=t.container;if(typeof i=="string"){const u=document.getElementById(i);u?r=u:r=U6(i)}else i instanceof HTMLElement?r=i:r=U6("univer");const a=d.connectInjector(T4,e),o=u=>n(u,r);function l(){L1.render(y.jsx(a,{...t,mountContainer:r,onRendered:o}),r)}return l(),d.toDisposable(()=>{L1.render(y.jsx("div",{}),r),setTimeout(()=>L1.render(y.jsx("div",{}),r),200),setTimeout(()=>L1.unmount(r),500)})}function U6(e){const t=document.createElement("div");return t.id=e,t}const lt={mobileMenuContainer:"univer-mobile-menu-container",mobileMenuItem:"univer-mobile-menu-item"};function R4(e){const{menuType:t,onOptionSelect:n}=e,r=d.useDependency(Qe);if(!t)return null;const i=s.useMemo(()=>{const a=r.getMenuByPositionKey(t);function o(l){return l.reduce((u,m)=>m.children?[...u,...o(m.children)]:[...u,m],[])}return o(a)},[t]);return y.jsx("div",{className:lt.mobileMenuContainer,style:{gridTemplateColumns:`repeat(${Math.min(2,i.length)}, 48px)`},children:i.map(a=>a.item&&y.jsx(j4,{menuItem:a.item,onClick:o=>n==null?void 0:n({value:"",label:a.key,...o})},a.key))})}function j4(e){const{menuItem:t,onClick:n}=e,{id:r,type:i,title:a,label:o,icon:l}=t;if(i!==De.BUTTON)throw new Error(`[MobileMenuItem]: on mobile devices only "BUTTON" type menu items are supported. Please check "${r}".`);const u=d.useObservable(t.disabled$,!1),m=d.useObservable(t.activated$,!1),v=d.useObservable(t.hidden$,!1),f=d.useObservable(t.value$),p=Te(lt.mobileMenuItem,{[lt.mobileMenuItemActivated]:m,[lt.mobileMenuItemHidden]:v});return y.jsx("button",{type:"button",className:p,disabled:u,onClick:()=>n({id:r}),children:y.jsx(Ie,{value:f,title:a,label:o,icon:l})},r)}function F6(){const[e,t]=s.useState(!1),[n,r]=s.useState(""),[i,a]=s.useState([0,0]),o=s.useRef(e),l=d.useDependency(k1),u=d.useDependency(d.ICommandService);o.current=e,s.useEffect(()=>{const f=l.registerContextMenuHandler({handleContextMenu:m,hideContextMenu(){t(!1)},get visible(){return o.current}});return document.addEventListener("pointerdown",v),document.addEventListener("wheel",v),()=>{document.removeEventListener("pointerdown",v),document.removeEventListener("wheel",v),f.dispose()}},[l]);function m(f,p){r(p),a([f.clientX,f.clientY]),t(!0)}function v(){t(!1)}return y.jsx(le.Popup,{visible:e,offset:i,children:y.jsx("section",{onPointerDown:f=>f.stopPropagation(),children:n&&y.jsx(R4,{menuType:n,onOptionSelect:f=>{const{label:p,value:S,commandId:E}=f;u&&u.executeCommand(E!=null?E:p,{value:S}),t(!1)}})})})}const Je={appLayout:"univer-app-layout",appCustomHeader:"univer-app-custom-header",appHeader:"univer-app-header",appContainer:"univer-app-container",appContainerHeader:"univer-app-container-header",appContainerWrapper:"univer-app-container-wrapper",appContainerContent:"univer-app-container-content",appContainerCanvas:"univer-app-container-canvas",appContainerLeftSidebar:"univer-app-container-left-sidebar",appContainerSidebar:"univer-app-container-sidebar"};function k4(e){const{header:t=!0,footer:n=!0,contextMenu:r=!0,mountContainer:i,onRendered:a}=e,o=d.useDependency(d.LocaleService),l=d.useDependency(d.ThemeService),u=s.useRef(null),m=Ve(pe.FOOTER),v=Ve(pe.HEADER),f=Ve(pe.CONTENT),p=Ve(pe.LEFT_SIDEBAR),S=Ve(pe.GLOBAL);s.useEffect(()=>{l.getCurrentTheme()||l.setTheme(le.defaultTheme)},[]),s.useEffect(()=>{u.current&&(a==null||a(u.current))},[a]);const[E,M]=s.useState(o.getLocales()),b=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(b);const H=[o.localeChanged$.subscribe(()=>{M(o.getLocales())}),l.currentTheme$.subscribe(x=>{le.themeInstance.setTheme(i,x),b&&le.themeInstance.setTheme(b,x)})];return()=>{H.forEach(x=>x.unsubscribe()),document.body.removeChild(b)}},[o,i,b,l.currentTheme$]),y.jsxs(le.ConfigProvider,{locale:E==null?void 0:E.design,mountContainer:b,children:[y.jsxs("div",{className:Je.appLayout,tabIndex:-1,onBlur:H=>H.stopPropagation(),children:[t&&y.jsx("header",{className:Je.appContainerHeader}),y.jsxs("section",{className:Je.appContainer,children:[y.jsxs("div",{className:Je.appContainerWrapper,children:[y.jsx("aside",{className:Je.appContainerLeftSidebar,children:y.jsx(He,{components:p},"left-sidebar")}),y.jsxs("section",{className:Je.appContainerContent,children:[y.jsx("header",{className:Je.appHeader,children:t&&y.jsx(He,{components:v},"header")}),y.jsx("section",{className:Je.appContainerCanvas,ref:u,"data-range-selector":!0,onContextMenu:H=>H.preventDefault(),children:y.jsx(He,{components:f},"content")})]}),y.jsx("aside",{className:Je.appContainerSidebar,children:y.jsx(on,{})})]}),n&&y.jsx("footer",{className:Je.appFooter,children:y.jsx(He,{components:m},"footer")}),y.jsx(an,{})]})]}),y.jsx(He,{components:S},"global"),y.jsx(He,{components:sn},"built-in-global"),r&&y.jsx(F6,{})]})}var $4=Object.defineProperty,B4=Object.getOwnPropertyDescriptor,U4=(e,t,n,r)=>{for(var i=r>1?void 0:r?B4(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&$4(t,n,i),i},p1=(e,t)=>(n,r)=>t(n,r,e);const F4=3e3;let ln=class extends d.Disposable{constructor(e,t,n,r,i,a,o,l){super(),this._config=e,this._instanceService=t,this._renderManagerService=n,this._injector=r,this._lifecycleService=i,this._uiPartsService=a,this._menuManagerService=o,this._layoutService=l,this._initBuiltinComponents(),Promise.resolve().then(()=>this._bootstrapWorkbench())}_initMenus(){this._menuManagerService.mergeMenu(At)}_bootstrapWorkbench(){this.disposeWithMe(z4(this._injector,this._config,(e,t)=>{this._layoutService&&(this.disposeWithMe(this._layoutService.registerRootContainerElement(t)),this.disposeWithMe(this._layoutService.registerContentElement(e))),this._renderManagerService.currentRender$.subscribe(n=>{if(n){const r=this._renderManagerService.getRenderById(n);if(!r.unitId||this._instanceService.getUnitType(r.unitId)!==d.UniverInstanceType.UNIVER_SHEET)return;r.engine.setContainer(e)}}),setTimeout(()=>{var r;const n=(r=this._renderManagerService.getFirst())==null?void 0:r.engine;n==null||n.setContainer(e),this._lifecycleService.stage=d.LifecycleStages.Rendered,setTimeout(()=>this._lifecycleService.stage=d.LifecycleStages.Steady,F4)},300)}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(pe.CONTENT,()=>d.connectInjector(Kt,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(pe.CONTENT,()=>d.connectInjector(Qt,this._injector)))}};ln=U4([p1(1,d.IUniverInstanceService),p1(2,H1.IRenderManagerService),p1(3,d.Inject(d.Injector)),p1(4,d.Inject(d.LifecycleService)),p1(5,Ze),p1(6,Qe),p1(7,d.Optional(r1))],ln);function z4(e,t,n){let r;const i=t.container;if(typeof i=="string"){const u=document.getElementById(i);u?r=u:r=z6(i)}else i instanceof HTMLElement?r=i:r=z6("univer");const a=d.connectInjector(k4,e),o=u=>n(u,r);function l(){L1.render(y.jsx(a,{...t,mountContainer:r,onRendered:o}),r)}return l(),d.toDisposable(()=>{L1.unmount(r)})}function z6(e){const t=document.createElement("div");return t.id=e,t}const $1=d.createIdentifier("ui.notification.service");var Z4=Object.defineProperty,W4=Object.getOwnPropertyDescriptor,G4=(e,t,n,r)=>{for(var i=r>1?void 0:r?W4(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Z4(t,n,i),i},Y4=(e,t)=>(n,r)=>t(n,r,e);const cn=d.createIdentifier("univer.ui.before-close-service");C.DesktopBeforeCloseService=class{constructor(t){ee(this,"_beforeUnloadCallbacks",[]);ee(this,"_onCloseCallbacks",[]);this._notificationService=t,this._init()}registerBeforeClose(t){return this._beforeUnloadCallbacks.push(t),{dispose:()=>{this._beforeUnloadCallbacks=this._beforeUnloadCallbacks.filter(n=>n!==t)}}}registerOnClose(t){return this._onCloseCallbacks.push(t),{dispose:()=>{this._onCloseCallbacks=this._onCloseCallbacks.filter(n=>n!==t)}}}_init(){window.addEventListener("beforeunload",t=>{let n=t;const r=this._beforeUnloadCallbacks.map(i=>i()).filter(i=>!!i).join(`
|
|
48
|
+
`);if(r)return this._notificationService.show({type:"error",title:"Some changes are not saved",content:r}),typeof n>"u"&&(n=window.event),n.returnValue=r,r}),window.addEventListener("unload",()=>{this._onCloseCallbacks.forEach(t=>t())})}},C.DesktopBeforeCloseService=G4([Y4(0,$1)],C.DesktopBeforeCloseService);function q4(){return typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText<"u"}var X4=Object.defineProperty,Q4=Object.getOwnPropertyDescriptor,J4=(e,t,n,r)=>{for(var i=r>1?void 0:r?Q4(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&X4(t,n,i),i},un=(e,t)=>(n,r)=>t(n,r,e);const fn="text/plain",dn="text/html",K4="image/png",ea="image/jpeg",ta="image/bmp",na="image/webp",ra="image/svg+xml",hn=d.createIdentifier("univer.clipboard-interface-service");C.BrowserClipboardService=class extends d.Disposable{constructor(t,n,r){super(),this._localeService=t,this._logService=n,this._notificationService=r}get supportClipboard(){return q4()}async write(t,n){if(!this.supportClipboard)return this._legacyCopyHtml(n);try{return await navigator.clipboard.write([new ClipboardItem({[fn]:new Blob([t],{type:fn}),[dn]:new Blob([n],{type:dn})})])}catch(r){this._logService.error("[BrowserClipboardService]",r),this._showClipboardAuthenticationNotification()}}async writeText(t){if(!this.supportClipboard)return this._legacyCopyText(t);try{return await navigator.clipboard.writeText(t)}catch(n){this._logService.error("[BrowserClipboardService]",n),this._showClipboardAuthenticationNotification()}}async read(){if(!this.supportClipboard)throw new Error("[BrowserClipboardService] read() is not supported on this platform.");try{return navigator.clipboard.read()}catch(t){return this._logService.error("[BrowserClipboardService]",t),this._showClipboardAuthenticationNotification(),[]}}async readText(){if(!this.supportClipboard)throw new Error("[BrowserClipboardService] read() is not supported on this platform.");try{return await navigator.clipboard.readText()}catch(t){return this._logService.error("[BrowserClipboardService]",t),this._showClipboardAuthenticationNotification(),""}}_legacyCopyHtml(t){const n=document.activeElement,r=oa();document.body.appendChild(r),r.innerHTML=t;try{Z6(r),document.execCommand("copy")}finally{n instanceof HTMLElement&&n.focus(),document.body.removeChild(r)}}_legacyCopyText(t){const n=document.activeElement,r=ia();document.body.appendChild(r),r.value=t;try{Z6(r),document.execCommand("copy")}finally{n instanceof HTMLElement&&n.focus(),document.body.removeChild(r)}}_showClipboardAuthenticationNotification(){var t;(t=this._notificationService)==null||t.show({type:"warning",title:this._localeService.t("clipboard.authentication.title"),content:this._localeService.t("clipboard.authentication.content")})}},C.BrowserClipboardService=J4([un(0,d.Inject(d.LocaleService)),un(1,d.ILogService),un(2,d.Optional($1))],C.BrowserClipboardService);function ia(){const e=document.createElement("textarea");return e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.opacity="0",e.readOnly=!0,e}function oa(){const e=document.createElement("div");return e.contentEditable="true",e.style.position="absolute",e.style.opacity="0",e.style.height="1px",e.style.width="1px",e}function Z6(e){if(e instanceof HTMLTextAreaElement){const r=e.hasAttribute("readonly");return r||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),r||e.removeAttribute("readonly"),e.value}e.hasAttribute("contenteditable")&&e.focus();const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();if(!n)throw new Error;return n.removeAllRanges(),n.addRange(t),n.toString()}const ct=d.createIdentifier("univer.confirm-service");function aa(){const e=d.useDependency(ct),[t,n]=s.useState([]);s.useEffect(()=>{const i=e.confirmOptions$.subscribe(a=>{n(a)});return()=>{i.unsubscribe()}},[]);const r=t.map(i=>{const{children:a,title:o,...l}=i,u=l;for(const m of["children","title"]){const v=m,f=i[v];f&&(u[v]=y.jsx(Ie,{...f}))}return u});return r==null?void 0:r.map((i,a)=>y.jsx(le.Confirm,{...i},a))}var sa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ca=(e,t,n,r)=>{for(var i=r>1?void 0:r?la(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&sa(t,n,i),i},W6=(e,t)=>(n,r)=>t(n,r,e);C.DesktopConfirmService=class extends d.Disposable{constructor(n,r){super();ee(this,"_confirmOptions",[]);ee(this,"confirmOptions$",new te.BehaviorSubject([]));this._injector=n,this._uiPartsService=r,this._initUIPart()}open(n){return this._confirmOptions.find(r=>r.id===n.id)?this._confirmOptions=this._confirmOptions.map(r=>({...r.id===n.id?n:r,visible:r.id===n.id?!0:r.visible})):this._confirmOptions.push({...n,visible:!0}),this.confirmOptions$.next(this._confirmOptions),d.toDisposable(()=>{this._confirmOptions=[],this.confirmOptions$.next([])})}confirm(n){return new Promise(r=>{const i=this.open({...n,onConfirm:()=>{i.dispose(),r(!0)},onClose:()=>{i.dispose(),r(!1)}})})}close(n){this._confirmOptions=this._confirmOptions.map(r=>({...r,visible:r.id===n?!1:r.visible})),this.confirmOptions$.next([...this._confirmOptions])}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(pe.GLOBAL,()=>d.connectInjector(aa,this._injector)))}},C.DesktopConfirmService=ca([W6(0,d.Inject(d.Injector)),W6(1,Ze)],C.DesktopConfirmService);const ut=d.createIdentifier("univer.ui.dialog-service");function ua(){const e=d.useDependency(ut),[t,n]=s.useState([]);s.useEffect(()=>{const a=e.getDialogs$().subscribe(o=>{n(o)});return()=>a.unsubscribe()},[e]);const r=t.map(i=>{const{children:a,title:o,closeIcon:l,footer:u,...m}=i,v=m;for(const f of["children","title","closeIcon","footer"]){const p=f,S=i[p];S&&(v[p]=y.jsx(Ie,{...S}))}return v});return y.jsx(y.Fragment,{children:r==null?void 0:r.map(i=>y.jsx(le.Dialog,{...i},i.id))})}var fa=Object.defineProperty,da=Object.getOwnPropertyDescriptor,ha=(e,t,n,r)=>{for(var i=r>1?void 0:r?da(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&fa(t,n,i),i},G6=(e,t)=>(n,r)=>t(n,r,e);C.DesktopDialogService=class extends d.Disposable{constructor(n,r){super();ee(this,"_dialogOptions",[]);ee(this,"_dialogOptions$",new te.Subject);this._injector=n,this._uiPartsService=r,this._initUIPart()}dispose(){super.dispose(),this._dialogOptions$.complete()}open(n){return this._dialogOptions.find(r=>r.id===n.id)?this._dialogOptions=this._dialogOptions.map(r=>({...r.id===n.id?n:r,visible:r.id===n.id?!0:r.visible})):this._dialogOptions.push({...n,visible:!0}),this._dialogOptions$.next(this._dialogOptions),d.toDisposable(()=>{this._dialogOptions=[],this._dialogOptions$.next([])})}close(n){this._dialogOptions=this._dialogOptions.map(r=>({...r,visible:r.id===n?!1:r.visible})),this._dialogOptions$.next([...this._dialogOptions])}closeAll(n){const r=new Set(n);this._dialogOptions=this._dialogOptions.map(i=>({...i,visible:r.has(i.id)?i.visible:!1})),this._dialogOptions$.next([...this._dialogOptions])}getDialogs$(){return this._dialogOptions$.asObservable()}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(pe.GLOBAL,()=>d.connectInjector(ua,this._injector)))}},C.DesktopDialogService=ha([G6(0,d.Inject(d.Injector)),G6(1,Ze)],C.DesktopDialogService);var va=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,pa=(e,t,n,r)=>{for(var i=r>1?void 0:r?ma(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&va(t,n,i),i},Ca=(e,t)=>(n,r)=>t(n,r,e);C.DesktopGlobalZoneService=class{constructor(t){ee(this,"visible$",new te.Subject);ee(this,"componentKey$",new te.Subject);ee(this,"_componentKey","");this._componentManager=t}get componentKey(){return this._componentKey}set(t,n){return this._componentManager.register(t,n),this.componentKey$.next(t),this._componentKey=t,d.toDisposable(()=>{this._componentManager.delete(t),this.visible$.complete(),this.componentKey$.complete()})}open(){this.visible$.next(!0)}close(){this.visible$.next(!1)}},C.DesktopGlobalZoneService=pa([Ca(0,d.Inject(ke))],C.DesktopGlobalZoneService);function ft(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vn={exports:{}};/*!
|
|
21
49
|
localForage -- Offline Storage, Improved
|
|
22
50
|
Version 1.10.0
|
|
23
51
|
https://localforage.github.io/localForage
|
|
24
52
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
25
|
-
*/var q6;function Ca(){return q6||(q6=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,i,o){function a(v,m){if(!i[v]){if(!r[v]){var u=typeof ft=="function"&&ft;if(!m&&u)return u(v,!0);if(l)return l(v,!0);var p=new Error("Cannot find module '"+v+"'");throw p.code="MODULE_NOT_FOUND",p}var L=i[v]={exports:{}};r[v][0].call(L.exports,function(E){var M=r[v][1][E];return a(M||E)},L,L.exports,n,r,i,o)}return i[v].exports}for(var l=typeof ft=="function"&&ft,h=0;h<o.length;h++)a(o[h]);return a}({1:[function(n,r,i){(function(o){var a=o.MutationObserver||o.WebKitMutationObserver,l;if(a){var h=0,v=new a(E),m=o.document.createTextNode("");v.observe(m,{characterData:!0}),l=function(){m.data=h=++h%2}}else if(!o.setImmediate&&typeof o.MessageChannel<"u"){var u=new o.MessageChannel;u.port1.onmessage=E,l=function(){u.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?l=function(){var b=o.document.createElement("script");b.onreadystatechange=function(){E(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},o.document.documentElement.appendChild(b)}:l=function(){setTimeout(E,0)};var p,L=[];function E(){p=!0;for(var b,O,x=L.length;x;){for(O=L,L=[],b=-1;++b<x;)O[b]();x=L.length}p=!1}r.exports=M;function M(b){L.push(b)===1&&!p&&l()}}).call(this,typeof q1<"u"?q1:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,i){var o=n(1);function a(){}var l={},h=["REJECTED"],v=["FULFILLED"],m=["PENDING"];r.exports=u;function u(H){if(typeof H!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,H!==a&&M(this,H)}u.prototype.catch=function(H){return this.then(null,H)},u.prototype.then=function(H,T){if(typeof H!="function"&&this.state===v||typeof T!="function"&&this.state===h)return this;var A=new this.constructor(a);if(this.state!==m){var R=this.state===v?H:T;L(A,R,this.outcome)}else this.queue.push(new p(A,H,T));return A};function p(H,T,A){this.promise=H,typeof T=="function"&&(this.onFulfilled=T,this.callFulfilled=this.otherCallFulfilled),typeof A=="function"&&(this.onRejected=A,this.callRejected=this.otherCallRejected)}p.prototype.callFulfilled=function(H){l.resolve(this.promise,H)},p.prototype.otherCallFulfilled=function(H){L(this.promise,this.onFulfilled,H)},p.prototype.callRejected=function(H){l.reject(this.promise,H)},p.prototype.otherCallRejected=function(H){L(this.promise,this.onRejected,H)};function L(H,T,A){o(function(){var R;try{R=T(A)}catch(k){return l.reject(H,k)}R===H?l.reject(H,new TypeError("Cannot resolve promise with itself")):l.resolve(H,R)})}l.resolve=function(H,T){var A=b(E,T);if(A.status==="error")return l.reject(H,A.value);var R=A.value;if(R)M(H,R);else{H.state=v,H.outcome=T;for(var k=-1,Z=H.queue.length;++k<Z;)H.queue[k].callFulfilled(T)}return H},l.reject=function(H,T){H.state=h,H.outcome=T;for(var A=-1,R=H.queue.length;++A<R;)H.queue[A].callRejected(T);return H};function E(H){var T=H&&H.then;if(H&&(typeof H=="object"||typeof H=="function")&&typeof T=="function")return function(){T.apply(H,arguments)}}function M(H,T){var A=!1;function R(Y){A||(A=!0,l.reject(H,Y))}function k(Y){A||(A=!0,l.resolve(H,Y))}function Z(){T(k,R)}var W=b(Z);W.status==="error"&&R(W.value)}function b(H,T){var A={};try{A.value=H(T),A.status="success"}catch(R){A.status="error",A.value=R}return A}u.resolve=O;function O(H){return H instanceof this?H:l.resolve(new this(a),H)}u.reject=x;function x(H){var T=new this(a);return l.reject(T,H)}u.all=I;function I(H){var T=this;if(Object.prototype.toString.call(H)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=H.length,R=!1;if(!A)return this.resolve([]);for(var k=new Array(A),Z=0,W=-1,Y=new this(a);++W<A;)K(H[W],W);return Y;function K(oe,ve){T.resolve(oe).then(ie,function(fe){R||(R=!0,l.reject(Y,fe))});function ie(fe){k[ve]=fe,++Z===A&&!R&&(R=!0,l.resolve(Y,k))}}}u.race=$;function $(H){var T=this;if(Object.prototype.toString.call(H)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=H.length,R=!1;if(!A)return this.resolve([]);for(var k=-1,Z=new this(a);++k<A;)W(H[k]);return Z;function W(Y){T.resolve(Y).then(function(K){R||(R=!0,l.resolve(Z,K))},function(K){R||(R=!0,l.reject(Z,K))})}}},{1:1}],3:[function(n,r,i){(function(o){typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof q1<"u"?q1:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,i){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function a(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function l(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var h=l();function v(){try{if(!h||!h.open)return!1;var c=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),g=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||g)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function m(c,g){c=c||[],g=g||{};try{return new Blob(c,g)}catch(S){if(S.name!=="TypeError")throw S;for(var d=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,_=new d,w=0;w<c.length;w+=1)_.append(c[w]);return _.getBlob(g.type)}}typeof Promise>"u"&&n(3);var u=Promise;function p(c,g){g&&c.then(function(d){g(null,d)},function(d){g(d)})}function L(c,g,d){typeof g=="function"&&c.then(g),typeof d=="function"&&c.catch(d)}function E(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function M(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var b="local-forage-detect-blob-support",O=void 0,x={},I=Object.prototype.toString,$="readonly",H="readwrite";function T(c){for(var g=c.length,d=new ArrayBuffer(g),_=new Uint8Array(d),w=0;w<g;w++)_[w]=c.charCodeAt(w);return d}function A(c){return new u(function(g){var d=c.transaction(b,H),_=m([""]);d.objectStore(b).put(_,"key"),d.onabort=function(w){w.preventDefault(),w.stopPropagation(),g(!1)},d.oncomplete=function(){var w=navigator.userAgent.match(/Chrome\/(\d+)/),S=navigator.userAgent.match(/Edge\//);g(S||!w||parseInt(w[1],10)>=43)}}).catch(function(){return!1})}function R(c){return typeof O=="boolean"?u.resolve(O):A(c).then(function(g){return O=g,O})}function k(c){var g=x[c.name],d={};d.promise=new u(function(_,w){d.resolve=_,d.reject=w}),g.deferredOperations.push(d),g.dbReady?g.dbReady=g.dbReady.then(function(){return d.promise}):g.dbReady=d.promise}function Z(c){var g=x[c.name],d=g.deferredOperations.pop();if(d)return d.resolve(),d.promise}function W(c,g){var d=x[c.name],_=d.deferredOperations.pop();if(_)return _.reject(g),_.promise}function Y(c,g){return new u(function(d,_){if(x[c.name]=x[c.name]||q(),c.db)if(g)k(c),c.db.close();else return d(c.db);var w=[c.name];g&&w.push(c.version);var S=h.open.apply(h,w);g&&(S.onupgradeneeded=function(D){var j=S.result;try{j.createObjectStore(c.storeName),D.oldVersion<=1&&j.createObjectStore(b)}catch(B){if(B.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+D.oldVersion+" to version "+D.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw B}}),S.onerror=function(D){D.preventDefault(),_(S.error)},S.onsuccess=function(){var D=S.result;D.onversionchange=function(j){j.target.close()},d(D),Z(c)}})}function K(c){return Y(c,!1)}function oe(c){return Y(c,!0)}function ve(c,g){if(!c.db)return!0;var d=!c.db.objectStoreNames.contains(c.storeName),_=c.version<c.db.version,w=c.version>c.db.version;if(_&&(c.version!==g&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),w||d){if(d){var S=c.db.version+1;S>c.version&&(c.version=S)}return!0}return!1}function ie(c){return new u(function(g,d){var _=new FileReader;_.onerror=d,_.onloadend=function(w){var S=btoa(w.target.result||"");g({__local_forage_encoded_blob:!0,data:S,type:c.type})},_.readAsBinaryString(c)})}function fe(c){var g=T(atob(c.data));return m([g],{type:c.type})}function be(c){return c&&c.__local_forage_encoded_blob}function F(c){var g=this,d=g._initReady().then(function(){var _=x[g._dbInfo.name];if(_&&_.dbReady)return _.dbReady});return L(d,c,c),d}function V(c){k(c);for(var g=x[c.name],d=g.forages,_=0;_<d.length;_++){var w=d[_];w._dbInfo.db&&(w._dbInfo.db.close(),w._dbInfo.db=null)}return c.db=null,K(c).then(function(S){return c.db=S,ve(c)?oe(c):S}).then(function(S){c.db=g.db=S;for(var D=0;D<d.length;D++)d[D]._dbInfo.db=S}).catch(function(S){throw W(c,S),S})}function P(c,g,d,_){_===void 0&&(_=1);try{var w=c.db.transaction(c.storeName,g);d(null,w)}catch(S){if(_>0&&(!c.db||S.name==="InvalidStateError"||S.name==="NotFoundError"))return u.resolve().then(function(){if(!c.db||S.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),oe(c)}).then(function(){return V(c).then(function(){P(c,g,d,_-1)})}).catch(d);d(S)}}function q(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Q(c){var g=this,d={db:null};if(c)for(var _ in c)d[_]=c[_];var w=x[d.name];w||(w=q(),x[d.name]=w),w.forages.push(g),g._initReady||(g._initReady=g.ready,g.ready=F);var S=[];function D(){return u.resolve()}for(var j=0;j<w.forages.length;j++){var B=w.forages[j];B!==g&&S.push(B._initReady().catch(D))}var U=w.forages.slice(0);return u.all(S).then(function(){return d.db=w.db,K(d)}).then(function(z){return d.db=z,ve(d,g._defaultConfig.version)?oe(d):z}).then(function(z){d.db=w.db=z,g._dbInfo=d;for(var X=0;X<U.length;X++){var ae=U[X];ae!==g&&(ae._dbInfo.db=d.db,ae._dbInfo.version=d.version)}})}function G(c,g){var d=this;c=E(c);var _=new u(function(w,S){d.ready().then(function(){P(d._dbInfo,$,function(D,j){if(D)return S(D);try{var B=j.objectStore(d._dbInfo.storeName),U=B.get(c);U.onsuccess=function(){var z=U.result;z===void 0&&(z=null),be(z)&&(z=fe(z)),w(z)},U.onerror=function(){S(U.error)}}catch(z){S(z)}})}).catch(S)});return p(_,g),_}function ee(c,g){var d=this,_=new u(function(w,S){d.ready().then(function(){P(d._dbInfo,$,function(D,j){if(D)return S(D);try{var B=j.objectStore(d._dbInfo.storeName),U=B.openCursor(),z=1;U.onsuccess=function(){var X=U.result;if(X){var ae=X.value;be(ae)&&(ae=fe(ae));var ce=c(ae,X.key,z++);ce!==void 0?w(ce):X.continue()}else w()},U.onerror=function(){S(U.error)}}catch(X){S(X)}})}).catch(S)});return p(_,g),_}function se(c,g,d){var _=this;c=E(c);var w=new u(function(S,D){var j;_.ready().then(function(){return j=_._dbInfo,I.call(g)==="[object Blob]"?R(j.db).then(function(B){return B?g:ie(g)}):g}).then(function(B){P(_._dbInfo,H,function(U,z){if(U)return D(U);try{var X=z.objectStore(_._dbInfo.storeName);B===null&&(B=void 0);var ae=X.put(B,c);z.oncomplete=function(){B===void 0&&(B=null),S(B)},z.onabort=z.onerror=function(){var ce=ae.error?ae.error:ae.transaction.error;D(ce)}}catch(ce){D(ce)}})}).catch(D)});return p(w,d),w}function Ce(c,g){var d=this;c=E(c);var _=new u(function(w,S){d.ready().then(function(){P(d._dbInfo,H,function(D,j){if(D)return S(D);try{var B=j.objectStore(d._dbInfo.storeName),U=B.delete(c);j.oncomplete=function(){w()},j.onerror=function(){S(U.error)},j.onabort=function(){var z=U.error?U.error:U.transaction.error;S(z)}}catch(z){S(z)}})}).catch(S)});return p(_,g),_}function xe(c){var g=this,d=new u(function(_,w){g.ready().then(function(){P(g._dbInfo,H,function(S,D){if(S)return w(S);try{var j=D.objectStore(g._dbInfo.storeName),B=j.clear();D.oncomplete=function(){_()},D.onabort=D.onerror=function(){var U=B.error?B.error:B.transaction.error;w(U)}}catch(U){w(U)}})}).catch(w)});return p(d,c),d}function we(c){var g=this,d=new u(function(_,w){g.ready().then(function(){P(g._dbInfo,$,function(S,D){if(S)return w(S);try{var j=D.objectStore(g._dbInfo.storeName),B=j.count();B.onsuccess=function(){_(B.result)},B.onerror=function(){w(B.error)}}catch(U){w(U)}})}).catch(w)});return p(d,c),d}function Me(c,g){var d=this,_=new u(function(w,S){if(c<0){w(null);return}d.ready().then(function(){P(d._dbInfo,$,function(D,j){if(D)return S(D);try{var B=j.objectStore(d._dbInfo.storeName),U=!1,z=B.openKeyCursor();z.onsuccess=function(){var X=z.result;if(!X){w(null);return}c===0||U?w(X.key):(U=!0,X.advance(c))},z.onerror=function(){S(z.error)}}catch(X){S(X)}})}).catch(S)});return p(_,g),_}function O1(c){var g=this,d=new u(function(_,w){g.ready().then(function(){P(g._dbInfo,$,function(S,D){if(S)return w(S);try{var j=D.objectStore(g._dbInfo.storeName),B=j.openKeyCursor(),U=[];B.onsuccess=function(){var z=B.result;if(!z){_(U);return}U.push(z.key),z.continue()},B.onerror=function(){w(B.error)}}catch(z){w(z)}})}).catch(w)});return p(d,c),d}function Ye(c,g){g=M.apply(this,arguments);var d=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||d.name,c.storeName=c.storeName||d.storeName);var _=this,w;if(!c.name)w=u.reject("Invalid arguments");else{var S=c.name===d.name&&_._dbInfo.db,D=S?u.resolve(_._dbInfo.db):K(c).then(function(j){var B=x[c.name],U=B.forages;B.db=j;for(var z=0;z<U.length;z++)U[z]._dbInfo.db=j;return j});c.storeName?w=D.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var B=j.version+1;k(c);var U=x[c.name],z=U.forages;j.close();for(var X=0;X<z.length;X++){var ae=z[X];ae._dbInfo.db=null,ae._dbInfo.version=B}var ce=new u(function(de,Le){var Se=h.open(c.name,B);Se.onerror=function(Ue){var W1=Se.result;W1.close(),Le(Ue)},Se.onupgradeneeded=function(){var Ue=Se.result;Ue.deleteObjectStore(c.storeName)},Se.onsuccess=function(){var Ue=Se.result;Ue.close(),de(Ue)}});return ce.then(function(de){U.db=de;for(var Le=0;Le<z.length;Le++){var Se=z[Le];Se._dbInfo.db=de,Z(Se._dbInfo)}}).catch(function(de){throw(W(c,de)||u.resolve()).catch(function(){}),de})}}):w=D.then(function(j){k(c);var B=x[c.name],U=B.forages;j.close();for(var z=0;z<U.length;z++){var X=U[z];X._dbInfo.db=null}var ae=new u(function(ce,de){var Le=h.deleteDatabase(c.name);Le.onerror=function(){var Se=Le.result;Se&&Se.close(),de(Le.error)},Le.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Le.onsuccess=function(){var Se=Le.result;Se&&Se.close(),ce(Se)}});return ae.then(function(ce){B.db=ce;for(var de=0;de<U.length;de++){var Le=U[de];Z(Le._dbInfo)}}).catch(function(ce){throw(W(c,ce)||u.resolve()).catch(function(){}),ce})})}return p(w,g),w}var l1={_driver:"asyncStorage",_initStorage:Q,_support:v(),iterate:ee,getItem:G,setItem:se,removeItem:Ce,clear:xe,length:we,key:Me,keys:O1,dropInstance:Ye};function Ke(){return typeof openDatabase=="function"}var Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Re="~~local_forage_type~",c1=/^~~local_forage_type~([^~]+)~/,$e="__lfsc__:",e1=$e.length,ye="arbf",pe="blob",Ne="si08",i1="ui08",Be="uic8",t1="si16",St="si32",z9="ur16",Z9="ui32",W9="fl32",G9="fl64",Y9=e1+ye.length,q9=Object.prototype.toString;function X9(c){var g=c.length*.75,d=c.length,_,w=0,S,D,j,B;c[c.length-1]==="="&&(g--,c[c.length-2]==="="&&g--);var U=new ArrayBuffer(g),z=new Uint8Array(U);for(_=0;_<d;_+=4)S=Pe.indexOf(c[_]),D=Pe.indexOf(c[_+1]),j=Pe.indexOf(c[_+2]),B=Pe.indexOf(c[_+3]),z[w++]=S<<2|D>>4,z[w++]=(D&15)<<4|j>>2,z[w++]=(j&3)<<6|B&63;return U}function Nn(c){var g=new Uint8Array(c),d="",_;for(_=0;_<g.length;_+=3)d+=Pe[g[_]>>2],d+=Pe[(g[_]&3)<<4|g[_+1]>>4],d+=Pe[(g[_+1]&15)<<2|g[_+2]>>6],d+=Pe[g[_+2]&63];return g.length%3===2?d=d.substring(0,d.length-1)+"=":g.length%3===1&&(d=d.substring(0,d.length-2)+"=="),d}function Y0(c,g){var d="";if(c&&(d=q9.call(c)),c&&(d==="[object ArrayBuffer]"||c.buffer&&q9.call(c.buffer)==="[object ArrayBuffer]")){var _,w=$e;c instanceof ArrayBuffer?(_=c,w+=ye):(_=c.buffer,d==="[object Int8Array]"?w+=Ne:d==="[object Uint8Array]"?w+=i1:d==="[object Uint8ClampedArray]"?w+=Be:d==="[object Int16Array]"?w+=t1:d==="[object Uint16Array]"?w+=z9:d==="[object Int32Array]"?w+=St:d==="[object Uint32Array]"?w+=Z9:d==="[object Float32Array]"?w+=W9:d==="[object Float64Array]"?w+=G9:g(new Error("Failed to get type for BinaryArray"))),g(w+Nn(_))}else if(d==="[object Blob]"){var S=new FileReader;S.onload=function(){var D=Re+c.type+"~"+Nn(this.result);g($e+pe+D)},S.readAsArrayBuffer(c)}else try{g(JSON.stringify(c))}catch(D){console.error("Couldn't convert value into a JSON string: ",c),g(null,D)}}function q0(c){if(c.substring(0,e1)!==$e)return JSON.parse(c);var g=c.substring(Y9),d=c.substring(e1,Y9),_;if(d===pe&&c1.test(g)){var w=g.match(c1);_=w[1],g=g.substring(w[0].length)}var S=X9(g);switch(d){case ye:return S;case pe:return m([S],{type:_});case Ne:return new Int8Array(S);case i1:return new Uint8Array(S);case Be:return new Uint8ClampedArray(S);case t1:return new Int16Array(S);case z9:return new Uint16Array(S);case St:return new Int32Array(S);case Z9:return new Uint32Array(S);case W9:return new Float32Array(S);case G9:return new Float64Array(S);default:throw new Error("Unkown type: "+d)}}var Vn={serialize:Y0,deserialize:q0,stringToBuffer:X9,bufferToString:Nn};function Q9(c,g,d,_){c.executeSql("CREATE TABLE IF NOT EXISTS "+g.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],d,_)}function X0(c){var g=this,d={db:null};if(c)for(var _ in c)d[_]=typeof c[_]!="string"?c[_].toString():c[_];var w=new u(function(S,D){try{d.db=openDatabase(d.name,String(d.version),d.description,d.size)}catch(j){return D(j)}d.db.transaction(function(j){Q9(j,d,function(){g._dbInfo=d,S()},function(B,U){D(U)})},D)});return d.serializer=Vn,w}function u1(c,g,d,_,w,S){c.executeSql(d,_,w,function(D,j){j.code===j.SYNTAX_ERR?D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[g.storeName],function(B,U){U.rows.length?S(B,j):Q9(B,g,function(){B.executeSql(d,_,w,S)},S)},S):S(D,j)},S)}function Q0(c,g){var d=this;c=E(c);var _=new u(function(w,S){d.ready().then(function(){var D=d._dbInfo;D.db.transaction(function(j){u1(j,D,"SELECT * FROM "+D.storeName+" WHERE key = ? LIMIT 1",[c],function(B,U){var z=U.rows.length?U.rows.item(0).value:null;z&&(z=D.serializer.deserialize(z)),w(z)},function(B,U){S(U)})})}).catch(S)});return p(_,g),_}function J0(c,g){var d=this,_=new u(function(w,S){d.ready().then(function(){var D=d._dbInfo;D.db.transaction(function(j){u1(j,D,"SELECT * FROM "+D.storeName,[],function(B,U){for(var z=U.rows,X=z.length,ae=0;ae<X;ae++){var ce=z.item(ae),de=ce.value;if(de&&(de=D.serializer.deserialize(de)),de=c(de,ce.key,ae+1),de!==void 0){w(de);return}}w()},function(B,U){S(U)})})}).catch(S)});return p(_,g),_}function J9(c,g,d,_){var w=this;c=E(c);var S=new u(function(D,j){w.ready().then(function(){g===void 0&&(g=null);var B=g,U=w._dbInfo;U.serializer.serialize(g,function(z,X){X?j(X):U.db.transaction(function(ae){u1(ae,U,"INSERT OR REPLACE INTO "+U.storeName+" (key, value) VALUES (?, ?)",[c,z],function(){D(B)},function(ce,de){j(de)})},function(ae){if(ae.code===ae.QUOTA_ERR){if(_>0){D(J9.apply(w,[c,B,d,_-1]));return}j(ae)}})})}).catch(j)});return p(S,d),S}function K0(c,g,d){return J9.apply(this,[c,g,d,1])}function e5(c,g){var d=this;c=E(c);var _=new u(function(w,S){d.ready().then(function(){var D=d._dbInfo;D.db.transaction(function(j){u1(j,D,"DELETE FROM "+D.storeName+" WHERE key = ?",[c],function(){w()},function(B,U){S(U)})})}).catch(S)});return p(_,g),_}function t5(c){var g=this,d=new u(function(_,w){g.ready().then(function(){var S=g._dbInfo;S.db.transaction(function(D){u1(D,S,"DELETE FROM "+S.storeName,[],function(){_()},function(j,B){w(B)})})}).catch(w)});return p(d,c),d}function n5(c){var g=this,d=new u(function(_,w){g.ready().then(function(){var S=g._dbInfo;S.db.transaction(function(D){u1(D,S,"SELECT COUNT(key) as c FROM "+S.storeName,[],function(j,B){var U=B.rows.item(0).c;_(U)},function(j,B){w(B)})})}).catch(w)});return p(d,c),d}function r5(c,g){var d=this,_=new u(function(w,S){d.ready().then(function(){var D=d._dbInfo;D.db.transaction(function(j){u1(j,D,"SELECT key FROM "+D.storeName+" WHERE id = ? LIMIT 1",[c+1],function(B,U){var z=U.rows.length?U.rows.item(0).key:null;w(z)},function(B,U){S(U)})})}).catch(S)});return p(_,g),_}function i5(c){var g=this,d=new u(function(_,w){g.ready().then(function(){var S=g._dbInfo;S.db.transaction(function(D){u1(D,S,"SELECT key FROM "+S.storeName,[],function(j,B){for(var U=[],z=0;z<B.rows.length;z++)U.push(B.rows.item(z).key);_(U)},function(j,B){w(B)})})}).catch(w)});return p(d,c),d}function o5(c){return new u(function(g,d){c.transaction(function(_){_.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(w,S){for(var D=[],j=0;j<S.rows.length;j++)D.push(S.rows.item(j).name);g({db:c,storeNames:D})},function(w,S){d(S)})},function(_){d(_)})})}function a5(c,g){g=M.apply(this,arguments);var d=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||d.name,c.storeName=c.storeName||d.storeName);var _=this,w;return c.name?w=new u(function(S){var D;c.name===d.name?D=_._dbInfo.db:D=openDatabase(c.name,"","",0),c.storeName?S({db:D,storeNames:[c.storeName]}):S(o5(D))}).then(function(S){return new u(function(D,j){S.db.transaction(function(B){function U(ce){return new u(function(de,Le){B.executeSql("DROP TABLE IF EXISTS "+ce,[],function(){de()},function(Se,Ue){Le(Ue)})})}for(var z=[],X=0,ae=S.storeNames.length;X<ae;X++)z.push(U(S.storeNames[X]));u.all(z).then(function(){D()}).catch(function(ce){j(ce)})},function(B){j(B)})})}):w=u.reject("Invalid arguments"),p(w,g),w}var s5={_driver:"webSQLStorage",_initStorage:X0,_support:Ke(),iterate:J0,getItem:Q0,setItem:K0,removeItem:e5,clear:t5,length:n5,key:r5,keys:i5,dropInstance:a5};function l5(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function K9(c,g){var d=c.name+"/";return c.storeName!==g.storeName&&(d+=c.storeName+"/"),d}function c5(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch{return!0}}function u5(){return!c5()||localStorage.length>0}function f5(c){var g=this,d={};if(c)for(var _ in c)d[_]=c[_];return d.keyPrefix=K9(c,g._defaultConfig),u5()?(g._dbInfo=d,d.serializer=Vn,u.resolve()):u.reject()}function d5(c){var g=this,d=g.ready().then(function(){for(var _=g._dbInfo.keyPrefix,w=localStorage.length-1;w>=0;w--){var S=localStorage.key(w);S.indexOf(_)===0&&localStorage.removeItem(S)}});return p(d,c),d}function h5(c,g){var d=this;c=E(c);var _=d.ready().then(function(){var w=d._dbInfo,S=localStorage.getItem(w.keyPrefix+c);return S&&(S=w.serializer.deserialize(S)),S});return p(_,g),_}function v5(c,g){var d=this,_=d.ready().then(function(){for(var w=d._dbInfo,S=w.keyPrefix,D=S.length,j=localStorage.length,B=1,U=0;U<j;U++){var z=localStorage.key(U);if(z.indexOf(S)===0){var X=localStorage.getItem(z);if(X&&(X=w.serializer.deserialize(X)),X=c(X,z.substring(D),B++),X!==void 0)return X}}});return p(_,g),_}function m5(c,g){var d=this,_=d.ready().then(function(){var w=d._dbInfo,S;try{S=localStorage.key(c)}catch{S=null}return S&&(S=S.substring(w.keyPrefix.length)),S});return p(_,g),_}function p5(c){var g=this,d=g.ready().then(function(){for(var _=g._dbInfo,w=localStorage.length,S=[],D=0;D<w;D++){var j=localStorage.key(D);j.indexOf(_.keyPrefix)===0&&S.push(j.substring(_.keyPrefix.length))}return S});return p(d,c),d}function C5(c){var g=this,d=g.keys().then(function(_){return _.length});return p(d,c),d}function g5(c,g){var d=this;c=E(c);var _=d.ready().then(function(){var w=d._dbInfo;localStorage.removeItem(w.keyPrefix+c)});return p(_,g),_}function b5(c,g,d){var _=this;c=E(c);var w=_.ready().then(function(){g===void 0&&(g=null);var S=g;return new u(function(D,j){var B=_._dbInfo;B.serializer.serialize(g,function(U,z){if(z)j(z);else try{localStorage.setItem(B.keyPrefix+c,U),D(S)}catch(X){(X.name==="QuotaExceededError"||X.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(X),j(X)}})})});return p(w,d),w}function y5(c,g){if(g=M.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var d=this.config();c.name=c.name||d.name,c.storeName=c.storeName||d.storeName}var _=this,w;return c.name?w=new u(function(S){c.storeName?S(K9(c,_._defaultConfig)):S(c.name+"/")}).then(function(S){for(var D=localStorage.length-1;D>=0;D--){var j=localStorage.key(D);j.indexOf(S)===0&&localStorage.removeItem(j)}}):w=u.reject("Invalid arguments"),p(w,g),w}var S5={_driver:"localStorageWrapper",_initStorage:f5,_support:l5(),iterate:v5,getItem:h5,setItem:b5,removeItem:g5,clear:d5,length:C5,key:m5,keys:p5,dropInstance:y5},L5=function(g,d){return g===d||typeof g=="number"&&typeof d=="number"&&isNaN(g)&&isNaN(d)},_5=function(g,d){for(var _=g.length,w=0;w<_;){if(L5(g[w],d))return!0;w++}return!1},ei=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},Z1={},ti={},H1={INDEXEDDB:l1,WEBSQL:s5,LOCALSTORAGE:S5},w5=[H1.INDEXEDDB._driver,H1.WEBSQL._driver,H1.LOCALSTORAGE._driver],Lt=["dropInstance"],An=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Lt),M5={description:"",driver:w5.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function E5(c,g){c[g]=function(){var d=arguments;return c.ready().then(function(){return c[g].apply(c,d)})}}function Pn(){for(var c=1;c<arguments.length;c++){var g=arguments[c];if(g)for(var d in g)g.hasOwnProperty(d)&&(ei(g[d])?arguments[0][d]=g[d].slice():arguments[0][d]=g[d])}return arguments[0]}var O5=function(){function c(g){a(this,c);for(var d in H1)if(H1.hasOwnProperty(d)){var _=H1[d],w=_._driver;this[d]=w,Z1[w]||this.defineDriver(_)}this._defaultConfig=Pn({},M5),this._config=Pn({},this._defaultConfig,g),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(d){if((typeof d>"u"?"undefined":o(d))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var _ in d){if(_==="storeName"&&(d[_]=d[_].replace(/\W/g,"_")),_==="version"&&typeof d[_]!="number")return new Error("Database version must be a number.");this._config[_]=d[_]}return"driver"in d&&d.driver?this.setDriver(this._config.driver):!0}else return typeof d=="string"?this._config[d]:this._config},c.prototype.defineDriver=function(d,_,w){var S=new u(function(D,j){try{var B=d._driver,U=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!d._driver){j(U);return}for(var z=An.concat("_initStorage"),X=0,ae=z.length;X<ae;X++){var ce=z[X],de=!_5(Lt,ce);if((de||d[ce])&&typeof d[ce]!="function"){j(U);return}}var Le=function(){for(var W1=function(T5){return function(){var D5=new Error("Method "+T5+" is not implemented by the current driver"),ni=u.reject(D5);return p(ni,arguments[arguments.length-1]),ni}},Rn=0,I5=Lt.length;Rn<I5;Rn++){var jn=Lt[Rn];d[jn]||(d[jn]=W1(jn))}};Le();var Se=function(W1){Z1[B]&&console.info("Redefining LocalForage driver: "+B),Z1[B]=d,ti[B]=W1,D()};"_support"in d?d._support&&typeof d._support=="function"?d._support().then(Se,j):Se(!!d._support):Se(!0)}catch(Ue){j(Ue)}});return L(S,_,w),S},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(d,_,w){var S=Z1[d]?u.resolve(Z1[d]):u.reject(new Error("Driver not found."));return L(S,_,w),S},c.prototype.getSerializer=function(d){var _=u.resolve(Vn);return L(_,d),_},c.prototype.ready=function(d){var _=this,w=_._driverSet.then(function(){return _._ready===null&&(_._ready=_._initDriver()),_._ready});return L(w,d,d),w},c.prototype.setDriver=function(d,_,w){var S=this;ei(d)||(d=[d]);var D=this._getSupportedDrivers(d);function j(){S._config.driver=S.driver()}function B(X){return S._extend(X),j(),S._ready=S._initStorage(S._config),S._ready}function U(X){return function(){var ae=0;function ce(){for(;ae<X.length;){var de=X[ae];return ae++,S._dbInfo=null,S._ready=null,S.getDriver(de).then(B).catch(ce)}j();var Le=new Error("No available storage method found.");return S._driverSet=u.reject(Le),S._driverSet}return ce()}}var z=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=z.then(function(){var X=D[0];return S._dbInfo=null,S._ready=null,S.getDriver(X).then(function(ae){S._driver=ae._driver,j(),S._wrapLibraryMethodsWithReady(),S._initDriver=U(D)})}).catch(function(){j();var X=new Error("No available storage method found.");return S._driverSet=u.reject(X),S._driverSet}),L(this._driverSet,_,w),this._driverSet},c.prototype.supports=function(d){return!!ti[d]},c.prototype._extend=function(d){Pn(this,d)},c.prototype._getSupportedDrivers=function(d){for(var _=[],w=0,S=d.length;w<S;w++){var D=d[w];this.supports(D)&&_.push(D)}return _},c.prototype._wrapLibraryMethodsWithReady=function(){for(var d=0,_=An.length;d<_;d++)E5(this,An[d])},c.prototype.createInstance=function(d){return new c(d)},c}(),H5=new O5;r.exports=H5},{3:3}]},{},[4])(4)})}(hn)),hn.exports}var ga=Ca();const C1=Mt(ga);class vn{getItem(t){return C1.getItem(t)}setItem(t,n){return C1.setItem(t,n)}removeItem(t){return C1.removeItem(t)}clear(){return C1.clear()}key(t){return C1.key(t)}keys(){return C1.keys()}iterate(t){return C1.iterate(t)}}class mn{constructor(){te(this,"_portalContainer",q3()?document.body:void 0);te(this,"_message")}dispose(){var t;(t=this._message)==null||t.dispose()}setContainer(t){this._message||(this._portalContainer=t,this._message=new he.Message(t))}getContainer(){return this._portalContainer}show(t){if(!this._portalContainer)throw new Error("[DesktopMessageService]: no container to show message!");if(!this._message)throw new Error("[DesktopMessageService]: no message implementation!");const{type:n,...r}=t;return this._message[n](r)}}function pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ba(e){if(Array.isArray(e))return pn(e)}function ya(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X6(e,t){if(e){if(typeof e=="string")return pn(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}function Sa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
27
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
53
|
+
*/var Y6;function ga(){return Y6||(Y6=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,i,a){function o(m,v){if(!i[m]){if(!r[m]){var f=typeof ft=="function"&&ft;if(!v&&f)return f(m,!0);if(l)return l(m,!0);var p=new Error("Cannot find module '"+m+"'");throw p.code="MODULE_NOT_FOUND",p}var S=i[m]={exports:{}};r[m][0].call(S.exports,function(E){var M=r[m][1][E];return o(M||E)},S,S.exports,n,r,i,a)}return i[m].exports}for(var l=typeof ft=="function"&&ft,u=0;u<a.length;u++)o(a[u]);return o}({1:[function(n,r,i){(function(a){var o=a.MutationObserver||a.WebKitMutationObserver,l;if(o){var u=0,m=new o(E),v=a.document.createTextNode("");m.observe(v,{characterData:!0}),l=function(){v.data=u=++u%2}}else if(!a.setImmediate&&typeof a.MessageChannel<"u"){var f=new a.MessageChannel;f.port1.onmessage=E,l=function(){f.port2.postMessage(0)}}else"document"in a&&"onreadystatechange"in a.document.createElement("script")?l=function(){var b=a.document.createElement("script");b.onreadystatechange=function(){E(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},a.document.documentElement.appendChild(b)}:l=function(){setTimeout(E,0)};var p,S=[];function E(){p=!0;for(var b,H,x=S.length;x;){for(H=S,S=[],b=-1;++b<x;)H[b]();x=S.length}p=!1}r.exports=M;function M(b){S.push(b)===1&&!p&&l()}}).call(this,typeof G1<"u"?G1:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,i){var a=n(1);function o(){}var l={},u=["REJECTED"],m=["FULFILLED"],v=["PENDING"];r.exports=f;function f(O){if(typeof O!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,O!==o&&M(this,O)}f.prototype.catch=function(O){return this.then(null,O)},f.prototype.then=function(O,I){if(typeof O!="function"&&this.state===m||typeof I!="function"&&this.state===u)return this;var V=new this.constructor(o);if(this.state!==v){var A=this.state===m?O:I;S(V,A,this.outcome)}else this.queue.push(new p(V,O,I));return V};function p(O,I,V){this.promise=O,typeof I=="function"&&(this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled),typeof V=="function"&&(this.onRejected=V,this.callRejected=this.otherCallRejected)}p.prototype.callFulfilled=function(O){l.resolve(this.promise,O)},p.prototype.otherCallFulfilled=function(O){S(this.promise,this.onFulfilled,O)},p.prototype.callRejected=function(O){l.reject(this.promise,O)},p.prototype.otherCallRejected=function(O){S(this.promise,this.onRejected,O)};function S(O,I,V){a(function(){var A;try{A=I(V)}catch($){return l.reject(O,$)}A===O?l.reject(O,new TypeError("Cannot resolve promise with itself")):l.resolve(O,A)})}l.resolve=function(O,I){var V=b(E,I);if(V.status==="error")return l.reject(O,V.value);var A=V.value;if(A)M(O,A);else{O.state=m,O.outcome=I;for(var $=-1,z=O.queue.length;++$<z;)O.queue[$].callFulfilled(I)}return O},l.reject=function(O,I){O.state=u,O.outcome=I;for(var V=-1,A=O.queue.length;++V<A;)O.queue[V].callRejected(I);return O};function E(O){var I=O&&O.then;if(O&&(typeof O=="object"||typeof O=="function")&&typeof I=="function")return function(){I.apply(O,arguments)}}function M(O,I){var V=!1;function A(Y){V||(V=!0,l.reject(O,Y))}function $(Y){V||(V=!0,l.resolve(O,Y))}function z(){I($,A)}var W=b(z);W.status==="error"&&A(W.value)}function b(O,I){var V={};try{V.value=O(I),V.status="success"}catch(A){V.status="error",V.value=A}return V}f.resolve=H;function H(O){return O instanceof this?O:l.resolve(new this(o),O)}f.reject=x;function x(O){var I=new this(o);return l.reject(I,O)}f.all=T;function T(O){var I=this;if(Object.prototype.toString.call(O)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=O.length,A=!1;if(!V)return this.resolve([]);for(var $=new Array(V),z=0,W=-1,Y=new this(o);++W<V;)ne(O[W],W);return Y;function ne(ae,ve){I.resolve(ae).then(ie,function(he){A||(A=!0,l.reject(Y,he))});function ie(he){$[ve]=he,++z===V&&!A&&(A=!0,l.resolve(Y,$))}}}f.race=k;function k(O){var I=this;if(Object.prototype.toString.call(O)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=O.length,A=!1;if(!V)return this.resolve([]);for(var $=-1,z=new this(o);++$<V;)W(O[$]);return z;function W(Y){I.resolve(Y).then(function(ne){A||(A=!0,l.resolve(z,ne))},function(ne){A||(A=!0,l.reject(z,ne))})}}},{1:1}],3:[function(n,r,i){(function(a){typeof a.Promise!="function"&&(a.Promise=n(2))}).call(this,typeof G1<"u"?G1:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,i){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function o(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function l(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var u=l();function m(){try{if(!u||!u.open)return!1;var c=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),g=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||g)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function v(c,g){c=c||[],g=g||{};try{return new Blob(c,g)}catch(L){if(L.name!=="TypeError")throw L;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,_=new h,w=0;w<c.length;w+=1)_.append(c[w]);return _.getBlob(g.type)}}typeof Promise>"u"&&n(3);var f=Promise;function p(c,g){g&&c.then(function(h){g(null,h)},function(h){g(h)})}function S(c,g,h){typeof g=="function"&&c.then(g),typeof h=="function"&&c.catch(h)}function E(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function M(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var b="local-forage-detect-blob-support",H=void 0,x={},T=Object.prototype.toString,k="readonly",O="readwrite";function I(c){for(var g=c.length,h=new ArrayBuffer(g),_=new Uint8Array(h),w=0;w<g;w++)_[w]=c.charCodeAt(w);return h}function V(c){return new f(function(g){var h=c.transaction(b,O),_=v([""]);h.objectStore(b).put(_,"key"),h.onabort=function(w){w.preventDefault(),w.stopPropagation(),g(!1)},h.oncomplete=function(){var w=navigator.userAgent.match(/Chrome\/(\d+)/),L=navigator.userAgent.match(/Edge\//);g(L||!w||parseInt(w[1],10)>=43)}}).catch(function(){return!1})}function A(c){return typeof H=="boolean"?f.resolve(H):V(c).then(function(g){return H=g,H})}function $(c){var g=x[c.name],h={};h.promise=new f(function(_,w){h.resolve=_,h.reject=w}),g.deferredOperations.push(h),g.dbReady?g.dbReady=g.dbReady.then(function(){return h.promise}):g.dbReady=h.promise}function z(c){var g=x[c.name],h=g.deferredOperations.pop();if(h)return h.resolve(),h.promise}function W(c,g){var h=x[c.name],_=h.deferredOperations.pop();if(_)return _.reject(g),_.promise}function Y(c,g){return new f(function(h,_){if(x[c.name]=x[c.name]||q(),c.db)if(g)$(c),c.db.close();else return h(c.db);var w=[c.name];g&&w.push(c.version);var L=u.open.apply(u,w);g&&(L.onupgradeneeded=function(D){var j=L.result;try{j.createObjectStore(c.storeName),D.oldVersion<=1&&j.createObjectStore(b)}catch(U){if(U.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+D.oldVersion+" to version "+D.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw U}}),L.onerror=function(D){D.preventDefault(),_(L.error)},L.onsuccess=function(){var D=L.result;D.onversionchange=function(j){j.target.close()},h(D),z(c)}})}function ne(c){return Y(c,!1)}function ae(c){return Y(c,!0)}function ve(c,g){if(!c.db)return!0;var h=!c.db.objectStoreNames.contains(c.storeName),_=c.version<c.db.version,w=c.version>c.db.version;if(_&&(c.version!==g&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),w||h){if(h){var L=c.db.version+1;L>c.version&&(c.version=L)}return!0}return!1}function ie(c){return new f(function(g,h){var _=new FileReader;_.onerror=h,_.onloadend=function(w){var L=btoa(w.target.result||"");g({__local_forage_encoded_blob:!0,data:L,type:c.type})},_.readAsBinaryString(c)})}function he(c){var g=I(atob(c.data));return v([g],{type:c.type})}function Ce(c){return c&&c.__local_forage_encoded_blob}function B(c){var g=this,h=g._initReady().then(function(){var _=x[g._dbInfo.name];if(_&&_.dbReady)return _.dbReady});return S(h,c,c),h}function P(c){$(c);for(var g=x[c.name],h=g.forages,_=0;_<h.length;_++){var w=h[_];w._dbInfo.db&&(w._dbInfo.db.close(),w._dbInfo.db=null)}return c.db=null,ne(c).then(function(L){return c.db=L,ve(c)?ae(c):L}).then(function(L){c.db=g.db=L;for(var D=0;D<h.length;D++)h[D]._dbInfo.db=L}).catch(function(L){throw W(c,L),L})}function R(c,g,h,_){_===void 0&&(_=1);try{var w=c.db.transaction(c.storeName,g);h(null,w)}catch(L){if(_>0&&(!c.db||L.name==="InvalidStateError"||L.name==="NotFoundError"))return f.resolve().then(function(){if(!c.db||L.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),ae(c)}).then(function(){return P(c).then(function(){R(c,g,h,_-1)})}).catch(h);h(L)}}function q(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Q(c){var g=this,h={db:null};if(c)for(var _ in c)h[_]=c[_];var w=x[h.name];w||(w=q(),x[h.name]=w),w.forages.push(g),g._initReady||(g._initReady=g.ready,g.ready=B);var L=[];function D(){return f.resolve()}for(var j=0;j<w.forages.length;j++){var U=w.forages[j];U!==g&&L.push(U._initReady().catch(D))}var F=w.forages.slice(0);return f.all(L).then(function(){return h.db=w.db,ne(h)}).then(function(Z){return h.db=Z,ve(h,g._defaultConfig.version)?ae(h):Z}).then(function(Z){h.db=w.db=Z,g._dbInfo=h;for(var X=0;X<F.length;X++){var oe=F[X];oe!==g&&(oe._dbInfo.db=h.db,oe._dbInfo.version=h.version)}})}function G(c,g){var h=this;c=E(c);var _=new f(function(w,L){h.ready().then(function(){R(h._dbInfo,k,function(D,j){if(D)return L(D);try{var U=j.objectStore(h._dbInfo.storeName),F=U.get(c);F.onsuccess=function(){var Z=F.result;Z===void 0&&(Z=null),Ce(Z)&&(Z=he(Z)),w(Z)},F.onerror=function(){L(F.error)}}catch(Z){L(Z)}})}).catch(L)});return p(_,g),_}function K(c,g){var h=this,_=new f(function(w,L){h.ready().then(function(){R(h._dbInfo,k,function(D,j){if(D)return L(D);try{var U=j.objectStore(h._dbInfo.storeName),F=U.openCursor(),Z=1;F.onsuccess=function(){var X=F.result;if(X){var oe=X.value;Ce(oe)&&(oe=he(oe));var ue=c(oe,X.key,Z++);ue!==void 0?w(ue):X.continue()}else w()},F.onerror=function(){L(F.error)}}catch(X){L(X)}})}).catch(L)});return p(_,g),_}function se(c,g,h){var _=this;c=E(c);var w=new f(function(L,D){var j;_.ready().then(function(){return j=_._dbInfo,T.call(g)==="[object Blob]"?A(j.db).then(function(U){return U?g:ie(g)}):g}).then(function(U){R(_._dbInfo,O,function(F,Z){if(F)return D(F);try{var X=Z.objectStore(_._dbInfo.storeName);U===null&&(U=void 0);var oe=X.put(U,c);Z.oncomplete=function(){U===void 0&&(U=null),L(U)},Z.onabort=Z.onerror=function(){var ue=oe.error?oe.error:oe.transaction.error;D(ue)}}catch(ue){D(ue)}})}).catch(D)});return p(w,h),w}function ge(c,g){var h=this;c=E(c);var _=new f(function(w,L){h.ready().then(function(){R(h._dbInfo,O,function(D,j){if(D)return L(D);try{var U=j.objectStore(h._dbInfo.storeName),F=U.delete(c);j.oncomplete=function(){w()},j.onerror=function(){L(F.error)},j.onabort=function(){var Z=F.error?F.error:F.transaction.error;L(Z)}}catch(Z){L(Z)}})}).catch(L)});return p(_,g),_}function xe(c){var g=this,h=new f(function(_,w){g.ready().then(function(){R(g._dbInfo,O,function(L,D){if(L)return w(L);try{var j=D.objectStore(g._dbInfo.storeName),U=j.clear();D.oncomplete=function(){_()},D.onabort=D.onerror=function(){var F=U.error?U.error:U.transaction.error;w(F)}}catch(F){w(F)}})}).catch(w)});return p(h,c),h}function _e(c){var g=this,h=new f(function(_,w){g.ready().then(function(){R(g._dbInfo,k,function(L,D){if(L)return w(L);try{var j=D.objectStore(g._dbInfo.storeName),U=j.count();U.onsuccess=function(){_(U.result)},U.onerror=function(){w(U.error)}}catch(F){w(F)}})}).catch(w)});return p(h,c),h}function we(c,g){var h=this,_=new f(function(w,L){if(c<0){w(null);return}h.ready().then(function(){R(h._dbInfo,k,function(D,j){if(D)return L(D);try{var U=j.objectStore(h._dbInfo.storeName),F=!1,Z=U.openKeyCursor();Z.onsuccess=function(){var X=Z.result;if(!X){w(null);return}c===0||F?w(X.key):(F=!0,X.advance(c))},Z.onerror=function(){L(Z.error)}}catch(X){L(X)}})}).catch(L)});return p(_,g),_}function E1(c){var g=this,h=new f(function(_,w){g.ready().then(function(){R(g._dbInfo,k,function(L,D){if(L)return w(L);try{var j=D.objectStore(g._dbInfo.storeName),U=j.openKeyCursor(),F=[];U.onsuccess=function(){var Z=U.result;if(!Z){_(F);return}F.push(Z.key),Z.continue()},U.onerror=function(){w(U.error)}}catch(Z){w(Z)}})}).catch(w)});return p(h,c),h}function Xe(c,g){g=M.apply(this,arguments);var h=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||h.name,c.storeName=c.storeName||h.storeName);var _=this,w;if(!c.name)w=f.reject("Invalid arguments");else{var L=c.name===h.name&&_._dbInfo.db,D=L?f.resolve(_._dbInfo.db):ne(c).then(function(j){var U=x[c.name],F=U.forages;U.db=j;for(var Z=0;Z<F.length;Z++)F[Z]._dbInfo.db=j;return j});c.storeName?w=D.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var U=j.version+1;$(c);var F=x[c.name],Z=F.forages;j.close();for(var X=0;X<Z.length;X++){var oe=Z[X];oe._dbInfo.db=null,oe._dbInfo.version=U}var ue=new f(function(de,Se){var ye=u.open(c.name,U);ye.onerror=function(Ue){var z1=ye.result;z1.close(),Se(Ue)},ye.onupgradeneeded=function(){var Ue=ye.result;Ue.deleteObjectStore(c.storeName)},ye.onsuccess=function(){var Ue=ye.result;Ue.close(),de(Ue)}});return ue.then(function(de){F.db=de;for(var Se=0;Se<Z.length;Se++){var ye=Z[Se];ye._dbInfo.db=de,z(ye._dbInfo)}}).catch(function(de){throw(W(c,de)||f.resolve()).catch(function(){}),de})}}):w=D.then(function(j){$(c);var U=x[c.name],F=U.forages;j.close();for(var Z=0;Z<F.length;Z++){var X=F[Z];X._dbInfo.db=null}var oe=new f(function(ue,de){var Se=u.deleteDatabase(c.name);Se.onerror=function(){var ye=Se.result;ye&&ye.close(),de(Se.error)},Se.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Se.onsuccess=function(){var ye=Se.result;ye&&ye.close(),ue(ye)}});return oe.then(function(ue){U.db=ue;for(var de=0;de<F.length;de++){var Se=F[de];z(Se._dbInfo)}}).catch(function(ue){throw(W(c,ue)||f.resolve()).catch(function(){}),ue})})}return p(w,g),w}var l1={_driver:"asyncStorage",_initStorage:Q,_support:m(),iterate:K,getItem:G,setItem:se,removeItem:ge,clear:xe,length:_e,key:we,keys:E1,dropInstance:Xe};function Ke(){return typeof openDatabase=="function"}var Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Re="~~local_forage_type~",c1=/^~~local_forage_type~([^~]+)~/,$e="__lfsc__:",e1=$e.length,be="arbf",me="blob",Ne="si08",o1="ui08",Be="uic8",t1="si16",St="si32",z9="ur16",Z9="ui32",W9="fl32",G9="fl64",Y9=e1+be.length,q9=Object.prototype.toString;function X9(c){var g=c.length*.75,h=c.length,_,w=0,L,D,j,U;c[c.length-1]==="="&&(g--,c[c.length-2]==="="&&g--);var F=new ArrayBuffer(g),Z=new Uint8Array(F);for(_=0;_<h;_+=4)L=Ae.indexOf(c[_]),D=Ae.indexOf(c[_+1]),j=Ae.indexOf(c[_+2]),U=Ae.indexOf(c[_+3]),Z[w++]=L<<2|D>>4,Z[w++]=(D&15)<<4|j>>2,Z[w++]=(j&3)<<6|U&63;return F}function Nn(c){var g=new Uint8Array(c),h="",_;for(_=0;_<g.length;_+=3)h+=Ae[g[_]>>2],h+=Ae[(g[_]&3)<<4|g[_+1]>>4],h+=Ae[(g[_+1]&15)<<2|g[_+2]>>6],h+=Ae[g[_+2]&63];return g.length%3===2?h=h.substring(0,h.length-1)+"=":g.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function J0(c,g){var h="";if(c&&(h=q9.call(c)),c&&(h==="[object ArrayBuffer]"||c.buffer&&q9.call(c.buffer)==="[object ArrayBuffer]")){var _,w=$e;c instanceof ArrayBuffer?(_=c,w+=be):(_=c.buffer,h==="[object Int8Array]"?w+=Ne:h==="[object Uint8Array]"?w+=o1:h==="[object Uint8ClampedArray]"?w+=Be:h==="[object Int16Array]"?w+=t1:h==="[object Uint16Array]"?w+=z9:h==="[object Int32Array]"?w+=St:h==="[object Uint32Array]"?w+=Z9:h==="[object Float32Array]"?w+=W9:h==="[object Float64Array]"?w+=G9:g(new Error("Failed to get type for BinaryArray"))),g(w+Nn(_))}else if(h==="[object Blob]"){var L=new FileReader;L.onload=function(){var D=Re+c.type+"~"+Nn(this.result);g($e+me+D)},L.readAsArrayBuffer(c)}else try{g(JSON.stringify(c))}catch(D){console.error("Couldn't convert value into a JSON string: ",c),g(null,D)}}function K0(c){if(c.substring(0,e1)!==$e)return JSON.parse(c);var g=c.substring(Y9),h=c.substring(e1,Y9),_;if(h===me&&c1.test(g)){var w=g.match(c1);_=w[1],g=g.substring(w[0].length)}var L=X9(g);switch(h){case be:return L;case me:return v([L],{type:_});case Ne:return new Int8Array(L);case o1:return new Uint8Array(L);case Be:return new Uint8ClampedArray(L);case t1:return new Int16Array(L);case z9:return new Uint16Array(L);case St:return new Int32Array(L);case Z9:return new Uint32Array(L);case W9:return new Float32Array(L);case G9:return new Float64Array(L);default:throw new Error("Unkown type: "+h)}}var Vn={serialize:J0,deserialize:K0,stringToBuffer:X9,bufferToString:Nn};function Q9(c,g,h,_){c.executeSql("CREATE TABLE IF NOT EXISTS "+g.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],h,_)}function e5(c){var g=this,h={db:null};if(c)for(var _ in c)h[_]=typeof c[_]!="string"?c[_].toString():c[_];var w=new f(function(L,D){try{h.db=openDatabase(h.name,String(h.version),h.description,h.size)}catch(j){return D(j)}h.db.transaction(function(j){Q9(j,h,function(){g._dbInfo=h,L()},function(U,F){D(F)})},D)});return h.serializer=Vn,w}function u1(c,g,h,_,w,L){c.executeSql(h,_,w,function(D,j){j.code===j.SYNTAX_ERR?D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[g.storeName],function(U,F){F.rows.length?L(U,j):Q9(U,g,function(){U.executeSql(h,_,w,L)},L)},L):L(D,j)},L)}function t5(c,g){var h=this;c=E(c);var _=new f(function(w,L){h.ready().then(function(){var D=h._dbInfo;D.db.transaction(function(j){u1(j,D,"SELECT * FROM "+D.storeName+" WHERE key = ? LIMIT 1",[c],function(U,F){var Z=F.rows.length?F.rows.item(0).value:null;Z&&(Z=D.serializer.deserialize(Z)),w(Z)},function(U,F){L(F)})})}).catch(L)});return p(_,g),_}function n5(c,g){var h=this,_=new f(function(w,L){h.ready().then(function(){var D=h._dbInfo;D.db.transaction(function(j){u1(j,D,"SELECT * FROM "+D.storeName,[],function(U,F){for(var Z=F.rows,X=Z.length,oe=0;oe<X;oe++){var ue=Z.item(oe),de=ue.value;if(de&&(de=D.serializer.deserialize(de)),de=c(de,ue.key,oe+1),de!==void 0){w(de);return}}w()},function(U,F){L(F)})})}).catch(L)});return p(_,g),_}function J9(c,g,h,_){var w=this;c=E(c);var L=new f(function(D,j){w.ready().then(function(){g===void 0&&(g=null);var U=g,F=w._dbInfo;F.serializer.serialize(g,function(Z,X){X?j(X):F.db.transaction(function(oe){u1(oe,F,"INSERT OR REPLACE INTO "+F.storeName+" (key, value) VALUES (?, ?)",[c,Z],function(){D(U)},function(ue,de){j(de)})},function(oe){if(oe.code===oe.QUOTA_ERR){if(_>0){D(J9.apply(w,[c,U,h,_-1]));return}j(oe)}})})}).catch(j)});return p(L,h),L}function r5(c,g,h){return J9.apply(this,[c,g,h,1])}function i5(c,g){var h=this;c=E(c);var _=new f(function(w,L){h.ready().then(function(){var D=h._dbInfo;D.db.transaction(function(j){u1(j,D,"DELETE FROM "+D.storeName+" WHERE key = ?",[c],function(){w()},function(U,F){L(F)})})}).catch(L)});return p(_,g),_}function o5(c){var g=this,h=new f(function(_,w){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(D){u1(D,L,"DELETE FROM "+L.storeName,[],function(){_()},function(j,U){w(U)})})}).catch(w)});return p(h,c),h}function a5(c){var g=this,h=new f(function(_,w){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(D){u1(D,L,"SELECT COUNT(key) as c FROM "+L.storeName,[],function(j,U){var F=U.rows.item(0).c;_(F)},function(j,U){w(U)})})}).catch(w)});return p(h,c),h}function s5(c,g){var h=this,_=new f(function(w,L){h.ready().then(function(){var D=h._dbInfo;D.db.transaction(function(j){u1(j,D,"SELECT key FROM "+D.storeName+" WHERE id = ? LIMIT 1",[c+1],function(U,F){var Z=F.rows.length?F.rows.item(0).key:null;w(Z)},function(U,F){L(F)})})}).catch(L)});return p(_,g),_}function l5(c){var g=this,h=new f(function(_,w){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(D){u1(D,L,"SELECT key FROM "+L.storeName,[],function(j,U){for(var F=[],Z=0;Z<U.rows.length;Z++)F.push(U.rows.item(Z).key);_(F)},function(j,U){w(U)})})}).catch(w)});return p(h,c),h}function c5(c){return new f(function(g,h){c.transaction(function(_){_.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(w,L){for(var D=[],j=0;j<L.rows.length;j++)D.push(L.rows.item(j).name);g({db:c,storeNames:D})},function(w,L){h(L)})},function(_){h(_)})})}function u5(c,g){g=M.apply(this,arguments);var h=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||h.name,c.storeName=c.storeName||h.storeName);var _=this,w;return c.name?w=new f(function(L){var D;c.name===h.name?D=_._dbInfo.db:D=openDatabase(c.name,"","",0),c.storeName?L({db:D,storeNames:[c.storeName]}):L(c5(D))}).then(function(L){return new f(function(D,j){L.db.transaction(function(U){function F(ue){return new f(function(de,Se){U.executeSql("DROP TABLE IF EXISTS "+ue,[],function(){de()},function(ye,Ue){Se(Ue)})})}for(var Z=[],X=0,oe=L.storeNames.length;X<oe;X++)Z.push(F(L.storeNames[X]));f.all(Z).then(function(){D()}).catch(function(ue){j(ue)})},function(U){j(U)})})}):w=f.reject("Invalid arguments"),p(w,g),w}var f5={_driver:"webSQLStorage",_initStorage:e5,_support:Ke(),iterate:n5,getItem:t5,setItem:r5,removeItem:i5,clear:o5,length:a5,key:s5,keys:l5,dropInstance:u5};function d5(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function K9(c,g){var h=c.name+"/";return c.storeName!==g.storeName&&(h+=c.storeName+"/"),h}function h5(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch{return!0}}function v5(){return!h5()||localStorage.length>0}function m5(c){var g=this,h={};if(c)for(var _ in c)h[_]=c[_];return h.keyPrefix=K9(c,g._defaultConfig),v5()?(g._dbInfo=h,h.serializer=Vn,f.resolve()):f.reject()}function p5(c){var g=this,h=g.ready().then(function(){for(var _=g._dbInfo.keyPrefix,w=localStorage.length-1;w>=0;w--){var L=localStorage.key(w);L.indexOf(_)===0&&localStorage.removeItem(L)}});return p(h,c),h}function C5(c,g){var h=this;c=E(c);var _=h.ready().then(function(){var w=h._dbInfo,L=localStorage.getItem(w.keyPrefix+c);return L&&(L=w.serializer.deserialize(L)),L});return p(_,g),_}function g5(c,g){var h=this,_=h.ready().then(function(){for(var w=h._dbInfo,L=w.keyPrefix,D=L.length,j=localStorage.length,U=1,F=0;F<j;F++){var Z=localStorage.key(F);if(Z.indexOf(L)===0){var X=localStorage.getItem(Z);if(X&&(X=w.serializer.deserialize(X)),X=c(X,Z.substring(D),U++),X!==void 0)return X}}});return p(_,g),_}function b5(c,g){var h=this,_=h.ready().then(function(){var w=h._dbInfo,L;try{L=localStorage.key(c)}catch{L=null}return L&&(L=L.substring(w.keyPrefix.length)),L});return p(_,g),_}function y5(c){var g=this,h=g.ready().then(function(){for(var _=g._dbInfo,w=localStorage.length,L=[],D=0;D<w;D++){var j=localStorage.key(D);j.indexOf(_.keyPrefix)===0&&L.push(j.substring(_.keyPrefix.length))}return L});return p(h,c),h}function S5(c){var g=this,h=g.keys().then(function(_){return _.length});return p(h,c),h}function L5(c,g){var h=this;c=E(c);var _=h.ready().then(function(){var w=h._dbInfo;localStorage.removeItem(w.keyPrefix+c)});return p(_,g),_}function _5(c,g,h){var _=this;c=E(c);var w=_.ready().then(function(){g===void 0&&(g=null);var L=g;return new f(function(D,j){var U=_._dbInfo;U.serializer.serialize(g,function(F,Z){if(Z)j(Z);else try{localStorage.setItem(U.keyPrefix+c,F),D(L)}catch(X){(X.name==="QuotaExceededError"||X.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(X),j(X)}})})});return p(w,h),w}function w5(c,g){if(g=M.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var h=this.config();c.name=c.name||h.name,c.storeName=c.storeName||h.storeName}var _=this,w;return c.name?w=new f(function(L){c.storeName?L(K9(c,_._defaultConfig)):L(c.name+"/")}).then(function(L){for(var D=localStorage.length-1;D>=0;D--){var j=localStorage.key(D);j.indexOf(L)===0&&localStorage.removeItem(j)}}):w=f.reject("Invalid arguments"),p(w,g),w}var M5={_driver:"localStorageWrapper",_initStorage:m5,_support:d5(),iterate:g5,getItem:C5,setItem:_5,removeItem:L5,clear:p5,length:S5,key:b5,keys:y5,dropInstance:w5},E5=function(g,h){return g===h||typeof g=="number"&&typeof h=="number"&&isNaN(g)&&isNaN(h)},O5=function(g,h){for(var _=g.length,w=0;w<_;){if(E5(g[w],h))return!0;w++}return!1},ei=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},F1={},ti={},O1={INDEXEDDB:l1,WEBSQL:f5,LOCALSTORAGE:M5},H5=[O1.INDEXEDDB._driver,O1.WEBSQL._driver,O1.LOCALSTORAGE._driver],Lt=["dropInstance"],Pn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Lt),I5={description:"",driver:H5.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function T5(c,g){c[g]=function(){var h=arguments;return c.ready().then(function(){return c[g].apply(c,h)})}}function An(){for(var c=1;c<arguments.length;c++){var g=arguments[c];if(g)for(var h in g)g.hasOwnProperty(h)&&(ei(g[h])?arguments[0][h]=g[h].slice():arguments[0][h]=g[h])}return arguments[0]}var D5=function(){function c(g){o(this,c);for(var h in O1)if(O1.hasOwnProperty(h)){var _=O1[h],w=_._driver;this[h]=w,F1[w]||this.defineDriver(_)}this._defaultConfig=An({},I5),this._config=An({},this._defaultConfig,g),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(h){if((typeof h>"u"?"undefined":a(h))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var _ in h){if(_==="storeName"&&(h[_]=h[_].replace(/\W/g,"_")),_==="version"&&typeof h[_]!="number")return new Error("Database version must be a number.");this._config[_]=h[_]}return"driver"in h&&h.driver?this.setDriver(this._config.driver):!0}else return typeof h=="string"?this._config[h]:this._config},c.prototype.defineDriver=function(h,_,w){var L=new f(function(D,j){try{var U=h._driver,F=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!h._driver){j(F);return}for(var Z=Pn.concat("_initStorage"),X=0,oe=Z.length;X<oe;X++){var ue=Z[X],de=!O5(Lt,ue);if((de||h[ue])&&typeof h[ue]!="function"){j(F);return}}var Se=function(){for(var z1=function(V5){return function(){var P5=new Error("Method "+V5+" is not implemented by the current driver"),ni=f.reject(P5);return p(ni,arguments[arguments.length-1]),ni}},Rn=0,N5=Lt.length;Rn<N5;Rn++){var jn=Lt[Rn];h[jn]||(h[jn]=z1(jn))}};Se();var ye=function(z1){F1[U]&&console.info("Redefining LocalForage driver: "+U),F1[U]=h,ti[U]=z1,D()};"_support"in h?h._support&&typeof h._support=="function"?h._support().then(ye,j):ye(!!h._support):ye(!0)}catch(Ue){j(Ue)}});return S(L,_,w),L},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(h,_,w){var L=F1[h]?f.resolve(F1[h]):f.reject(new Error("Driver not found."));return S(L,_,w),L},c.prototype.getSerializer=function(h){var _=f.resolve(Vn);return S(_,h),_},c.prototype.ready=function(h){var _=this,w=_._driverSet.then(function(){return _._ready===null&&(_._ready=_._initDriver()),_._ready});return S(w,h,h),w},c.prototype.setDriver=function(h,_,w){var L=this;ei(h)||(h=[h]);var D=this._getSupportedDrivers(h);function j(){L._config.driver=L.driver()}function U(X){return L._extend(X),j(),L._ready=L._initStorage(L._config),L._ready}function F(X){return function(){var oe=0;function ue(){for(;oe<X.length;){var de=X[oe];return oe++,L._dbInfo=null,L._ready=null,L.getDriver(de).then(U).catch(ue)}j();var Se=new Error("No available storage method found.");return L._driverSet=f.reject(Se),L._driverSet}return ue()}}var Z=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=Z.then(function(){var X=D[0];return L._dbInfo=null,L._ready=null,L.getDriver(X).then(function(oe){L._driver=oe._driver,j(),L._wrapLibraryMethodsWithReady(),L._initDriver=F(D)})}).catch(function(){j();var X=new Error("No available storage method found.");return L._driverSet=f.reject(X),L._driverSet}),S(this._driverSet,_,w),this._driverSet},c.prototype.supports=function(h){return!!ti[h]},c.prototype._extend=function(h){An(this,h)},c.prototype._getSupportedDrivers=function(h){for(var _=[],w=0,L=h.length;w<L;w++){var D=h[w];this.supports(D)&&_.push(D)}return _},c.prototype._wrapLibraryMethodsWithReady=function(){for(var h=0,_=Pn.length;h<_;h++)T5(this,Pn[h])},c.prototype.createInstance=function(h){return new c(h)},c}(),x5=new D5;r.exports=x5},{3:3}]},{},[4])(4)})}(vn)),vn.exports}var ba=ga();const C1=Mt(ba);class mn{getItem(t){return C1.getItem(t)}setItem(t,n){return C1.setItem(t,n)}removeItem(t){return C1.removeItem(t)}clear(){return C1.clear()}key(t){return C1.key(t)}keys(){return C1.keys()}iterate(t){return C1.iterate(t)}}var ya=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,La=(e,t,n,r)=>{for(var i=r>1?void 0:r?Sa(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&ya(t,n,i),i},q6=(e,t)=>(n,r)=>t(n,r,e);C.DesktopMessageService=class extends d.Disposable{constructor(t,n){super(),this._injector=t,this._uiPartsService=n,this._initUIPart()}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(pe.GLOBAL,()=>d.connectInjector(le.Messager,this._injector)))}dispose(){le.removeMessage()}show(t){le.message(t)}},C.DesktopMessageService=La([q6(0,d.Inject(d.Injector)),q6(1,Ze)],C.DesktopMessageService);function pn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _a(e){if(Array.isArray(e))return pn(e)}function wa(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X6(e,t){if(e){if(typeof e=="string")return pn(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}function Ma(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B1(e){return _a(e)||wa(e)||X6(e)||Ma()}function Ea(e){if(Array.isArray(e))return e}function Oa(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],u=!0,m=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(v){m=!0,i=v}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(m)throw i}}return l}}function Ha(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
55
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Me(e,t){return Ea(e)||Oa(e,t)||X6(e,t)||Ha()}function Ia(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function dt(e,t){if(e==null)return{};var n,r,i=Ia(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ge(e){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(e)}function Ta(e,t){if(Ge(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ge(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q6(e){var t=Ta(e,"string");return Ge(t)=="symbol"?t:t+""}function Ee(e,t,n){return(t=Q6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J6(Object(n),!0).forEach(function(r){Ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g1(){return g1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g1.apply(null,arguments)}var Cn={exports:{}};/*!
|
|
28
56
|
Copyright (c) 2018 Jed Watson.
|
|
29
57
|
Licensed under the MIT License (MIT), see
|
|
30
58
|
http://jedwatson.github.io/classnames
|
|
31
|
-
*/var K6;function Oa(){return K6||(K6=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var l in o)t.call(o,l)&&o[l]&&(a=i(a,l));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Cn)),Cn.exports}var Ha=Oa();const z1=Mt(Ha);function e9(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ia(e){return e&&f1(e)==="object"&&e9(e.nativeElement)?e.nativeElement:e9(e)?e:null}function Ta(e){var t=Ia(e);if(t)return t;if(e instanceof s.Component){var n;return(n=T1.findDOMNode)===null||n===void 0?void 0:n.call(T1,e)}return null}var Da=J.createContext({});function t9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n9(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,Q6(r.key),r)}}function r9(e,t,n){return t&&n9(e.prototype,t),n&&n9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gn(e,t)}function i9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ht(e)}function o9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o9=function(){return!!e})()}function bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xa(e,t){if(t&&(Ze(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function a9(e){var t=o9();return function(){var n,r=ht(e);if(t){var i=ht(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xa(this,n)}}var Na=function(e){i9(n,e);var t=a9(n);function n(){return t9(this,n),t.apply(this,arguments)}return r9(n,[{key:"render",value:function(){return this.props.children}}]),n}(J.Component);function Va(e){var t=J.useReducer(function(l){return l+1},0),n=J3(t,2),r=n[1],i=J.useRef(e),o=N1(function(){return i.current}),a=N1(function(l){i.current=typeof l=="function"?l(i.current):l,r()});return[o,a]}var s1="none",vt="appear",mt="enter",pt="leave",s9="none",We="prepare",M1="start",E1="active",yn="end",l9="prepared";function c9(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Aa(e,t){var n={animationend:c9("Animation","AnimationEnd"),transitionend:c9("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Pa=Aa(Ht(),typeof window<"u"?window:{}),u9={};if(Ht()){var Ra=document.createElement("div");u9=Ra.style}var Ct={};function f9(e){if(Ct[e])return Ct[e];var t=Pa[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in u9)return Ct[e]=t[o],Ct[e]}return""}var d9=f9("animationend"),h9=f9("transitionend"),v9=!!(d9&&h9),m9=d9||"animationend",p9=h9||"transitionend";function C9(e,t){if(!e)return null;if(Ze(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const ja=function(e){var t=s.useRef();function n(i){i&&(i.removeEventListener(p9,e),i.removeEventListener(m9,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(p9,e),i.addEventListener(m9,e),t.current=i)}return J.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var g9=Ht()?s.useLayoutEffect:s.useEffect,b9=function(t){return+setTimeout(t,16)},y9=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(b9=function(t){return window.requestAnimationFrame(t)},y9=function(t){return window.cancelAnimationFrame(t)});var S9=0,Sn=new Map;function L9(e){Sn.delete(e)}var Ln=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;S9+=1;var r=S9;function i(o){if(o===0)L9(r),t();else{var a=b9(function(){i(o-1)});Sn.set(r,a)}}return i(n),r};Ln.cancel=function(e){var t=Sn.get(e);return L9(e),y9(t)};const ka=function(){var e=J.useRef(null);function t(){Ln.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ln(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return J.useEffect(function(){return function(){t()}},[]),[n,t]};var $a=[We,M1,E1,yn],Ba=[We,l9],_9=!1,Ua=!0;function w9(e){return e===E1||e===yn}const Fa=function(e,t,n){var r=It(s9),i=Ee(r,2),o=i[0],a=i[1],l=ka(),h=Ee(l,2),v=h[0],m=h[1];function u(){a(We,!0)}var p=t?Ba:$a;return g9(function(){if(o!==s9&&o!==yn){var L=p.indexOf(o),E=p[L+1],M=n(o);M===_9?a(E,!0):E&&v(function(b){function O(){b.isCanceled()||a(E,!0)}M===!0?O():Promise.resolve(M).then(O)})}},[e,o]),J.useEffect(function(){return function(){m()}},[]),[u,o]};function za(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,l=a===void 0?!0:a,h=r.motionLeave,v=h===void 0?!0:h,m=r.motionDeadline,u=r.motionLeaveImmediately,p=r.onAppearPrepare,L=r.onEnterPrepare,E=r.onLeavePrepare,M=r.onAppearStart,b=r.onEnterStart,O=r.onLeaveStart,x=r.onAppearActive,I=r.onEnterActive,$=r.onLeaveActive,H=r.onAppearEnd,T=r.onEnterEnd,A=r.onLeaveEnd,R=r.onVisibleChanged,k=It(),Z=Ee(k,2),W=Z[0],Y=Z[1],K=Va(s1),oe=Ee(K,2),ve=oe[0],ie=oe[1],fe=It(null),be=Ee(fe,2),F=be[0],V=be[1],P=ve(),q=s.useRef(!1),Q=s.useRef(null);function G(){return n()}var ee=s.useRef(!1);function se(){ie(s1),V(null,!0)}var Ce=N1(function(ye){var pe=ve();if(pe!==s1){var Ne=G();if(!(ye&&!ye.deadline&&ye.target!==Ne)){var i1=ee.current,Be;pe===vt&&i1?Be=H==null?void 0:H(Ne,ye):pe===mt&&i1?Be=T==null?void 0:T(Ne,ye):pe===pt&&i1&&(Be=A==null?void 0:A(Ne,ye)),i1&&Be!==!1&&se()}}}),xe=ja(Ce),we=Ee(xe,1),Me=we[0],O1=function(pe){switch(pe){case vt:return Oe(Oe(Oe({},We,p),M1,M),E1,x);case mt:return Oe(Oe(Oe({},We,L),M1,b),E1,I);case pt:return Oe(Oe(Oe({},We,E),M1,O),E1,$);default:return{}}},Ye=J.useMemo(function(){return O1(P)},[P]),l1=Fa(P,!e,function(ye){if(ye===We){var pe=Ye[We];return pe?pe(G()):_9}if(Re in Ye){var Ne;V(((Ne=Ye[Re])===null||Ne===void 0?void 0:Ne.call(Ye,G(),null))||null)}return Re===E1&&P!==s1&&(Me(G()),m>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){Ce({deadline:!0})},m))),Re===l9&&se(),Ua}),Ke=Ee(l1,2),Pe=Ke[0],Re=Ke[1],c1=w9(Re);ee.current=c1,g9(function(){Y(t);var ye=q.current;q.current=!0;var pe;!ye&&t&&l&&(pe=vt),ye&&t&&o&&(pe=mt),(ye&&!t&&v||!ye&&u&&!t&&v)&&(pe=pt);var Ne=O1(pe);pe&&(e||Ne[We])?(ie(pe),Pe()):ie(s1)},[t]),s.useEffect(function(){(P===vt&&!l||P===mt&&!o||P===pt&&!v)&&ie(s1)},[l,o,v]),s.useEffect(function(){return function(){q.current=!1,clearTimeout(Q.current)}},[]);var $e=J.useRef(!1);s.useEffect(function(){W&&($e.current=!0),W!==void 0&&P===s1&&(($e.current||W)&&(R==null||R(W)),$e.current=!0)},[W,P]);var e1=F;return Ye[We]&&Re===M1&&(e1=ue({transition:"none"},e1)),[P,Re,e1,W!=null?W:t]}function Za(e){var t=e;Ze(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=J.forwardRef(function(i,o){var a=i.visible,l=a===void 0?!0:a,h=i.removeOnLeave,v=h===void 0?!0:h,m=i.forceRender,u=i.children,p=i.motionName,L=i.leavedClassName,E=i.eventProps,M=J.useContext(Da),b=M.motion,O=n(i,b),x=s.useRef(),I=s.useRef();function $(){try{return x.current instanceof HTMLElement?x.current:Ta(I.current)}catch{return null}}var H=za(O,l,$,i),T=Ee(H,4),A=T[0],R=T[1],k=T[2],Z=T[3],W=J.useRef(Z);Z&&(W.current=!0);var Y=J.useCallback(function(F){x.current=F,D2(o,F)},[o]),K,oe=ue(ue({},E),{},{visible:l});if(!u)K=null;else if(A===s1)Z?K=u(ue({},oe),Y):!v&&W.current&&L?K=u(ue(ue({},oe),{},{className:L}),Y):m||!v&&!L?K=u(ue(ue({},oe),{},{style:{display:"none"}}),Y):K=null;else{var ve;R===We?ve="prepare":w9(R)?ve="active":R===M1&&(ve="start");var ie=C9(p,"".concat(A,"-").concat(ve));K=u(ue(ue({},oe),{},{className:z1(C9(p,A),Oe(Oe({},ie,ie&&ve),p,typeof p=="string")),style:k}),Y)}if(J.isValidElement(K)&&x2(K)){var fe=K,be=fe.ref;be||(K=J.cloneElement(K,{ref:Y}))}return J.createElement(Na,{ref:I},K)});return r.displayName="CSSMotion",r}const Wa=Za(v9);var _n="add",wn="keep",Mn="remove",En="removed";function Ga(e){var t;return e&&Ze(e)==="object"&&"key"in e?t=e:t={key:e},ue(ue({},t),{},{key:String(t.key)})}function On(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Ga)}function Ya(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=On(e),a=On(t);o.forEach(function(v){for(var m=!1,u=r;u<i;u+=1){var p=a[u];if(p.key===v.key){r<u&&(n=n.concat(a.slice(r,u).map(function(L){return ue(ue({},L),{},{status:_n})})),r=u),n.push(ue(ue({},p),{},{status:wn})),r+=1,m=!0;break}}m||n.push(ue(ue({},v),{},{status:Mn}))}),r<i&&(n=n.concat(a.slice(r).map(function(v){return ue(ue({},v),{},{status:_n})})));var l={};n.forEach(function(v){var m=v.key;l[m]=(l[m]||0)+1});var h=Object.keys(l).filter(function(v){return l[v]>1});return h.forEach(function(v){n=n.filter(function(m){var u=m.key,p=m.status;return u!==v||p!==Mn}),n.forEach(function(m){m.key===v&&(m.status=wn)})}),n}var qa=["component","children","onVisibleChanged","onAllRemoved"],Xa=["status"],Qa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wa,n=function(r){i9(o,r);var i=a9(o);function o(){var a;t9(this,o);for(var l=arguments.length,h=new Array(l),v=0;v<l;v++)h[v]=arguments[v];return a=i.call.apply(i,[this].concat(h)),Oe(bn(a),"state",{keyEntities:[]}),Oe(bn(a),"removeKey",function(m){var u=a.state.keyEntities,p=u.map(function(L){return L.key!==m?L:ue(ue({},L),{},{status:En})});return a.setState({keyEntities:p}),p.filter(function(L){var E=L.status;return E!==En}).length}),a}return r9(o,[{key:"render",value:function(){var l=this,h=this.state.keyEntities,v=this.props,m=v.component,u=v.children,p=v.onVisibleChanged,L=v.onAllRemoved,E=dt(v,qa),M=m||J.Fragment,b={};return Qa.forEach(function(O){b[O]=E[O],delete E[O]}),delete E.keys,J.createElement(M,E,h.map(function(O,x){var I=O.status,$=dt(O,Xa),H=I===_n||I===wn;return J.createElement(t,g1({},b,{key:$.key,visible:H,eventProps:$,onVisibleChanged:function(A){if(p==null||p(A,{key:$.key}),!A){var R=l.removeKey($.key);R===0&&L&&L()}}}),function(T,A){return u(ue(ue({},T),{},{index:x}),A)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,h){var v=l.keys,m=h.keyEntities,u=On(v),p=Ya(m,u);return{keyEntities:p.filter(function(L){var E=m.find(function(M){var b=M.key;return L.key===b});return!(E&&E.status===En&&L.status===Mn)})}}}]),o}(J.Component);return Oe(n,"defaultProps",{component:"div"}),n}const Ka=Ja(v9);var ne={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ne.F1&&n<=ne.F12)return!1;switch(n){case ne.ALT:case ne.CAPS_LOCK:case ne.CONTEXT_MENU:case ne.CTRL:case ne.DOWN:case ne.END:case ne.ESC:case ne.HOME:case ne.INSERT:case ne.LEFT:case ne.MAC_FF_META:case ne.META:case ne.NUMLOCK:case ne.NUM_CENTER:case ne.PAGE_DOWN:case ne.PAGE_UP:case ne.PAUSE:case ne.PRINT_SCREEN:case ne.RIGHT:case ne.SHIFT:case ne.UP:case ne.WIN_KEY:case ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ne.ZERO&&t<=ne.NINE||t>=ne.NUM_ZERO&&t<=ne.NUM_MULTIPLY||t>=ne.A&&t<=ne.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ne.SPACE:case ne.QUESTION_MARK:case ne.NUM_PLUS:case ne.NUM_MINUS:case ne.NUM_PERIOD:case ne.NUM_DIVISION:case ne.SEMICOLON:case ne.DASH:case ne.EQUALS:case ne.COMMA:case ne.PERIOD:case ne.SLASH:case ne.APOSTROPHE:case ne.SINGLE_QUOTE:case ne.OPEN_SQUARE_BRACKET:case ne.BACKSLASH:case ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},e0=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
59
|
+
*/var K6;function Da(){return K6||(K6=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(a=i(a,r(l)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var l in a)t.call(a,l)&&a[l]&&(o=i(o,l));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Cn)),Cn.exports}var xa=Da();const U1=Mt(xa);function e9(e){return e instanceof HTMLElement||e instanceof SVGElement}function Na(e){return e&&f1(e)==="object"&&e9(e.nativeElement)?e.nativeElement:e9(e)?e:null}function Va(e){var t=Na(e);if(t)return t;if(e instanceof s.Component){var n;return(n=I1.findDOMNode)===null||n===void 0?void 0:n.call(I1,e)}return null}var Pa=J.createContext({});function t9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n9(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,Q6(r.key),r)}}function r9(e,t,n){return t&&n9(e.prototype,t),n&&n9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},gn(e,t)}function i9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ht(e)}function o9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o9=function(){return!!e})()}function bn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aa(e,t){if(t&&(Ge(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function a9(e){var t=o9();return function(){var n,r=ht(e);if(t){var i=ht(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Aa(this,n)}}var Ra=function(e){i9(n,e);var t=a9(n);function n(){return t9(this,n),t.apply(this,arguments)}return r9(n,[{key:"render",value:function(){return this.props.children}}]),n}(J.Component);function ja(e){var t=J.useReducer(function(l){return l+1},0),n=Q3(t,2),r=n[1],i=J.useRef(e),a=x1(function(){return i.current}),o=x1(function(l){i.current=typeof l=="function"?l(i.current):l,r()});return[a,o]}var s1="none",vt="appear",mt="enter",pt="leave",s9="none",Ye="prepare",w1="start",M1="active",yn="end",l9="prepared";function c9(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function ka(e,t){var n={animationend:c9("Animation","AnimationEnd"),transitionend:c9("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var $a=ka(Ht(),typeof window<"u"?window:{}),u9={};if(Ht()){var Ba=document.createElement("div");u9=Ba.style}var Ct={};function f9(e){if(Ct[e])return Ct[e];var t=$a[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var a=n[i];if(Object.prototype.hasOwnProperty.call(t,a)&&a in u9)return Ct[e]=t[a],Ct[e]}return""}var d9=f9("animationend"),h9=f9("transitionend"),v9=!!(d9&&h9),m9=d9||"animationend",p9=h9||"transitionend";function C9(e,t){if(!e)return null;if(Ge(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Ua=function(e){var t=s.useRef();function n(i){i&&(i.removeEventListener(p9,e),i.removeEventListener(m9,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(p9,e),i.addEventListener(m9,e),t.current=i)}return J.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var g9=Ht()?s.useLayoutEffect:s.useEffect,b9=function(t){return+setTimeout(t,16)},y9=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(b9=function(t){return window.requestAnimationFrame(t)},y9=function(t){return window.cancelAnimationFrame(t)});var S9=0,Sn=new Map;function L9(e){Sn.delete(e)}var Ln=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;S9+=1;var r=S9;function i(a){if(a===0)L9(r),t();else{var o=b9(function(){i(a-1)});Sn.set(r,o)}}return i(n),r};Ln.cancel=function(e){var t=Sn.get(e);return L9(e),y9(t)};const Fa=function(){var e=J.useRef(null);function t(){Ln.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Ln(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return J.useEffect(function(){return function(){t()}},[]),[n,t]};var za=[Ye,w1,M1,yn],Za=[Ye,l9],_9=!1,Wa=!0;function w9(e){return e===M1||e===yn}const Ga=function(e,t,n){var r=It(s9),i=Me(r,2),a=i[0],o=i[1],l=Fa(),u=Me(l,2),m=u[0],v=u[1];function f(){o(Ye,!0)}var p=t?Za:za;return g9(function(){if(a!==s9&&a!==yn){var S=p.indexOf(a),E=p[S+1],M=n(a);M===_9?o(E,!0):E&&m(function(b){function H(){b.isCanceled()||o(E,!0)}M===!0?H():Promise.resolve(M).then(H)})}},[e,a]),J.useEffect(function(){return function(){v()}},[]),[f,a]};function Ya(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,l=o===void 0?!0:o,u=r.motionLeave,m=u===void 0?!0:u,v=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,S=r.onEnterPrepare,E=r.onLeavePrepare,M=r.onAppearStart,b=r.onEnterStart,H=r.onLeaveStart,x=r.onAppearActive,T=r.onEnterActive,k=r.onLeaveActive,O=r.onAppearEnd,I=r.onEnterEnd,V=r.onLeaveEnd,A=r.onVisibleChanged,$=It(),z=Me($,2),W=z[0],Y=z[1],ne=ja(s1),ae=Me(ne,2),ve=ae[0],ie=ae[1],he=It(null),Ce=Me(he,2),B=Ce[0],P=Ce[1],R=ve(),q=s.useRef(!1),Q=s.useRef(null);function G(){return n()}var K=s.useRef(!1);function se(){ie(s1),P(null,!0)}var ge=x1(function(be){var me=ve();if(me!==s1){var Ne=G();if(!(be&&!be.deadline&&be.target!==Ne)){var o1=K.current,Be;me===vt&&o1?Be=O==null?void 0:O(Ne,be):me===mt&&o1?Be=I==null?void 0:I(Ne,be):me===pt&&o1&&(Be=V==null?void 0:V(Ne,be)),o1&&Be!==!1&&se()}}}),xe=Ua(ge),_e=Me(xe,1),we=_e[0],E1=function(me){switch(me){case vt:return Ee(Ee(Ee({},Ye,p),w1,M),M1,x);case mt:return Ee(Ee(Ee({},Ye,S),w1,b),M1,T);case pt:return Ee(Ee(Ee({},Ye,E),w1,H),M1,k);default:return{}}},Xe=J.useMemo(function(){return E1(R)},[R]),l1=Ga(R,!e,function(be){if(be===Ye){var me=Xe[Ye];return me?me(G()):_9}if(Re in Xe){var Ne;P(((Ne=Xe[Re])===null||Ne===void 0?void 0:Ne.call(Xe,G(),null))||null)}return Re===M1&&R!==s1&&(we(G()),v>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){ge({deadline:!0})},v))),Re===l9&&se(),Wa}),Ke=Me(l1,2),Ae=Ke[0],Re=Ke[1],c1=w9(Re);K.current=c1,g9(function(){Y(t);var be=q.current;q.current=!0;var me;!be&&t&&l&&(me=vt),be&&t&&a&&(me=mt),(be&&!t&&m||!be&&f&&!t&&m)&&(me=pt);var Ne=E1(me);me&&(e||Ne[Ye])?(ie(me),Ae()):ie(s1)},[t]),s.useEffect(function(){(R===vt&&!l||R===mt&&!a||R===pt&&!m)&&ie(s1)},[l,a,m]),s.useEffect(function(){return function(){q.current=!1,clearTimeout(Q.current)}},[]);var $e=J.useRef(!1);s.useEffect(function(){W&&($e.current=!0),W!==void 0&&R===s1&&(($e.current||W)&&(A==null||A(W)),$e.current=!0)},[W,R]);var e1=B;return Xe[Ye]&&Re===w1&&(e1=fe({transition:"none"},e1)),[R,Re,e1,W!=null?W:t]}function qa(e){var t=e;Ge(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=J.forwardRef(function(i,a){var o=i.visible,l=o===void 0?!0:o,u=i.removeOnLeave,m=u===void 0?!0:u,v=i.forceRender,f=i.children,p=i.motionName,S=i.leavedClassName,E=i.eventProps,M=J.useContext(Pa),b=M.motion,H=n(i,b),x=s.useRef(),T=s.useRef();function k(){try{return x.current instanceof HTMLElement?x.current:Va(T.current)}catch{return null}}var O=Ya(H,l,k,i),I=Me(O,4),V=I[0],A=I[1],$=I[2],z=I[3],W=J.useRef(z);z&&(W.current=!0);var Y=J.useCallback(function(B){x.current=B,x2(a,B)},[a]),ne,ae=fe(fe({},E),{},{visible:l});if(!f)ne=null;else if(V===s1)z?ne=f(fe({},ae),Y):!m&&W.current&&S?ne=f(fe(fe({},ae),{},{className:S}),Y):v||!m&&!S?ne=f(fe(fe({},ae),{},{style:{display:"none"}}),Y):ne=null;else{var ve;A===Ye?ve="prepare":w9(A)?ve="active":A===w1&&(ve="start");var ie=C9(p,"".concat(V,"-").concat(ve));ne=f(fe(fe({},ae),{},{className:U1(C9(p,V),Ee(Ee({},ie,ie&&ve),p,typeof p=="string")),style:$}),Y)}if(J.isValidElement(ne)&&N2(ne)){var he=ne,Ce=he.ref;Ce||(ne=J.cloneElement(ne,{ref:Y}))}return J.createElement(Ra,{ref:T},ne)});return r.displayName="CSSMotion",r}const Xa=qa(v9);var _n="add",wn="keep",Mn="remove",En="removed";function Qa(e){var t;return e&&Ge(e)==="object"&&"key"in e?t=e:t={key:e},fe(fe({},t),{},{key:String(t.key)})}function On(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Qa)}function Ja(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=On(e),o=On(t);a.forEach(function(m){for(var v=!1,f=r;f<i;f+=1){var p=o[f];if(p.key===m.key){r<f&&(n=n.concat(o.slice(r,f).map(function(S){return fe(fe({},S),{},{status:_n})})),r=f),n.push(fe(fe({},p),{},{status:wn})),r+=1,v=!0;break}}v||n.push(fe(fe({},m),{},{status:Mn}))}),r<i&&(n=n.concat(o.slice(r).map(function(m){return fe(fe({},m),{},{status:_n})})));var l={};n.forEach(function(m){var v=m.key;l[v]=(l[v]||0)+1});var u=Object.keys(l).filter(function(m){return l[m]>1});return u.forEach(function(m){n=n.filter(function(v){var f=v.key,p=v.status;return f!==m||p!==Mn}),n.forEach(function(v){v.key===m&&(v.status=wn)})}),n}var Ka=["component","children","onVisibleChanged","onAllRemoved"],e0=["status"],t0=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function n0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xa,n=function(r){i9(a,r);var i=a9(a);function a(){var o;t9(this,a);for(var l=arguments.length,u=new Array(l),m=0;m<l;m++)u[m]=arguments[m];return o=i.call.apply(i,[this].concat(u)),Ee(bn(o),"state",{keyEntities:[]}),Ee(bn(o),"removeKey",function(v){var f=o.state.keyEntities,p=f.map(function(S){return S.key!==v?S:fe(fe({},S),{},{status:En})});return o.setState({keyEntities:p}),p.filter(function(S){var E=S.status;return E!==En}).length}),o}return r9(a,[{key:"render",value:function(){var l=this,u=this.state.keyEntities,m=this.props,v=m.component,f=m.children,p=m.onVisibleChanged,S=m.onAllRemoved,E=dt(m,Ka),M=v||J.Fragment,b={};return t0.forEach(function(H){b[H]=E[H],delete E[H]}),delete E.keys,J.createElement(M,E,u.map(function(H,x){var T=H.status,k=dt(H,e0),O=T===_n||T===wn;return J.createElement(t,g1({},b,{key:k.key,visible:O,eventProps:k,onVisibleChanged:function(V){if(p==null||p(V,{key:k.key}),!V){var A=l.removeKey(k.key);A===0&&S&&S()}}}),function(I,V){return f(fe(fe({},I),{},{index:x}),V)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,u){var m=l.keys,v=u.keyEntities,f=On(m),p=Ja(v,f);return{keyEntities:p.filter(function(S){var E=v.find(function(M){var b=M.key;return S.key===b});return!(E&&E.status===En&&S.status===Mn)})}}}]),a}(J.Component);return Ee(n,"defaultProps",{component:"div"}),n}const r0=n0(v9);var re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=re.F1&&n<=re.F12)return!1;switch(n){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=re.ZERO&&t<=re.NINE||t>=re.NUM_ZERO&&t<=re.NUM_MULTIPLY||t>=re.A&&t<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},i0=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
32
60
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
33
61
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
34
62
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -39,29 +67,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39
67
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
40
68
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
41
69
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
42
|
-
summary tabIndex target title type useMap value width wmode wrap`,
|
|
70
|
+
summary tabIndex target title type useMap value width wmode wrap`,o0=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
43
71
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
44
72
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
45
73
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
46
74
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
47
75
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
48
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,n0="".concat(e0," ").concat(t0).split(/[\s\n]+/),r0="aria-",i0="data-";function M9(e,t){return e.indexOf(t)===0}function o0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=P2({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||M9(i,r0))||n.data&&M9(i,i0)||n.attr&&n0.includes(i))&&(r[i]=e[i])}),r}var a0=J.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,l=e.showProgress,h=e.pauseOnHover,v=h===void 0?!0:h,m=e.eventKey,u=e.content,p=e.closable,L=e.closeIcon,E=L===void 0?"x":L,M=e.props,b=e.onClick,O=e.onNoticeClose,x=e.times,I=e.hovering,$=J.useState(!1),H=Ee($,2),T=H[0],A=H[1],R=J.useState(0),k=Ee(R,2),Z=k[0],W=k[1],Y=J.useState(0),K=Ee(Y,2),oe=K[0],ve=K[1],ie=I||T,fe=a>0&&l,be=function(){O(m)},F=function(ee){(ee.key==="Enter"||ee.code==="Enter"||ee.keyCode===ne.ENTER)&&be()};J.useEffect(function(){if(!ie&&a>0){var G=Date.now()-oe,ee=setTimeout(function(){be()},a*1e3-oe);return function(){v&&clearTimeout(ee),ve(Date.now()-G)}}},[a,ie,x]),J.useEffect(function(){if(!ie&&fe&&(v||oe===0)){var G=performance.now(),ee,se=function Ce(){cancelAnimationFrame(ee),ee=requestAnimationFrame(function(xe){var we=xe+oe-G,Me=Math.min(we/(a*1e3),1);W(Me*100),Me<1&&Ce()})};return se(),function(){v&&cancelAnimationFrame(ee)}}},[a,oe,ie,fe,x]);var V=J.useMemo(function(){return Ze(p)==="object"&&p!==null?p:p?{closeIcon:E}:{}},[p,E]),P=o0(V,!0),q=100-(!Z||Z<0?0:Z>100?100:Z),Q="".concat(n,"-notice");return J.createElement("div",g1({},M,{ref:t,className:z1(Q,i,Oe({},"".concat(Q,"-closable"),p)),style:r,onMouseEnter:function(ee){var se;A(!0),M==null||(se=M.onMouseEnter)===null||se===void 0||se.call(M,ee)},onMouseLeave:function(ee){var se;A(!1),M==null||(se=M.onMouseLeave)===null||se===void 0||se.call(M,ee)},onClick:b}),J.createElement("div",{className:"".concat(Q,"-content")},u),p&&J.createElement("a",g1({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:F,"aria-label":"Close"},P,{onClick:function(ee){ee.preventDefault(),ee.stopPropagation(),be()}}),V.closeIcon),fe&&J.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:q},q+"%"))}),s0=s.createContext({}),E9=8,O9=3,H9=16,l0=function(t){var n={offset:E9,threshold:O9,gap:H9};if(t&&Ze(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:E9,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:O9,n.gap=(o=t.gap)!==null&&o!==void 0?o:H9}return[!!t,n]},c0=["className","style","classNames","styles"],u0=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,l=t.motion,h=t.onAllNoticeRemoved,v=t.onNoticeClose,m=t.stack,u=s.useContext(s0),p=u.classNames,L=s.useRef({}),E=s.useState(null),M=Ee(E,2),b=M[0],O=M[1],x=s.useState([]),I=Ee(x,2),$=I[0],H=I[1],T=n.map(function(ie){return{config:ie,key:String(ie.key)}}),A=l0(m),R=Ee(A,2),k=R[0],Z=R[1],W=Z.offset,Y=Z.threshold,K=Z.gap,oe=k&&($.length>0||T.length<=Y),ve=typeof l=="function"?l(r):l;return s.useEffect(function(){k&&$.length>1&&H(function(ie){return ie.filter(function(fe){return T.some(function(be){var F=be.key;return fe===F})})})},[$,T,k]),s.useEffect(function(){var ie;if(k&&L.current[(ie=T[T.length-1])===null||ie===void 0?void 0:ie.key]){var fe;O(L.current[(fe=T[T.length-1])===null||fe===void 0?void 0:fe.key])}},[T,k]),s.createElement(Ka,g1({key:r,className:z1(i,"".concat(i,"-").concat(r),p==null?void 0:p.list,o,Oe(Oe({},"".concat(i,"-stack"),!!k),"".concat(i,"-stack-expanded"),oe)),style:a,keys:T,motionAppear:!0},ve,{onAllRemoved:function(){h(r)}}),function(ie,fe){var be=ie.config,F=ie.className,V=ie.style,P=ie.index,q=be,Q=q.key,G=q.times,ee=String(Q),se=be,Ce=se.className,xe=se.style,we=se.classNames,Me=se.styles,O1=dt(se,c0),Ye=T.findIndex(function(Be){return Be.key===ee}),l1={};if(k){var Ke=T.length-1-(Ye>-1?Ye:P-1),Pe=r==="top"||r==="bottom"?"-50%":"0";if(Ke>0){var Re,c1,$e;l1.height=oe?(Re=L.current[ee])===null||Re===void 0?void 0:Re.offsetHeight:b==null?void 0:b.offsetHeight;for(var e1=0,ye=0;ye<Ke;ye++){var pe;e1+=((pe=L.current[T[T.length-1-ye].key])===null||pe===void 0?void 0:pe.offsetHeight)+K}var Ne=(oe?e1:Ke*W)*(r.startsWith("top")?1:-1),i1=!oe&&b!==null&&b!==void 0&&b.offsetWidth&&(c1=L.current[ee])!==null&&c1!==void 0&&c1.offsetWidth?((b==null?void 0:b.offsetWidth)-W*2*(Ke<3?Ke:3))/(($e=L.current[ee])===null||$e===void 0?void 0:$e.offsetWidth):1;l1.transform="translate3d(".concat(Pe,", ").concat(Ne,"px, 0) scaleX(").concat(i1,")")}else l1.transform="translate3d(".concat(Pe,", 0, 0)")}return s.createElement("div",{ref:fe,className:z1("".concat(i,"-notice-wrapper"),F,we==null?void 0:we.wrapper),style:ue(ue(ue({},V),l1),Me==null?void 0:Me.wrapper),onMouseEnter:function(){return H(function(t1){return t1.includes(ee)?t1:[].concat(F1(t1),[ee])})},onMouseLeave:function(){return H(function(t1){return t1.filter(function(St){return St!==ee})})}},s.createElement(a0,g1({},O1,{ref:function(t1){Ye>-1?L.current[ee]=t1:delete L.current[ee]},prefixCls:i,classNames:we,styles:Me,className:z1(Ce,p==null?void 0:p.notice),style:xe,times:G,key:Q,eventKey:Q,onNoticeClose:v,hovering:k&&$.length>0})))})},f0=J.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,l=e.className,h=e.style,v=e.onAllRemoved,m=e.stack,u=e.renderNotifications,p=J.useState([]),L=Ee(p,2),E=L[0],M=L[1],b=function(k){var Z,W=E.find(function(Y){return Y.key===k});W==null||(Z=W.onClose)===null||Z===void 0||Z.call(W),M(function(Y){return Y.filter(function(K){return K.key!==k})})};J.useImperativeHandle(t,function(){return{open:function(k){M(function(Z){var W=F1(Z),Y=W.findIndex(function(ve){return ve.key===k.key}),K=ue({},k);if(Y>=0){var oe;K.times=(((oe=Z[Y])===null||oe===void 0?void 0:oe.times)||0)+1,W[Y]=K}else K.times=0,W.push(K);return a>0&&W.length>a&&(W=W.slice(-a)),W})},close:function(k){b(k)},destroy:function(){M([])}}});var O=J.useState({}),x=Ee(O,2),I=x[0],$=x[1];J.useEffect(function(){var R={};E.forEach(function(k){var Z=k.placement,W=Z===void 0?"topRight":Z;W&&(R[W]=R[W]||[],R[W].push(k))}),Object.keys(I).forEach(function(k){R[k]=R[k]||[]}),$(R)},[E]);var H=function(k){$(function(Z){var W=ue({},Z),Y=W[k]||[];return Y.length||delete W[k],W})},T=J.useRef(!1);if(J.useEffect(function(){Object.keys(I).length>0?T.current=!0:T.current&&(v==null||v(),T.current=!1)},[I]),!i)return null;var A=Object.keys(I);return T1.createPortal(J.createElement(J.Fragment,null,A.map(function(R){var k=I[R],Z=J.createElement(u0,{key:R,configList:k,placement:R,prefixCls:r,className:l==null?void 0:l(R),style:h==null?void 0:h(R),motion:o,onNoticeClose:b,onAllNoticeRemoved:H,stack:m});return u?u(Z,{prefixCls:r,key:R}):Z})),i)}),d0=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],h0=function(){return document.body},I9=0;function v0(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(o){var a=i[o];a!==void 0&&(e[o]=a)})}),e}function m0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?h0:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,l=e.style,h=e.onAllRemoved,v=e.stack,m=e.renderNotifications,u=dt(e,d0),p=J.useState(),L=Ee(p,2),E=L[0],M=L[1],b=J.useRef(),O=J.createElement(f0,{container:E,ref:b,prefixCls:i,motion:r,maxCount:o,className:a,style:l,onAllRemoved:h,stack:v,renderNotifications:m}),x=J.useState([]),I=Ee(x,2),$=I[0],H=I[1],T=J.useMemo(function(){return{open:function(R){var k=v0(u,R);(k.key===null||k.key===void 0)&&(k.key="rc-notification-".concat(I9),I9+=1),H(function(Z){return[].concat(F1(Z),[{type:"open",config:k}])})},close:function(R){H(function(k){return[].concat(F1(k),[{type:"close",key:R}])})},destroy:function(){H(function(R){return[].concat(F1(R),[{type:"destroy"}])})}}},[]);return J.useEffect(function(){M(n())}),J.useEffect(function(){b.current&&$.length&&($.forEach(function(A){switch(A.type){case"open":b.current.open(A.config);break;case"close":b.current.close(A.key);break;case"destroy":b.current.destroy();break}}),H(function(A){return A.filter(function(R){return!$.includes(R)})}))},[$]),[T,O]}const Ge={notification:"univer-notification",notificationNotice:"univer-notification-notice",notificationNoticeWrapper:"univer-notification-notice-wrapper",notificationNoticeContent:"univer-notification-notice-content",notificationNoticeClose:"univer-notification-notice-close",notificationIcon:"univer-notification-icon",notificationIconSuccess:"univer-notification-icon-success",notificationIconInfo:"univer-notification-icon-info",notificationIconWarning:"univer-notification-icon-warning",notificationIconError:"univer-notification-icon-error",notificationContentContainer:"univer-notification-content-container",notificationTitle:"univer-notification-title",notificationContent:"univer-notification-content",notificationContentEllipsis:"univer-notification-content-ellipsis",notificationTop:"univer-notification-top",notificationTopLeft:"univer-notification-topLeft",notificationTopRight:"univer-notification-topRight",notificationBottom:"univer-notification-bottom",notificationBottomRight:"univer-notification-bottomRight",notificationBottomLeft:"univer-notification-bottomLeft",notificationFade:"univer-notification-fade",notificationFadeAppearPrepare:"univer-notification-fade-appear-prepare",notificationFadeAppearStart:"univer-notification-fade-appear-start",notificationFadeAppearActive:"univer-notification-fade-appear-active",notificationFadeAppear:"univer-notification-fade-appear",notificationFadeEnter:"univer-notification-fade-enter",notificationFadeLeave:"univer-notification-fade-leave",notificationFadeEnterActive:"univer-notification-fade-enter-active",notificationFadeIn:"univer-notification-fade-in",notificationFadeLeaveActive:"univer-notification-fade-leave-active",notificationFadeOut:"univer-notification-fade-out"},p0={success:y.jsx(H3,{className:Ge.notificationIconSuccess}),info:y.jsx(wt,{className:Ge.notificationIconInfo}),warning:y.jsx(wt,{className:Ge.notificationIconWarning}),error:y.jsx(Sr,{className:Ge.notificationIconError})},T9=new re.Subject,C0=e=>{const{type:t,content:n,title:r,lines:i=0}=e,o=Ie(Ge.notificationContent,{[Ge.notificationContentEllipsis]:i!==0});return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:Ge.notificationIcon,children:p0[t]}),y.jsxs("div",{className:Ge.notificationContentContainer,children:[y.jsx("span",{className:Ge.notificationTitle,children:r}),y.jsx("span",{className:o,style:{WebkitLineClamp:i},children:n})]})]})};function g0(){const{mountContainer:e}=s.useContext(he.ConfigContext);if(!e)return null;const[t,n]=m0({prefixCls:Ge.notification,maxCount:3,closeIcon:y.jsx(G1,{}),getContainer:()=>e,motion:{motionName:Ge.notificationFade,motionAppear:!0,motionEnter:!0,motionLeave:!0}}),r=s.useRef(T9);return s.useEffect(()=>{const i=r.current.subscribe(o=>{var a,l,h;t.open({content:y.jsx(C0,{content:o.content,type:o.type,title:o.title,lines:o.lines}),key:o.key,placement:(a=o.placement)!=null?a:"topRight",duration:(l=o.duration)!=null?l:4.5,closable:(h=o.closable)!=null?h:!0})});return()=>{i.unsubscribe()}},[t]),y.jsx(y.Fragment,{children:n})}const b0={show:e=>{T9.next(e)}};var y0=Object.defineProperty,S0=Object.getOwnPropertyDescriptor,L0=(e,t,n,r)=>{for(var i=r>1?void 0:r?S0(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&y0(t,n,i),i},D9=(e,t)=>(n,r)=>t(n,r,e);C.DesktopNotificationService=class extends f.Disposable{constructor(t,n){super(),this._injector=t,this._uiPartsService=n,this._initUIPart()}show(t){return b0.show(t),f.toDisposable(()=>{})}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.GLOBAL,()=>f.connectInjector(g0,this._injector)))}},C.DesktopNotificationService=L0([D9(0,f.Inject(f.Injector)),D9(1,Xe)],C.DesktopNotificationService);class Hn{constructor(){te(this,"_sidebarOptions",{});te(this,"sidebarOptions$",new re.Subject);te(this,"scrollEvent$",new re.Subject);te(this,"container")}get visible(){return this._sidebarOptions.visible||!1}get options(){return this._sidebarOptions}open(t){return this._sidebarOptions={...t,id:t.id,visible:!0},this.sidebarOptions$.next(this._sidebarOptions),f.toDisposable(()=>{this.close()})}close(t){t&&this._sidebarOptions.id!==t||(this._sidebarOptions={...this._sidebarOptions,visible:!1},this.sidebarOptions$.next(this._sidebarOptions),this._sidebarOptions.onClose&&this._sidebarOptions.onClose())}getContainer(){return this.container}setContainer(t){this.container=t}}var _0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,M0=(e,t,n,r)=>{for(var i=r>1?void 0:r?w0(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&_0(t,n,i),i},E0=(e,t)=>(n,r)=>t(n,r,e);C.DesktopZenZoneService=class{constructor(t){te(this,"visible$",new re.BehaviorSubject(!1));te(this,"componentKey$",new re.ReplaySubject);te(this,"_temporaryHidden$",new re.BehaviorSubject(!1));te(this,"temporaryHidden$",this._temporaryHidden$.asObservable());te(this,"_visible",!1);this._componentManager=t}get visible(){return this._visible}get temporaryHidden(){return this._temporaryHidden$.getValue()}dispose(){this.visible$.next(!1),this.visible$.complete(),this.componentKey$.complete()}hide(){this._temporaryHidden$.next(!0)}show(){this._temporaryHidden$.next(!1)}set(t,n){return this._componentManager.register(t,n),this.componentKey$.next(t),f.toDisposable(()=>{this._componentManager.delete(t),this.visible$.complete(),this.componentKey$.complete()})}open(){this._visible=!0,this.visible$.next(!0)}close(){this._visible=!1,this.visible$.next(!1)}},C.DesktopZenZoneService=M0([E0(0,f.Inject(ke))],C.DesktopZenZoneService);var x9=Object.defineProperty,O0=Object.getOwnPropertyDescriptor,H0=(e,t,n)=>t in e?x9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I0=(e,t,n,r)=>{for(var i=r>1?void 0:r?O0(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&x9(t,n,i),i},T0=(e,t)=>(n,r)=>t(n,r,e),D0=(e,t,n)=>H0(e,t+"",n);const x0="UNIVER_MOBILE_UI_PLUGIN";C.UniverMobileUIPlugin=class extends f.Plugin{constructor(t,n){super(),this._config=t,this._injector=n}onStarting(){f.mergeOverrideWithDependencies([[ke],[D1],[et],[Xe,{useClass:Xt}],[n1,{useClass:C.DesktopLayoutService}],[S1,{useClass:C.ShortcutService}],[tt,{useClass:$t}],[qe,{useClass:C.MenuManagerService}],[B1,{useClass:en}],[dn,{useClass:C.BrowserClipboardService,lazy:!0}],[U1,{useClass:C.DesktopNotificationService,lazy:!0}],[ut,{useClass:C.DesktopDialogService,lazy:!0}],[ct,{useClass:C.DesktopConfirmService,lazy:!0}],[y1,{useClass:Hn,lazy:!0}],[$1,{useClass:C.DesktopZenZoneService,lazy:!0}],[st,{useClass:C.DesktopGlobalZoneService,lazy:!0}],[b1,{useClass:mn,lazy:!0}],[f.ILocalStorageService,{useClass:vn,lazy:!0}],[ln,{useClass:C.DesktopBeforeCloseService}],[ot,{useClass:Jt}],[it],[j1,{useFactory:n=>n.createInstance(sn,this._config),deps:[f.Injector]}],[C.SharedController],[C.ErrorController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(j1),this._injector.get(C.ErrorController)}},D0(C.UniverMobileUIPlugin,"pluginName",x0),C.UniverMobileUIPlugin=I0([f.DependentOn(I1.UniverRenderEnginePlugin),T0(1,f.Inject(f.Injector))],C.UniverMobileUIPlugin);class N9 extends f.Disposable{openFile(t){return new Promise(n=>{var i,o;const r=document.createElement("input");r.type="file",r.accept=(i=t==null?void 0:t.accept)!=null?i:"",r.multiple=(o=t==null?void 0:t.multiple)!=null?o:!1,r.onchange=a=>{const l=a.target.files;l&&n(Array.from(l))},r.click()})}downloadFile(t,n){const r=document.createElement("a");r.download=n,r.href=window.URL.createObjectURL(t),r.click()}}const V9=f.createIdentifier("univer-ui.local-file.service"),N0=e=>{const n=f.useDependency(y1).getContainer();s.useEffect(()=>{if(n)return n.addEventListener("mousedown",e),()=>{n.removeEventListener("mousedown",e)}},[e,n])};var A9=Object.defineProperty,V0=Object.getOwnPropertyDescriptor,A0=(e,t,n)=>t in e?A9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P0=(e,t,n,r)=>{for(var i=r>1?void 0:r?V0(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&A9(t,n,i),i},In=(e,t)=>(n,r)=>t(n,r,e),R0=(e,t,n)=>A0(e,t+"",n);const P9="UNIVER_UI_PLUGIN",R9="DISABLE_AUTO_FOCUS";C.UniverUIPlugin=class extends f.Plugin{constructor(t=X2,n,r,i){super(),this._config=t,this._contextService=n,this._injector=r,this._configService=i;const{menu:o,...a}=this._config;a.disableAutoFocus&&this._contextService.setContextValue(R9,!0),o&&this._configService.setConfig("menu",o,{merge:!0}),this._configService.setConfig(h6,a)}onStarting(){f.mergeOverrideWithDependencies([[ke],[D1],[et],[Xe,{useClass:Xt}],[n1,{useClass:C.DesktopLayoutService}],[S1,{useClass:C.ShortcutService}],[tt,{useClass:$t}],[qe,{useClass:C.MenuManagerService}],[B1,{useClass:en}],[dn,{useClass:C.BrowserClipboardService,lazy:!0}],[U1,{useClass:C.DesktopNotificationService,lazy:!0}],[ut,{useClass:C.DesktopDialogService,lazy:!0}],[ct,{useClass:C.DesktopConfirmService,lazy:!0}],[y1,{useClass:Hn,lazy:!0}],[$1,{useClass:C.DesktopZenZoneService,lazy:!0}],[st,{useClass:C.DesktopGlobalZoneService,lazy:!0}],[b1,{useClass:mn,lazy:!0}],[f.ILocalStorageService,{useClass:vn,lazy:!0}],[ln,{useClass:C.DesktopBeforeCloseService}],[V9,{useClass:N9}],[ot,{useClass:Jt}],[it],[j1,{useFactory:n=>n.createInstance(C.DesktopUIController,this._config),deps:[f.Injector]}],[C.SharedController],[C.ErrorController],[C.ShortcutPanelController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(j1),this._injector.get(C.ErrorController)}onReady(){this._injector.get(C.SharedController)}onSteady(){this._injector.get(C.ShortcutPanelController)}},R0(C.UniverUIPlugin,"pluginName",P9),C.UniverUIPlugin=P0([f.DependentOn(I1.UniverRenderEnginePlugin),In(1,f.IContextService),In(2,f.Inject(f.Injector)),In(3,f.IConfigService)],C.UniverUIPlugin);function gt(e){return e.length===0?e:e.replace(/^\s+|\s+$/gm,"")}const j0=.75,j9=78,k9=9,$9="rgba(0,0,0,0)",B9="rgb(0,0,0)";function Tn(e){var l;let t=e.childNodes;if(t.length===0)return e.textContent;if(t[0].nodeName==="DIV"&&(t=t[0].childNodes),t.length===1&&t[0].nodeName==="#text")return t[0].textContent;const n=[];let r=0,i=0,o=e.textContent||"";o+=`\r
|
|
49
|
-
`;for(let
|
|
50
|
-
`))}function
|
|
51
|
-
`),
|
|
52
|
-
`,"").split("}");for(let i=0;i<r.length;i++){if(!r[i])continue;let
|
|
76
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,a0="".concat(i0," ").concat(o0).split(/[\s\n]+/),s0="aria-",l0="data-";function M9(e,t){return e.indexOf(t)===0}function c0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=R2({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||M9(i,s0))||n.data&&M9(i,l0)||n.attr&&a0.includes(i))&&(r[i]=e[i])}),r}var u0=J.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,l=e.showProgress,u=e.pauseOnHover,m=u===void 0?!0:u,v=e.eventKey,f=e.content,p=e.closable,S=e.closeIcon,E=S===void 0?"x":S,M=e.props,b=e.onClick,H=e.onNoticeClose,x=e.times,T=e.hovering,k=J.useState(!1),O=Me(k,2),I=O[0],V=O[1],A=J.useState(0),$=Me(A,2),z=$[0],W=$[1],Y=J.useState(0),ne=Me(Y,2),ae=ne[0],ve=ne[1],ie=T||I,he=o>0&&l,Ce=function(){H(v)},B=function(K){(K.key==="Enter"||K.code==="Enter"||K.keyCode===re.ENTER)&&Ce()};J.useEffect(function(){if(!ie&&o>0){var G=Date.now()-ae,K=setTimeout(function(){Ce()},o*1e3-ae);return function(){m&&clearTimeout(K),ve(Date.now()-G)}}},[o,ie,x]),J.useEffect(function(){if(!ie&&he&&(m||ae===0)){var G=performance.now(),K,se=function ge(){cancelAnimationFrame(K),K=requestAnimationFrame(function(xe){var _e=xe+ae-G,we=Math.min(_e/(o*1e3),1);W(we*100),we<1&&ge()})};return se(),function(){m&&cancelAnimationFrame(K)}}},[o,ae,ie,he,x]);var P=J.useMemo(function(){return Ge(p)==="object"&&p!==null?p:p?{closeIcon:E}:{}},[p,E]),R=c0(P,!0),q=100-(!z||z<0?0:z>100?100:z),Q="".concat(n,"-notice");return J.createElement("div",g1({},M,{ref:t,className:U1(Q,i,Ee({},"".concat(Q,"-closable"),p)),style:r,onMouseEnter:function(K){var se;V(!0),M==null||(se=M.onMouseEnter)===null||se===void 0||se.call(M,K)},onMouseLeave:function(K){var se;V(!1),M==null||(se=M.onMouseLeave)===null||se===void 0||se.call(M,K)},onClick:b}),J.createElement("div",{className:"".concat(Q,"-content")},f),p&&J.createElement("a",g1({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:B,"aria-label":"Close"},R,{onClick:function(K){K.preventDefault(),K.stopPropagation(),Ce()}}),P.closeIcon),he&&J.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:q},q+"%"))}),f0=s.createContext({}),E9=8,O9=3,H9=16,d0=function(t){var n={offset:E9,threshold:O9,gap:H9};if(t&&Ge(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:E9,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:O9,n.gap=(a=t.gap)!==null&&a!==void 0?a:H9}return[!!t,n]},h0=["className","style","classNames","styles"],v0=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,l=t.motion,u=t.onAllNoticeRemoved,m=t.onNoticeClose,v=t.stack,f=s.useContext(f0),p=f.classNames,S=s.useRef({}),E=s.useState(null),M=Me(E,2),b=M[0],H=M[1],x=s.useState([]),T=Me(x,2),k=T[0],O=T[1],I=n.map(function(ie){return{config:ie,key:String(ie.key)}}),V=d0(v),A=Me(V,2),$=A[0],z=A[1],W=z.offset,Y=z.threshold,ne=z.gap,ae=$&&(k.length>0||I.length<=Y),ve=typeof l=="function"?l(r):l;return s.useEffect(function(){$&&k.length>1&&O(function(ie){return ie.filter(function(he){return I.some(function(Ce){var B=Ce.key;return he===B})})})},[k,I,$]),s.useEffect(function(){var ie;if($&&S.current[(ie=I[I.length-1])===null||ie===void 0?void 0:ie.key]){var he;H(S.current[(he=I[I.length-1])===null||he===void 0?void 0:he.key])}},[I,$]),s.createElement(r0,g1({key:r,className:U1(i,"".concat(i,"-").concat(r),p==null?void 0:p.list,a,Ee(Ee({},"".concat(i,"-stack"),!!$),"".concat(i,"-stack-expanded"),ae)),style:o,keys:I,motionAppear:!0},ve,{onAllRemoved:function(){u(r)}}),function(ie,he){var Ce=ie.config,B=ie.className,P=ie.style,R=ie.index,q=Ce,Q=q.key,G=q.times,K=String(Q),se=Ce,ge=se.className,xe=se.style,_e=se.classNames,we=se.styles,E1=dt(se,h0),Xe=I.findIndex(function(Be){return Be.key===K}),l1={};if($){var Ke=I.length-1-(Xe>-1?Xe:R-1),Ae=r==="top"||r==="bottom"?"-50%":"0";if(Ke>0){var Re,c1,$e;l1.height=ae?(Re=S.current[K])===null||Re===void 0?void 0:Re.offsetHeight:b==null?void 0:b.offsetHeight;for(var e1=0,be=0;be<Ke;be++){var me;e1+=((me=S.current[I[I.length-1-be].key])===null||me===void 0?void 0:me.offsetHeight)+ne}var Ne=(ae?e1:Ke*W)*(r.startsWith("top")?1:-1),o1=!ae&&b!==null&&b!==void 0&&b.offsetWidth&&(c1=S.current[K])!==null&&c1!==void 0&&c1.offsetWidth?((b==null?void 0:b.offsetWidth)-W*2*(Ke<3?Ke:3))/(($e=S.current[K])===null||$e===void 0?void 0:$e.offsetWidth):1;l1.transform="translate3d(".concat(Ae,", ").concat(Ne,"px, 0) scaleX(").concat(o1,")")}else l1.transform="translate3d(".concat(Ae,", 0, 0)")}return s.createElement("div",{ref:he,className:U1("".concat(i,"-notice-wrapper"),B,_e==null?void 0:_e.wrapper),style:fe(fe(fe({},P),l1),we==null?void 0:we.wrapper),onMouseEnter:function(){return O(function(t1){return t1.includes(K)?t1:[].concat(B1(t1),[K])})},onMouseLeave:function(){return O(function(t1){return t1.filter(function(St){return St!==K})})}},s.createElement(u0,g1({},E1,{ref:function(t1){Xe>-1?S.current[K]=t1:delete S.current[K]},prefixCls:i,classNames:_e,styles:we,className:U1(ge,p==null?void 0:p.notice),style:xe,times:G,key:Q,eventKey:Q,onNoticeClose:m,hovering:$&&k.length>0})))})},m0=J.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,l=e.className,u=e.style,m=e.onAllRemoved,v=e.stack,f=e.renderNotifications,p=J.useState([]),S=Me(p,2),E=S[0],M=S[1],b=function($){var z,W=E.find(function(Y){return Y.key===$});W==null||(z=W.onClose)===null||z===void 0||z.call(W),M(function(Y){return Y.filter(function(ne){return ne.key!==$})})};J.useImperativeHandle(t,function(){return{open:function($){M(function(z){var W=B1(z),Y=W.findIndex(function(ve){return ve.key===$.key}),ne=fe({},$);if(Y>=0){var ae;ne.times=(((ae=z[Y])===null||ae===void 0?void 0:ae.times)||0)+1,W[Y]=ne}else ne.times=0,W.push(ne);return o>0&&W.length>o&&(W=W.slice(-o)),W})},close:function($){b($)},destroy:function(){M([])}}});var H=J.useState({}),x=Me(H,2),T=x[0],k=x[1];J.useEffect(function(){var A={};E.forEach(function($){var z=$.placement,W=z===void 0?"topRight":z;W&&(A[W]=A[W]||[],A[W].push($))}),Object.keys(T).forEach(function($){A[$]=A[$]||[]}),k(A)},[E]);var O=function($){k(function(z){var W=fe({},z),Y=W[$]||[];return Y.length||delete W[$],W})},I=J.useRef(!1);if(J.useEffect(function(){Object.keys(T).length>0?I.current=!0:I.current&&(m==null||m(),I.current=!1)},[T]),!i)return null;var V=Object.keys(T);return I1.createPortal(J.createElement(J.Fragment,null,V.map(function(A){var $=T[A],z=J.createElement(v0,{key:A,configList:$,placement:A,prefixCls:r,className:l==null?void 0:l(A),style:u==null?void 0:u(A),motion:a,onNoticeClose:b,onAllNoticeRemoved:O,stack:v});return f?f(z,{prefixCls:r,key:A}):z})),i)}),p0=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],C0=function(){return document.body},I9=0;function g0(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(a){var o=i[a];o!==void 0&&(e[a]=o)})}),e}function b0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?C0:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,l=e.style,u=e.onAllRemoved,m=e.stack,v=e.renderNotifications,f=dt(e,p0),p=J.useState(),S=Me(p,2),E=S[0],M=S[1],b=J.useRef(),H=J.createElement(m0,{container:E,ref:b,prefixCls:i,motion:r,maxCount:a,className:o,style:l,onAllRemoved:u,stack:m,renderNotifications:v}),x=J.useState([]),T=Me(x,2),k=T[0],O=T[1],I=J.useMemo(function(){return{open:function(A){var $=g0(f,A);($.key===null||$.key===void 0)&&($.key="rc-notification-".concat(I9),I9+=1),O(function(z){return[].concat(B1(z),[{type:"open",config:$}])})},close:function(A){O(function($){return[].concat(B1($),[{type:"close",key:A}])})},destroy:function(){O(function(A){return[].concat(B1(A),[{type:"destroy"}])})}}},[]);return J.useEffect(function(){M(n())}),J.useEffect(function(){b.current&&k.length&&(k.forEach(function(V){switch(V.type){case"open":b.current.open(V.config);break;case"close":b.current.close(V.key);break;case"destroy":b.current.destroy();break}}),O(function(V){return V.filter(function(A){return!k.includes(A)})}))},[k]),[I,H]}const qe={notification:"univer-notification",notificationNotice:"univer-notification-notice",notificationNoticeWrapper:"univer-notification-notice-wrapper",notificationNoticeContent:"univer-notification-notice-content",notificationNoticeClose:"univer-notification-notice-close",notificationIcon:"univer-notification-icon",notificationIconSuccess:"univer-notification-icon-success",notificationIconInfo:"univer-notification-icon-info",notificationIconWarning:"univer-notification-icon-warning",notificationIconError:"univer-notification-icon-error",notificationContentContainer:"univer-notification-content-container",notificationTitle:"univer-notification-title",notificationContent:"univer-notification-content",notificationContentEllipsis:"univer-notification-content-ellipsis",notificationTop:"univer-notification-top",notificationTopLeft:"univer-notification-topLeft",notificationTopRight:"univer-notification-topRight",notificationBottom:"univer-notification-bottom",notificationBottomRight:"univer-notification-bottomRight",notificationBottomLeft:"univer-notification-bottomLeft",notificationFade:"univer-notification-fade",notificationFadeAppearPrepare:"univer-notification-fade-appear-prepare",notificationFadeAppearStart:"univer-notification-fade-appear-start",notificationFadeAppearActive:"univer-notification-fade-appear-active",notificationFadeAppear:"univer-notification-fade-appear",notificationFadeEnter:"univer-notification-fade-enter",notificationFadeLeave:"univer-notification-fade-leave",notificationFadeEnterActive:"univer-notification-fade-enter-active",notificationFadeIn:"univer-notification-fade-in",notificationFadeLeaveActive:"univer-notification-fade-leave-active",notificationFadeOut:"univer-notification-fade-out"},y0={success:y.jsx(H3,{className:qe.notificationIconSuccess}),info:y.jsx(wt,{className:qe.notificationIconInfo}),warning:y.jsx(wt,{className:qe.notificationIconWarning}),error:y.jsx(Sr,{className:qe.notificationIconError})},T9=new te.Subject,S0=e=>{const{type:t,content:n,title:r,lines:i=0}=e,a=Te(qe.notificationContent,{[qe.notificationContentEllipsis]:i!==0});return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:qe.notificationIcon,children:y0[t]}),y.jsxs("div",{className:qe.notificationContentContainer,children:[y.jsx("span",{className:qe.notificationTitle,children:r}),y.jsx("span",{className:a,style:{WebkitLineClamp:i},children:n})]})]})};function L0(){const{mountContainer:e}=s.useContext(le.ConfigContext);if(!e)return null;const[t,n]=b0({prefixCls:qe.notification,maxCount:3,closeIcon:y.jsx(Z1,{}),getContainer:()=>e,motion:{motionName:qe.notificationFade,motionAppear:!0,motionEnter:!0,motionLeave:!0}}),r=s.useRef(T9);return s.useEffect(()=>{const i=r.current.subscribe(a=>{var o,l,u;t.open({content:y.jsx(S0,{content:a.content,type:a.type,title:a.title,lines:a.lines}),key:a.key,placement:(o=a.placement)!=null?o:"topRight",duration:(l=a.duration)!=null?l:4.5,closable:(u=a.closable)!=null?u:!0})});return()=>{i.unsubscribe()}},[t]),y.jsx(y.Fragment,{children:n})}const _0={show:e=>{T9.next(e)}};var w0=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,E0=(e,t,n,r)=>{for(var i=r>1?void 0:r?M0(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&w0(t,n,i),i},D9=(e,t)=>(n,r)=>t(n,r,e);C.DesktopNotificationService=class extends d.Disposable{constructor(t,n){super(),this._injector=t,this._uiPartsService=n,this._initUIPart()}show(t){return _0.show(t),d.toDisposable(()=>{})}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(pe.GLOBAL,()=>d.connectInjector(L0,this._injector)))}},C.DesktopNotificationService=E0([D9(0,d.Inject(d.Injector)),D9(1,Ze)],C.DesktopNotificationService);class Hn{constructor(){ee(this,"_sidebarOptions",{});ee(this,"sidebarOptions$",new te.Subject);ee(this,"scrollEvent$",new te.Subject);ee(this,"container")}get visible(){return this._sidebarOptions.visible||!1}get options(){return this._sidebarOptions}open(t){return this._sidebarOptions={...t,id:t.id,visible:!0},this.sidebarOptions$.next(this._sidebarOptions),d.toDisposable(()=>{this.close()})}close(t){t&&this._sidebarOptions.id!==t||(this._sidebarOptions={...this._sidebarOptions,visible:!1},this.sidebarOptions$.next(this._sidebarOptions),this._sidebarOptions.onClose&&this._sidebarOptions.onClose())}getContainer(){return this.container}setContainer(t){this.container=t}}var O0=Object.defineProperty,H0=Object.getOwnPropertyDescriptor,I0=(e,t,n,r)=>{for(var i=r>1?void 0:r?H0(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&O0(t,n,i),i},T0=(e,t)=>(n,r)=>t(n,r,e);C.DesktopZenZoneService=class{constructor(t){ee(this,"visible$",new te.BehaviorSubject(!1));ee(this,"componentKey$",new te.ReplaySubject);ee(this,"_temporaryHidden$",new te.BehaviorSubject(!1));ee(this,"temporaryHidden$",this._temporaryHidden$.asObservable());ee(this,"_visible",!1);this._componentManager=t}get visible(){return this._visible}get temporaryHidden(){return this._temporaryHidden$.getValue()}dispose(){this.visible$.next(!1),this.visible$.complete(),this.componentKey$.complete()}hide(){this._temporaryHidden$.next(!0)}show(){this._temporaryHidden$.next(!1)}set(t,n){return this._componentManager.register(t,n),this.componentKey$.next(t),d.toDisposable(()=>{this._componentManager.delete(t),this.visible$.complete(),this.componentKey$.complete()})}open(){this._visible=!0,this.visible$.next(!0)}close(){this._visible=!1,this.visible$.next(!1)}},C.DesktopZenZoneService=I0([T0(0,d.Inject(ke))],C.DesktopZenZoneService);var x9=Object.defineProperty,D0=Object.getOwnPropertyDescriptor,x0=(e,t,n)=>t in e?x9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N0=(e,t,n,r)=>{for(var i=r>1?void 0:r?D0(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&x9(t,n,i),i},V0=(e,t)=>(n,r)=>t(n,r,e),P0=(e,t,n)=>x0(e,t+"",n);const A0="UNIVER_MOBILE_UI_PLUGIN";C.UniverMobileUIPlugin=class extends d.Plugin{constructor(t,n){super(),this._config=t,this._injector=n}onStarting(){d.mergeOverrideWithDependencies([[ke],[T1],[K1],[Ze,{useClass:Xt}],[r1,{useClass:C.DesktopLayoutService}],[y1,{useClass:C.ShortcutService}],[et,{useClass:$t}],[Qe,{useClass:C.MenuManagerService}],[k1,{useClass:en}],[hn,{useClass:C.BrowserClipboardService,lazy:!0}],[$1,{useClass:C.DesktopNotificationService,lazy:!0}],[ut,{useClass:C.DesktopDialogService,lazy:!0}],[ct,{useClass:C.DesktopConfirmService,lazy:!0}],[b1,{useClass:Hn,lazy:!0}],[ot,{useClass:C.DesktopZenZoneService,lazy:!0}],[st,{useClass:C.DesktopGlobalZoneService,lazy:!0}],[J1,{useClass:C.DesktopMessageService,lazy:!0}],[d.ILocalStorageService,{useClass:mn,lazy:!0}],[cn,{useClass:C.DesktopBeforeCloseService}],[it,{useClass:Jt}],[rt],[R1,{useFactory:n=>n.createInstance(ln,this._config),deps:[d.Injector]}],[C.SharedController],[C.ErrorController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(R1),this._injector.get(C.ErrorController)}},P0(C.UniverMobileUIPlugin,"pluginName",A0),C.UniverMobileUIPlugin=N0([d.DependentOn(H1.UniverRenderEnginePlugin),V0(1,d.Inject(d.Injector))],C.UniverMobileUIPlugin);class N9 extends d.Disposable{openFile(t){return new Promise(n=>{var i,a;const r=document.createElement("input");r.type="file",r.accept=(i=t==null?void 0:t.accept)!=null?i:"",r.multiple=(a=t==null?void 0:t.multiple)!=null?a:!1,r.onchange=o=>{const l=o.target.files;l&&n(Array.from(l))},r.click()})}downloadFile(t,n){const r=document.createElement("a");r.download=n,r.href=window.URL.createObjectURL(t),r.click()}}const V9=d.createIdentifier("univer-ui.local-file.service"),R0=e=>{const n=d.useDependency(b1).getContainer();s.useEffect(()=>{if(n)return n.addEventListener("mousedown",e),()=>{n.removeEventListener("mousedown",e)}},[e,n])};var P9=Object.defineProperty,j0=Object.getOwnPropertyDescriptor,k0=(e,t,n)=>t in e?P9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$0=(e,t,n,r)=>{for(var i=r>1?void 0:r?j0(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&P9(t,n,i),i},In=(e,t)=>(n,r)=>t(n,r,e),B0=(e,t,n)=>k0(e,t+"",n);const A9="UNIVER_UI_PLUGIN",R9="DISABLE_AUTO_FOCUS";C.UniverUIPlugin=class extends d.Plugin{constructor(t=h6,n,r,i){super(),this._config=t,this._contextService=n,this._injector=r,this._configService=i;const{menu:a,...o}=d.merge({},h6,this._config);o.disableAutoFocus&&this._contextService.setContextValue(R9,!0),a&&this._configService.setConfig("menu",a,{merge:!0}),this._configService.setConfig(d6,o)}onStarting(){d.mergeOverrideWithDependencies([[ke],[T1],[K1],[Ze,{useClass:Xt}],[r1,{useClass:C.DesktopLayoutService}],[y1,{useClass:C.ShortcutService}],[et,{useClass:$t}],[Qe,{useClass:C.MenuManagerService}],[k1,{useClass:en}],[hn,{useClass:C.BrowserClipboardService,lazy:!0}],[$1,{useClass:C.DesktopNotificationService,lazy:!0}],[ut,{useClass:C.DesktopDialogService,lazy:!0}],[ct,{useClass:C.DesktopConfirmService,lazy:!0}],[b1,{useClass:Hn,lazy:!0}],[ot,{useClass:C.DesktopZenZoneService,lazy:!0}],[st,{useClass:C.DesktopGlobalZoneService,lazy:!0}],[J1,{useClass:C.DesktopMessageService,lazy:!0}],[d.ILocalStorageService,{useClass:mn,lazy:!0}],[cn,{useClass:C.DesktopBeforeCloseService}],[V9,{useClass:N9}],[it,{useClass:Jt}],[rt],[R1,{useFactory:n=>n.createInstance(C.DesktopUIController,this._config),deps:[d.Injector]}],[C.SharedController],[C.ErrorController],[C.ShortcutPanelController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(R1),this._injector.get(C.ErrorController)}onReady(){this._injector.get(C.SharedController)}onSteady(){this._injector.get(C.ShortcutPanelController)}},B0(C.UniverUIPlugin,"pluginName",A9),C.UniverUIPlugin=$0([d.DependentOn(H1.UniverRenderEnginePlugin),In(1,d.IContextService),In(2,d.Inject(d.Injector)),In(3,d.IConfigService)],C.UniverUIPlugin);function gt(e){return e.length===0?e:e.replace(/^\s+|\s+$/gm,"")}const U0=.75,j9=78,k9=9,$9="rgba(0,0,0,0)",B9="rgb(0,0,0)";function Tn(e){var l;let t=e.childNodes;if(t.length===0)return e.textContent;if(t[0].nodeName==="DIV"&&(t=t[0].childNodes),t.length===1&&t[0].nodeName==="#text")return t[0].textContent;const n=[];let r=0,i=0,a=e.textContent||"";a+=`\r
|
|
77
|
+
`;for(let u=0;u<t.length;u++){let m=t[`${u}`],v;m.nodeName==="#text"?(v=(l=m.textContent)!=null?l:"",m=m.parentElement):v=m.innerText;const f=bt(m);F9(v).forEach(S=>{const E=S.length;i+=E,r=i-E;const M=d.Tools.generateRandomId(6);n.push({sId:M,st:r,ed:i-1,ts:f})})}return d.Tools.generateRandomId(6),{id:d.Tools.generateRandomId(6),body:{dataStream:a,textRuns:n},documentStyle:{}}}function bt(e,t=""){var o,l;let n=(l=(o=e==null?void 0:e.style)==null?void 0:o.cssText)!=null?l:"";if(n+=t,n=n.replace(/[\r\n]+/g,""),n.length===0)return{};const r=n.split(";"),i={},a={t:"",r:"",b:"",l:""};return r.forEach(u=>{var p;const m=u.toLowerCase(),v=gt(m.substr(0,m.indexOf(":"))),f=gt(m.substr(m.indexOf(":")+1));if(v==="font-weight")f==="bold"||f==="700"?i.bl=1:i.bl=0;else if(v==="font-style")f==="italic"?i.it=1:i.it=0;else if(v==="font-family"){const S=gt(u),E=Q0(S);i.ff=E}else if(v==="font-size"){let S=Number.parseInt(f);n.indexOf("vertical-align")>-1&&(n.indexOf("sub")>-1||n.indexOf("sup")>-1)&&(S*=2),f.indexOf("px")!==-1&&(S=X0(Number.parseInt(f,10))),i.fs=S}else if(v==="color"){const S=new d.ColorKit(f);i.cl={rgb:S.isValid?S.toRgbString():"rgb(0,0,0)"}}else if(v==="background"||v==="background-color"){const S=new d.ColorKit(f);if(S){const E=S.toRgbString();E!==$9&&E!==B9&&(i.bg={rgb:S.toRgbString()})}}else if(v==="text-decoration-line")f==="underline"?(i.ul||(i.ul={s:1}),i.ul.s=1):f==="line-through"?(i.st||(i.st={s:1}),i.st.s=1):f==="overline"&&(i.ol||(i.ol={s:1}),i.ol.s=1);else if(v==="text-decoration-color")i.hasOwnProperty("ul")&&(i.ul||(i.ul={s:1,cl:{rgb:f}}),i.ul.cl={rgb:f}),i.hasOwnProperty("st")&&(i.st||(i.st={s:1,cl:{rgb:f}}),i.st.cl={rgb:f}),i.hasOwnProperty("ol")&&(i.ol||(i.ol={s:1,cl:{rgb:f}}),i.ol.cl={rgb:f});else if(v==="text-decoration-style")i.hasOwnProperty("ul")&&(i.ul||(i.ul={s:1,t:Number(f)}),i.ul.t=Number(f)),i.hasOwnProperty("st")&&(i.st||(i.st={s:1,t:Number(f)}),i.st.t=Number(f)),i.hasOwnProperty("ol")&&(i.ol||(i.ol={s:1,t:Number(f)}),i.ol.t=Number(f));else if(v==="text-decoration"||v==="univer-strike"){const S=(p=f.split(" "))==null?void 0:p[0];S==="underline"?(i.ul||(i.ul={s:1}),i.ul.s=1):S==="line-through"?(i.st||(i.st={s:1}),i.st.s=1):S==="overline"&&(i.ol||(i.ol={s:1}),i.ol.s=1)}if(v==="univer-underline"&&(i.ul={s:1}),v==="vertical-align"&&(f==="sub"?i.va=d.BaselineOffset.SUBSCRIPT:f==="super"?i.va=d.BaselineOffset.SUPERSCRIPT:f==="top"?i.vt=1:f==="middle"?i.vt=2:f==="bottom"?i.vt=3:i.va=d.BaselineOffset.NORMAL),v==="transform"){const S=f.split(")"),E=S.findIndex(M=>M.includes("rotate"));if(E>-1){const M=S[E].match(/\d+/g);let b=0,H=0;M!=null&&M.length&&(b=+M[0]),e!=null&&e.dataset.vertical&&(H=+e.dataset.vertical),i.tr={a:b,v:H}}}if(v==="text-align"&&(f==="left"?i.ht=1:f==="center"?i.ht=2:f==="right"?i.ht=3:f==="justify"?i.ht=4:i.ht=0),i.tb!==1&&(v==="overflow-wrap"||v==="word-wrap"?f==="break-word"&&(i.tb=3):v==="text-overflow"?f==="clip"&&(i.tb=2):v==="text-break"&&f==="overflow"&&(i.tb=1)),v==="white-space"&&(f==="nowrap"?i.tb=1:f==="normal"?i.tb=3:f==="clip"&&(i.tb=2)),v==="border-color"){const S=U9(f,")");if(i.bd)for(const E in S)i.bd[E].cl.rgb=S[E];else{i.bd={b:{cl:{rgb:"#000"},s:0},t:{cl:{rgb:"#000"},s:0},l:{cl:{rgb:"#000"},s:0},r:{cl:{rgb:"#000"},s:0}};for(const E in S)i.bd[E].cl.rgb=S[E]}}if(v==="border-width"||v==="border-style"){const S=U9(f," ");for(const E in S)a[E]+=` ${S[E]}`;i.bd?(i.bd.b.s=d.getBorderStyleType(a.b),i.bd.t.s=d.getBorderStyleType(a.t),i.bd.l.s=d.getBorderStyleType(a.l),i.bd.r.s=d.getBorderStyleType(a.r)):i.bd={b:{cl:{rgb:"#000"},s:d.getBorderStyleType(a.b)},t:{cl:{rgb:"#000"},s:d.getBorderStyleType(a.t)},l:{cl:{rgb:"#000"},s:d.getBorderStyleType(a.l)},r:{cl:{rgb:"#000"},s:d.getBorderStyleType(a.r)}}}if(v==="border-bottom"||v==="border-top"||v==="border-left"||v==="border-right"||v==="border"){i.bd||(i.bd={});const S=f.split(" "),E=`${S[0]} ${S[1]}`;S.splice(0,2);const M=S.join("");if(d.getBorderStyleType(E)!==d.BorderStyleTypes.NONE&&M){const H={cl:{rgb:M},s:d.getBorderStyleType(E)};v==="border-bottom"?i.bd.b=f==="none"?null:H:v==="border-top"?i.bd.t=f==="none"?null:H:v==="border-left"?i.bd.l=f==="none"?null:H:v==="border-right"?i.bd.r=f==="none"?null:H:v==="border"&&(i.bd={r:f==="none"?null:H,t:f==="none"?null:H,b:f==="none"?null:H,l:f==="none"?null:H})}}else if(v==="--data-rotate"){const S=/[+-]?\d+/,E=f.match(S);f==="(0deg ,1)"?i.tr={a:0,v:1}:E&&(i.tr={a:Number(E[0])})}}),Object.keys(i).forEach(u=>{typeof i[u]=="object"&&!Object.keys(i[u]).length&&delete i[u]}),i}function U9(e,t){let n;t===" "?n=e.trim().split(t):n=e.trim().split(t).slice(0,-1),n.forEach(i=>`${i.trim()})`);let r={};return n.length===1?r={t:n[0],r:n[0],b:n[0],l:n[0]}:n.length===2?r={t:n[0],r:n[1],b:n[0],l:n[1]}:n.length===3?r={t:n[0],r:n[1],b:n[2],l:n[1]}:n.length===4&&(r={t:n[0],r:n[1],b:n[2],l:n[3]}),r}function F9(e){if(e==="")return[e];const t=/(?:(\n+.+)|(.+))/g;return e.match(t).map(i=>i.replace(/\n/g,`\r
|
|
78
|
+
`))}function F0(e){const t=document.createElement("DIV"),n=[];t.innerHTML=e;const r=t.querySelectorAll("table col");if(!r.length)return[];for(let i=0;i<r.length;i++){const a=r[i],o=a.getAttribute("span");if(o&&+o>1)for(let l=0;l<+o;l++){const u=yt(a.getAttribute("width"),72);n.push(u)}else{const l=yt(a.getAttribute("width"),72);n.push(l)}}return n}function yt(e,t){if(!e)return t;let n;return e.includes("pt")?n=H1.ptToPx(Number.parseFloat(e)):e.includes("px")?n=Number.parseFloat(e):n=Number.parseFloat(e)*72/96,n}function z0(e){const t=document.createElement("DIV"),n=[];t.innerHTML=e;const r=t.querySelectorAll("table tr");if(!r.length)return[];for(let i=0;i<r.length;i++){const o=r[i].querySelectorAll("td");let l=yt(o[0].style.height,19);for(let u=0;u<o.length;u++){const m=o[u].getAttribute("rowSpan");if(!(m&&+m>1)){l=yt(o[u].style.height,19);break}}n.push(l)}return n}function Z0(e){let t=[];const n=document.createElement("DIV");if(n.innerHTML=e,t=new Array(n.querySelectorAll("table tr").length),!t.length)return[];let r=0;const i=n.querySelectorAll("table tr");i[0].querySelectorAll("td").forEach(l=>{let u=0;const m=l.getAttribute("colSpan");m!==null?u=+m:u=1,r+=u});for(let l=0;l<t.length;l++)t[l]=new Array(r);let o=0;return i.forEach(l=>{let u=0;l.querySelectorAll("td").forEach(m=>{var S,E;const v={};if(m.querySelectorAll("span").length||m.querySelectorAll("font").length){const M=Tn(m);typeof M!="string"&&(v.p=M)}const f=m.innerText;f.trim().length===0?v.v="":v.v=f;const p=bt(m);for(d.Tools.isPlainObject(p)&&(v.s=p);u<r&&t[o][u]!=null;)u++;if(u!==r){if(t[o][u]==null){t[o][u]=v;const M=(S=Number(m.getAttribute("rowSpan")))!=null?S:1,b=(E=Number(m.getAttribute("colSpan")))!=null?E:1;if(M>1||b>1){const H={rs:+M-1,cs:+b-1,r:o,c:u};t[o][u].mc=H;for(let x=0;x<M;x++)for(let T=0;T<b;T++)x===0&&T===0||(t[o+x][u+T]={mc:null})}}u++}}),o++}),t}function W0(e){const t=[],n=document.createElement("DIV");n.innerHTML=e;const i=e.replace(/\r/g,"").split(`
|
|
79
|
+
`),a=i[0].split(" ").length;for(let o=0;o<i.length;o++)i[o].split(" ").length<a||t.push(i[o].split(" "));for(let o=0;o<t.length;o++)for(let l=0;l<t[o].length;l++)t[o][l].length?t[o][l]={v:t[o][l]||"",m:t[o][l]||""}:t[o][l]=null;return t}function G0(e,t){e.length,e[0].length;let n=0,r=0;t&&(n=t.startRow,r=t.startColumn);const i=[];for(let a=0;a<e.length;a++)for(let o=0;o<e[a].length;o++)if(e[a][o]&&typeof e[a][o]=="object"&&"mc"in e[a][o])if(e[a][o].mc){const l=e[a][o].mc,u=l.r+n,m=u+l.rs,v=l.c+r,f=v+l.cs;i.push({startRow:u,endRow:m,startColumn:v,endColumn:f}),delete e[a][o].mc}else e[a][o]=null;return{data:e,mergeData:i}}function Y0(e){var m;let t=[];const n=document.createElement("html");n.innerHTML=e;const r=(m=n.querySelector("style"))==null?void 0:m.innerText;if(!r)return;const i=q0(r);if(t=new Array(n.querySelectorAll("table tr").length),!t.length)return[];let a=0;const o=n.querySelectorAll("table tr");o[0].querySelectorAll("td").forEach(v=>{let f=0;const p=v.getAttribute("colSpan");p!==null?f=+p:f=1,a+=f});for(let v=0;v<t.length;v++)t[v]=new Array(a);let u=0;return o.forEach(v=>{let f=0;v.querySelectorAll("td").forEach(p=>{var H,x;const S={};if(p.querySelectorAll("span").length||p.querySelectorAll("font").length){const T=Tn(p);typeof T!="string"&&(S.p=T)}const E=p.innerText;E.trim().length===0?S.v="":S.v=E;let M="";for(const T in i)p.classList.contains(T)&&(M+=i[T]);const b=bt(p,M);for(d.Tools.isPlainObject(b)&&(S.s=b);f<a&&t[u][f]!=null;)f++;if(f!==a){if(t[u][f]==null){t[u][f]=S;const T=(H=Number(p.getAttribute("rowSpan")))!=null?H:1,k=(x=Number(p.getAttribute("colSpan")))!=null?x:1;if(T>1||k>1){const O={rs:+T-1,cs:+k-1,r:u,c:f};t[u][f].mc=O;for(let I=0;I<T;I++)for(let V=0;V<k;V++)I===0&&V===0||(t[u+I][f+V]={mc:null})}}f++}}),u++}),t}function q0(e){const t={},n=e.replaceAll("<!--","").replaceAll("-->","").trim(),r=n==null?void 0:n.replaceAll(" ","").replaceAll(`
|
|
80
|
+
`,"").split("}");for(let i=0;i<r.length;i++){if(!r[i])continue;let a=r[i].split("{")[0].trim();a.includes(".")&&(a=a.slice(1));const o=r[i].split("{")[1].trim();t[a]=o}return t}function X0(e){const t=Math.round(e*U0);return t<k9?k9:t>j9?j9:t}function Q0(e){const t=/font-family:\s*(?:"([^"]+)"|'([^']+)'|([^;]+))/i,n=e.match(t);return n?(n[1]||n[2]||n[3]).trim():null}Object.defineProperty(C,"useObservable",{enumerable:!0,get:()=>d.useObservable}),C.BuiltInUIPart=pe,C.CanvasFloatDomService=rt,C.CanvasPopup=Kt,C.CanvasPopupService=Jt,C.ComponentContainer=He,C.ComponentManager=ke,C.ContextMenu=P6,C.ContextMenuGroup=Le,C.ContextMenuPosition=d1,C.ContextMenuService=en,C.CopyCommand=Rt,C.CopyShortcutItem=y6,C.CustomLabel=Ie,C.CutCommand=jt,C.CutShortcutItem=S6,C.DEFAULT_BACKGROUND_COLOR_RGB=B9,C.DEFAULT_BACKGROUND_COLOR_RGBA=$9,C.DISABLE_AUTO_FOCUS_KEY=R9,C.DesktopLocalFileService=N9,C.DesktopLocalStorageService=mn,C.DesktopSidebarService=Hn,C.FILE_PNG_CLIPBOARD_MIME_TYPE=K4,C.FILE_SVG_XML_CLIPBOARD_MIME_TYPE=ra,C.FILE__BMP_CLIPBOARD_MIME_TYPE=ta,C.FILE__JPEG_CLIPBOARD_MIME_TYPE=ea,C.FILE__WEBP_CLIPBOARD_MIME_TYPE=na,C.FONT_FAMILY_LIST=g2,C.FONT_SIZE_LIST=S2,C.FloatDom=Qt,C.FontFamily=p2,C.FontFamilyItem=C2,C.FontSize=y2,C.GlobalZone=B6,C.HTML_CLIPBOARD_MIME_TYPE=dn,C.IBeforeCloseService=cn,C.ICanvasPopupService=it,C.IClipboardInterfaceService=hn,C.IConfirmService=ct,C.IContextMenuService=k1,C.IDialogService=ut,C.IGlobalZoneService=st,C.ILayoutService=r1,C.ILeftSidebarService=e4,C.ILocalFileService=V9,C.IMenuManagerService=Qe,C.IMessageService=J1,C.INotificationService=$1,C.IPlatformService=et,C.IShortcutService=y1,C.ISidebarService=b1,C.IUIController=R1,C.IUIPartsService=Ze,C.IZenZoneService=ot,C.KeyCode=a1,C.MenuItemType=De,C.MenuManagerPosition=N1,C.MetaKeys=Oe,C.MobileContextMenu=F6,C.PLAIN_TEXT_CLIPBOARD_MIME_TYPE=fn,C.PasteCommand=kt,C.PlatformService=$t,C.ProgressBar=q2,C.RectPopup=X1,C.RedoShortcutItem=_6,C.Ribbon=k6,C.RibbonDataGroup=Nt,C.RibbonFormulasGroup=xt,C.RibbonInsertGroup=Dt,C.RibbonOthersGroup=Pt,C.RibbonPosition=i1,C.RibbonStartGroup=Fe,C.RibbonViewGroup=Vt,C.SheetPasteShortKeyCommandName=i4,C.ShortcutPanelService=K1,C.Sidebar=on,C.ToggleShortcutPanelOperation=P1,C.ToolbarButton=nn,C.ToolbarItem=_1,C.UIMenu=Q1,C.UIMenuSchema=At,C.UIPartsService=Xt,C.UI_PLUGIN_CONFIG_KEY=d6,C.UNIVER_UI_PLUGIN_NAME=A9,C.UNI_DISABLE_CHANGING_FOCUS_KEY=X2,C.UndoShortcutItem=L6,C.VueComponentWrapper=$3,C.ZIndexManager=T1,C.ZenZone=an,C.builtInGlobalComponents=sn,C.getHeaderFooterMenuHiddenObservable=d2,C.getMenuHiddenObservable=B3,C.handelExcelToJson=Y0,C.handelTableToJson=Z0,C.handleDomToJson=Tn,C.handlePlainToJson=W0,C.handleStringToStyle=bt,C.handleTableColgroup=F0,C.handleTableMergeData=G0,C.handleTableRowGroup=z0,C.mergeMenuConfigs=U3,C.splitSpanText=F9,C.t=M2,C.textTrim=gt,C.useComponentsOfPart=Ve,C.useEvent=Ot,C.useObservableRef=W3,C.useScrollYOverContainer=q3,C.useSidebarClick=R0,C.useToolbarItemStatus=A6,C.useVirtualList=$2,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
53
81
|
|
|
54
82
|
|
|
55
83
|
// @univerjs/ui/facade
|
|
56
|
-
(function(
|
|
84
|
+
(function(i,n){typeof exports=="object"&&typeof module<"u"?n(require("@univerjs/core"),require("@univerjs/ui")):typeof define=="function"&&define.amd?define(["@univerjs/core","@univerjs/ui"],n):(i=typeof globalThis<"u"?globalThis:i||self,n(i.UniverCore,i.UniverUi))})(this,function(i,n){"use strict";var P=Object.defineProperty;var y=(i,n,m)=>n in i?P(i,n,{enumerable:!0,configurable:!0,writable:!0,value:m}):i[n]=m;var c=(i,n,m)=>y(i,typeof n!="symbol"?n+"":n,m);var h;var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=(o,e,t,r)=>{for(var s=r>1?void 0:r?g(e,t):e,a=o.length-1,d;a>=0;a--)(d=o[a])&&(s=(r?d(e,t,s):d(s))||s);return r&&s&&m(e,t,s),s},u=(o,e)=>(t,r)=>e(t,r,o);let S=(h=class extends i.FBase{constructor(e,t,r,s){super();c(this,"_commandToRegister",new Map);c(this,"_buildingSchema");this._item=e,this._injector=t,this._commandService=r,this._menuManagerService=s;const a=typeof e.action=="string"?e.action:i.Tools.generateRandomId(12);a!==e.action&&this._commandToRegister.set(a,e.action),this._buildingSchema={menuItemFactory:()=>({id:e.id,type:n.MenuItemType.BUTTON,icon:e.icon,title:e.title,tooltip:e.tooltip,commandId:a})},typeof e.order<"u"&&(this._buildingSchema.order=e.order)}__getSchema(){return this._commandToRegister.forEach((e,t)=>{this._commandService.hasCommand(t)||this._commandService.registerCommand({id:t,type:i.CommandType.COMMAND,handler:e})}),{[this._item.id]:this._buildingSchema}}appendTo(e){const t=this.__getSchema();this._menuManagerService.mergeMenu({[e]:t})}},c(h,"RibbonStartGroup",n.RibbonStartGroup),c(h,"RibbonPosition",n.RibbonPosition),c(h,"MenuManagerPosition",n.MenuManagerPosition),h);S=_([u(1,i.Inject(i.Injector)),u(2,i.ICommandService),u(3,n.IMenuManagerService)],S);let p=class extends i.FBase{constructor(e,t,r){super();c(this,"_menuByGroups",[]);c(this,"_submenus",[]);c(this,"_buildingSchema");this._item=e,this._injector=t,this._menuManagerService=r,this._buildingSchema={menuItemFactory:()=>({id:e.id,type:n.MenuItemType.SUBITEMS,icon:e.icon,title:e.title,tooltip:e.tooltip})},typeof e.order<"u"&&(this._buildingSchema.order=e.order)}addSubmenu(e){return this._submenus.push(e),this}addSeparator(){return this._menuByGroups.push(this._submenus),this._submenus=[],this}appendTo(e){const t=this.__getSchema();this._menuManagerService.mergeMenu({[e]:t})}__getSchema(){const e={};return this.addSeparator(),this._menuByGroups.forEach((t,r)=>{const s={};t.forEach(a=>{Object.assign(s,a.__getSchema())}),e[`${this._item.id}-group-${r}`]=s}),{[this._item.id]:Object.assign(this._buildingSchema,e)}}};p=_([u(1,i.Inject(i.Injector)),u(2,n.IMenuManagerService)],p);var f=Object.defineProperty,b=Object.getOwnPropertyDescriptor,I=(o,e,t,r)=>{for(var s=r>1?void 0:r?b(e,t):e,a=o.length-1,d;a>=0;a--)(d=o[a])&&(s=(r?d(e,t,s):d(s))||s);return r&&s&&f(e,t,s),s},l=(o,e)=>(t,r)=>e(t,r,o);let v=class extends i.FBase{constructor(e,t){super();c(this,"_forceEscapeDisposable",null);this._injector=e,this._shortcutService=t}enableShortcut(){var e;(e=this._forceEscapeDisposable)==null||e.dispose(),this._forceEscapeDisposable=null}disableShortcut(){this._forceEscapeDisposable||(this._forceEscapeDisposable=this._shortcutService.forceEscape())}dispatchShortcutEvent(e){return this._shortcutService.dispatch(e)}};v=I([l(0,i.Inject(i.Injector)),l(1,n.IShortcutService)],v);class j extends i.FUniver{getURL(){return new URL(window.location.href)}getShortcut(){return this._injector.createInstance(v)}copy(){return this._commandService.executeCommand(n.CopyCommand.id)}paste(){return this._commandService.executeCommand(n.PasteCommand.id)}createMenu(e){return this._injector.createInstance(S,e)}createSubmenu(e){return this._injector.createInstance(p,e)}openSiderbar(e){return this._injector.get(n.ISidebarService).open(e)}openSidebar(e){return this.openSiderbar(e)}openDialog(e){const r=this._injector.get(n.IDialogService).open({...e,onClose:()=>{r.dispose()}});return r}getComponentManager(){return this._injector.get(n.ComponentManager)}showMessage(e){return this._injector.get(n.IMessageService).show(e),this}setUIVisible(e,t){return this._injector.get(n.IUIPartsService).setUIVisible(e,t),this}isUIVisible(e){return this._injector.get(n.IUIPartsService).isUIVisible(e)}}i.FUniver.extend(j);class C extends i.FHooks{onBeforeCopy(e){return this._injector.get(i.ICommandService).beforeCommandExecuted(r=>{r.id===n.CopyCommand.id&&e()})}onCopy(e){return this._injector.get(i.ICommandService).onCommandExecuted(r=>{r.id===n.CopyCommand.id&&e()})}onBeforePaste(e){return this._injector.get(i.ICommandService).beforeCommandExecuted(r=>{r.id===n.PasteCommand.id&&e()})}onPaste(e){return this._injector.get(i.ICommandService).onCommandExecuted(r=>{(r.id===n.PasteCommand.id||r.id===n.SheetPasteShortKeyCommandName)&&e()})}}i.FHooks.extend(C);class M extends i.FEnum{get BuiltInUIPart(){return n.BuiltInUIPart}}i.FEnum.extend(M)});
|
|
57
85
|
|
|
58
86
|
|
|
59
87
|
// @univerjs/docs/index
|
|
60
|
-
(function(l,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("@univerjs/core"),require("@univerjs/engine-render"),require("rxjs")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/engine-render","rxjs"],r):(l=typeof globalThis<"u"?globalThis:l||self,r(l.UniverDocs={},l.UniverCore,l.UniverEngineRender,l.rxjs))})(this,function(l,r,v,m){"use strict";var Se=Object.defineProperty;var Ie=(l,r,v)=>r in l?Se(l,r,{enumerable:!0,configurable:!0,writable:!0,value:v}):l[r]=v;var g=(l,r,v)=>Ie(l,typeof r!="symbol"?r+"":r,v);var w;const M={id:"doc.operation.set-selections",type:r.CommandType.OPERATION,handler:()=>!0};var L=Object.defineProperty,G=Object.getOwnPropertyDescriptor,k=(c,i,e,t)=>{for(var n=t>1?void 0:t?G(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&L(i,e,n),n},E=(c,i)=>(e,t)=>i(e,t,c);l.DocSelectionManagerService=class extends r.RxDisposable{constructor(e,t){super();g(this,"_currentSelection",null);g(this,"_textSelectionInfo",new Map);g(this,"_textSelection$",new m.Subject);g(this,"textSelection$",this._textSelection$.asObservable());g(this,"_refreshSelection$",new m.BehaviorSubject(null));g(this,"refreshSelection$",this._refreshSelection$.asObservable());this._commandService=e,this._univerInstanceService=t,this._listenCurrentUnit()}_listenCurrentUnit(){this._univerInstanceService.getCurrentTypeOfUnit$(r.UniverInstanceType.UNIVER_DOC).pipe(m.takeUntil(this.dispose$)).subscribe(e=>{if(e==null)return;const t=e.getUnitId();this._setCurrentSelectionNotRefresh({unitId:t,subUnitId:t})})}__getCurrentSelection(){return this._currentSelection}getSelectionInfo(e=this._currentSelection){return this._getTextRanges(e)}refreshSelection(e=this._currentSelection){e!=null&&this._refresh(e)}__TEST_ONLY_setCurrentSelection(e){this._currentSelection=e,this._refresh(e)}getTextRanges(e=this._currentSelection){var t;return(t=this._getTextRanges(e))==null?void 0:t.textRanges}getRectRanges(e=this._currentSelection){var t;return(t=this._getTextRanges(e))==null?void 0:t.rectRanges}getDocRanges(e=this._currentSelection){var o,a;const t=(o=this.getTextRanges(e))!=null?o:[],n=(a=this.getRectRanges(e))!=null?a:[];return[...t,...n].filter(u=>u.startOffset!=null&&u.endOffset!=null).sort((u,d)=>u.startOffset>d.startOffset?1:u.startOffset<d.startOffset?-1:0)}getActiveTextRange(){const e=this._getTextRanges(this._currentSelection);if(e==null)return;const{textRanges:t}=e;return t.find(n=>n.isActive)}getActiveRectRange(){const e=this._getTextRanges(this._currentSelection);if(e==null)return;const{rectRanges:t}=e;return t.find(n=>n.isActive)}__TEST_ONLY_add(e,t=!0){this._currentSelection!=null&&this._addByParam({...this._currentSelection,textRanges:e,rectRanges:[],segmentId:"",segmentPage:-1,isEditing:t,style:v.NORMAL_TEXT_SELECTION_PLUGIN_STYLE})}replaceTextRanges(e,t=!0,n){return this.replaceDocRanges(e,this._currentSelection,t,n)}replaceDocRanges(e,t=this._currentSelection,n=!0,s){if(t==null)return;const{unitId:o,subUnitId:a}=t;this._refreshSelection$.next({unitId:o,subUnitId:a,docRanges:e,isEditing:n,options:s})}__replaceTextRangesWithNoRefresh(e,t){if(this._currentSelection==null)return;const n={...e,...t};this._replaceByParam(n),this._textSelection$.next(n);const{unitId:s,subUnitId:o,segmentId:a,style:u,textRanges:d,rectRanges:_,isEditing:h}=n,I=[...d,..._].filter(f=>f.startOffset!=null&&f.endOffset!=null).sort((f,S)=>f.startOffset>S.startOffset?1:f.startOffset<S.startOffset?-1:0);this._commandService.executeCommand(M.id,{unitId:s,subUnitId:o,segmentId:a,style:u,isEditing:h,ranges:I})}dispose(){this._textSelection$.complete()}_setCurrentSelectionNotRefresh(e){this._currentSelection=e}_getTextRanges(e){var s;if(e==null)return;const{unitId:t,subUnitId:n=""}=e;return(s=this._textSelectionInfo.get(t))==null?void 0:s.get(n)}_refresh(e){const t=this._getTextRanges(e);if(t==null)return;const{textRanges:n,rectRanges:s}=t,o=[...n,...s],{unitId:a,subUnitId:u}=e;this._refreshSelection$.next({unitId:a,subUnitId:u,docRanges:o,isEditing:!1})}_replaceByParam(e){const{unitId:t,subUnitId:n,...s}=e;this._textSelectionInfo.has(t)||this._textSelectionInfo.set(t,new Map),this._textSelectionInfo.get(t).set(n,{...s})}_addByParam(e){const{unitId:t,subUnitId:n,...s}=e;this._textSelectionInfo.has(t)||this._textSelectionInfo.set(t,new Map);const o=this._textSelectionInfo.get(t);o.has(n)?o.get(n).textRanges.push(...e.textRanges):o.set(n,{...s})}},l.DocSelectionManagerService=k([E(0,r.ICommandService),E(1,r.IUniverInstanceService)],l.DocSelectionManagerService);var z=Object.defineProperty,W=Object.getOwnPropertyDescriptor,J=(c,i,e,t)=>{for(var n=t>1?void 0:t?W(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&z(i,e,n),n},N=(c,i)=>(e,t)=>i(e,t,c);l.DocSkeletonManagerService=class extends r.RxDisposable{constructor(e,t,n){super();g(this,"_skeleton");g(this,"_docViewModel");g(this,"_currentSkeleton$",new m.BehaviorSubject(null));g(this,"currentSkeleton$",this._currentSkeleton$.asObservable());g(this,"_currentSkeletonBefore$",new m.BehaviorSubject(null));g(this,"currentSkeletonBefore$",this._currentSkeletonBefore$.asObservable());g(this,"_currentViewModel$",new m.BehaviorSubject(null));g(this,"currentViewModel$",this._currentViewModel$.asObservable());this._context=e,this._localeService=t,this._univerInstanceService=n,this._init(),this._univerInstanceService.getCurrentTypeOfUnit$(r.UniverInstanceType.UNIVER_DOC).pipe(m.takeUntil(this.dispose$)).subscribe(s=>{s&&s.getUnitId()===this._context.unitId&&this._update(s)})}dispose(){super.dispose(),this._currentSkeletonBefore$.complete(),this._currentSkeleton$.complete()}getSkeleton(){return this._skeleton}getViewModel(){return this._docViewModel}_init(){const e=this._context.unit;this._update(e)}_update(e){const t=this._context.unitId;if(e.getBody()==null)return;this._docViewModel&&r.isInternalEditorID(t)?(this._docViewModel.reset(e),this._context.unit=e):this._docViewModel||(this._docViewModel=this._buildDocViewModel(e)),this._skeleton||(this._skeleton=this._buildSkeleton(this._docViewModel));const n=this._skeleton;n.calculate(),this._currentSkeletonBefore$.next(n),this._currentSkeleton$.next(n),this._currentViewModel$.next(this._docViewModel)}_buildSkeleton(e){return v.DocumentSkeleton.create(e,this._localeService)}_buildDocViewModel(e){return new v.DocumentViewModel(e)}},l.DocSkeletonManagerService=J([N(1,r.Inject(r.LocaleService)),N(2,r.IUniverInstanceService)],l.DocSkeletonManagerService);class U extends r.RxDisposable{constructor(){super();g(this,"_docStateChangeParams$",new m.BehaviorSubject(null));g(this,"docStateChangeParams$",this._docStateChangeParams$.asObservable())}emitStateChangeInfo(e){this._docStateChangeParams$.next(e)}dispose(){super.dispose(),this._docStateChangeParams$.complete()}}const $="doc.mutation.rich-text-editing",O={id:$,type:r.CommandType.MUTATION,handler:(c,i)=>{var X,F;const{unitId:e,segmentId:t="",actions:n,textRanges:s,prevTextRanges:o,trigger:a,noHistory:u,isCompositionEnd:d,noNeedSetTextRange:_,debounce:h,isEditing:I=!0,isSync:f,syncer:S}=i,D=c.get(r.IUniverInstanceService),R=c.get(v.IRenderManagerService),C=c.get(U),p=D.getUniverDocInstance(e),j=(X=R.getRenderById(e))==null?void 0:X.with(l.DocSkeletonManagerService).getViewModel();if(p==null||j==null)throw new Error(`DocumentDataModel or documentViewModel not found for unitId: ${e}`);const V=c.get(l.DocSelectionManagerService),P=(F=V.getDocRanges())!=null?F:[],he=!!p.getSnapshot().disabled;if(r.JSONX.isNoop(n)||n&&n.length===0||he)return{unitId:e,actions:[],textRanges:P};const A=r.JSONX.invertWithDoc(n,p.getSnapshot());p.apply(n),j.reset(p),!_&&s&&a!=null&&queueMicrotask(()=>{V.replaceDocRanges(s,{unitId:e,subUnitId:e},I,i.options)});const fe={commandId:$,unitId:e,segmentId:t,trigger:a,noHistory:u,debounce:h,redoState:{actions:n,textRanges:s},undoState:{actions:A,textRanges:o!=null?o:P},isCompositionEnd:d,isSync:f,syncer:S};return C.emitStateChangeInfo(fe),{unitId:e,actions:A,textRanges:P}}},Y={id:"doc.mutation.rename-doc",type:r.CommandType.MUTATION,handler:(c,i)=>{const t=c.get(r.IUniverInstanceService).getUnit(i.unitId,r.UniverInstanceType.UNIVER_DOC);return t?(t.setName(i.name),!0):!1}},K="docs.config",q={};var H=Object.defineProperty,Q=Object.getOwnPropertyDescriptor,Z=(c,i,e,t)=>{for(var n=t>1?void 0:t?Q(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&H(i,e,n),n},b=(c,i)=>(e,t)=>i(e,t,c);let T=class extends r.Disposable{constructor(c,i,e){super(),this._commandService=c,this._textSelectionManagerService=i,this._univerInstanceService=e,this._initSelectionChange()}_transformCustomRange(c,i){var o;const{startOffset:e,endOffset:t,collapsed:n}=i,s=(o=c.getCustomRanges())==null?void 0:o.filter(a=>!a.wholeEntity||e<=a.startIndex&&t>a.endIndex?!1:n?a.startIndex<e&&a.endIndex>=t:r.BuildTextUtils.range.isIntersects(e,t-1,a.startIndex,a.endIndex));if(s!=null&&s.length){let a=e,u=t;return s.forEach(d=>{a=Math.min(d.startIndex,a),u=Math.max(d.endIndex+1,u)}),{...i,startOffset:a,endOffset:u,collapsed:a===u}}return i}_initSelectionChange(){this.disposeWithMe(this._commandService.onCommandExecuted(c=>{if(c.id===M.id){const i=c.params,{unitId:e,ranges:t,isEditing:n}=i,s=this._univerInstanceService.getUnit(e);if(!s)return;const o=t.map(a=>this._transformCustomRange(s,a));o.some((a,u)=>t[u]!==a)&&this._textSelectionManagerService.replaceTextRanges(o,n)}}))}};T=Z([b(0,r.ICommandService),b(1,r.Inject(l.DocSelectionManagerService)),b(2,r.IUniverInstanceService)],T);var ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=(c,i,e,t)=>{for(var n=t>1?void 0:t?te(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&ee(i,e,n),n},B=(c,i)=>(e,t)=>i(e,t,c);const ie="DOCS_PLUGIN";l.UniverDocsPlugin=(w=class extends r.Plugin{constructor(i=q,e,t){super(),this._config=i,this._injector=e,this._configService=t;const{...n}=this._config;this._configService.setConfig(K,n)}onStarting(){this._initializeDependencies(),this._initializeCommands()}_initializeCommands(){[O,Y,M].forEach(i=>{this._injector.get(r.ICommandService).registerCommand(i)})}_initializeDependencies(){[[l.DocSelectionManagerService],[U],[T]].forEach(i=>this._injector.add(i))}onReady(){this._injector.get(T)}},g(w,"pluginName",ie),w),l.UniverDocsPlugin=ne([B(1,r.Inject(r.Injector)),B(2,r.IConfigService)],l.UniverDocsPlugin);const se=r.createInterceptorKey("CUSTOM_RANGE"),re=r.createInterceptorKey("CUSTOM_DECORATION"),x={CUSTOM_RANGE:se,CUSTOM_DECORATION:re};var oe=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,ae=(c,i,e,t)=>{for(var n=t>1?void 0:t?ce(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&oe(i,e,n),n},le=(c,i)=>(e,t)=>i(e,t,c);l.DocInterceptorService=class extends r.Disposable{constructor(e,t){super();g(this,"_interceptorsByName",new Map);this._context=e,this._docSkeletonManagerService=t;const n=this._docSkeletonManagerService.getViewModel(),s=n.getDataModel().getUnitId();if(s===r.DOCS_NORMAL_EDITOR_UNIT_ID_KEY||s===r.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY)return;this.disposeWithMe(this.interceptDocumentViewModel(n)),this.disposeWithMe(this.intercept(x.CUSTOM_RANGE,{priority:-1,handler:(a,u,d)=>d(a)}));let o=new r.DisposableCollection;n.segmentViewModels$.subscribe(a=>{o.dispose(),o=new r.DisposableCollection,a.forEach(u=>{o.add(this.interceptDocumentViewModel(u))})}),this.disposeWithMe(o)}intercept(e,t){const n=e;this._interceptorsByName.has(n)||this._interceptorsByName.set(n,[]);const s=this._interceptorsByName.get(n);return s.push(t),this._interceptorsByName.set(n,s.sort((o,a)=>{var u,d;return((u=a.priority)!=null?u:0)-((d=o.priority)!=null?d:0)})),this.disposeWithMe(r.toDisposable(()=>r.remove(this._interceptorsByName.get(n),t)))}fetchThroughInterceptors(e){const t=e,n=this._interceptorsByName.get(t);return r.composeInterceptors(n||[])}interceptDocumentViewModel(e){const t=new r.DisposableCollection;return t.add(e.registerCustomRangeInterceptor({getCustomRange:n=>{var s;return this.fetchThroughInterceptors(x.CUSTOM_RANGE)(e.getCustomRangeRaw(n),{index:n,unitId:e.getDataModel().getUnitId(),customRanges:(s=e.getDataModel().getCustomRanges())!=null?s:[]})},getCustomDecoration:n=>{var s;return this.fetchThroughInterceptors(x.CUSTOM_DECORATION)(e.getCustomDecorationRaw(n),{index:n,unitId:e.getDataModel().getUnitId(),customDecorations:(s=e.getDataModel().getCustomDecorations())!=null?s:[]})}})),t}},l.DocInterceptorService=ae([le(1,r.Inject(l.DocSkeletonManagerService))],l.DocInterceptorService);function y(c,i=""){if(!i)return["body"];const{headers:e,footers:t}=c.getSnapshot();if(e==null&&t==null)throw new Error("Document data model must have headers or footers when update by segment id");if((e==null?void 0:e[i])!=null)return["headers",i,"body"];if((t==null?void 0:t[i])!=null)return["footers",i,"body"];throw new Error("Segment id not found in headers or footers")}function ue(c,i,e){const{unitId:t,segmentId:n}=i,o=c.get(r.IUniverInstanceService).getUnit(t);if(!o)return!1;const a={id:O.id,params:{unitId:i.unitId,actions:[],textRanges:void 0}},u=r.JSONX.getInstance(),d=r.BuildTextUtils.customRange.add({...i,body:e});if(!d)return!1;const _=y(o,n);return a.params.actions=u.editOp(d.serialize(),_),a}function de(c,i){var p;const{rangeId:e,rangeType:t,wholeEntity:n,properties:s,unitId:o,selections:a}=i,u=c.get(l.DocSelectionManagerService),d=c.get(r.IUniverInstanceService),_=a!=null?a:u.getTextRanges({unitId:o,subUnitId:o}),h=(p=_==null?void 0:_[0])==null?void 0:p.segmentId;if(!(_!=null&&_.length))return!1;const I=d.getUnit(o,r.UniverInstanceType.UNIVER_DOC);if(!I)return!1;const f=I.getSelfOrHeaderFooterModel(h).getBody();if(!f)return!1;const S=r.BuildTextUtils.customRange.add({ranges:_,rangeId:e,rangeType:t,segmentId:h,wholeEntity:n,properties:s,body:f});if(!S)return!1;const D=r.JSONX.getInstance(),R={id:O.id,params:{unitId:o,actions:[],textRanges:S.selections,segmentId:h},textX:S},C=y(I,h);return R.params.actions=D.editOp(S.serialize(),C),R}function ge(c,i){const{unitId:e,segmentId:t,insert:n}=i,o=c.get(r.IUniverInstanceService).getUnit(e);if(!o)return!1;const a={id:O.id,params:{unitId:i.unitId,actions:[],textRanges:void 0,segmentId:t}},u=r.JSONX.getInstance(),d=r.BuildTextUtils.customRange.delete(c,{documentDataModel:o,rangeId:i.rangeId,insert:n,segmentId:t});if(!d)return!1;const _=y(o,t);return a.params.actions=u.editOp(d.serialize(),_),a.params.textRanges=d.selections,a}function _e(c,i){var S,D,R,C;const{unitId:e,body:t,doc:n}=i;let s=n;if(s||(s=c.get(r.IUniverInstanceService).getUnit(e)),!s)return!1;const o=(S=i.selection)==null?void 0:S.segmentId,a=(D=s.getSelfOrHeaderFooterModel(o))==null?void 0:D.getBody();if(!a)return!1;const u=c.get(l.DocSelectionManagerService),d=(R=i.selection)!=null?R:u.getActiveTextRange();if(!d||!a)return!1;const _=(C=i.textRanges)!=null?C:[{startOffset:d.startOffset+t.dataStream.length,endOffset:d.startOffset+t.dataStream.length,collapsed:!0,segmentId:o}],h=r.BuildTextUtils.selection.replace({selection:d,body:t,doc:s});if(!h)return!1;const I={id:O.id,params:{unitId:e,actions:[],textRanges:_,debounce:!0,segmentId:o},textX:h},f=r.JSONX.getInstance();return I.params.actions=f.editOp(h.serialize()),I}l.DOC_INTERCEPTOR_POINT=x,l.DocStateEmitService=U,l.RichTextEditingMutation=O,l.SetTextSelectionsOperation=M,l.addCustomRangeBySelectionFactory=de,l.addCustomRangeFactory=ue,l.deleteCustomRangeFactory=ge,l.replaceSelectionFactory=_e,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
|
88
|
+
(function(l,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("@univerjs/core"),require("@univerjs/engine-render"),require("rxjs")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/engine-render","rxjs"],r):(l=typeof globalThis<"u"?globalThis:l||self,r(l.UniverDocs={},l.UniverCore,l.UniverEngineRender,l.rxjs))})(this,function(l,r,v,m){"use strict";var Se=Object.defineProperty;var Ie=(l,r,v)=>r in l?Se(l,r,{enumerable:!0,configurable:!0,writable:!0,value:v}):l[r]=v;var g=(l,r,v)=>Ie(l,typeof r!="symbol"?r+"":r,v);var w;const M={id:"doc.operation.set-selections",type:r.CommandType.OPERATION,handler:()=>!0};var G=Object.defineProperty,k=Object.getOwnPropertyDescriptor,z=(c,i,e,t)=>{for(var n=t>1?void 0:t?k(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&G(i,e,n),n},E=(c,i)=>(e,t)=>i(e,t,c);l.DocSelectionManagerService=class extends r.RxDisposable{constructor(e,t){super();g(this,"_currentSelection",null);g(this,"_textSelectionInfo",new Map);g(this,"_textSelection$",new m.Subject);g(this,"textSelection$",this._textSelection$.asObservable());g(this,"_refreshSelection$",new m.BehaviorSubject(null));g(this,"refreshSelection$",this._refreshSelection$.asObservable());this._commandService=e,this._univerInstanceService=t,this._listenCurrentUnit()}_listenCurrentUnit(){this._univerInstanceService.getCurrentTypeOfUnit$(r.UniverInstanceType.UNIVER_DOC).pipe(m.takeUntil(this.dispose$)).subscribe(e=>{if(e==null)return;const t=e.getUnitId();this._setCurrentSelectionNotRefresh({unitId:t,subUnitId:t})})}__getCurrentSelection(){return this._currentSelection}getSelectionInfo(e=this._currentSelection){return this._getTextRanges(e)}refreshSelection(e=this._currentSelection){e!=null&&this._refresh(e)}__TEST_ONLY_setCurrentSelection(e){this._currentSelection=e,this._refresh(e)}getTextRanges(e=this._currentSelection){var t;return(t=this._getTextRanges(e))==null?void 0:t.textRanges}getRectRanges(e=this._currentSelection){var t;return(t=this._getTextRanges(e))==null?void 0:t.rectRanges}getDocRanges(e=this._currentSelection){var o,a;const t=(o=this.getTextRanges(e))!=null?o:[],n=(a=this.getRectRanges(e))!=null?a:[];return[...t,...n].filter(u=>u.startOffset!=null&&u.endOffset!=null).sort((u,d)=>u.startOffset>d.startOffset?1:u.startOffset<d.startOffset?-1:0)}getActiveTextRange(){const e=this._getTextRanges(this._currentSelection);if(e==null)return;const{textRanges:t}=e;return t.find(n=>n.isActive)}getActiveRectRange(){const e=this._getTextRanges(this._currentSelection);if(e==null)return;const{rectRanges:t}=e;return t.find(n=>n.isActive)}__TEST_ONLY_add(e,t=!0){this._currentSelection!=null&&this._addByParam({...this._currentSelection,textRanges:e,rectRanges:[],segmentId:"",segmentPage:-1,isEditing:t,style:v.NORMAL_TEXT_SELECTION_PLUGIN_STYLE})}replaceTextRanges(e,t=!0,n){return this.replaceDocRanges(e,this._currentSelection,t,n)}replaceDocRanges(e,t=this._currentSelection,n=!0,s){if(t==null)return;const{unitId:o,subUnitId:a}=t;this._refreshSelection$.next({unitId:o,subUnitId:a,docRanges:e,isEditing:n,options:s})}__replaceTextRangesWithNoRefresh(e,t){if(this._currentSelection==null)return;const n={...e,...t};this._replaceByParam(n),this._textSelection$.next(n);const{unitId:s,subUnitId:o,segmentId:a,style:u,textRanges:d,rectRanges:_,isEditing:h}=n,I=[...d,..._].filter(f=>f.startOffset!=null&&f.endOffset!=null).sort((f,S)=>f.startOffset>S.startOffset?1:f.startOffset<S.startOffset?-1:0);this._commandService.executeCommand(M.id,{unitId:s,subUnitId:o,segmentId:a,style:u,isEditing:h,ranges:I})}dispose(){this._textSelection$.complete()}_setCurrentSelectionNotRefresh(e){this._currentSelection=e}_getTextRanges(e){var s;if(e==null)return;const{unitId:t,subUnitId:n=""}=e;return(s=this._textSelectionInfo.get(t))==null?void 0:s.get(n)}_refresh(e){const t=this._getTextRanges(e);if(t==null)return;const{textRanges:n,rectRanges:s}=t,o=[...n,...s],{unitId:a,subUnitId:u}=e;this._refreshSelection$.next({unitId:a,subUnitId:u,docRanges:o,isEditing:!1})}_replaceByParam(e){const{unitId:t,subUnitId:n,...s}=e;this._textSelectionInfo.has(t)||this._textSelectionInfo.set(t,new Map),this._textSelectionInfo.get(t).set(n,{...s})}_addByParam(e){const{unitId:t,subUnitId:n,...s}=e;this._textSelectionInfo.has(t)||this._textSelectionInfo.set(t,new Map);const o=this._textSelectionInfo.get(t);o.has(n)?o.get(n).textRanges.push(...e.textRanges):o.set(n,{...s})}},l.DocSelectionManagerService=z([E(0,r.ICommandService),E(1,r.IUniverInstanceService)],l.DocSelectionManagerService);var W=Object.defineProperty,J=Object.getOwnPropertyDescriptor,Y=(c,i,e,t)=>{for(var n=t>1?void 0:t?J(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&W(i,e,n),n},N=(c,i)=>(e,t)=>i(e,t,c);l.DocSkeletonManagerService=class extends r.RxDisposable{constructor(e,t,n){super();g(this,"_skeleton");g(this,"_docViewModel");g(this,"_currentSkeleton$",new m.BehaviorSubject(null));g(this,"currentSkeleton$",this._currentSkeleton$.asObservable());g(this,"_currentSkeletonBefore$",new m.BehaviorSubject(null));g(this,"currentSkeletonBefore$",this._currentSkeletonBefore$.asObservable());g(this,"_currentViewModel$",new m.BehaviorSubject(null));g(this,"currentViewModel$",this._currentViewModel$.asObservable());this._context=e,this._localeService=t,this._univerInstanceService=n,this._init(),this._univerInstanceService.getCurrentTypeOfUnit$(r.UniverInstanceType.UNIVER_DOC).pipe(m.takeUntil(this.dispose$)).subscribe(s=>{s&&s.getUnitId()===this._context.unitId&&this._update(s)})}dispose(){super.dispose(),this._currentSkeletonBefore$.complete(),this._currentSkeleton$.complete()}getSkeleton(){return this._skeleton}getViewModel(){return this._docViewModel}_init(){const e=this._context.unit;this._update(e)}_update(e){const t=this._context.unitId;if(e.getBody()==null)return;this._docViewModel&&r.isInternalEditorID(t)?(this._docViewModel.reset(e),this._context.unit=e):this._docViewModel||(this._docViewModel=this._buildDocViewModel(e)),this._skeleton||(this._skeleton=this._buildSkeleton(this._docViewModel));const n=this._skeleton;n.calculate(),this._currentSkeletonBefore$.next(n),this._currentSkeleton$.next(n),this._currentViewModel$.next(this._docViewModel)}_buildSkeleton(e){return v.DocumentSkeleton.create(e,this._localeService)}_buildDocViewModel(e){return new v.DocumentViewModel(e)}},l.DocSkeletonManagerService=Y([N(1,r.Inject(r.LocaleService)),N(2,r.IUniverInstanceService)],l.DocSkeletonManagerService);class U extends r.RxDisposable{constructor(){super();g(this,"_docStateChangeParams$",new m.BehaviorSubject(null));g(this,"docStateChangeParams$",this._docStateChangeParams$.asObservable())}emitStateChangeInfo(e){this._docStateChangeParams$.next(e)}dispose(){super.dispose(),this._docStateChangeParams$.complete()}}const $="doc.mutation.rich-text-editing",O={id:$,type:r.CommandType.MUTATION,handler:(c,i)=>{var F,L;const{unitId:e,segmentId:t="",actions:n,textRanges:s,prevTextRanges:o,trigger:a,noHistory:u,isCompositionEnd:d,noNeedSetTextRange:_,debounce:h,isEditing:I=!0,isSync:f,syncer:S}=i,D=c.get(r.IUniverInstanceService),R=c.get(v.IRenderManagerService),C=c.get(U),p=D.getUniverDocInstance(e),V=(F=R.getRenderById(e))==null?void 0:F.with(l.DocSkeletonManagerService).getViewModel();if(p==null||V==null)throw new Error(`DocumentDataModel or documentViewModel not found for unitId: ${e}`);const A=c.get(l.DocSelectionManagerService),P=(L=A.getDocRanges())!=null?L:[],he=!!p.getSnapshot().disabled;if(r.JSONX.isNoop(n)||n&&n.length===0||he)return{unitId:e,actions:[],textRanges:P};const X=r.JSONX.invertWithDoc(n,p.getSnapshot());p.apply(n),V.reset(p),!_&&s&&a!=null&&queueMicrotask(()=>{A.replaceDocRanges(s,{unitId:e,subUnitId:e},I,i.options)});const fe={commandId:$,unitId:e,segmentId:t,trigger:a,noHistory:u,debounce:h,redoState:{actions:n,textRanges:s},undoState:{actions:X,textRanges:o!=null?o:P},isCompositionEnd:d,isSync:f,syncer:S};return C.emitStateChangeInfo(fe),{unitId:e,actions:X,textRanges:P}}},K={id:"doc.mutation.rename-doc",type:r.CommandType.MUTATION,handler:(c,i)=>{const t=c.get(r.IUniverInstanceService).getUnit(i.unitId,r.UniverInstanceType.UNIVER_DOC);return t?(t.setName(i.name),!0):!1}},q="docs.config",B={};var H=Object.defineProperty,Q=Object.getOwnPropertyDescriptor,Z=(c,i,e,t)=>{for(var n=t>1?void 0:t?Q(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&H(i,e,n),n},b=(c,i)=>(e,t)=>i(e,t,c);let T=class extends r.Disposable{constructor(c,i,e){super(),this._commandService=c,this._textSelectionManagerService=i,this._univerInstanceService=e,this._initSelectionChange()}_transformCustomRange(c,i){var o;const{startOffset:e,endOffset:t,collapsed:n}=i,s=(o=c.getCustomRanges())==null?void 0:o.filter(a=>!a.wholeEntity||e<=a.startIndex&&t>a.endIndex?!1:n?a.startIndex<e&&a.endIndex>=t:r.BuildTextUtils.range.isIntersects(e,t-1,a.startIndex,a.endIndex));if(s!=null&&s.length){let a=e,u=t;return s.forEach(d=>{a=Math.min(d.startIndex,a),u=Math.max(d.endIndex+1,u)}),{...i,startOffset:a,endOffset:u,collapsed:a===u}}return i}_initSelectionChange(){this.disposeWithMe(this._commandService.onCommandExecuted(c=>{if(c.id===M.id){const i=c.params,{unitId:e,ranges:t,isEditing:n}=i,s=this._univerInstanceService.getUnit(e);if(!s)return;const o=t.map(a=>this._transformCustomRange(s,a));o.some((a,u)=>t[u]!==a)&&this._textSelectionManagerService.replaceTextRanges(o,n)}}))}};T=Z([b(0,r.ICommandService),b(1,r.Inject(l.DocSelectionManagerService)),b(2,r.IUniverInstanceService)],T);var ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=(c,i,e,t)=>{for(var n=t>1?void 0:t?te(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&ee(i,e,n),n},j=(c,i)=>(e,t)=>i(e,t,c);const ie="DOCS_PLUGIN";l.UniverDocsPlugin=(w=class extends r.Plugin{constructor(i=B,e,t){super(),this._config=i,this._injector=e,this._configService=t;const{...n}=r.merge({},B,this._config);this._configService.setConfig(q,n)}onStarting(){this._initializeDependencies(),this._initializeCommands()}_initializeCommands(){[O,K,M].forEach(i=>{this._injector.get(r.ICommandService).registerCommand(i)})}_initializeDependencies(){[[l.DocSelectionManagerService],[U],[T]].forEach(i=>this._injector.add(i))}onReady(){this._injector.get(T)}},g(w,"pluginName",ie),w),l.UniverDocsPlugin=ne([j(1,r.Inject(r.Injector)),j(2,r.IConfigService)],l.UniverDocsPlugin);const se=r.createInterceptorKey("CUSTOM_RANGE"),re=r.createInterceptorKey("CUSTOM_DECORATION"),x={CUSTOM_RANGE:se,CUSTOM_DECORATION:re};var oe=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,ae=(c,i,e,t)=>{for(var n=t>1?void 0:t?ce(i,e):i,s=c.length-1,o;s>=0;s--)(o=c[s])&&(n=(t?o(i,e,n):o(n))||n);return t&&n&&oe(i,e,n),n},le=(c,i)=>(e,t)=>i(e,t,c);l.DocInterceptorService=class extends r.Disposable{constructor(e,t){super();g(this,"_interceptorsByName",new Map);this._context=e,this._docSkeletonManagerService=t;const n=this._docSkeletonManagerService.getViewModel(),s=n.getDataModel().getUnitId();if(s===r.DOCS_NORMAL_EDITOR_UNIT_ID_KEY||s===r.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY)return;this.disposeWithMe(this.interceptDocumentViewModel(n)),this.disposeWithMe(this.intercept(x.CUSTOM_RANGE,{priority:-1,handler:(a,u,d)=>d(a)}));let o=new r.DisposableCollection;n.segmentViewModels$.subscribe(a=>{o.dispose(),o=new r.DisposableCollection,a.forEach(u=>{o.add(this.interceptDocumentViewModel(u))})}),this.disposeWithMe(o)}intercept(e,t){const n=e;this._interceptorsByName.has(n)||this._interceptorsByName.set(n,[]);const s=this._interceptorsByName.get(n);return s.push(t),this._interceptorsByName.set(n,s.sort((o,a)=>{var u,d;return((u=a.priority)!=null?u:0)-((d=o.priority)!=null?d:0)})),this.disposeWithMe(r.toDisposable(()=>r.remove(this._interceptorsByName.get(n),t)))}fetchThroughInterceptors(e){const t=e,n=this._interceptorsByName.get(t);return r.composeInterceptors(n||[])}interceptDocumentViewModel(e){const t=new r.DisposableCollection;return t.add(e.registerCustomRangeInterceptor({getCustomRange:n=>{var s;return this.fetchThroughInterceptors(x.CUSTOM_RANGE)(e.getCustomRangeRaw(n),{index:n,unitId:e.getDataModel().getUnitId(),customRanges:(s=e.getDataModel().getCustomRanges())!=null?s:[]})},getCustomDecoration:n=>{var s;return this.fetchThroughInterceptors(x.CUSTOM_DECORATION)(e.getCustomDecorationRaw(n),{index:n,unitId:e.getDataModel().getUnitId(),customDecorations:(s=e.getDataModel().getCustomDecorations())!=null?s:[]})}})),t}},l.DocInterceptorService=ae([le(1,r.Inject(l.DocSkeletonManagerService))],l.DocInterceptorService);function y(c,i=""){if(!i)return["body"];const{headers:e,footers:t}=c.getSnapshot();if(e==null&&t==null)throw new Error("Document data model must have headers or footers when update by segment id");if((e==null?void 0:e[i])!=null)return["headers",i,"body"];if((t==null?void 0:t[i])!=null)return["footers",i,"body"];throw new Error("Segment id not found in headers or footers")}function ue(c,i,e){const{unitId:t,segmentId:n}=i,o=c.get(r.IUniverInstanceService).getUnit(t);if(!o)return!1;const a={id:O.id,params:{unitId:i.unitId,actions:[],textRanges:void 0}},u=r.JSONX.getInstance(),d=r.BuildTextUtils.customRange.add({...i,body:e});if(!d)return!1;const _=y(o,n);return a.params.actions=u.editOp(d.serialize(),_),a}function de(c,i){var p;const{rangeId:e,rangeType:t,wholeEntity:n,properties:s,unitId:o,selections:a}=i,u=c.get(l.DocSelectionManagerService),d=c.get(r.IUniverInstanceService),_=a!=null?a:u.getTextRanges({unitId:o,subUnitId:o}),h=(p=_==null?void 0:_[0])==null?void 0:p.segmentId;if(!(_!=null&&_.length))return!1;const I=d.getUnit(o,r.UniverInstanceType.UNIVER_DOC);if(!I)return!1;const f=I.getSelfOrHeaderFooterModel(h).getBody();if(!f)return!1;const S=r.BuildTextUtils.customRange.add({ranges:_,rangeId:e,rangeType:t,segmentId:h,wholeEntity:n,properties:s,body:f});if(!S)return!1;const D=r.JSONX.getInstance(),R={id:O.id,params:{unitId:o,actions:[],textRanges:S.selections,segmentId:h},textX:S},C=y(I,h);return R.params.actions=D.editOp(S.serialize(),C),R}function ge(c,i){const{unitId:e,segmentId:t,insert:n}=i,o=c.get(r.IUniverInstanceService).getUnit(e);if(!o)return!1;const a={id:O.id,params:{unitId:i.unitId,actions:[],textRanges:void 0,segmentId:t}},u=r.JSONX.getInstance(),d=r.BuildTextUtils.customRange.delete(c,{documentDataModel:o,rangeId:i.rangeId,insert:n,segmentId:t});if(!d)return!1;const _=y(o,t);return a.params.actions=u.editOp(d.serialize(),_),a.params.textRanges=d.selections,a}function _e(c,i){var S,D,R,C;const{unitId:e,body:t,doc:n}=i;let s=n;if(s||(s=c.get(r.IUniverInstanceService).getUnit(e)),!s)return!1;const o=(S=i.selection)==null?void 0:S.segmentId,a=(D=s.getSelfOrHeaderFooterModel(o))==null?void 0:D.getBody();if(!a)return!1;const u=c.get(l.DocSelectionManagerService),d=(R=i.selection)!=null?R:u.getActiveTextRange();if(!d||!a)return!1;const _=(C=i.textRanges)!=null?C:[{startOffset:d.startOffset+t.dataStream.length,endOffset:d.startOffset+t.dataStream.length,collapsed:!0,segmentId:o}],h=r.BuildTextUtils.selection.replace({selection:d,body:t,doc:s});if(!h)return!1;const I={id:O.id,params:{unitId:e,actions:[],textRanges:_,debounce:!0,segmentId:o},textX:h},f=r.JSONX.getInstance();return I.params.actions=f.editOp(h.serialize()),I}l.DOC_INTERCEPTOR_POINT=x,l.DocStateEmitService=U,l.RichTextEditingMutation=O,l.SetTextSelectionsOperation=M,l.addCustomRangeBySelectionFactory=de,l.addCustomRangeFactory=ue,l.deleteCustomRangeFactory=ge,l.replaceSelectionFactory=_e,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
|
|
61
89
|
|
|
62
90
|
|
|
63
91
|
// @univerjs/docs-ui/index
|
|
64
|
-
(function(C,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("@univerjs/core"),require("@univerjs/docs"),require("@univerjs/engine-render"),require("react"),require("@univerjs/engine-formula"),require("rxjs"),require("@univerjs/ui"),require("rxjs/operators"),require("@univerjs/design"),require("@univerjs/drawing")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/docs","@univerjs/engine-render","react","@univerjs/engine-formula","rxjs","@univerjs/ui","rxjs/operators","@univerjs/design","@univerjs/drawing"],s):(C=typeof globalThis<"u"?globalThis:C||self,s(C.UniverDocsUi={},C.UniverCore,C.UniverDocs,C.UniverEngineRender,C.React,C.UniverEngineFormula,C.rxjs,C.UniverUi,C.rxjs.operators,C.UniverDesign,C.UniverDrawing))})(this,function(C,s,D,M,Q,Me,N,y,yt,se,jn){"use strict";var td=Object.defineProperty;var nd=(C,s,D)=>s in C?td(C,s,{enumerable:!0,configurable:!0,writable:!0,value:D}):C[s]=D;var R=(C,s,D)=>nd(C,typeof s!="symbol"?s+"":s,D);function
|
|
92
|
+
(function(C,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("@univerjs/core"),require("@univerjs/docs"),require("@univerjs/engine-render"),require("react"),require("@univerjs/engine-formula"),require("rxjs"),require("@univerjs/ui"),require("rxjs/operators"),require("@univerjs/design"),require("@univerjs/drawing")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/docs","@univerjs/engine-render","react","@univerjs/engine-formula","rxjs","@univerjs/ui","rxjs/operators","@univerjs/design","@univerjs/drawing"],s):(C=typeof globalThis<"u"?globalThis:C||self,s(C.UniverDocsUi={},C.UniverCore,C.UniverDocs,C.UniverEngineRender,C.React,C.UniverEngineFormula,C.rxjs,C.UniverUi,C.rxjs.operators,C.UniverDesign,C.UniverDrawing))})(this,function(C,s,D,M,Q,Me,N,y,yt,se,jn){"use strict";var td=Object.defineProperty;var nd=(C,s,D)=>s in C?td(C,s,{enumerable:!0,configurable:!0,writable:!0,value:D}):C[s]=D;var R=(C,s,D)=>nd(C,typeof s!="symbol"?s+"":s,D);function Js(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const Zs=Js(Q);var qs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,ea=(i,t,e,n)=>{for(var o=n>1?void 0:n?$s(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&qs(t,e,o),o},no=(i,t)=>(e,n)=>t(e,n,i);function ta(i,t){var r,c;const{startOffset:e,endOffset:n}=i,o=[];let a=-1;for(let l=0;l<t.length;l++){const A=t[l],d=t[l-1],{startIndex:u}=A;e>a&&e<=u||n>a&&n<=u?o.push({...A,paragraphStart:((r=d==null?void 0:d.startIndex)!=null?r:-1)+1,paragraphEnd:A.startIndex}):u>=e&&u<=n&&o.push({...A,paragraphStart:((c=d==null?void 0:d.startIndex)!=null?c:-1)+1,paragraphEnd:A.startIndex}),a=u}return o}C.DocAutoFormatService=class extends s.Disposable{constructor(e,n){super();R(this,"_matches",new Map);this._univerInstanceService=e,this._textSelectionManagerService=n}registerAutoFormat(e){const n=this._matches.get(e.id);return n?(n.push(e),n.sort((o,a)=>{var r,c;return((r=a.priority)!=null?r:0)-((c=o.priority)!=null?c:0)})):this._matches.set(e.id,[e]),s.toDisposable(()=>{const o=this._matches.get(e.id);if(o){const a=o.findIndex(r=>r===e);a>=0&&o.splice(a,1)}})}onAutoFormat(e,n){var l,A,d,u,m,h,f;const o=(l=this._matches.get(e))!=null?l:[],a=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=this._textSelectionManagerService.getDocRanges(),c=(A=r.find(g=>g.isActive))!=null?A:r[0];if(a&&c){const g=a.getSelfOrHeaderFooterModel(c.segmentId),p={unit:g,selection:c,isBody:!c.segmentId,paragraphs:ta(c,(u=(d=g.getBody())==null?void 0:d.paragraphs)!=null?u:[]),customRanges:s.BuildTextUtils.customRange.getCustomRangesInterestsWithSelection(c,(h=(m=g.getBody())==null?void 0:m.customRanges)!=null?h:[]),commandId:e,commandParams:n},S=o.find(I=>I.match(p));return(f=S==null?void 0:S.getMutations(p))!=null?f:[]}return[]}},C.DocAutoFormatService=ea([no(0,s.IUniverInstanceService),no(1,s.Inject(D.DocSelectionManagerService))],C.DocAutoFormatService);const io={undo:!0,redo:!0,font:!0,fontSize:!0,bold:!0,italic:!0,strikethrough:!0,underline:!0,textColor:!0,fillColor:!0,horizontalAlignMode:!0,verticalAlignMode:!0,textWrapMode:!0,textRotateMode:!0},oo={outerLeft:!1,outerRight:!1,header:!0,footer:!0,innerLeft:!1,innerRight:!1,frozenHeaderLT:!1,frozenHeaderRT:!1,frozenHeaderLM:!1,frozenContent:!1,infoBar:!0,toolbar:!0},so="DOC_UI_PLUGIN";var Ie=(i=>(i.MAIN="__Document_Render_Main__",i.BACKGROUND="__Document_Render_Background__",i))(Ie||{}),be=(i=>(i.VIEW_MAIN="viewMain",i.VIEW_TOP="viewTop",i.VIEW_LEFT="viewLeft",i.VIEW_LEFT_TOP="viewLeftTop",i))(be||{});const ao=0,Yt=2,ro=4,Wn=10,na="normalTextSelectionPluginName";function Be(i){const{mainComponent:t,scene:e,engine:n,components:o}=i,a=t,r=o.get(Ie.BACKGROUND);return{document:a,docBackground:r,scene:e,engine:n}}function co(i,t){const e=i.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(!e)return null;const n=e.getUnitId(),o=t.getRenderById(n);if(o==null)return;const{mainComponent:a,scene:r,engine:c,components:l}=o,A=a,d=l.get(Ie.BACKGROUND);return{document:A,docBackground:d,scene:r,engine:c}}function ia(i,t){const e=t.getRenderById(i);if(e==null)return;const{mainComponent:n,scene:o,engine:a,components:r}=e,c=n,l=r.get(Ie.BACKGROUND);return{document:c,docBackground:l,scene:o,engine:a}}function lo(i){const{unitId:t,ranges:e,id:n,type:o,segmentId:a}=i,r={id:D.RichTextEditingMutation.id,params:{unitId:t,actions:[],textRanges:void 0,segmentId:a}},c=s.JSONX.getInstance(),l=s.BuildTextUtils.customDecoration.add({ranges:e,id:n,type:o});return r.params.actions=c.editOp(l.serialize()),r}function oa(i,t){const{segmentId:e,id:n,type:o}=t,a=i.get(D.DocSelectionManagerService),c=i.get(s.IUniverInstanceService).getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(!c)return!1;const l=c.getUnitId(),A=a.getTextRanges({unitId:l,subUnitId:l});return!A||!c.getBody()?!1:lo({unitId:l,ranges:A,id:n,type:o,segmentId:e})}function sa(i,t){const{unitId:e,id:n,segmentId:o}=t,r=i.get(s.IUniverInstanceService).getUnit(e);if(!r)return!1;const c={id:D.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:void 0,segmentId:o}},l=s.BuildTextUtils.customDecoration.delete({id:n,segmentId:o,documentDataModel:r});if(!l)return!1;const A=s.JSONX.getInstance();return c.params.actions=A.editOp(l.serialize()),c}function aa(i,t){return t.some(e=>i.startIndex>e.startIndex&&i.startIndex<e.endIndex)}function Xt(i,t,e,n){const o={st:0,ed:0,ts:e};for(let a=i.length-1;a>=0;a--){const r=i[a],{st:c,ed:l}=r;t>c&&t<=l&&(o.st=c,o.ed=l,o.ts={...o.ts,...r.ts})}return n&&(o.ts={...o.ts,...n}),o}function zn(i,t,e){return e?i.find(n=>t>=n.startIndex&&t<=n.endIndex+1):i.find(n=>t>n.startIndex&&t<=n.endIndex)}function Gn(i,t){return i.filter(e=>t>e.startIndex&&t<=e.endIndex)}function ra(i){return{left:i.positionH.posOffset,top:i.positionV.posOffset,width:i.size.width,height:i.size.height}}function ca(i,t=0,e=0){return{size:{width:i.width,height:i.height},positionH:{relativeFrom:s.ObjectRelativeFromH.MARGIN,posOffset:(i.left||0)-t},positionV:{relativeFrom:s.ObjectRelativeFromV.PAGE,posOffset:(i.top||0)-e},angle:i.angle||0}}function me(i,t){var n;return(n=i.get(M.IRenderManagerService).getRenderById(t))==null?void 0:n.with(D.DocSkeletonManagerService)}function te(i,t=""){if(!t)return["body"];const{headers:e,footers:n}=i.getSnapshot();if(e==null&&n==null)throw new Error("Document data model must have headers or footers when update by segment id");if((e==null?void 0:e[t])!=null)return["headers",t,"body"];if((n==null?void 0:n[t])!=null)return["footers",t,"body"];throw new Error("Segment id not found in headers or footers")}var Yn={exports:{}},Rt={};/**
|
|
65
93
|
* @license React
|
|
66
94
|
* react-jsx-runtime.production.min.js
|
|
67
95
|
*
|
|
@@ -69,9 +97,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
69
97
|
*
|
|
70
98
|
* This source code is licensed under the MIT license found in the
|
|
71
99
|
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var Ao;function
|
|
100
|
+
*/var Ao;function la(){if(Ao)return Rt;Ao=1;var i=Q,t=Symbol.for("react.element"),e=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function r(c,l,A){var d,u={},m=null,h=null;A!==void 0&&(m=""+A),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=l.ref);for(d in l)n.call(l,d)&&!a.hasOwnProperty(d)&&(u[d]=l[d]);if(c&&c.defaultProps)for(d in l=c.defaultProps,l)u[d]===void 0&&(u[d]=l[d]);return{$$typeof:t,type:c,key:m,ref:h,props:u,_owner:o.current}}return Rt.Fragment=e,Rt.jsx=r,Rt.jsxs=r,Rt}var uo;function Aa(){return uo||(uo=1,Yn.exports=la()),Yn.exports}var P=Aa();function da(i){if(!i)return!1;const t=window.getComputedStyle(i);if(t.display==="none"||t.visibility==="hidden"||t.opacity==="0")return!1;const e=i.getBoundingClientRect();return!(e.width===0||e.height===0||e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth)}const Xn={id:"doc.command-replace-snapshot",type:s.CommandType.COMMAND,handler:async(i,t)=>{const{unitId:e,snapshot:n,textRanges:o,segmentId:a="",options:r}=t,c=i.get(s.IUniverInstanceService),l=i.get(s.ICommandService),A=i.get(D.DocSelectionManagerService),d=c.getUnit(e,s.UniverInstanceType.UNIVER_DOC),u=d==null?void 0:d.getSelfOrHeaderFooterModel(a).getSnapshot();if(d==null||u==null)return!1;const{body:m,tableSource:h,footers:f,headers:g,lists:p,drawings:S,drawingsOrder:I}=n,{body:E,tableSource:T,footers:O,headers:v,lists:b,drawings:_,drawingsOrder:B}=u;if(m==null||E==null)return!1;if(s.Tools.diffValue(m,E)&&o)return A.replaceDocRanges(o,{unitId:e,subUnitId:e},!1),!0;const w={id:D.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:o}};r&&(w.params.options=r);const x=[],U=s.JSONX.getInstance();if(!s.Tools.diffValue(m,E)){const F=U.replaceOp(["body"],E,m);F!=null&&x.push(F)}if(!s.Tools.diffValue(h,T)){const F=U.replaceOp(["tableSource"],T,h);F!=null&&x.push(F)}if(!s.Tools.diffValue(f,O)){const F=U.replaceOp(["footers"],O,f);F!=null&&x.push(F)}if(!s.Tools.diffValue(g,v)){const F=U.replaceOp(["headers"],v,g);F!=null&&x.push(F)}if(!s.Tools.diffValue(p,b)){const F=U.replaceOp(["lists"],b,p);F!=null&&x.push(F)}if(!s.Tools.diffValue(S,_)){const F=U.replaceOp(["drawings"],_,S);F!=null&&x.push(F)}if(!s.Tools.diffValue(I,B)){const F=U.replaceOp(["drawingsOrder"],B,I);F!=null&&x.push(F)}return w.params.actions=x.reduce((F,H)=>s.JSONX.compose(F,H),null),!!l.syncExecuteCommand(w.id,w.params)}},ho={id:"doc.command-replace-content",type:s.CommandType.COMMAND,handler:async(i,t)=>{const{unitId:e,body:n,textRanges:o,segmentId:a="",options:r}=t,c=i.get(s.IUniverInstanceService),l=i.get(s.ICommandService),A=i.get(D.DocSelectionManagerService),d=c.getUnit(e,s.UniverInstanceType.UNIVER_DOC),u=d==null?void 0:d.getSelfOrHeaderFooterModel(a).getSnapshot().body;if(d==null||u==null)return!1;const m=go(e,a,d,u,n);return m.params.textRanges=o,r&&(m.params.options=r),m.params.actions==null&&o?(A.replaceDocRanges(o,{unitId:e,subUnitId:e},!1),!0):!!l.syncExecuteCommand(m.id,m.params)}},Kn={id:"doc.command-cover-content",type:s.CommandType.COMMAND,handler:async(i,t)=>{const{unitId:e,body:n,segmentId:o=""}=t,a=i.get(s.IUniverInstanceService),r=i.get(s.ICommandService),c=i.get(s.IUndoRedoService),l=a.getUniverDocInstance(e),A=l==null?void 0:l.getSnapshot().body;if(l==null||A==null)return!1;const d=go(e,o,l,A,n);return d.params.noNeedSetTextRange=!0,d.params.noHistory=!0,r.syncExecuteCommand(d.id,d.params),c.clearUndoRedo(e),!0}};function ua(i,t,e,n){const o=new s.TextX,a=s.JSONX.getInstance(),r=(e==null?void 0:e.dataStream.length)-2;r>0&&o.push({t:s.TextXActionType.DELETE,len:r}),n.dataStream.length>0&&o.push({t:s.TextXActionType.INSERT,body:n,len:n.dataStream.length});const c=te(t,i);return a.editOp(o.serialize(),c)}function go(i,t,e,n,o){const a={id:D.RichTextEditingMutation.id,params:{unitId:i,actions:[],textRanges:[]}},r=ua(t,e,n,o);return a.params.actions=r,a}s.CommandType.COMMAND;var Kt=(i=>(i[i.page=0]="page",i[i.section=1]="section",i[i.column=2]="column",i[i.line=3]="line",i[i.divide=4]="divide",i[i.glyph=5]="glyph",i))(Kt||{});const rt={page:0,section:1,column:2,line:3,divide:4,glyph:5};function Jn(i,t){return i.page>t.page?!1:i.page<t.page?!0:i.section>t.section?!1:i.section<t.section?!0:i.column>t.column?!1:i.column<t.column?!0:i.line>t.line?!1:i.line<t.line?!0:i.divide>t.divide?!1:i.divide<t.divide?!0:i.glyph>t.glyph?!1:(i.glyph<t.glyph,!0)}function Zn(i,t){return Jn(i,t)?{start:i,end:t}:{start:t,end:i}}function qn(i){const t=i.length;if(t===0)return;const e=i[0],n=i[t-1],o=i.length===1&&e.collapsed;return{startOffset:e.startOffset,endOffset:n.endOffset,collapsed:o}}function ha(i,t,e,n){let o=n,a=n;for(let r=0;r<i.length;r++){const l=i[r].count;r<t&&(o+=l),r<e&&(a+=l)}return{startOffset:o,endOffset:a}}function $n(i){const{startX:t,startY:e,endX:n,endY:o}=i,a=[];return a.push({x:t,y:e}),a.push({x:n,y:e}),a.push({x:n,y:o}),a.push({x:t,y:o}),a.push({x:t,y:e}),a}class De{constructor(t,e){R(this,"_liquid",new M.Liquid);R(this,"_currentStartState",{page:0,section:0,column:0,line:0,divide:0,glyph:0});R(this,"_currentEndState",{page:0,section:0,column:0,line:0,divide:0,glyph:0});this._documentOffsetConfig=t,this._docSkeleton=e}getRangePointData(t,e){const n=[],o=[],a=[];if(t==null||e==null)return{borderBoxPointGroup:n,contentBoxPointGroup:o,cursorList:a};if(!this._isValidPosition(t,e))throw new Error(`
|
|
73
101
|
Invalid positions in NodePositionConvertToCursor,
|
|
74
|
-
they are not in the same segment page when in header or footer.`);const{start:c,end:l}=Zn(t,e);return this._selectionIterator(c,l,(A,d,u,m,h,f)=>{const{lineHeight:g,asc:p,paddingTop:S,marginTop:I,marginBottom:E}=f,{glyphGroup:T,st:O}=h;if(T.length===0)return;const{x:v,y:b}=this._liquid;let _,B;const w=T[A],x=T[d],U=T[A-1],L=(w==null?void 0:w.left)||0,F=(w==null?void 0:w.width)||0,H=(x==null?void 0:x.left)||0,k=(x==null?void 0:x.width)||0,X=(w==null?void 0:w.glyphType)===M.GlyphType.LIST,{startOffset:G,endOffset:W}=ua(T,A,d,O),V=c.glyph===A&&u?c.isBack:!0,K=l.glyph===d&&m?l.isBack:!1,ee=c===l,Z=V&&U!=null?U:w;if(A===0&&d===T.length-1)_={startX:v+L+(X?F:0),startY:b,endX:v+H+(K?0:k),endY:b+g-I-E},B={startX:v+L+(X?F:0),startY:b+S+p-Z.bBox.ba,endX:v+H+(K?0:k),endY:b+S+p+Z.bBox.bd};else{const j=V&&!X;_={startX:v+L+(j?0:F),startY:b,endX:v+H+(K?0:k),endY:b+g-I-E},B={startX:v+L+(j?0:F),startY:b+S+p-Z.bBox.ba,endX:v+H+(K?0:k),endY:b+S+p+Z.bBox.bd}}n.push($n(_)),o.push($n(B)),a.push({startOffset:V?G:G+w.count,endOffset:K?W:W+x.count,collapsed:ee})}),{borderBoxPointGroup:n,contentBoxPointGroup:o,cursorList:a}}_isValidPosition(t,e){const{segmentPage:n,pageType:o}=t,{segmentPage:a,pageType:r}=e;return o!==r?!1:o===M.DocumentSkeletonPageType.HEADER||o===M.DocumentSkeletonPageType.FOOTER?n===a:!0}_resetCurrentNodePositionState(){this._currentStartState={page:0,section:0,column:0,line:0,divide:0,glyph:0},this._currentEndState={page:0,section:0,column:0,line:0,divide:0,glyph:0}}_setNodePositionState(t=0,e,n,o){o===e?this._currentStartState[t]=1:this._currentStartState[t]=0,o===n?this._currentEndState[t]=2:this._currentEndState[t]=0}_checkPreviousNodePositionState(t,e=!0){let n=t,o;for(;n>=0;){const a=Kt[n];let r;if(e?r=this._currentStartState[a]:r=this._currentEndState[a],r===void 0)return;if(o===void 0&&(o=r),r!==o)return 0;n--}return o}_getSelectionRuler(t,e,n,o,a){let r=0,c=o;const l=Kt[t],A=Kt[t+1];if(A===null||l===null)return{start_next:r,end_next:c};const d=e[l],u=n[l];this._setNodePositionState(l,d,u,a);const m=this._checkPreviousNodePositionState(t),h=this._checkPreviousNodePositionState(t,!1);return m===1&&(r=e[A]),h===2&&(c=n[A]),{start_next:r,end_next:c}}_selectionIterator(t,e,n){var T,O;const o=this._docSkeleton;if(!o)return[];const{pageType:a,path:r}=t;this._liquid.reset();const c=o.getSkeletonData();if(c==null)return[];const{pages:l,skeHeaders:A,skeFooters:d}=c,{page:u,segmentPage:m}=t,{page:h,segmentPage:f}=e;if(this._resetCurrentNodePositionState(),this._documentOffsetConfig==null)return[];const{pageLayoutType:g,pageMarginLeft:p,pageMarginTop:S}=this._documentOffsetConfig,I=a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?u:m;for(let v=0;v<I;v++){const b=l[v];this._liquid.translatePage(b,g,p,S)}const E=a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?h:f;for(let v=I;v<=E;v++){const b=l[v],{headerId:_,footerId:B,pageWidth:w}=b;let x=b;if(a===M.DocumentSkeletonPageType.HEADER?x=(T=A.get(_))==null?void 0:T.get(w):a===M.DocumentSkeletonPageType.FOOTER?x=(O=d.get(B))==null?void 0:O.get(w):a===M.DocumentSkeletonPageType.CELL&&(x=M.getPageFromPath(c,r)),x==null){this._liquid.translatePage(b,g,p,S);continue}const U=x.sections,{start_next:L,end_next:F}=this._getSelectionRuler(rt.page,t,e,U.length-1,a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?v:0);switch(this._liquid.translateSave(),a){case M.DocumentSkeletonPageType.HEADER:this._liquid.translatePagePadding({...x,marginLeft:b.marginLeft});break;case M.DocumentSkeletonPageType.FOOTER:{const H=b.pageHeight-x.height-x.marginBottom;this._liquid.translate(b.marginLeft,H);break}case M.DocumentSkeletonPageType.CELL:{this._liquid.translatePagePadding(b);const H=x.parent,k=H.parent,{left:X}=x,{top:G,left:W}=k,{top:V}=H;this._liquid.translate(W+X,G+V),this._liquid.translatePagePadding(x);break}default:this._liquid.translatePagePadding(b);break}for(let H=L;H<=F;H++){const k=U[H],X=k.columns,{start_next:G,end_next:W}=this._getSelectionRuler(rt.section,t,e,X.length-1,H);this._liquid.translateSection(k);for(let V=G;V<=W;V++){const K=X[V],ee=K.lines,{start_next:Z,end_next:j}=this._getSelectionRuler(rt.column,t,e,ee.length-1,V);this._liquid.translateColumn(K);for(let z=Z;z<=j;z++){const Y=ee[z],{divides:ie}=Y,{start_next:ce,end_next:ge}=this._getSelectionRuler(rt.line,t,e,ie.length-1,z);this._liquid.translateSave(),this._liquid.translateLine(Y,!0,!1);for(let le=ce;le<=ge;le++){const Ce=ie[le];this._liquid.translateSave(),this._liquid.translateDivide(Ce);const{glyphGroup:st}=Ce,{start_next:Ae,end_next:Se}=this._getSelectionRuler(rt.divide,t,e,st.length-1,le);let Te=!1,xe=!1;v===I&&H===L&&V===G&&z===Z&&le===ce&&(Te=!0),v===E&&H===F&&V===W&&z===j&&le===ge&&(xe=!0),n&&n(Ae,Se,Te,xe,Ce,Y,K,k,x),this._liquid.translateRestore()}this._liquid.translateRestore()}}}this._liquid.translateRestore(),this._liquid.translatePage(b,g,p,S)}}}function mo(i,t){const{path:e}=i,{path:n}=t;if(e.length!==n.length||e.indexOf("cells")===-1)return!1;const o=e.indexOf("skeTables")+1,a=e.indexOf("rows")+1,r=e.indexOf("cells")+1,{tableId:c,sliceIndex:l}=M.getTableIdAndSliceIndex(e[o]),{tableId:A,sliceIndex:d}=M.getTableIdAndSliceIndex(n[o]);if(c!==A)return!1;const u=e[a],m=n[a],h=e[r],f=n[r];return!(u===m&&h===f&&l===d)}function ei(i,t){const{path:e}=i,{path:n}=t;return e.indexOf("cells")===-1||n.indexOf("cells")===-1||e.length!==n.length?!1:s.Tools.diffValue(e,n)}function fo(i,t,e){var h,f,g,p,S,I,E,T;const{path:n}=t,{path:o}=e;if(n.indexOf("cells")===-1||o.indexOf("cells")===-1)return!1;const a=i.findGlyphByPosition(t),r=i.findGlyphByPosition(e),c=(p=(g=(f=(h=a==null?void 0:a.parent)==null?void 0:h.parent)==null?void 0:f.parent)==null?void 0:g.parent)==null?void 0:p.parent,l=(T=(E=(I=(S=r==null?void 0:r.parent)==null?void 0:S.parent)==null?void 0:I.parent)==null?void 0:E.parent)==null?void 0:T.parent;if(c==null||l==null)return!1;const A=c.parent,d=l.parent,u=A.cells.indexOf(c),m=d.cells.indexOf(l);return u===m&&A.index===d.index}function ti(i,t){if(ei(i,t))return Jn(i,t);const{path:e}=i,{path:n}=t,o=e[e.length-5],a=n[n.length-5];if(o!==a&&typeof o=="string"&&typeof a=="string"){const d=o.split("#-#")[1],u=a.split("#-#")[1];return+d<+u}const r=e[e.length-3],c=n[n.length-3],l=e[e.length-1],A=n[n.length-1];return r<c?!0:r>c?!1:l<=A}function ct(i){return i.sections[0].columns[0].lines.length===0}function ha(i,t,e){let n=t,o=e,a=i[n],r=i[o];for(;n<o&&(ct(a)||ct(r));)ct(a)?(n++,a=i[n]):ct(r)&&(o--,r=i[o]);if(!ct(a)&&!ct(r))return[a,r]}class ni{constructor(t,e){R(this,"_liquid",new M.Liquid);this._documentOffsetConfig=t,this._docSkeleton=e}getRangePointData(t,e){const n=[],a=this._docSkeleton.getSkeletonData();if(a==null)return;const{pages:r}=a,{segmentPage:c,page:l,pageType:A}=t,d=this._getTableRectRangeInfo(t,e);if(d==null)return;const{tableId:u,startRowIndex:m,startColumnIndex:h,endRowIndex:f,endColumnIndex:g}=d;this._liquid.reset();const{pageLayoutType:p,pageMarginLeft:S,pageMarginTop:I}=this._documentOffsetConfig,E=A===M.DocumentSkeletonPageType.BODY||A===M.DocumentSkeletonPageType.CELL?l:c;for(let T=0;T<E;T++){const O=r[T];this._liquid.translatePage(O,p,S,I)}for(let T=E;T<r.length;T++){const O=r[T];this._liquid.translatePagePadding(O);const{skeTables:v}=O;let b=null;for(const[x,U]of v.entries())x.startsWith(u)&&(b=U);if(b==null){this._liquid.restorePagePadding(O),this._liquid.translatePage(O,p,S,I);continue}this._liquid.translateSave(),this._liquid.translate(0,b.top);const{x:_,y:B}=this._liquid,{left:w}=b;for(const x of b.rows)if(x.index>=m&&x.index<=f){const U=ha(x.cells,h,g);if(U==null)continue;const[L,F]=U,H={startX:_+L.left+w,startY:B+x.top,endX:_+F.left+F.pageWidth+w,endY:B+x.top+x.height};n.push($n(H))}this._liquid.translateRestore(),this._liquid.restorePagePadding(O),this._liquid.translatePage(O,p,S,I)}return{pointGroup:n,startRow:m,startColumn:h,endRow:f,endColumn:g,tableId:u}}getNodePositionGroup(t,e){const n=[],o=this._docSkeleton.findCharIndexByPosition(t),a=this._docSkeleton.findCharIndexByPosition(e);if(o==null||a==null)return;const r=o<a,c=this._getTableRectRangeInfo(t,e);if(c==null)return;const{tableId:l,startRowIndex:A,startColumnIndex:d,endRowIndex:u,endColumnIndex:m}=c,h=this._docSkeleton.getViewModel().findTableNodeById(l);if(h==null)return;const f=h.children[0].children.length;if(d===0&&m===f-1){const p=h.children[A].children[d],S=this._docSkeleton.findNodePositionByCharIndex(p.startIndex+1),I=h.children[u].children[m],E=this._docSkeleton.findNodePositionByCharIndex(I.endIndex-2);if(S==null||E==null)return;n.push({anchor:r?S:E,focus:r?E:S})}else for(let p=A;p<=u;p++){const S=h.children[p],I=S.children[d],E=S.children[m],T=this._docSkeleton.findNodePositionByCharIndex(I.startIndex+1),O=this._docSkeleton.findNodePositionByCharIndex(E.endIndex-2);if(T==null||O==null)return;n.push({anchor:r?T:O,focus:r?O:T})}return n}_getTableRectRangeInfo(t,e){const o=this._docSkeleton.getSkeletonData();if(o==null)return;const{pages:a}=o,{path:r}=t,{path:c}=e,l=M.getPageFromPath(o,r),A=M.getPageFromPath(o,c);if(l==null||A==null)return;const d=l.segmentId,u=l.parent.index,m=l.parent.cells.indexOf(l),h=(A==null?void 0:A.parent).index,f=(A==null?void 0:A.parent).cells.indexOf(A),g=Math.min(u,h),p=Math.max(u,h),S=Math.min(m,f),I=Math.max(m,f);return{pages:a,tableId:d,startRowIndex:g,startColumnIndex:S,endRowIndex:p,endColumnIndex:I}}}const ga="__TestSelectionRange__",ma="__TestSelectionAnchor__",po=6,ii=500,fa=500,Jt=3;function Ot(i){const t=i[0],e=t[0],n=t[2],{x:o,y:a}=e,{x:r,y:c}=n;return{left:o,top:a,width:r-o,height:c-a}}function Zt(i){return i.map(t=>{let e=1/0,n=-1/0,o=1/0,a=-1/0;return t.forEach(r=>{e=Math.min(r.x,e),n=Math.max(r.x,n),a=Math.max(r.y,a),o=Math.min(r.y,o)}),{left:e,right:n,top:o,bottom:a}})}class je{constructor(t,e,n,o,a,r=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,c="",l=-1){R(this,"rangeType",s.DOC_RANGE_TYPE.TEXT);R(this,"_current",!1);R(this,"_rangeShape");R(this,"_anchorShape");R(this,"_cursorList",[]);R(this,"_anchorBlinkTimer",null);this._scene=t,this._document=e,this._docSkeleton=n,this.anchorNodePosition=o,this.focusNodePosition=a,this.style=r,this._segmentId=c,this._segmentPage=l,this._anchorBlink(),this.refresh()}_anchorBlink(){setTimeout(()=>{this._anchorShape&&this._anchorShape.visible&&this.deactivateStatic()},ii),this._anchorBlinkTimer=setInterval(()=>{this._anchorShape&&this._anchorShape.visible&&(this.activeStatic(),setTimeout(()=>{this.deactivateStatic()},ii))},fa+ii)}get startOffset(){var o;const{startOffset:t}=(o=qn(this._cursorList))!=null?o:{},e=this._docSkeleton.getViewModel().getDataModel().getSelfOrHeaderFooterModel(this._segmentId).getBody();if(t==null||e==null)return t;const n=e.dataStream.length-2;return Math.min(n,t)}get endOffset(){var o;const{endOffset:t}=(o=qn(this._cursorList))!=null?o:{},e=this._docSkeleton.getViewModel().getDataModel().getSelfOrHeaderFooterModel(this._segmentId).getBody();if(t==null||e==null)return t;const n=e.dataStream.length-2;return Math.min(t,n)}get collapsed(){const{startOffset:t,endOffset:e}=this;return t!=null&&t===e}get startNodePosition(){if(this.anchorNodePosition==null)return null;if(this.focusNodePosition==null)return this.anchorNodePosition;const{start:t}=Zn(this.anchorNodePosition,this.focusNodePosition);return t}get endNodePosition(){if(this.anchorNodePosition==null)return this.focusNodePosition;if(this.focusNodePosition==null)return null;const{end:t}=Zn(this.anchorNodePosition,this.focusNodePosition);return t}get direction(){const{collapsed:t,anchorNodePosition:e,focusNodePosition:n}=this;return t||e==null||n==null?s.RANGE_DIRECTION.NONE:Jn(e,n)?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD}get segmentId(){return this._segmentId}get segmentPage(){return this._segmentPage}getAbsolutePosition(){const t=this.anchorNodePosition,e=this.focusNodePosition;if(this._isEmpty())return;const n=this._document.getOffsetConfig(),{docsLeft:o,docsTop:a}=n,r=new De(n,this._docSkeleton);if(this._isCollapsed()){const{contentBoxPointGroup:d,cursorList:u}=r.getRangePointData(t,t);if(this._setCursorList(u),d.length===0)return;const m=Ot(d);return{...m,left:m.left+o,top:m.top+a}}const{borderBoxPointGroup:c,cursorList:l}=r.getRangePointData(t,e);if(this._setCursorList(l),c.length===0)return;const A=Ot(c);return{...A,left:A.left+o,top:A.top+a}}getAnchor(){return this._anchorShape}activeStatic(){var t,e;(e=this._anchorShape)==null||e.setProps({stroke:((t=this.style)==null?void 0:t.strokeActive)||M.getColor(s.COLORS.black,1)})}deactivateStatic(){var t,e;(e=this._anchorShape)==null||e.setProps({stroke:((t=this.style)==null?void 0:t.stroke)||M.getColor(s.COLORS.black,0)})}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var t,e;(t=this._rangeShape)==null||t.dispose(),this._rangeShape=null,(e=this._anchorShape)==null||e.dispose(),this._anchorShape=null,this._anchorBlinkTimer&&(clearInterval(this._anchorBlinkTimer),this._anchorBlinkTimer=null)}isIntersection(t){const{startOffset:e,endOffset:n}=this,{startOffset:o,endOffset:a}=t;return e==null||n==null||o==null||a==null?!1:e<=a&&n>=o}refresh(){var u,m;const{_document:t,_docSkeleton:e}=this,n=this.anchorNodePosition,o=this.focusNodePosition;if((u=this._anchorShape)==null||u.hide(),(m=this._rangeShape)==null||m.hide(),this._isEmpty())return;const a=t.getOffsetConfig(),{docsLeft:r,docsTop:c}=a,l=new De(a,e);if(this._isCollapsed()){const{contentBoxPointGroup:h,cursorList:f}=l.getRangePointData(n,n);if(this._setCursorList(f),h.length>0){const g=e.findGlyphByPosition(n);this._createOrUpdateAnchor(h,r,c,g)}return}const{borderBoxPointGroup:A,cursorList:d}=l.getRangePointData(n,o);this._setCursorList(d),A.length>0&&this._createOrUpdateRange(A,r,c)}_isEmpty(){return this.anchorNodePosition==null&&this.focusNodePosition==null}_isCollapsed(){const t=this.anchorNodePosition,e=this.focusNodePosition;if(t!=null&&e==null)return!0;if(t==null||e==null)return!1;const n=Object.keys(rt);for(const o of n){const a=t[o],r=e[o];if(a!==r)return!1}return t.isBack===e.isBack}_createOrUpdateRange(t,e,n){var r;if(this._rangeShape){this._rangeShape.translate(e,n),this._rangeShape.updatePointGroup(t),this._rangeShape.show();return}const o=.3,a=new M.RegularPolygon(ga+s.Tools.generateRandomId(po),{pointsGroup:t,fill:((r=this.style)==null?void 0:r.fill)||M.getColor(s.COLORS.black,o),left:e,top:n,evented:!1,debounceParentDirty:!1});this._rangeShape=a,this._scene.addObject(a,Jt)}_createOrUpdateAnchor(t,e,n,o){var g,p,S;const a=Ot(t),{left:r}=a;let{top:c,height:l}=a;const A=14;l<A&&(c-=A-l,l=A);const d=12;let u=r+e;const m=c+n,h=((g=o==null?void 0:o.ts)==null?void 0:g.it)===s.BooleanNumber.TRUE;if(h&&(u+=l*Math.tan(d*Math.PI/180)/2),this._anchorShape){this._anchorShape.transformByState({left:u,top:m,height:l}),this._anchorShape.show(),h?this._anchorShape.skew(-d,0):this._anchorShape.skew(0,0);return}const f=new M.Rect(ma+s.Tools.generateRandomId(po),{left:u,top:m,height:l,strokeWidth:((p=this.style)==null?void 0:p.strokeWidth)||1.5,stroke:((S=this.style)==null?void 0:S.strokeActive)||M.getColor(s.COLORS.black,1),evented:!1});h&&f.skew(-d,0),this._anchorShape=f,this._scene.addObject(f,Jt),this.activeStatic()}_setCursorList(t){t.length!==0&&(this._cursorList=t)}}const pa="__DocTableRectRange__",Sa=6;function qt(i,t,e,n,o,a=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,r="",c=-1){const l=t.getOffsetConfig(),d=new ni(l,e).getNodePositionGroup(n,o);return(d!=null?d:[]).map(u=>new oi(i,t,e,u.anchor,u.focus,a,r,c))}class oi{constructor(t,e,n,o,a,r=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,c="",l=-1){R(this,"rangeType",s.DOC_RANGE_TYPE.RECT);R(this,"_rangeShape");R(this,"_current",!1);R(this,"_startRow");R(this,"_startCol");R(this,"_endRow");R(this,"_endCol");R(this,"_tableId");this._scene=t,this._document=e,this._docSkeleton=n,this.anchorNodePosition=o,this.focusNodePosition=a,this.style=r,this._segmentId=c,this._segmentPage=l,this.refresh()}get startOffset(){const{startNodePosition:t}=this;return this._docSkeleton.findCharIndexByPosition(t)}get endOffset(){const{endNodePosition:t}=this;return this._docSkeleton.findCharIndexByPosition(t)}get collapsed(){return!1}get startRow(){return this._startRow}get startColumn(){return this._startCol}get endRow(){return this._endRow}get endColumn(){return this._endCol}get tableId(){return this._tableId}get segmentId(){return this._segmentId}get segmentPage(){return this._segmentPage}get spanEntireRow(){var r;const e=(r=this._docSkeleton.getViewModel().getSnapshot().tableSource)==null?void 0:r[this._tableId],{_startCol:n,_endCol:o}=this;if(e==null)throw new Error("Table is not found.");const{tableColumns:a}=e;return n===0&&o===a.length-1}get spanEntireColumn(){var r;const e=(r=this._docSkeleton.getViewModel().getSnapshot().tableSource)==null?void 0:r[this._tableId],{_startRow:n,_endRow:o}=this;if(e==null)throw new Error("Table is not found.");const{tableRows:a}=e;return n===0&&o===a.length-1}get spanEntireTable(){return this.spanEntireRow&&this.spanEntireColumn}get startNodePosition(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ti(t,e)?t:e}get endNodePosition(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ti(t,e)?e:t}get direction(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ti(t,e)?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var t;(t=this._rangeShape)==null||t.dispose(),this._rangeShape=null}isIntersection(t){const{startRow:e,startColumn:n,endRow:o,endColumn:a}=this,{startRow:r,startColumn:c,endRow:l,endColumn:A}=t,d={left:n,top:e,right:a,bottom:o},u={left:c,top:r,right:A,bottom:l};return s.Rectangle.hasIntersectionBetweenTwoRect(d,u)}refresh(){var p;(p=this._rangeShape)==null||p.hide();const{startNodePosition:t,endNodePosition:e,_document:n,_docSkeleton:o}=this,a=n.getOffsetConfig(),{docsLeft:r,docsTop:c}=a,A=new ni(a,o).getRangePointData(t,e);if(A==null)return;const{pointGroup:d=[],startRow:u,endRow:m,startColumn:h,endColumn:f,tableId:g}=A;(d==null?void 0:d.length)>0&&this._createOrUpdateRange(d,r,c),this._updateTableInfo(u,m,h,f,g)}_updateTableInfo(t,e,n,o,a){this._startRow=t,this._endRow=e,this._startCol=n,this._endCol=o,this._tableId=a}_createOrUpdateRange(t,e,n){var r;if(this._rangeShape){this._rangeShape.translate(e,n),this._rangeShape.updatePointGroup(t),this._rangeShape.show();return}const o=.3,a=new M.RegularPolygon(pa+s.Tools.generateRandomId(Sa),{pointsGroup:t,fill:((r=this.style)==null?void 0:r.fill)||M.getColor(s.COLORS.black,o),left:e,top:n,evented:!1,debounceParentDirty:!1});this._rangeShape=a,this._scene.addObject(a,Jt)}}function So(i,t,e,n,o,a,r,c,l=!0,A=!0){const d=o.findNodePositionByCharIndex(i,l,r,c),u=o.findNodePositionByCharIndex(t,A,r,c);if(!(d==null||u==null))return new je(e,n,o,d,u,a,r,c)}function Ia(i,t,e,n,o,a,r,c){const l=o.findNodePositionByCharIndex(i,!0,r,c),A=o.findNodePositionByCharIndex(t,!0,r,c);if(!(l==null||A==null))return new oi(e,n,o,l,A,a,r,c)}function Ea(i,t,e,n,o,a,r,c){const l=o.findNodePositionByCharIndex(i,!0,r,c),A=o.findNodePositionByCharIndex(t,!0,r,c);if(!(l==null||A==null))return si(l,A,e,n,o,a,r,c)}function si(i,t,e,n,o,a,r,c){const l=[],A=[],d=[e,n,o,i,t,a,r,c];if(fo(o,i,t)){if(ei(i,t))return l.push(new je(...d)),{textRanges:l,rectRanges:A};{const E=qt(...d);return A.push(...E),{textRanges:l,rectRanges:A}}}if(mo(i,t)){const E=qt(...d);return A.push(...E),{textRanges:l,rectRanges:A}}const u=o.getViewModel().getSelfOrHeaderFooterViewModel(r),m=o.findCharIndexByPosition(i),h=o.findCharIndexByPosition(t);if(m==null||h==null)return;const f=m<=h?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD,g=Math.min(m,h),p=Math.max(m,h);let S=g,I=p;for(const E of u.getChildren())for(const T of E.children){const{startIndex:O,endIndex:v,children:b}=T,_=E.children.indexOf(T),B=E.children[_+1],w=b[0];let x=!1;if(w){const{startIndex:U,endIndex:L,children:F}=w;let H=null,k=null;const X=F.find(W=>W.startIndex<=g&&W.endIndex>=g),G=F.find(W=>W.startIndex<=p&&W.endIndex>=p);if(g>U&&g<L)H=o.findNodePositionByCharIndex(X.startIndex+2,!0,r,c),k=o.findNodePositionByCharIndex(L-4,!0,r,c),S=L+1;else if(p>U&&p<L)H=o.findNodePositionByCharIndex(U+3,!0,r,c),k=o.findNodePositionByCharIndex(G.endIndex-3,!0,r,c),I=U-1,x=!0;else if(U>g&&L<p){if(H=o.findNodePositionByCharIndex(U+3,!0,r,c),k=o.findNodePositionByCharIndex(L-4,!0,r,c),S<=U-1){const W=o.findNodePositionByCharIndex(S,!0,r,c),V=o.findNodePositionByCharIndex(U-1,!1,r,c),K=f===s.RANGE_DIRECTION.FORWARD?W:V,ee=f===s.RANGE_DIRECTION.FORWARD?V:W;l.push(new je(e,n,o,K,ee,a,r,c))}S=L+1}if(H&&k){const W=f===s.RANGE_DIRECTION.FORWARD?H:k,V=f===s.RANGE_DIRECTION.FORWARD?k:H;A.push(...qt(e,n,o,W,V,a,r,c))}}if(I===v+1&&!x&&B&&B.children.length&&(I=v,x=!0),I>=O&&I<=v||x){const U=o.findNodePositionByCharIndex(S,!0,r,c),L=o.findNodePositionByCharIndex(I,!x,r,c),F=f===s.RANGE_DIRECTION.FORWARD?U:L,H=f===s.RANGE_DIRECTION.FORWARD?L:U;if(A.length&&s.Tools.diffValue(F,H))continue;l.push(new je(e,n,o,F,H,a,r,c))}}return{textRanges:l,rectRanges:A}}function Io(i){const t=i==null?void 0:i.getCanvasElement();if(!t)return{left:0,top:0};const{top:e,left:n}=M.getOffsetRectForDom(t);return{left:n,top:e}}function Eo(i){var l;const t=(l=i.parent)==null?void 0:l.parent,e=t==null?void 0:t.parent;if(t==null||e==null)return;const{paragraphIndex:n}=t,o=e.lines.filter(A=>A.paragraphIndex===n);let a=-1,r="",c=!1;for(const A of o)for(const d of A.divides)for(const u of d.glyphGroup)c||(a+=u.count),u===i&&(c=!0),r+=u.count>0?u.content:"";return{st:o[0].st,ed:n,content:r,nodeIndex:a}}function ai(i){const{startOffset:t,endOffset:e,collapsed:n,rangeType:o,startNodePosition:a,endNodePosition:r,direction:c,segmentId:l,segmentPage:A}=i;return{startOffset:t,endOffset:e,collapsed:n,rangeType:o,startNodePosition:a,endNodePosition:r,direction:c,segmentId:l,segmentPage:A,isActive:i.isActive()}}function va(i){const t=ai(i),{startRow:e,startColumn:n,endRow:o,endColumn:a,tableId:r,spanEntireRow:c,spanEntireColumn:l,spanEntireTable:A}=i;return{...t,startRow:e,startColumn:n,endRow:o,endColumn:a,tableId:r,spanEntireRow:c,spanEntireColumn:l,spanEntireTable:A}}var Ca=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,ba=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ta(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Ca(t,e,o),o},$t=(i,t)=>(e,n)=>t(e,n,i);C.DocSelectionRenderService=class extends s.RxDisposable{constructor(e,n,o,a,r){super();R(this,"_onInputBefore$",new N.Subject);R(this,"onInputBefore$",this._onInputBefore$.asObservable());R(this,"_onKeydown$",new N.Subject);R(this,"onKeydown$",this._onKeydown$.asObservable());R(this,"_onInput$",new N.Subject);R(this,"onInput$",this._onInput$.asObservable());R(this,"_onCompositionstart$",new N.BehaviorSubject(null));R(this,"onCompositionstart$",this._onCompositionstart$.asObservable());R(this,"_onCompositionupdate$",new N.BehaviorSubject(null));R(this,"onCompositionupdate$",this._onCompositionupdate$.asObservable());R(this,"_onCompositionend$",new N.BehaviorSubject(null));R(this,"onCompositionend$",this._onCompositionend$.asObservable());R(this,"_onSelectionStart$",new N.BehaviorSubject(null));R(this,"onSelectionStart$",this._onSelectionStart$.asObservable());R(this,"_onPaste$",new N.Subject);R(this,"onPaste$",this._onPaste$.asObservable());R(this,"_textSelectionInner$",new N.BehaviorSubject(null));R(this,"textSelectionInner$",this._textSelectionInner$.asObservable());R(this,"_onFocus$",new N.Subject);R(this,"onFocus$",this._onFocus$.asObservable());R(this,"_onBlur$",new N.Subject);R(this,"onBlur$",this._onBlur$.asObservable());R(this,"_onPointerDown$",new N.Subject);R(this,"onPointerDown$",this._onPointerDown$.asObservable());R(this,"_container");R(this,"_inputParent");R(this,"_input");R(this,"_scrollTimers",[]);R(this,"_rangeList",[]);R(this,"_rangeListCache",[]);R(this,"_rectRangeList",[]);R(this,"_rectRangeListCache",[]);R(this,"_anchorNodePosition",null);R(this,"_focusNodePosition",null);R(this,"_currentSegmentId","");R(this,"_currentSegmentPage",-1);R(this,"_selectionStyle",M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE);R(this,"_viewPortObserverMap",new Map);R(this,"_isIMEInputApply",!1);R(this,"_scenePointerMoveSubs",[]);R(this,"_scenePointerUpSubs",[]);R(this,"_editorFocusing",!0);R(this,"_reserveRanges",!1);this._context=e,this._layoutService=n,this._logService=o,this._univerInstanceService=a,this._docSkeletonManagerService=r,this._initDOM(),this._registerContainer(),this._setSystemHighlightColorToStyle(),this._listenCurrentUnitChange()}_listenCurrentUnitChange(){this._univerInstanceService.getCurrentTypeOfUnit$(s.UniverInstanceType.UNIVER_DOC).pipe(N.takeUntil(this.dispose$)).subscribe(e=>{if(e==null)return;e.getUnitId()!==this._context.unitId&&!this._reserveRanges&&this.removeAllRanges()})}get activeViewPort(){return this._context.scene.getViewports()[0]}setSegment(e){this._currentSegmentId=e}getSegment(){return this._currentSegmentId}setSegmentPage(e){this._currentSegmentPage=e}getSegmentPage(){return this._currentSegmentPage}setReserveRangesStatus(e){this._reserveRanges=e}_setRangeStyle(e=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE){this._selectionStyle=e}addDocRanges(e,n=!0,o){const{_currentSegmentId:a,_currentSegmentPage:r,_selectionStyle:c}=this,{scene:l,mainComponent:A}=this._context,d=A,u=this._docSkeletonManagerService.getSkeleton(),m=(h,f)=>{const g=Ea(h,f,l,d,u,c,a,r);if(g==null)return;const{textRanges:p,rectRanges:S}=g;for(const I of p)this._addTextRange(I);this._addRectRanges(S)};for(const h of e){const{startOffset:f,endOffset:g,rangeType:p,startNodePosition:S,endNodePosition:I}=h;if(p===s.DOC_RANGE_TYPE.RECT){const E=Ia(f,g,l,d,u,c,a,r);E&&this._addRectRanges([E])}else if(p===s.DOC_RANGE_TYPE.TEXT)try{let E=null;S&&I?E=So(S.isBack?f:f-1,I.isBack?g:g-1,l,d,u,c,a,r,S.isBack,I.isBack):E=So(f,g,l,d,u,c,a,r),E&&this._addTextRange(E)}catch{m(f,g)}else m(f,g)}this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:a,segmentPage:r,style:c,isEditing:n,options:o}),this._updateInputPosition(o==null?void 0:o.forceFocus)}setCursorManually(e,n){const o=this._findNodeByCoord(e,n,{strict:!0,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage}),a=this._getNodePosition(o);if(a==null){this._removeAllRanges();return}(o==null?void 0:o.node.streamType)===s.DataStreamTreeTokenType.PARAGRAPH&&(a.isBack=!0),this._createTextRangeByAnchorPosition(a),this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage,style:this._selectionStyle,isEditing:!1})}sync(){this._updateInputPosition()}activate(e,n,o=!1){const a=this._input===document.activeElement||document.activeElement===document.body||document.activeElement===null;this._container.style.left=`${e}px`,this._container.style.top=`${n}px`,this._container.style.zIndex="1000",(a||o)&&this.focus()}hasFocus(){return document.activeElement===this._input}focus(){this._editorFocusing&&this._input.focus()}blur(){this._input.blur()}focusEditor(){this._editorFocusing=!0,this.focus()}blurEditor(){this._editorFocusing=!1,this.blur()}deactivate(){this._container.style.left="0px",this._container.style.top="0px"}__handleDblClick(e){const{offsetX:n,offsetY:o}=e,a=this._findNodeByCoord(n,o,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage});if(a==null||a.node==null)return;const r=Eo(a.node);if(r==null)return;const{content:c,st:l,nodeIndex:A}=r;if(A===-1||Intl.Segmenter==null)return;const u=new Intl.Segmenter(void 0,{granularity:"word"}).segment(c);let m=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(const{segment:f,index:g,isWordLike:p}of u)if(g<=A&&A<g+f.length&&p){m=g+l,h=g+l+f.length;break}if(Number.isFinite(m)&&Number.isFinite(h)){this.removeAllRanges();const f=[{startOffset:m,endOffset:h}];this.addDocRanges(f,!1,{forceFocus:!0})}}__handleTripleClick(e){const{offsetX:n,offsetY:o}=e,a=this._findNodeByCoord(n,o,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage});if(a==null||a.node==null)return;const r=Eo(a.node);if(r==null)return;this.removeAllRanges();const{st:c,ed:l}=r,A=[{startOffset:c,endOffset:l}];this.addDocRanges(A,!1,{forceFocus:!0})}__onPointDown(e){var p,S;this._editorFocusing=!0;const{scene:n,mainComponent:o}=this._context,a=this._docSkeletonManagerService.getSkeleton(),{offsetX:r,offsetY:c}=e,l=this._findNodeByCoord(r,c,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage}),A=this._getNodePosition(l);if(A==null||l==null){this._removeAllRanges();return}(l==null?void 0:l.node.streamType)===s.DataStreamTreeTokenType.PARAGRAPH&&(A.isBack=!0);const d=this._textSelectionInner$.value;if(l&&e.button===2&&d){const I=a.findCharIndexByPosition(A);if(typeof I=="number"&&d.textRanges.some(E=>E.startOffset<=I&&E.endOffset>I)||typeof I=="number"&&d.rectRanges.some(E=>E.startOffset<=I&&E.endOffset>=I))return}const{segmentId:u,segmentPage:m}=l;u&&this._currentSegmentId&&u!==this._currentSegmentId&&this.setSegment(u),u&&m!==this._currentSegmentPage&&this.setSegmentPage(m),this._anchorNodePosition=A,e.shiftKey&&this._getActiveRangeInstance()?this._updateActiveRangePosition(A):e.ctrlKey?this._removeAllCollapsedTextRanges():this._isEmpty()||this._removeAllRanges(),n.disableObjectsEvent();const h=M.ScrollTimer.create(n);this._scrollTimers.push(h),h.startScroll(r,c),this._onSelectionStart$.next((p=this._getActiveRangeInstance())==null?void 0:p.startNodePosition),(S=n.getTransformer())==null||S.clearSelectedObjects();let f=r,g=c;this._scenePointerMoveSubs.push(n.onPointerMove$.subscribeEvent(I=>{const{offsetX:E,offsetY:T}=I;n.setCursor(M.CURSOR_TYPE.TEXT),!(Math.sqrt((E-f)**2+(T-g)**2)<3)&&(this._moving(E,T),h.scrolling(E,T,()=>{this._moving(E,T)}),f=E,g=T)})),this._scenePointerUpSubs.push(n.onPointerUp$.subscribeEvent(()=>{if([...this._scenePointerMoveSubs,...this._scenePointerUpSubs].forEach(E=>{E.unsubscribe()}),n.enableObjectsEvent(),this._anchorNodePosition&&!this._focusNodePosition){if(e.ctrlKey){this._disposeScrollTimers();return}const E=new je(n,o,a,this._anchorNodePosition,void 0,this._selectionStyle,this._currentSegmentId,this._currentSegmentPage);this._addTextRange(E)}else if(this._anchorNodePosition&&this._focusNodePosition){for(const E of this._rangeListCache)e.ctrlKey?E.collapsed?E.dispose():this._addTextRange(E):this._addTextRange(E);this._addRectRanges(this._rectRangeListCache),this._rangeListCache=[],this._rectRangeListCache=[]}this._anchorNodePosition=null,this._focusNodePosition=null;const I={textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage,style:this._selectionStyle,isEditing:!1};this._textSelectionInner$.next(I),this._disposeScrollTimers(),this._updateInputPosition(!0)}))}removeAllRanges(){this._removeAllRanges(),this.deactivate()}getActiveTextRange(){return this._getActiveRangeInstance()}_disposeScrollTimers(){this._scrollTimers.forEach(e=>{e==null||e.dispose()}),this._scrollTimers=[]}_setSystemHighlightColorToStyle(){const{r:e,g:n,b:o,a}=M.getSystemHighlightColor(),r={strokeWidth:1.5,stroke:"rgba(0, 0, 0, 0)",strokeActive:"rgba(0, 0, 0, 1)",fill:`rgba(${e}, ${n}, ${o}, ${a!=null?a:.3})`};this._setRangeStyle(r)}_getAllTextRanges(){return this._rangeList.map(ai)}_getAllRectRanges(){return this._rectRangeList.map(va)}_getActiveRange(){const e=this._rangeList.find(a=>a.isActive());if(e==null)return null;const{startOffset:n,endOffset:o}=e;return n==null||o==null?null:ai(e)}_getActiveRangeInstance(){return this._rangeList.find(e=>e.isActive())}dispose(){super.dispose(),this._detachEvent(),this._removeAllRanges(),this._container.remove()}_initDOM(){const{unitId:e}=this._context,n=document.createElement("div");n.style.position="fixed",n.style.left="0px",n.style.top="0px",n.id=`univer-doc-selection-container-${e}`;const o=document.createElement("div"),a=document.createElement("div");o.appendChild(a),n.appendChild(o),this._container=n,this._inputParent=o,this._input=a,this._initInput(),this._initInputEvents(),document.body.appendChild(n)}_registerContainer(){this.disposeWithMe(this._layoutService.registerContainerElement(this._container))}_initInput(){this._inputParent.style.cssText=`
|
|
102
|
+
they are not in the same segment page when in header or footer.`);const{start:c,end:l}=Zn(t,e);return this._selectionIterator(c,l,(A,d,u,m,h,f)=>{const{lineHeight:g,asc:p,paddingTop:S,marginTop:I,marginBottom:E}=f,{glyphGroup:T,st:O}=h;if(T.length===0)return;const{x:v,y:b}=this._liquid;let _,B;const w=T[A],x=T[d],U=T[A-1],L=(w==null?void 0:w.left)||0,F=(w==null?void 0:w.width)||0,H=(x==null?void 0:x.left)||0,k=(x==null?void 0:x.width)||0,X=(w==null?void 0:w.glyphType)===M.GlyphType.LIST,{startOffset:G,endOffset:W}=ha(T,A,d,O),V=c.glyph===A&&u?c.isBack:!0,K=l.glyph===d&&m?l.isBack:!1,ee=c===l,Z=V&&U!=null?U:w;if(A===0&&d===T.length-1)_={startX:v+L+(X?F:0),startY:b,endX:v+H+(K?0:k),endY:b+g-I-E},B={startX:v+L+(X?F:0),startY:b+S+p-Z.bBox.ba,endX:v+H+(K?0:k),endY:b+S+p+Z.bBox.bd};else{const j=V&&!X;_={startX:v+L+(j?0:F),startY:b,endX:v+H+(K?0:k),endY:b+g-I-E},B={startX:v+L+(j?0:F),startY:b+S+p-Z.bBox.ba,endX:v+H+(K?0:k),endY:b+S+p+Z.bBox.bd}}n.push($n(_)),o.push($n(B)),a.push({startOffset:V?G:G+w.count,endOffset:K?W:W+x.count,collapsed:ee})}),{borderBoxPointGroup:n,contentBoxPointGroup:o,cursorList:a}}_isValidPosition(t,e){const{segmentPage:n,pageType:o}=t,{segmentPage:a,pageType:r}=e;return o!==r?!1:o===M.DocumentSkeletonPageType.HEADER||o===M.DocumentSkeletonPageType.FOOTER?n===a:!0}_resetCurrentNodePositionState(){this._currentStartState={page:0,section:0,column:0,line:0,divide:0,glyph:0},this._currentEndState={page:0,section:0,column:0,line:0,divide:0,glyph:0}}_setNodePositionState(t=0,e,n,o){o===e?this._currentStartState[t]=1:this._currentStartState[t]=0,o===n?this._currentEndState[t]=2:this._currentEndState[t]=0}_checkPreviousNodePositionState(t,e=!0){let n=t,o;for(;n>=0;){const a=Kt[n];let r;if(e?r=this._currentStartState[a]:r=this._currentEndState[a],r===void 0)return;if(o===void 0&&(o=r),r!==o)return 0;n--}return o}_getSelectionRuler(t,e,n,o,a){let r=0,c=o;const l=Kt[t],A=Kt[t+1];if(A===null||l===null)return{start_next:r,end_next:c};const d=e[l],u=n[l];this._setNodePositionState(l,d,u,a);const m=this._checkPreviousNodePositionState(t),h=this._checkPreviousNodePositionState(t,!1);return m===1&&(r=e[A]),h===2&&(c=n[A]),{start_next:r,end_next:c}}_selectionIterator(t,e,n){var T,O;const o=this._docSkeleton;if(!o)return[];const{pageType:a,path:r}=t;this._liquid.reset();const c=o.getSkeletonData();if(c==null)return[];const{pages:l,skeHeaders:A,skeFooters:d}=c,{page:u,segmentPage:m}=t,{page:h,segmentPage:f}=e;if(this._resetCurrentNodePositionState(),this._documentOffsetConfig==null)return[];const{pageLayoutType:g,pageMarginLeft:p,pageMarginTop:S}=this._documentOffsetConfig,I=a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?u:m;for(let v=0;v<I;v++){const b=l[v];this._liquid.translatePage(b,g,p,S)}const E=a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?h:f;for(let v=I;v<=E;v++){const b=l[v],{headerId:_,footerId:B,pageWidth:w}=b;let x=b;if(a===M.DocumentSkeletonPageType.HEADER?x=(T=A.get(_))==null?void 0:T.get(w):a===M.DocumentSkeletonPageType.FOOTER?x=(O=d.get(B))==null?void 0:O.get(w):a===M.DocumentSkeletonPageType.CELL&&(x=M.getPageFromPath(c,r)),x==null){this._liquid.translatePage(b,g,p,S);continue}const U=x.sections,{start_next:L,end_next:F}=this._getSelectionRuler(rt.page,t,e,U.length-1,a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?v:0);switch(this._liquid.translateSave(),a){case M.DocumentSkeletonPageType.HEADER:this._liquid.translatePagePadding({...x,marginLeft:b.marginLeft});break;case M.DocumentSkeletonPageType.FOOTER:{const H=b.pageHeight-x.height-x.marginBottom;this._liquid.translate(b.marginLeft,H);break}case M.DocumentSkeletonPageType.CELL:{this._liquid.translatePagePadding(b);const H=x.parent,k=H.parent,{left:X}=x,{top:G,left:W}=k,{top:V}=H;this._liquid.translate(W+X,G+V),this._liquid.translatePagePadding(x);break}default:this._liquid.translatePagePadding(b);break}for(let H=L;H<=F;H++){const k=U[H],X=k.columns,{start_next:G,end_next:W}=this._getSelectionRuler(rt.section,t,e,X.length-1,H);this._liquid.translateSection(k);for(let V=G;V<=W;V++){const K=X[V],ee=K.lines,{start_next:Z,end_next:j}=this._getSelectionRuler(rt.column,t,e,ee.length-1,V);this._liquid.translateColumn(K);for(let z=Z;z<=j;z++){const Y=ee[z],{divides:ie}=Y,{start_next:ce,end_next:ge}=this._getSelectionRuler(rt.line,t,e,ie.length-1,z);this._liquid.translateSave(),this._liquid.translateLine(Y,!0,!1);for(let le=ce;le<=ge;le++){const Ce=ie[le];this._liquid.translateSave(),this._liquid.translateDivide(Ce);const{glyphGroup:st}=Ce,{start_next:Ae,end_next:Se}=this._getSelectionRuler(rt.divide,t,e,st.length-1,le);let Te=!1,xe=!1;v===I&&H===L&&V===G&&z===Z&&le===ce&&(Te=!0),v===E&&H===F&&V===W&&z===j&&le===ge&&(xe=!0),n&&n(Ae,Se,Te,xe,Ce,Y,K,k,x),this._liquid.translateRestore()}this._liquid.translateRestore()}}}this._liquid.translateRestore(),this._liquid.translatePage(b,g,p,S)}}}function mo(i,t){const{path:e}=i,{path:n}=t;if(e.length!==n.length||e.indexOf("cells")===-1)return!1;const o=e.indexOf("skeTables")+1,a=e.indexOf("rows")+1,r=e.indexOf("cells")+1,{tableId:c,sliceIndex:l}=M.getTableIdAndSliceIndex(e[o]),{tableId:A,sliceIndex:d}=M.getTableIdAndSliceIndex(n[o]);if(c!==A)return!1;const u=e[a],m=n[a],h=e[r],f=n[r];return!(u===m&&h===f&&l===d)}function ei(i,t){const{path:e}=i,{path:n}=t;return e.indexOf("cells")===-1||n.indexOf("cells")===-1||e.length!==n.length?!1:s.Tools.diffValue(e,n)}function fo(i,t,e){var h,f,g,p,S,I,E,T;const{path:n}=t,{path:o}=e;if(n.indexOf("cells")===-1||o.indexOf("cells")===-1)return!1;const a=i.findGlyphByPosition(t),r=i.findGlyphByPosition(e),c=(p=(g=(f=(h=a==null?void 0:a.parent)==null?void 0:h.parent)==null?void 0:f.parent)==null?void 0:g.parent)==null?void 0:p.parent,l=(T=(E=(I=(S=r==null?void 0:r.parent)==null?void 0:S.parent)==null?void 0:I.parent)==null?void 0:E.parent)==null?void 0:T.parent;if(c==null||l==null)return!1;const A=c.parent,d=l.parent,u=A.cells.indexOf(c),m=d.cells.indexOf(l);return u===m&&A.index===d.index}function ti(i,t){if(ei(i,t))return Jn(i,t);const{path:e}=i,{path:n}=t,o=e[e.length-5],a=n[n.length-5];if(o!==a&&typeof o=="string"&&typeof a=="string"){const d=o.split("#-#")[1],u=a.split("#-#")[1];return+d<+u}const r=e[e.length-3],c=n[n.length-3],l=e[e.length-1],A=n[n.length-1];return r<c?!0:r>c?!1:l<=A}function ct(i){return i.sections[0].columns[0].lines.length===0}function ga(i,t,e){let n=t,o=e,a=i[n],r=i[o];for(;n<o&&(ct(a)||ct(r));)ct(a)?(n++,a=i[n]):ct(r)&&(o--,r=i[o]);if(!ct(a)&&!ct(r))return[a,r]}class ni{constructor(t,e){R(this,"_liquid",new M.Liquid);this._documentOffsetConfig=t,this._docSkeleton=e}getRangePointData(t,e){const n=[],a=this._docSkeleton.getSkeletonData();if(a==null)return;const{pages:r}=a,{segmentPage:c,page:l,pageType:A}=t,d=this._getTableRectRangeInfo(t,e);if(d==null)return;const{tableId:u,startRowIndex:m,startColumnIndex:h,endRowIndex:f,endColumnIndex:g}=d;this._liquid.reset();const{pageLayoutType:p,pageMarginLeft:S,pageMarginTop:I}=this._documentOffsetConfig,E=A===M.DocumentSkeletonPageType.BODY||A===M.DocumentSkeletonPageType.CELL?l:c;for(let T=0;T<E;T++){const O=r[T];this._liquid.translatePage(O,p,S,I)}for(let T=E;T<r.length;T++){const O=r[T];this._liquid.translatePagePadding(O);const{skeTables:v}=O;let b=null;for(const[x,U]of v.entries())x.startsWith(u)&&(b=U);if(b==null){this._liquid.restorePagePadding(O),this._liquid.translatePage(O,p,S,I);continue}this._liquid.translateSave(),this._liquid.translate(0,b.top);const{x:_,y:B}=this._liquid,{left:w}=b;for(const x of b.rows)if(x.index>=m&&x.index<=f){const U=ga(x.cells,h,g);if(U==null)continue;const[L,F]=U,H={startX:_+L.left+w,startY:B+x.top,endX:_+F.left+F.pageWidth+w,endY:B+x.top+x.height};n.push($n(H))}this._liquid.translateRestore(),this._liquid.restorePagePadding(O),this._liquid.translatePage(O,p,S,I)}return{pointGroup:n,startRow:m,startColumn:h,endRow:f,endColumn:g,tableId:u}}getNodePositionGroup(t,e){const n=[],o=this._docSkeleton.findCharIndexByPosition(t),a=this._docSkeleton.findCharIndexByPosition(e);if(o==null||a==null)return;const r=o<a,c=this._getTableRectRangeInfo(t,e);if(c==null)return;const{tableId:l,startRowIndex:A,startColumnIndex:d,endRowIndex:u,endColumnIndex:m}=c,h=this._docSkeleton.getViewModel().findTableNodeById(l);if(h==null)return;const f=h.children[0].children.length;if(d===0&&m===f-1){const p=h.children[A].children[d],S=this._docSkeleton.findNodePositionByCharIndex(p.startIndex+1),I=h.children[u].children[m],E=this._docSkeleton.findNodePositionByCharIndex(I.endIndex-2);if(S==null||E==null)return;n.push({anchor:r?S:E,focus:r?E:S})}else for(let p=A;p<=u;p++){const S=h.children[p],I=S.children[d],E=S.children[m],T=this._docSkeleton.findNodePositionByCharIndex(I.startIndex+1),O=this._docSkeleton.findNodePositionByCharIndex(E.endIndex-2);if(T==null||O==null)return;n.push({anchor:r?T:O,focus:r?O:T})}return n}_getTableRectRangeInfo(t,e){const o=this._docSkeleton.getSkeletonData();if(o==null)return;const{pages:a}=o,{path:r}=t,{path:c}=e,l=M.getPageFromPath(o,r),A=M.getPageFromPath(o,c);if(l==null||A==null)return;const d=l.segmentId,u=l.parent.index,m=l.parent.cells.indexOf(l),h=(A==null?void 0:A.parent).index,f=(A==null?void 0:A.parent).cells.indexOf(A),g=Math.min(u,h),p=Math.max(u,h),S=Math.min(m,f),I=Math.max(m,f);return{pages:a,tableId:d,startRowIndex:g,startColumnIndex:S,endRowIndex:p,endColumnIndex:I}}}const ma="__TestSelectionRange__",fa="__TestSelectionAnchor__",po=6,ii=500,pa=500,Jt=3;function Ot(i){const t=i[0],e=t[0],n=t[2],{x:o,y:a}=e,{x:r,y:c}=n;return{left:o,top:a,width:r-o,height:c-a}}function Zt(i){return i.map(t=>{let e=1/0,n=-1/0,o=1/0,a=-1/0;return t.forEach(r=>{e=Math.min(r.x,e),n=Math.max(r.x,n),a=Math.max(r.y,a),o=Math.min(r.y,o)}),{left:e,right:n,top:o,bottom:a}})}class je{constructor(t,e,n,o,a,r=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,c="",l=-1){R(this,"rangeType",s.DOC_RANGE_TYPE.TEXT);R(this,"_current",!1);R(this,"_rangeShape");R(this,"_anchorShape");R(this,"_cursorList",[]);R(this,"_anchorBlinkTimer",null);this._scene=t,this._document=e,this._docSkeleton=n,this.anchorNodePosition=o,this.focusNodePosition=a,this.style=r,this._segmentId=c,this._segmentPage=l,this._anchorBlink(),this.refresh()}_anchorBlink(){setTimeout(()=>{this._anchorShape&&this._anchorShape.visible&&this.deactivateStatic()},ii),this._anchorBlinkTimer=setInterval(()=>{this._anchorShape&&this._anchorShape.visible&&(this.activeStatic(),setTimeout(()=>{this.deactivateStatic()},ii))},pa+ii)}get startOffset(){var o;const{startOffset:t}=(o=qn(this._cursorList))!=null?o:{},e=this._docSkeleton.getViewModel().getDataModel().getSelfOrHeaderFooterModel(this._segmentId).getBody();if(t==null||e==null)return t;const n=e.dataStream.length-2;return Math.min(n,t)}get endOffset(){var o;const{endOffset:t}=(o=qn(this._cursorList))!=null?o:{},e=this._docSkeleton.getViewModel().getDataModel().getSelfOrHeaderFooterModel(this._segmentId).getBody();if(t==null||e==null)return t;const n=e.dataStream.length-2;return Math.min(t,n)}get collapsed(){const{startOffset:t,endOffset:e}=this;return t!=null&&t===e}get startNodePosition(){if(this.anchorNodePosition==null)return null;if(this.focusNodePosition==null)return this.anchorNodePosition;const{start:t}=Zn(this.anchorNodePosition,this.focusNodePosition);return t}get endNodePosition(){if(this.anchorNodePosition==null)return this.focusNodePosition;if(this.focusNodePosition==null)return null;const{end:t}=Zn(this.anchorNodePosition,this.focusNodePosition);return t}get direction(){const{collapsed:t,anchorNodePosition:e,focusNodePosition:n}=this;return t||e==null||n==null?s.RANGE_DIRECTION.NONE:Jn(e,n)?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD}get segmentId(){return this._segmentId}get segmentPage(){return this._segmentPage}getAbsolutePosition(){const t=this.anchorNodePosition,e=this.focusNodePosition;if(this._isEmpty())return;const n=this._document.getOffsetConfig(),{docsLeft:o,docsTop:a}=n,r=new De(n,this._docSkeleton);if(this._isCollapsed()){const{contentBoxPointGroup:d,cursorList:u}=r.getRangePointData(t,t);if(this._setCursorList(u),d.length===0)return;const m=Ot(d);return{...m,left:m.left+o,top:m.top+a}}const{borderBoxPointGroup:c,cursorList:l}=r.getRangePointData(t,e);if(this._setCursorList(l),c.length===0)return;const A=Ot(c);return{...A,left:A.left+o,top:A.top+a}}getAnchor(){return this._anchorShape}activeStatic(){var t,e;(e=this._anchorShape)==null||e.setProps({stroke:((t=this.style)==null?void 0:t.strokeActive)||M.getColor(s.COLORS.black,1)})}deactivateStatic(){var t,e;(e=this._anchorShape)==null||e.setProps({stroke:((t=this.style)==null?void 0:t.stroke)||M.getColor(s.COLORS.black,0)})}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var t,e;(t=this._rangeShape)==null||t.dispose(),this._rangeShape=null,(e=this._anchorShape)==null||e.dispose(),this._anchorShape=null,this._anchorBlinkTimer&&(clearInterval(this._anchorBlinkTimer),this._anchorBlinkTimer=null)}isIntersection(t){const{startOffset:e,endOffset:n}=this,{startOffset:o,endOffset:a}=t;return e==null||n==null||o==null||a==null?!1:e<=a&&n>=o}refresh(){var u,m;const{_document:t,_docSkeleton:e}=this,n=this.anchorNodePosition,o=this.focusNodePosition;if((u=this._anchorShape)==null||u.hide(),(m=this._rangeShape)==null||m.hide(),this._isEmpty())return;const a=t.getOffsetConfig(),{docsLeft:r,docsTop:c}=a,l=new De(a,e);if(this._isCollapsed()){const{contentBoxPointGroup:h,cursorList:f}=l.getRangePointData(n,n);if(this._setCursorList(f),h.length>0){const g=e.findGlyphByPosition(n);this._createOrUpdateAnchor(h,r,c,g)}return}const{borderBoxPointGroup:A,cursorList:d}=l.getRangePointData(n,o);this._setCursorList(d),A.length>0&&this._createOrUpdateRange(A,r,c)}_isEmpty(){return this.anchorNodePosition==null&&this.focusNodePosition==null}_isCollapsed(){const t=this.anchorNodePosition,e=this.focusNodePosition;if(t!=null&&e==null)return!0;if(t==null||e==null)return!1;const n=Object.keys(rt);for(const o of n){const a=t[o],r=e[o];if(a!==r)return!1}return t.isBack===e.isBack}_createOrUpdateRange(t,e,n){var r;if(this._rangeShape){this._rangeShape.translate(e,n),this._rangeShape.updatePointGroup(t),this._rangeShape.show();return}const o=.3,a=new M.RegularPolygon(ma+s.Tools.generateRandomId(po),{pointsGroup:t,fill:((r=this.style)==null?void 0:r.fill)||M.getColor(s.COLORS.black,o),left:e,top:n,evented:!1,debounceParentDirty:!1});this._rangeShape=a,this._scene.addObject(a,Jt)}_createOrUpdateAnchor(t,e,n,o){var g,p,S;const a=Ot(t),{left:r}=a;let{top:c,height:l}=a;const A=14;l<A&&(c-=A-l,l=A);const d=12;let u=r+e;const m=c+n,h=((g=o==null?void 0:o.ts)==null?void 0:g.it)===s.BooleanNumber.TRUE;if(h&&(u+=l*Math.tan(d*Math.PI/180)/2),this._anchorShape){this._anchorShape.transformByState({left:u,top:m,height:l}),this._anchorShape.show(),h?this._anchorShape.skew(-d,0):this._anchorShape.skew(0,0);return}const f=new M.Rect(fa+s.Tools.generateRandomId(po),{left:u,top:m,height:l,strokeWidth:((p=this.style)==null?void 0:p.strokeWidth)||1.5,stroke:((S=this.style)==null?void 0:S.strokeActive)||M.getColor(s.COLORS.black,1),evented:!1});h&&f.skew(-d,0),this._anchorShape=f,this._scene.addObject(f,Jt),this.activeStatic()}_setCursorList(t){t.length!==0&&(this._cursorList=t)}}const Sa="__DocTableRectRange__",Ia=6;function qt(i,t,e,n,o,a=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,r="",c=-1){const l=t.getOffsetConfig(),d=new ni(l,e).getNodePositionGroup(n,o);return(d!=null?d:[]).map(u=>new oi(i,t,e,u.anchor,u.focus,a,r,c))}class oi{constructor(t,e,n,o,a,r=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,c="",l=-1){R(this,"rangeType",s.DOC_RANGE_TYPE.RECT);R(this,"_rangeShape");R(this,"_current",!1);R(this,"_startRow");R(this,"_startCol");R(this,"_endRow");R(this,"_endCol");R(this,"_tableId");this._scene=t,this._document=e,this._docSkeleton=n,this.anchorNodePosition=o,this.focusNodePosition=a,this.style=r,this._segmentId=c,this._segmentPage=l,this.refresh()}get startOffset(){const{startNodePosition:t}=this;return this._docSkeleton.findCharIndexByPosition(t)}get endOffset(){const{endNodePosition:t}=this;return this._docSkeleton.findCharIndexByPosition(t)}get collapsed(){return!1}get startRow(){return this._startRow}get startColumn(){return this._startCol}get endRow(){return this._endRow}get endColumn(){return this._endCol}get tableId(){return this._tableId}get segmentId(){return this._segmentId}get segmentPage(){return this._segmentPage}get spanEntireRow(){var r;const e=(r=this._docSkeleton.getViewModel().getSnapshot().tableSource)==null?void 0:r[this._tableId],{_startCol:n,_endCol:o}=this;if(e==null)throw new Error("Table is not found.");const{tableColumns:a}=e;return n===0&&o===a.length-1}get spanEntireColumn(){var r;const e=(r=this._docSkeleton.getViewModel().getSnapshot().tableSource)==null?void 0:r[this._tableId],{_startRow:n,_endRow:o}=this;if(e==null)throw new Error("Table is not found.");const{tableRows:a}=e;return n===0&&o===a.length-1}get spanEntireTable(){return this.spanEntireRow&&this.spanEntireColumn}get startNodePosition(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ti(t,e)?t:e}get endNodePosition(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ti(t,e)?e:t}get direction(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ti(t,e)?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD}isActive(){return this._current===!0}activate(){this._current=!0}deactivate(){this._current=!1}dispose(){var t;(t=this._rangeShape)==null||t.dispose(),this._rangeShape=null}isIntersection(t){const{startRow:e,startColumn:n,endRow:o,endColumn:a}=this,{startRow:r,startColumn:c,endRow:l,endColumn:A}=t,d={left:n,top:e,right:a,bottom:o},u={left:c,top:r,right:A,bottom:l};return s.Rectangle.hasIntersectionBetweenTwoRect(d,u)}refresh(){var p;(p=this._rangeShape)==null||p.hide();const{startNodePosition:t,endNodePosition:e,_document:n,_docSkeleton:o}=this,a=n.getOffsetConfig(),{docsLeft:r,docsTop:c}=a,A=new ni(a,o).getRangePointData(t,e);if(A==null)return;const{pointGroup:d=[],startRow:u,endRow:m,startColumn:h,endColumn:f,tableId:g}=A;(d==null?void 0:d.length)>0&&this._createOrUpdateRange(d,r,c),this._updateTableInfo(u,m,h,f,g)}_updateTableInfo(t,e,n,o,a){this._startRow=t,this._endRow=e,this._startCol=n,this._endCol=o,this._tableId=a}_createOrUpdateRange(t,e,n){var r;if(this._rangeShape){this._rangeShape.translate(e,n),this._rangeShape.updatePointGroup(t),this._rangeShape.show();return}const o=.3,a=new M.RegularPolygon(Sa+s.Tools.generateRandomId(Ia),{pointsGroup:t,fill:((r=this.style)==null?void 0:r.fill)||M.getColor(s.COLORS.black,o),left:e,top:n,evented:!1,debounceParentDirty:!1});this._rangeShape=a,this._scene.addObject(a,Jt)}}function So(i,t,e,n,o,a,r,c,l=!0,A=!0){const d=o.findNodePositionByCharIndex(i,l,r,c),u=o.findNodePositionByCharIndex(t,A,r,c);if(!(d==null||u==null))return new je(e,n,o,d,u,a,r,c)}function Ea(i,t,e,n,o,a,r,c){const l=o.findNodePositionByCharIndex(i,!0,r,c),A=o.findNodePositionByCharIndex(t,!0,r,c);if(!(l==null||A==null))return new oi(e,n,o,l,A,a,r,c)}function va(i,t,e,n,o,a,r,c){const l=o.findNodePositionByCharIndex(i,!0,r,c),A=o.findNodePositionByCharIndex(t,!0,r,c);if(!(l==null||A==null))return si(l,A,e,n,o,a,r,c)}function si(i,t,e,n,o,a,r,c){const l=[],A=[],d=[e,n,o,i,t,a,r,c];if(fo(o,i,t)){if(ei(i,t))return l.push(new je(...d)),{textRanges:l,rectRanges:A};{const E=qt(...d);return A.push(...E),{textRanges:l,rectRanges:A}}}if(mo(i,t)){const E=qt(...d);return A.push(...E),{textRanges:l,rectRanges:A}}const u=o.getViewModel().getSelfOrHeaderFooterViewModel(r),m=o.findCharIndexByPosition(i),h=o.findCharIndexByPosition(t);if(m==null||h==null)return;const f=m<=h?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD,g=Math.min(m,h),p=Math.max(m,h);let S=g,I=p;for(const E of u.getChildren())for(const T of E.children){const{startIndex:O,endIndex:v,children:b}=T,_=E.children.indexOf(T),B=E.children[_+1],w=b[0];let x=!1;if(w){const{startIndex:U,endIndex:L,children:F}=w;let H=null,k=null;const X=F.find(W=>W.startIndex<=g&&W.endIndex>=g),G=F.find(W=>W.startIndex<=p&&W.endIndex>=p);if(g>U&&g<L)H=o.findNodePositionByCharIndex(X.startIndex+2,!0,r,c),k=o.findNodePositionByCharIndex(L-4,!0,r,c),S=L+1;else if(p>U&&p<L)H=o.findNodePositionByCharIndex(U+3,!0,r,c),k=o.findNodePositionByCharIndex(G.endIndex-3,!0,r,c),I=U-1,x=!0;else if(U>g&&L<p){if(H=o.findNodePositionByCharIndex(U+3,!0,r,c),k=o.findNodePositionByCharIndex(L-4,!0,r,c),S<=U-1){const W=o.findNodePositionByCharIndex(S,!0,r,c),V=o.findNodePositionByCharIndex(U-1,!1,r,c),K=f===s.RANGE_DIRECTION.FORWARD?W:V,ee=f===s.RANGE_DIRECTION.FORWARD?V:W;l.push(new je(e,n,o,K,ee,a,r,c))}S=L+1}if(H&&k){const W=f===s.RANGE_DIRECTION.FORWARD?H:k,V=f===s.RANGE_DIRECTION.FORWARD?k:H;A.push(...qt(e,n,o,W,V,a,r,c))}}if(I===v+1&&!x&&B&&B.children.length&&(I=v,x=!0),I>=O&&I<=v||x){const U=o.findNodePositionByCharIndex(S,!0,r,c),L=o.findNodePositionByCharIndex(I,!x,r,c),F=f===s.RANGE_DIRECTION.FORWARD?U:L,H=f===s.RANGE_DIRECTION.FORWARD?L:U;if(A.length&&s.Tools.diffValue(F,H))continue;l.push(new je(e,n,o,F,H,a,r,c))}}return{textRanges:l,rectRanges:A}}function Io(i){const t=i==null?void 0:i.getCanvasElement();if(!t)return{left:0,top:0};const{top:e,left:n}=M.getOffsetRectForDom(t);return{left:n,top:e}}function Eo(i){var l;const t=(l=i.parent)==null?void 0:l.parent,e=t==null?void 0:t.parent;if(t==null||e==null)return;const{paragraphIndex:n}=t,o=e.lines.filter(A=>A.paragraphIndex===n);let a=-1,r="",c=!1;for(const A of o)for(const d of A.divides)for(const u of d.glyphGroup)c||(a+=u.count),u===i&&(c=!0),r+=u.count>0?u.content:"";return{st:o[0].st,ed:n,content:r,nodeIndex:a}}function ai(i){const{startOffset:t,endOffset:e,collapsed:n,rangeType:o,startNodePosition:a,endNodePosition:r,direction:c,segmentId:l,segmentPage:A}=i;return{startOffset:t,endOffset:e,collapsed:n,rangeType:o,startNodePosition:a,endNodePosition:r,direction:c,segmentId:l,segmentPage:A,isActive:i.isActive()}}function Ca(i){const t=ai(i),{startRow:e,startColumn:n,endRow:o,endColumn:a,tableId:r,spanEntireRow:c,spanEntireColumn:l,spanEntireTable:A}=i;return{...t,startRow:e,startColumn:n,endRow:o,endColumn:a,tableId:r,spanEntireRow:c,spanEntireColumn:l,spanEntireTable:A}}var Ta=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,ya=(i,t,e,n)=>{for(var o=n>1?void 0:n?ba(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Ta(t,e,o),o},$t=(i,t)=>(e,n)=>t(e,n,i);C.DocSelectionRenderService=class extends s.RxDisposable{constructor(e,n,o,a,r){super();R(this,"_onInputBefore$",new N.Subject);R(this,"onInputBefore$",this._onInputBefore$.asObservable());R(this,"_onKeydown$",new N.Subject);R(this,"onKeydown$",this._onKeydown$.asObservable());R(this,"_onInput$",new N.Subject);R(this,"onInput$",this._onInput$.asObservable());R(this,"_onCompositionstart$",new N.BehaviorSubject(null));R(this,"onCompositionstart$",this._onCompositionstart$.asObservable());R(this,"_onCompositionupdate$",new N.BehaviorSubject(null));R(this,"onCompositionupdate$",this._onCompositionupdate$.asObservable());R(this,"_onCompositionend$",new N.BehaviorSubject(null));R(this,"onCompositionend$",this._onCompositionend$.asObservable());R(this,"_onSelectionStart$",new N.BehaviorSubject(null));R(this,"onSelectionStart$",this._onSelectionStart$.asObservable());R(this,"_onPaste$",new N.Subject);R(this,"onPaste$",this._onPaste$.asObservable());R(this,"_textSelectionInner$",new N.BehaviorSubject(null));R(this,"textSelectionInner$",this._textSelectionInner$.asObservable());R(this,"_onFocus$",new N.Subject);R(this,"onFocus$",this._onFocus$.asObservable());R(this,"_onBlur$",new N.Subject);R(this,"onBlur$",this._onBlur$.asObservable());R(this,"_onPointerDown$",new N.Subject);R(this,"onPointerDown$",this._onPointerDown$.asObservable());R(this,"_container");R(this,"_inputParent");R(this,"_input");R(this,"_scrollTimers",[]);R(this,"_rangeList",[]);R(this,"_rangeListCache",[]);R(this,"_rectRangeList",[]);R(this,"_rectRangeListCache",[]);R(this,"_anchorNodePosition",null);R(this,"_focusNodePosition",null);R(this,"_currentSegmentId","");R(this,"_currentSegmentPage",-1);R(this,"_selectionStyle",M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE);R(this,"_viewPortObserverMap",new Map);R(this,"_isIMEInputApply",!1);R(this,"_scenePointerMoveSubs",[]);R(this,"_scenePointerUpSubs",[]);R(this,"_editorFocusing",!0);R(this,"_reserveRanges",!1);this._context=e,this._layoutService=n,this._logService=o,this._univerInstanceService=a,this._docSkeletonManagerService=r,this._initDOM(),this._registerContainer(),this._setSystemHighlightColorToStyle(),this._listenCurrentUnitChange()}_listenCurrentUnitChange(){this._univerInstanceService.getCurrentTypeOfUnit$(s.UniverInstanceType.UNIVER_DOC).pipe(N.takeUntil(this.dispose$)).subscribe(e=>{if(e==null)return;e.getUnitId()!==this._context.unitId&&!this._reserveRanges&&this.removeAllRanges()})}get activeViewPort(){return this._context.scene.getViewports()[0]}setSegment(e){this._currentSegmentId=e}getSegment(){return this._currentSegmentId}setSegmentPage(e){this._currentSegmentPage=e}getSegmentPage(){return this._currentSegmentPage}setReserveRangesStatus(e){this._reserveRanges=e}_setRangeStyle(e=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE){this._selectionStyle=e}addDocRanges(e,n=!0,o){const{_currentSegmentId:a,_currentSegmentPage:r,_selectionStyle:c}=this,{scene:l,mainComponent:A}=this._context,d=A,u=this._docSkeletonManagerService.getSkeleton(),m=(h,f)=>{const g=va(h,f,l,d,u,c,a,r);if(g==null)return;const{textRanges:p,rectRanges:S}=g;for(const I of p)this._addTextRange(I);this._addRectRanges(S)};for(const h of e){const{startOffset:f,endOffset:g,rangeType:p,startNodePosition:S,endNodePosition:I}=h;if(p===s.DOC_RANGE_TYPE.RECT){const E=Ea(f,g,l,d,u,c,a,r);E&&this._addRectRanges([E])}else if(p===s.DOC_RANGE_TYPE.TEXT)try{let E=null;S&&I?E=So(S.isBack?f:f-1,I.isBack?g:g-1,l,d,u,c,a,r,S.isBack,I.isBack):E=So(f,g,l,d,u,c,a,r),E&&this._addTextRange(E)}catch{m(f,g)}else m(f,g)}this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:a,segmentPage:r,style:c,isEditing:n,options:o}),this._updateInputPosition(o==null?void 0:o.forceFocus)}setCursorManually(e,n){const o=this._findNodeByCoord(e,n,{strict:!0,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage}),a=this._getNodePosition(o);if(a==null){this._removeAllRanges();return}(o==null?void 0:o.node.streamType)===s.DataStreamTreeTokenType.PARAGRAPH&&(a.isBack=!0),this._createTextRangeByAnchorPosition(a),this._textSelectionInner$.next({textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage,style:this._selectionStyle,isEditing:!1})}sync(){this._updateInputPosition()}activate(e,n,o=!1){const a=this._input===document.activeElement||document.activeElement===document.body||document.activeElement===null;this._container.style.left=`${e}px`,this._container.style.top=`${n}px`,this._container.style.zIndex="1000",(a||o)&&this.focus()}hasFocus(){return document.activeElement===this._input}focus(){this._editorFocusing&&this._input.focus()}blur(){this._input.blur()}focusEditor(){this._editorFocusing=!0,this.focus()}blurEditor(){this._editorFocusing=!1,this.blur()}deactivate(){this._container.style.left="0px",this._container.style.top="0px"}__handleDblClick(e){const{offsetX:n,offsetY:o}=e,a=this._findNodeByCoord(n,o,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage});if(a==null||a.node==null)return;const r=Eo(a.node);if(r==null)return;const{content:c,st:l,nodeIndex:A}=r;if(A===-1||Intl.Segmenter==null)return;const u=new Intl.Segmenter(void 0,{granularity:"word"}).segment(c);let m=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(const{segment:f,index:g,isWordLike:p}of u)if(g<=A&&A<g+f.length&&p){m=g+l,h=g+l+f.length;break}if(Number.isFinite(m)&&Number.isFinite(h)){this.removeAllRanges();const f=[{startOffset:m,endOffset:h}];this.addDocRanges(f,!1,{forceFocus:!0})}}__handleTripleClick(e){const{offsetX:n,offsetY:o}=e,a=this._findNodeByCoord(n,o,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage});if(a==null||a.node==null)return;const r=Eo(a.node);if(r==null)return;this.removeAllRanges();const{st:c,ed:l}=r,A=[{startOffset:c,endOffset:l}];this.addDocRanges(A,!1,{forceFocus:!0})}__onPointDown(e){var p,S;this._editorFocusing=!0;const{scene:n,mainComponent:o}=this._context,a=this._docSkeletonManagerService.getSkeleton(),{offsetX:r,offsetY:c}=e,l=this._findNodeByCoord(r,c,{strict:!1,segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage}),A=this._getNodePosition(l);if(A==null||l==null){this._removeAllRanges();return}(l==null?void 0:l.node.streamType)===s.DataStreamTreeTokenType.PARAGRAPH&&(A.isBack=!0);const d=this._textSelectionInner$.value;if(l&&e.button===2&&d){const I=a.findCharIndexByPosition(A);if(typeof I=="number"&&d.textRanges.some(E=>E.startOffset<=I&&E.endOffset>I)||typeof I=="number"&&d.rectRanges.some(E=>E.startOffset<=I&&E.endOffset>=I))return}const{segmentId:u,segmentPage:m}=l;u&&this._currentSegmentId&&u!==this._currentSegmentId&&this.setSegment(u),u&&m!==this._currentSegmentPage&&this.setSegmentPage(m),this._anchorNodePosition=A,e.shiftKey&&this._getActiveRangeInstance()?this._updateActiveRangePosition(A):e.ctrlKey?this._removeAllCollapsedTextRanges():this._isEmpty()||this._removeAllRanges(),n.disableObjectsEvent();const h=M.ScrollTimer.create(n);this._scrollTimers.push(h),h.startScroll(r,c),this._onSelectionStart$.next((p=this._getActiveRangeInstance())==null?void 0:p.startNodePosition),(S=n.getTransformer())==null||S.clearSelectedObjects();let f=r,g=c;this._scenePointerMoveSubs.push(n.onPointerMove$.subscribeEvent(I=>{const{offsetX:E,offsetY:T}=I;n.setCursor(M.CURSOR_TYPE.TEXT),!(Math.sqrt((E-f)**2+(T-g)**2)<3)&&(this._moving(E,T),h.scrolling(E,T,()=>{this._moving(E,T)}),f=E,g=T)})),this._scenePointerUpSubs.push(n.onPointerUp$.subscribeEvent(()=>{if([...this._scenePointerMoveSubs,...this._scenePointerUpSubs].forEach(E=>{E.unsubscribe()}),n.enableObjectsEvent(),this._anchorNodePosition&&!this._focusNodePosition){if(e.ctrlKey){this._disposeScrollTimers();return}const E=new je(n,o,a,this._anchorNodePosition,void 0,this._selectionStyle,this._currentSegmentId,this._currentSegmentPage);this._addTextRange(E)}else if(this._anchorNodePosition&&this._focusNodePosition){for(const E of this._rangeListCache)e.ctrlKey?E.collapsed?E.dispose():this._addTextRange(E):this._addTextRange(E);this._addRectRanges(this._rectRangeListCache),this._rangeListCache=[],this._rectRangeListCache=[]}this._anchorNodePosition=null,this._focusNodePosition=null;const I={textRanges:this._getAllTextRanges(),rectRanges:this._getAllRectRanges(),segmentId:this._currentSegmentId,segmentPage:this._currentSegmentPage,style:this._selectionStyle,isEditing:!1};this._textSelectionInner$.next(I),this._disposeScrollTimers(),this._updateInputPosition(!0)}))}removeAllRanges(){this._removeAllRanges(),this.deactivate()}getActiveTextRange(){return this._getActiveRangeInstance()}_disposeScrollTimers(){this._scrollTimers.forEach(e=>{e==null||e.dispose()}),this._scrollTimers=[]}_setSystemHighlightColorToStyle(){const{r:e,g:n,b:o,a}=M.getSystemHighlightColor(),r={strokeWidth:1.5,stroke:"rgba(0, 0, 0, 0)",strokeActive:"rgba(0, 0, 0, 1)",fill:`rgba(${e}, ${n}, ${o}, ${a!=null?a:.3})`};this._setRangeStyle(r)}_getAllTextRanges(){return this._rangeList.map(ai)}_getAllRectRanges(){return this._rectRangeList.map(Ca)}_getActiveRange(){const e=this._rangeList.find(a=>a.isActive());if(e==null)return null;const{startOffset:n,endOffset:o}=e;return n==null||o==null?null:ai(e)}_getActiveRangeInstance(){return this._rangeList.find(e=>e.isActive())}dispose(){super.dispose(),this._detachEvent(),this._removeAllRanges(),this._container.remove()}_initDOM(){const{unitId:e}=this._context,n=document.createElement("div");n.style.position="fixed",n.style.left="0px",n.style.top="0px",n.id=`univer-doc-selection-container-${e}`;const o=document.createElement("div"),a=document.createElement("div");o.appendChild(a),n.appendChild(o),this._container=n,this._inputParent=o,this._input=a,this._initInput(),this._initInputEvents(),document.body.appendChild(n)}_registerContainer(){this.disposeWithMe(this._layoutService.registerContainerElement(this._container))}_initInput(){this._inputParent.style.cssText=`
|
|
75
103
|
position:absolute;
|
|
76
104
|
height:1px;
|
|
77
105
|
width:1px;
|
|
@@ -87,25 +115,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
87
115
|
caret-color: transparent;
|
|
88
116
|
white-space: pre-wrap;
|
|
89
117
|
user-select: text;
|
|
90
|
-
`}_getNodePosition(e){if(e==null)return;const{node:n,ratioX:o,segmentPage:a}=e,c=this._docSkeletonManagerService.getSkeleton().findPositionByGlyph(n,a);if(c==null)return;let A=o<.5;return n.glyphType===M.GlyphType.LIST&&(A=!0),{...c,isBack:A}}_interactTextRanges(e){const n=[];for(const o of this._rangeList){if(e.some(a=>a.isIntersection(o))){o.dispose();continue}n.push(o)}this._rangeList=n}_interactRectRanges(e){const n=[];for(const o of this._rectRangeList){if(e.some(a=>a.isIntersection(o))){o.dispose();continue}n.push(o)}this._rectRangeList=n}_removeCollapsedTextRange(){const e=this._rangeList;this._rangeList=[];for(const n of e)n.collapsed?n.dispose():this._rangeList.push(n)}_removeAllRanges(){this._removeAllTextRanges(),this._removeAllRectRanges()}_removeAllCacheRanges(){this._rangeListCache.forEach(e=>{e.dispose()}),this._rectRangeListCache.forEach(e=>{e.dispose()}),this._rangeListCache=[],this._rectRangeListCache=[]}_removeAllTextRanges(){this._rangeList.forEach(e=>{e.dispose()}),this._rangeList=[]}_removeAllRectRanges(){this._rectRangeList.forEach(e=>{e.dispose()}),this._rectRangeList=[]}_removeAllCollapsedTextRanges(){for(const e of this._rangeList)e.collapsed&&e.dispose()}_deactivateAllTextRanges(){this._rangeList.forEach(e=>{e.deactivate()})}_deactivateAllRectRanges(){this._rectRangeList.forEach(e=>{e.deactivate()})}_addTextRangesToCache(e){this._rangeListCache.push(...e)}_addTextRange(e){this._deactivateAllTextRanges(),e.activate(),this._rangeList.push(e)}_addRectRangesToCache(e){this._rectRangeListCache.push(...e)}_addRectRanges(e){e.length!==0&&(this._deactivateAllRectRanges(),e[e.length-1].activate(),this._rectRangeList.push(...e))}_createTextRangeByAnchorPosition(e){this._removeAllRanges();const{scene:n,mainComponent:o}=this._context,a=this._docSkeletonManagerService.getSkeleton(),r=new je(n,o,a,e,void 0,this._selectionStyle,this._currentSegmentId,this._currentSegmentPage);this._addTextRange(r)}_updateActiveRangePosition(e){const n=this._getActiveRangeInstance();if(n==null||n.anchorNodePosition==null){this._logService.error("[DocSelectionRenderService] _updateActiveRangeFocusPosition: active range has no anchor");return}this._removeAllRanges(),this._anchorNodePosition=n.anchorNodePosition,this._focusNodePosition=e;const{scene:o,mainComponent:a}=this._context,r=this._docSkeletonManagerService.getSkeleton(),{_anchorNodePosition:c,_focusNodePosition:l,_selectionStyle:A,_currentSegmentId:d,_currentSegmentPage:u}=this;if(c==null||l==null||a==null)return;const m=si(c,l,o,a,r,A,d,u);if(m==null)return;const{textRanges:h,rectRanges:f}=m;this._addTextRangesToCache(h),this._addRectRangesToCache(f),this.deactivate()}_isEmpty(){return this._rangeList.length===0&&this._rectRangeList.length===0}_getCanvasOffset(){var n;const e=(n=this._context.scene)==null?void 0:n.getEngine();return Io(e)}_updateInputPosition(e=!1){const n=this._getActiveRangeInstance(),o=n==null?void 0:n.getAnchor();if(!o||o&&!o.visible||this.activeViewPort==null){this.focus();return}const{left:a,top:r}=o,c=this.activeViewPort.getAbsoluteVector(M.Vector2.FromArray([a,r])),{x:l,y:A}=c;let{left:d,top:u}=this._getCanvasOffset();d+=l,u+=A,this.activate(d,u,e)}_moving(e,n){var I,E;const{_currentSegmentId:o,_currentSegmentPage:a}=this,r=this._findNodeByCoord(e,n,{strict:!0,segmentId:o,segmentPage:a}),c=this._getNodePosition(r);if(c==null||r==null)return;const l=r==null?void 0:r.node.parent,A=l==null?void 0:l.glyphGroup[l.glyphGroup.indexOf(r.node)+1];(r==null?void 0:r.node.streamType)===s.DataStreamTreeTokenType.PARAGRAPH&&(A==null?void 0:A.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK&&(c.isBack=!0),this._focusNodePosition=c,this._removeAllCacheRanges();const{_anchorNodePosition:d,_selectionStyle:u}=this,{scene:m,mainComponent:h}=this._context,f=this._docSkeletonManagerService.getSkeleton();if(d==null||h==null)return;const g=si(d,c,m,h,f,u,o,a);if(g==null)return;const{textRanges:p,rectRanges:S}=g;this._rangeList.length>0&&p.length>0&&this._interactTextRanges(p),this._rectRangeList.length>0&&S.length>0&&this._interactRectRanges(S),this._addTextRangesToCache(p),this._addRectRangesToCache(S),this.deactivate(),(E=(I=this._context.scene)==null?void 0:I.getEngine())==null||E.setCapture()}__attachScrollEvent(){const e=this.activeViewPort;if(!e)return;const{unitId:n}=this._context;if(this._viewPortObserverMap.has(n))return;const o=e.onScrollAfter$.subscribeEvent(r=>{if(!r.viewport)return;const l=this._getActiveRangeInstance();l==null||l.activeStatic()}),a=e.onScrollEnd$.subscribeEvent(r=>{const c=r.viewport;if(!c)return;const l=c.getBounding(),A=this._getActiveRangeInstance(),d=A==null?void 0:A.getAnchor();if(!(!d||d&&!d.visible)){if(l){const{left:u,top:m,right:h,bottom:f}=l.viewBound;if(d.left<u||d.left>h||d.top<m||d.top>f){A==null||A.deactivateStatic();return}}this._updateInputPosition()}});this._viewPortObserverMap.set(n,{scrollBefore:o,scrollStop:a})}_initInputEvents(){this.disposeWithMe(N.fromEvent(this._input,"keydown").subscribe(e=>{this._isIMEInputApply||this._eventHandle(e,n=>{this._onKeydown$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"input").subscribe(e=>{if(!(e.inputType==="historyUndo"||e.inputType==="historyRedo")){if(this._rectRangeList.length>0)return e.stopPropagation(),e.preventDefault();this._isIMEInputApply||this._eventHandle(e,n=>{this._onInputBefore$.next(n),this._onInput$.next(n)})}})),this.disposeWithMe(N.fromEvent(this._input,"compositionstart").subscribe(e=>{if(this._rectRangeList.length>0)return e.stopPropagation(),e.preventDefault();this._isIMEInputApply=!0,this._eventHandle(e,n=>{this._onCompositionstart$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"compositionend").subscribe(e=>{this._isIMEInputApply=!1,this._eventHandle(e,n=>{this._onCompositionend$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"compositionupdate").subscribe(e=>{this._eventHandle(e,n=>{this._onInputBefore$.next(n),this._onCompositionupdate$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"paste").subscribe(e=>{this._eventHandle(e,n=>{this._onPaste$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"focus").subscribe(e=>{this._eventHandle(e,n=>{this._onFocus$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"blur").subscribe(e=>{this._eventHandle(e,n=>{this._onBlur$.next(n)})}))}_eventHandle(e,n){const o=this._input.textContent||"";this._input.innerHTML="";const a=this._getActiveRange(),r=this._getAllTextRanges();n({event:e,content:o,activeRange:a,rangeList:r})}_getTransformCoordForDocumentOffset(e,n){const o=this._context.mainComponent,{documentTransform:a}=o.getOffsetConfig();if(this.activeViewPort==null||a==null)return;const r=this.activeViewPort.transformVector2SceneCoord(M.Vector2.FromArray([e,n]));if(r)return a.clone().invert().applyPoint(r)}_findNodeByCoord(e,n,o){const a=this._getTransformCoordForDocumentOffset(e,n);if(a==null)return;const r=this._context.mainComponent,c=this._docSkeletonManagerService.getSkeleton(),{pageLayoutType:l=M.PageLayoutType.VERTICAL,pageMarginLeft:A,pageMarginTop:d}=r.getOffsetConfig();return c.findNodeByCoord(a,l,A,d,o)}_detachEvent(){this._onInputBefore$.complete(),this._onKeydown$.complete(),this._onInput$.complete(),this._onCompositionstart$.complete(),this._onCompositionupdate$.complete(),this._onCompositionend$.complete(),this._onSelectionStart$.complete(),this._textSelectionInner$.complete(),this._onPaste$.complete(),this._onFocus$.complete(),this._onBlur$.complete(),this._onPointerDown$.complete()}},C.DocSelectionRenderService=ba([$t(1,y.ILayoutService),$t(2,s.ILogService),$t(3,s.IUniverInstanceService),$t(4,s.Inject(D.DocSkeletonManagerService))],C.DocSelectionRenderService);class vo extends s.Disposable{constructor(e,n,o,a,r){super();R(this,"_change$",new N.Subject);R(this,"change$",this._change$.asObservable());R(this,"_input$",new N.Subject);R(this,"input$",this._input$.asObservable());R(this,"_paste$",new N.Subject);R(this,"paste$",this._paste$.asObservable());R(this,"_focus",!1);R(this,"_focus$",new N.Subject);R(this,"focus$",this._focus$.asObservable());R(this,"_blur$",new N.Subject);R(this,"blur$",this._blur$.asObservable());R(this,"_selectionChange$",new N.Subject);R(this,"selectionChange$",this._selectionChange$.asObservable());R(this,"_valueLegality",!0);R(this,"_openForSheetUnitId");R(this,"_openForSheetSubUnitId");this._param=e,this._univerInstanceService=n,this._docSelectionManagerService=o,this._commandService=a,this._undoRedoService=r,this._openForSheetUnitId=this._param.openForSheetUnitId,this._openForSheetSubUnitId=this._param.openForSheetSubUnitId,this._listenSelection()}_listenSelection(){const e=this._param.render.with(C.DocSelectionRenderService);this.disposeWithMe(e.onBlur$.subscribe(n=>{this._blur$.next(n);const o=this.getDocumentData();this._change$.next({target:this,data:o})})),this.disposeWithMe(e.onFocus$.subscribe(n=>{this._focus$.next(n)})),this.disposeWithMe(e.onPaste$.subscribe(n=>{this._paste$.next(n)})),this.disposeWithMe(N.merge(e.onInput$,e.onKeydown$.pipe(yt.filter(n=>{const o=n.event;return o.ctrlKey||o.metaKey?[y.KeyCode.X,y.KeyCode.V].includes(o.keyCode):[y.KeyCode.BACKSPACE].includes(o.keyCode)})),e.onCompositionupdate$,e.onCompositionend$,e.onPaste$).subscribe(n=>{if(n==null)return;const{content:o=""}=n,a=this.getDocumentData();this._input$.next({target:this,content:o,data:a,isComposing:n.event.type==="compositionupdate"})})),this.disposeWithMe(this._docSelectionManagerService.textSelection$.subscribe(n=>{if(n==null)return;const{unitId:o,subUnitId:a,...r}=n,c=this.getEditorId();o===c&&this._selectionChange$.next(r)}))}focus(){const e=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),n=this.getEditorId();(e==null||e.getUnitId()!==n)&&this._univerInstanceService.setCurrentUnitForType(n),this._param.render.with(C.DocSelectionRenderService).focus();const a=this._docSelectionManagerService.getDocRanges({unitId:n,subUnitId:n});a&&this._docSelectionManagerService.replaceDocRanges(a,{unitId:n,subUnitId:n},!1),this._focus=!0}blur(){this._param.render.with(C.DocSelectionRenderService).blur(),this._focus=!1}select(){const e=this.getDocumentData();return this.setSelectionRanges([{startOffset:0,endOffset:e.body?e.body.dataStream.length-2:0}])}setSelectionRanges(e){const n=this.getEditorId(),o={unitId:n,subUnitId:n};return this._docSelectionManagerService.replaceDocRanges(e,o,!1)}getSelectionRanges(){const e=this.getEditorId(),n={unitId:e,subUnitId:e};return this._docSelectionManagerService.getDocRanges(n)}getEditorId(){return this._getEditorId()}getDocumentData(){return this._getDocDataModel().getSnapshot()}setDocumentData(e,n){const{id:o}=e;this._commandService.executeCommand(Xn.id,{unitId:o,snapshot:e,textRanges:n})}clearUndoRedoHistory(){const e=this.getEditorId();return this._undoRedoService.clearUndoRedo(e)}dispose(){this._getDocDataModel().dispose()}get editorUnitId(){return this._param.editorUnitId}get params(){return this._param}get cancelDefaultResizeListener(){return this._param.cancelDefaultResizeListener}get render(){return this._param.render}isSingleChoice(){var e;return(e=this._param.isSingleChoice)!=null?e:!1}setOpenForSheetUnitId(e){this._openForSheetUnitId=e}getOpenForSheetUnitId(){return this._openForSheetUnitId}setOpenForSheetSubUnitId(e){this._openForSheetSubUnitId=e}getOpenForSheetSubUnitId(){return this._openForSheetSubUnitId}isValueLegality(){return this._valueLegality===!0}setValueLegality(e=!0){this._valueLegality=e}isFocus(){return this._focus}setFocus(e=!1){this._focus=e}isSingle(){return this._param.isSingle===!0||this.onlyInputRange()}isReadOnly(){return this._param.readonly===!0}onlyInputContent(){return this._param.onlyInputContent===!0}onlyInputFormula(){return this._param.onlyInputFormula===!0}onlyInputRange(){return this._param.onlyInputRange===!0}getBoundingClientRect(){return this._param.editorDom.getBoundingClientRect()}isVisible(){return this._param.visible}isSheetEditor(){return this._param.isSheetEditor===!0}isFormulaEditor(){return this._param.isFormulaEditor===!0}getValue(){var o;return(((o=this._getDocDataModel().getBody())==null?void 0:o.dataStream)||"").replace(/\r\n/g,"").replace(/\n/g,"").replace(/\n/g,"")}getBody(){return this._getDocDataModel().getBody()}update(e){this._param={...this._param,...e}}verticalAlign(){var c;const e=this._getDocDataModel();if(e==null)return;const{width:n,height:o}=this._param.editorDom.getBoundingClientRect();if(o===0||n===0)return;if(!this.isSingle()){e.updateDocumentDataPageSize(n,void 0);return}let a=s.DEFAULT_STYLES.fs;(c=this._param.canvasStyle)!=null&&c.fontSize&&(a=this._param.canvasStyle.fontSize);const r=(o-a*4/3)/2-2;e.updateDocumentDataMargin({t:r<0?0:r}),e.updateDocumentDataPageSize(void 0,void 0)}updateCanvasStyle(){var o;const e=this._getDocDataModel();if(e==null)return;const n={};(o=this._param.canvasStyle)!=null&&o.fontSize&&(n.textStyle==null&&(n.textStyle={}),n.textStyle.fs=this._param.canvasStyle.fontSize),e.updateDocumentStyle(n)}_getDocDataModel(){const e=this._getEditorId();return this._univerInstanceService.getUnit(e,s.UniverInstanceType.UNIVER_DOC)}_getEditorId(){var e;return((e=this._param.initialSnapshot)==null?void 0:e.id)||this._param.editorUnitId||""}}var ya=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Oa=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ra(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&ya(t,e,o),o},We=(i,t)=>(e,n)=>t(e,n,i);const xa=["univer-editor","univer-range-selector","univer-range-selector-editor","univer-render-canvas","univer-text-editor-container-placeholder"];C.EditorService=class extends s.Disposable{constructor(e,n,o,a,r,c,l){super();R(this,"_editors",new Map);R(this,"_focusEditorUnitId");R(this,"_state$",new N.Subject);R(this,"state$",this._state$.asObservable());R(this,"_currentSheetUnitId");R(this,"_currentSheetSubUnitId");R(this,"_inputFormula$",new N.Subject);R(this,"inputFormula$",this._inputFormula$.asObservable());R(this,"_resize$",new N.Subject);R(this,"resize$",this._resize$.asObservable());R(this,"_closeRangePrompt$",new N.Subject);R(this,"closeRangePrompt$",this._closeRangePrompt$.asObservable());R(this,"_blur$",new N.Subject);R(this,"blur$",this._blur$.asObservable());R(this,"_focus$",new N.Subject);R(this,"focus$",this._focus$.asObservable());R(this,"_setValue$",new N.Subject);R(this,"setValue$",this._setValue$.asObservable());R(this,"_valueChange$",new N.Subject);R(this,"valueChange$",this._valueChange$.asObservable());R(this,"_focusStyle$",new N.Subject);R(this,"focusStyle$",this._focusStyle$.asObservable());R(this,"_singleSelection$",new N.Subject);R(this,"singleSelection$",this._singleSelection$.asObservable());R(this,"_spreadsheetFocusState",!1);this._univerInstanceService=e,this._renderManagerService=n,this._lexerTreeBuilder=o,this._docSelectionManagerService=a,this._contextService=r,this._commandService=c,this._undoRedoService=l,this._initUniverFocusListener()}_initUniverFocusListener(){this.disposeWithMe(N.fromEvent(window,"focusin").subscribe(e=>{const n=e.target;this._blurSheetEditor(n)}))}_blurSheetEditor(e){if(xa.some(o=>e.classList.contains(o)))return;const n=this.getFocusEditor();n&&n.isSheetEditor()!==!0&&this.blur()}setFocusId(e){this._focusEditorUnitId=e}getFocusId(){return this._focusEditorUnitId}getFocusEditor(){if(this._focusEditorUnitId)return this.getEditor(this._focusEditorUnitId)}isEditor(e){return this._editors.has(e)}isSheetEditor(e){const n=this._editors.get(e);return!!(n&&n.isSheetEditor())}closeRangePrompt(){const e=this._univerInstanceService.getCurrentUniverDocInstance();if(!e)return;const n=e.getUnitId();this._contextService.setContextValue(s.EDITOR_ACTIVATED,!1),this._contextService.setContextValue(s.FOCUSING_EDITOR_STANDALONE,!1),!(!this.isEditor(n)||this.isSheetEditor(n))&&(this.changeSpreadsheetFocusState(!1),this.blur())}changeSpreadsheetFocusState(e){this._spreadsheetFocusState=e}getSpreadsheetFocusState(){return this._spreadsheetFocusState}focusStyle(e){const n=this.getEditor(e);if(!n)return!1;n.setFocus(!0),this._contextService.setContextValue(s.EDITOR_ACTIVATED,!0),s.isInternalEditorID(e)||(this._contextService.setContextValue(s.FOCUSING_EDITOR_STANDALONE,!0),this._contextService.setContextValue(s.FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,n.isSingle())),this._spreadsheetFocusState||this.singleSelection(!!n.isSingleChoice()),this._focusStyle$.next(e),this.setFocusId(e)}singleSelection(e){this._singleSelection$.next(e)}selectionChangingState(){const e=this.getFocusId();if(e==null)return!0;const n=this.getEditor(e);return!n||n.isSheetEditor()||n.isFormulaEditor()?!0:n.onlyInputRange()!==!0&&n.onlyInputFormula()!==!0?(this.blur(),!0):n.onlyInputFormula()===!0&&this._contextService.getContextValue(s.FOCUSING_EDITOR_INPUT_FORMULA)!==!0?(this.blur(),!0):!this.getSpreadsheetFocusState()}blur(){this._spreadsheetFocusState||(this._closeRangePrompt$.next(null),this.singleSelection(!1),this.setFocusId(null),this._contextService.setContextValue(s.EDITOR_ACTIVATED,!1),this._contextService.setContextValue(s.FOCUSING_EDITOR_STANDALONE,!1)),this.getAllEditor().forEach(e=>{e.setFocus(!1)}),this._focusStyle$.next(),this._blur$.next(null)}focus(e=(n=>(n=this._univerInstanceService.getCurrentUniverDocInstance())==null?void 0:n.getUnitId())()){if(e==null)return;const o=this.getEditor(e);if(o==null)return;this._univerInstanceService.setCurrentUnitForType(e);const a=o.getValue().length;this.focusStyle(e),this._focus$.next({startOffset:a,endOffset:a})}setFormula(e,n=this._getCurrentEditorUnitId()){this._inputFormula$.next({formulaString:e,editorUnitId:n})}setValue(e,n=this._getCurrentEditorUnitId()){this.setValueNoRefresh(e,n),this._refreshValueChange(n)}setValueNoRefresh(e,n){this._setValue$.next({body:{dataStream:e},editorUnitId:n}),this.resize(n)}getValue(e){const n=this.getEditor(e);if(n!=null)return n.getValue()}setRichValue(e,n=this._getCurrentEditorUnitId()){this._setValue$.next({body:e,editorUnitId:n}),this._refreshValueChange(n)}getRichValue(e){const n=this.getEditor(e);if(n!=null)return n.getBody()}dispose(){this._state$.complete(),this._editors.clear(),super.dispose()}getEditor(e=this._getCurrentEditorUnitId()){return this._editors.get(e)}getAllEditor(){return this._editors}getFirstEditor(){return[...this.getAllEditor().values()][0]}resize(e){const n=this.getEditor(e);n!=null&&(n.verticalAlign(),this._resize$.next(e))}isVisible(e){var n;return(n=this.getEditor(e))==null?void 0:n.isVisible()}setOperationSheetUnitId(e){this._currentSheetUnitId=e}getOperationSheetUnitId(){return this._currentSheetUnitId}setOperationSheetSubUnitId(e){this._currentSheetSubUnitId=e}getOperationSheetSubUnitId(){return this._currentSheetSubUnitId}register(e,n){var A,d,u,m;const{initialSnapshot:o,canvasStyle:a={}}=e,r=o.id;this._univerInstanceService.getUnit(r,s.UniverInstanceType.UNIVER_DOC)==null&&this._univerInstanceService.createUnit(s.UniverInstanceType.UNIVER_DOC,o||this._getBlank(r),{makeCurrent:!1});let l=this._renderManagerService.getRenderById(r);if(l==null&&(this._renderManagerService.create(r),l=this._renderManagerService.getRenderById(r)),l){l.engine.setContainer(n);const h=new vo({...e,render:l,editorDom:n,canvasStyle:a},this._univerInstanceService,this._docSelectionManagerService,this._commandService,this._undoRedoService);this._editors.set(r,h),e.scrollBar||(m=(u=(d=(A=l.mainComponent)==null?void 0:A.getScene())==null?void 0:d.getViewports())==null?void 0:u[0].getScrollBar())==null||m.dispose(),!h.isSheetEditor()&&!e.noNeedVerticalAlign&&(h.verticalAlign(),h.updateCanvasStyle())}return s.toDisposable(()=>{this._unRegister(r)})}_unRegister(e){const n=this._editors.get(e);if(n==null||(this._renderManagerService.removeRender(e),n.dispose(),this._editors.delete(e),this._univerInstanceService.disposeUnit(e),this._contextService.setContextValue(s.FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,!1),!this.isSheetEditor(e)))return;if(this._univerInstanceService.getAllUnitsForType(s.UniverInstanceType.UNIVER_SHEET).length>0){const a=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET);a&&this._univerInstanceService.focusUnit(a.getUnitId())}}refreshValueChange(e){this._refreshValueChange(e)}checkValueLegality(e){const n=this._editors.get(e);if(n==null)return!0;let o=n.getValue();if(n.setValueLegality(),o=o.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\n/g,""),o.length===0)return!0;if(n.onlyInputFormula()){if(o.substring(0,1)!==Me.operatorToken.EQUALS)return n.setValueLegality(!1),!1;const a=this._lexerTreeBuilder.checkIfAddBracket(o);n.setValueLegality(a===0)}else if(n.onlyInputRange()){const a=o.split(",");if(n.isSingleChoice()&&a.length>1)return n.setValueLegality(!1),!1;n.setValueLegality(Me.isReferenceStrings(o))}return n.isValueLegality()}_refreshValueChange(e){const n=this.getEditor(e);n!=null&&this._valueChange$.next(n)}_getCurrentEditorUnitId(){return this._univerInstanceService.getCurrentUniverDocInstance().getUnitId()}_getBlank(e){return{id:e,body:{dataStream:`${s.DEFAULT_EMPTY_DOCUMENT_VALUE}`,textRuns:[],paragraphs:[{startIndex:0}]},documentStyle:{renderConfig:{verticalAlign:s.VerticalAlign.TOP,horizontalAlign:s.HorizontalAlign.LEFT},marginLeft:3,marginTop:0,marginRight:3}}}},C.EditorService=Oa([We(0,s.IUniverInstanceService),We(1,M.IRenderManagerService),We(2,s.Inject(Me.LexerTreeBuilder)),We(3,s.Inject(D.DocSelectionManagerService)),We(4,s.IContextService),We(5,s.ICommandService),We(6,s.IUndoRedoService)],C.EditorService);const fe=s.createIdentifier("univer.editor.service"),lt={textEditorContainer:"univer-text-editor-container",textEditorContainerActive:"univer-text-editor-container-active",textEditorContainerError:"univer-text-editor-container-error",textEditorContainerDisabled:"univer-text-editor-container-disabled",textEditorContainerPlaceholder:"univer-text-editor-container-placeholder",textEditorValidationError:"univer-text-editor-validation-error"};function Ma(i="",t=""){const e=`${t}${s.DEFAULT_EMPTY_DOCUMENT_VALUE}`,n=[],o=[];for(let r=0;r<e.length;r++)e[r]==="\r"&&n.push({startIndex:r}),e[r]===`
|
|
91
|
-
`&&o.push({startIndex:r});return{id:i,body:{dataStream:e,tables:[],textRuns:[],paragraphs:n,sectionBreaks:o},tableSource:{},documentStyle:{documentFlavor:s.DocumentFlavor.UNSPECIFIED}}}const Ba=new Set(["snapshot","resizeCallBack","cancelDefaultResizeListener","isSheetEditor","canvasStyle","isFormulaEditor","isSingle","isReadonly","onlyInputFormula","onlyInputRange","value","onlyInputContent","isSingleChoice","openForSheetUnitId","openForSheetSubUnitId","onChange","onActive","onValid","placeholder"]);function Co(i){const{id:t,snapshot:e,resizeCallBack:n,cancelDefaultResizeListener:o,isSheetEditor:a=!1,canvasStyle:r={},value:c,isSingle:l=!0,isReadonly:A=!1,isFormulaEditor:d=!1,onlyInputFormula:u=!1,onlyInputRange:m=!1,onlyInputContent:h=!1,isSingleChoice:f=!1,openForSheetUnitId:g,openForSheetSubUnitId:p,onChange:S,onActive:I,onValid:E,isValueValid:T=!0,placeholder:O,disabled:v}=i,b=s.useDependency(fe),_=s.useDependency(s.LocaleService),[B,w]=Q.useState(""),[x,U]=Q.useState(""),[L,F]=Q.useState(T),[H,k]=Q.useState([0,0]),X=Q.useRef(null),[G,W]=Q.useState(!1);if(!s.isInternalEditorID(t))throw new Error("Invalid editor ID");Q.useEffect(()=>{const j=X.current;if(!j)return;const z=new ResizeObserver(()=>{o!==!0&&b.resize(t),n&&n(j)});z.observe(j);const Y=e!=null?e:Ma(t,c);Y.id!==t&&(Y.id=t);const ie=b.register({editorUnitId:t,initialSnapshot:Y,cancelDefaultResizeListener:o,isSheetEditor:a,canvasStyle:r,isSingle:l,readonly:A,isSingleChoice:f,onlyInputFormula:u,onlyInputRange:m,onlyInputContent:h,openForSheetUnitId:g,openForSheetSubUnitId:p,isFormulaEditor:d},j);b.setValueNoRefresh(c||"",t),w(O||"");const ce=s.debounce(Ae=>{W(Ae),I&&I(Ae)},30),ge=160,le=s.debounce(Ae=>{const Se=Ae.getEditorId(),Te=b.checkValueLegality(Se);setTimeout(()=>{const we=Ae.getBoundingClientRect();k([we.left,we.top-16]),we.left+we.top>0&&F(Te),Ae.onlyInputFormula()?U(_.t("textEditor.formulaError")):U(_.t("textEditor.rangeError"))},ge),b.getValue(Se)!==c&&(E&&E(Te),S&&S(b.getValue(t)))},30),Ce=b.focusStyle$.subscribe(Ae=>{let Se=!1;Ae===t&&(Se=!0),ce(Se),setTimeout(()=>{if(!Aa(j))F(!0);else{const Te=b.getEditor(t);Te&&le(Te)}},ge)}),st=b.valueChange$.subscribe(Ae=>{if(Ae.isSheetEditor()||Ae.getEditorId()!==t)return;const Se=b.getFocusEditor();Se&&Se.getEditorId()!==t||le(Ae)});return()=>{z.unobserve(j),z.disconnect(),ie.dispose(),Ce==null||Ce.unsubscribe(),st==null||st.unsubscribe()}},[]),Q.useEffect(()=>{const j=b.getEditor(t);j!=null&&j.update({readonly:A,isSingle:l,isSingleChoice:f,onlyInputContent:h,onlyInputFormula:u,onlyInputRange:m,openForSheetSubUnitId:p,openForSheetUnitId:g})},[A,l,f,h,u,m,p,g]),Q.useEffect(()=>{c!=null&&b.setValueNoRefresh(c,t)},[c]),Q.useEffect(()=>{F(T)},[T]);function V(){const j=b.getValue(t);return!(j==null||j==="")}const K=Object.fromEntries(Object.entries(i).filter(([j])=>!Ba.has(j)));let ee=lt.textEditorContainer;i.className!=null&&(ee=i.className);let Z="";return i.className==null&&(A?Z=` ${lt.textEditorContainerDisabled}`:L?G&&(Z=` ${lt.textEditorContainerActive}`):Z=` ${lt.textEditorContainerError}`),P.jsx(P.Fragment,{children:P.jsxs("div",{...K,style:{...K.style,...v?{pointerEvents:"none",opacity:0}:{}},className:ee+Z,ref:X,children:[P.jsx("div",{style:{display:L?"none":"block"},className:lt.textEditorValidationError,children:x}),P.jsx("div",{style:{display:V()?"none":"unset"},className:lt.textEditorContainerPlaceholder,children:B})]})})}var pe=function(){return pe=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},pe.apply(this,arguments)},Da=function(i,t){var e={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&t.indexOf(n)<0&&(e[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(i);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(i,n[o])&&(e[n[o]]=i[n[o]]);return e},ye=Q.forwardRef(function(i,t){var e=i.icon,n=i.id,o=i.className,a=i.extend,r=Da(i,["icon","id","className","extend"]),c="univerjs-icon univerjs-icon-".concat(n," ").concat(o||"").trim(),l=Q.useRef("_".concat(Pa()));return To(e,"".concat(n),{defIds:e.defIds,idSuffix:l.current},pe({ref:t,className:c},r),a)});function To(i,t,e,n,o){return Q.createElement(i.tag,pe(pe({key:t},_a(i,e,o)),n),(Na(i,e).children||[]).map(function(a,r){return To(a,"".concat(t,"-").concat(i.tag,"-").concat(r),e,void 0,o)}))}function _a(i,t,e){var n=pe({},i.attrs);e!=null&&e.colorChannel1&&n.fill==="colorChannel1"&&(n.fill=e.colorChannel1);var o=t.defIds;return!o||o.length===0||(i.tag==="use"&&n["xlink:href"]&&(n["xlink:href"]=n["xlink:href"]+t.idSuffix),Object.entries(n).forEach(function(a){var r=a[0],c=a[1];typeof c=="string"&&(n[r]=c.replace(/url\(#(.*)\)/,"url(#$1".concat(t.idSuffix,")")))})),n}function Na(i,t){var e,n=t.defIds;return!n||n.length===0?i:i.tag==="defs"&&(!((e=i.children)===null||e===void 0)&&e.length)?pe(pe({},i),{children:i.children.map(function(o){return typeof o.attrs.id=="string"&&n&&n.indexOf(o.attrs.id)>-1?pe(pe({},o),{attrs:pe(pe({},o.attrs),{id:o.attrs.id+t.idSuffix})}):o})}):i}function Pa(){return Math.random().toString(36).substring(2,8)}ye.displayName="UniverIcon";var Ua={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z"}}]},bo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"align-text-both-single",ref:t,icon:Ua}))});bo.displayName="AlignTextBothSingle";var wa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"}}]},yo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"close-single",ref:t,icon:wa}))});yo.displayName="CloseSingle";var La={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Ro=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"delete-single",ref:t,icon:La}))});Ro.displayName="DeleteSingle";var Qa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM3.33315 5.56641C3.00178 5.56641 2.73315 5.83504 2.73315 6.16641 2.73315 6.49778 3.00178 6.76641 3.33315 6.76641H12.6665C12.9979 6.76641 13.2665 6.49778 13.2665 6.16641 13.2665 5.83504 12.9979 5.56641 12.6665 5.56641H3.33315zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM3.33315 12.9004C3.00178 12.9004 2.73315 13.169 2.73315 13.5004 2.73315 13.8318 3.00178 14.1004 3.33315 14.1004H12.6665C12.9979 14.1004 13.2665 13.8318 13.2665 13.5004 13.2665 13.169 12.9979 12.9004 12.6665 12.9004H3.33315z"}}]},Oo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"horizontally-single",ref:t,icon:Qa}))});Oo.displayName="HorizontallySingle";var Fa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"}}]},xo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"increase-single",ref:t,icon:Fa}))});xo.displayName="IncreaseSingle";var Ha={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H11.3332C11.6646 6.76641 11.9332 6.49778 11.9332 6.16641 11.9332 5.83504 11.6646 5.56641 11.3332 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H11.3332C11.6646 14.1004 11.9332 13.8318 11.9332 13.5004 11.9332 13.169 11.6646 12.9004 11.3332 12.9004H1.9999z"}}]},Mo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"left-justifying-single",ref:t,icon:Ha}))});Mo.displayName="LeftJustifyingSingle";var ka={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM4.66665 5.56641C4.33528 5.56641 4.06665 5.83504 4.06665 6.16641 4.06665 6.49778 4.33528 6.76641 4.66665 6.76641H14C14.3314 6.76641 14.6 6.49778 14.6 6.16641 14.6 5.83504 14.3314 5.56641 14 5.56641H4.66665zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM4.66665 12.9004C4.33528 12.9004 4.06665 13.169 4.06665 13.5004 4.06665 13.8318 4.33528 14.1004 4.66665 14.1004H14C14.3314 14.1004 14.6 13.8318 14.6 13.5004 14.6 13.169 14.3314 12.9004 14 12.9004H4.66665z"}}]},Bo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"right-justifying-single",ref:t,icon:ka}))});Bo.displayName="RightJustifyingSingle";var Va={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.6185 12.4423C12.5907 12.2749 12.7773 12.15 12.9343 12.2308L15.4242 13.5126C15.6102 13.6084 15.5544 13.8745 15.3439 13.8955L14.2456 14.184L13.4521 15.1286C13.3495 15.2939 13.085 15.2463 13.0534 15.0568L12.6185 12.4423Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1 3.6C1 2.16406 2.16406 1 3.6 1H12.3C13.7359 1 14.9 2.16406 14.9 3.6V5.81156C14.9003 5.81881 14.9004 5.82609 14.9004 5.8334C14.9004 5.84071 14.9003 5.84799 14.9 5.85524V10.045C14.9003 10.0522 14.9004 10.0595 14.9004 10.0668C14.9004 10.3982 14.6318 10.6668 14.3004 10.6668H11.1668C10.8907 10.6668 10.6668 10.8907 10.6668 11.1668V14.3C10.6668 14.6314 10.3982 14.9 10.0668 14.9L10.05 14.8998L3.6 14.9C2.16406 14.9 1 13.7359 1 12.3V3.6ZM13.2 5.2334C13.4761 5.2334 13.7 5.00954 13.7 4.7334V3.6C13.7 2.8268 13.0732 2.2 12.3 2.2H11.1668C10.8907 2.2 10.6668 2.42386 10.6668 2.7V4.7334C10.6668 5.00954 10.8907 5.2334 11.1668 5.2334H13.2ZM10.6668 6.9334C10.6668 6.65726 10.8907 6.4334 11.1668 6.4334H13.2C13.4761 6.4334 13.7 6.65726 13.7 6.9334V8.9668C13.7 9.24294 13.4761 9.4668 13.2 9.4668H11.1668C10.8907 9.4668 10.6668 9.24294 10.6668 8.9668V6.9334ZM8.9668 5.2334C9.24294 5.2334 9.4668 5.00954 9.4668 4.7334V2.7C9.4668 2.42386 9.24294 2.2 8.9668 2.2H6.9334C6.65726 2.2 6.4334 2.42386 6.4334 2.7V4.7334C6.4334 5.00954 6.65726 5.2334 6.9334 5.2334L8.9668 5.2334ZM6.4334 6.9334C6.4334 6.65726 6.65726 6.4334 6.9334 6.4334L8.9668 6.4334C9.24294 6.4334 9.4668 6.65726 9.4668 6.9334V8.9668C9.4668 9.24294 9.24294 9.4668 8.9668 9.4668L6.9334 9.4668C6.65726 9.4668 6.4334 9.24294 6.4334 8.9668V6.9334ZM4.7334 5.2334C5.00954 5.2334 5.2334 5.00954 5.2334 4.7334V2.7C5.2334 2.42386 5.00954 2.2 4.7334 2.2H3.6C2.8268 2.2 2.2 2.8268 2.2 3.6V4.7334C2.2 5.00954 2.42386 5.2334 2.7 5.2334H4.7334ZM2.2 6.9334C2.2 6.65726 2.42386 6.4334 2.7 6.4334H4.7334C5.00954 6.4334 5.2334 6.65725 5.2334 6.9334V8.9668C5.2334 9.24294 5.00954 9.4668 4.7334 9.4668H2.7C2.42386 9.4668 2.2 9.24294 2.2 8.9668V6.9334ZM5.2334 11.1668C5.2334 10.8907 5.00954 10.6668 4.7334 10.6668H2.7C2.42386 10.6668 2.2 10.8907 2.2 11.1668V12.3C2.2 13.0732 2.8268 13.7 3.6 13.7H4.7334C5.00954 13.7 5.2334 13.4761 5.2334 13.2V11.1668ZM9.4668 11.1668C9.4668 10.8907 9.24294 10.6668 8.9668 10.6668H6.9334C6.65726 10.6668 6.4334 10.8907 6.4334 11.1668V13.2C6.4334 13.4761 6.65726 13.7 6.9334 13.7H8.9668C9.24294 13.7 9.4668 13.4761 9.4668 13.2V11.1668Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Do=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"select-range-single",ref:t,icon:Va}))});Do.displayName="SelectRangeSingle";var ja={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.96372 2.59116C5.19803 2.35684 5.19803 1.97695 4.96372 1.74263 4.7294 1.50832 4.3495 1.50832 4.11519 1.74263L2.53945 3.31837 1.96372 2.74263C1.7294 2.50832 1.3495 2.50832 1.11519 2.74263.880874 2.97695.880874 3.35684 1.11519 3.59116L2.11519 4.59116C2.3495 4.82547 2.7294 4.82547 2.96372 4.59116L4.96372 2.59116zM14.4605 2.56689H6.8981C6.56672 2.56689 6.2981 2.83552 6.2981 3.16689 6.2981 3.49827 6.56672 3.76689 6.8981 3.76689H14.4605C14.7918 3.76689 15.0605 3.49827 15.0605 3.16689 15.0605 2.83552 14.7918 2.56689 14.4605 2.56689zM6.8981 7.2334C6.56672 7.2334 6.2981 7.50203 6.2981 7.8334 6.2981 8.16477 6.56672 8.4334 6.8981 8.4334H14.4605C14.7918 8.4334 15.0605 8.16477 15.0605 7.8334 15.0605 7.50203 14.7918 7.2334 14.4605 7.2334H6.8981zM6.2981 12.4999C6.2981 12.1685 6.56672 11.8999 6.8981 11.8999H14.4605C14.7918 11.8999 15.0605 12.1685 15.0605 12.4999 15.0605 12.8313 14.7918 13.0999 14.4605 13.0999H6.8981C6.56672 13.0999 6.2981 12.8313 6.2981 12.4999z"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.87279 5.8999C1.80504 5.8999.939453 6.76549.939453 7.83324.939453 8.90099 1.80504 9.76657 2.87279 9.76657 3.94054 9.76657 4.80612 8.90099 4.80612 7.83324 4.80612 6.76549 3.94054 5.8999 2.87279 5.8999zM2.13945 7.83324C2.13945 7.42823 2.46778 7.0999 2.87279 7.0999 3.2778 7.0999 3.60612 7.42823 3.60612 7.83324 3.60612 8.23824 3.2778 8.56657 2.87279 8.56657 2.46778 8.56657 2.13945 8.23824 2.13945 7.83324zM.939453 12.5002C.939453 11.4325 1.80504 10.5669 2.87279 10.5669 3.94054 10.5669 4.80612 11.4325 4.80612 12.5002 4.80612 13.568 3.94054 14.4336 2.87279 14.4336 1.80504 14.4336.939453 13.568.939453 12.5002zM2.87279 11.7669C2.46778 11.7669 2.13945 12.0952 2.13945 12.5002 2.13945 12.9052 2.46778 13.2336 2.87279 13.2336 3.2778 13.2336 3.60612 12.9052 3.60612 12.5002 3.60612 12.0952 3.2778 11.7669 2.87279 11.7669z",fillRule:"evenodd",clipRule:"evenodd"}}]},_o=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"todo-list",ref:t,icon:ja}))});_o.displayName="TodoList";function No(i){var t,e,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var o=i.length;for(t=0;t<o;t++)i[t]&&(e=No(i[t]))&&(n&&(n+=" "),n+=e)}else for(e in i)i[e]&&(n&&(n+=" "),n+=e);return n}function en(){for(var i,t,e=0,n="",o=arguments.length;e<o;e++)(i=arguments[e])&&(t=No(i))&&(n&&(n+=" "),n+=t);return n}class Po extends s.Disposable{constructor(){super(...arguments);R(this,"_currentSelectorId");R(this,"_selectionChange$",new N.Subject);R(this,"selectionChange$",this._selectionChange$.asObservable());R(this,"_openSelector$",new N.Subject);R(this,"openSelector$",this._openSelector$.asObservable());R(this,"_selectorModalVisible$",new N.BehaviorSubject(!1));R(this,"selectorModalVisible$",this._selectorModalVisible$.asObservable())}get selectorModalVisible(){return this._selectorModalVisible$.getValue()}setCurrentSelectorId(e){this._currentSelectorId=e}getCurrentSelectorId(){return this._currentSelectorId}selectionChange(e){this._currentSelectorId&&this._selectionChange$.next(e)}openSelector(){this._openSelector$.next(null)}triggerModalVisibleChange(e){this._selectorModalVisible$.next(e)}}const ri=s.createIdentifier("univer.range-selector.service"),ae={rangeSelector:"univer-range-selector",rangeSelectorEditor:"univer-range-selector-editor",rangeSelectorIcon:"univer-range-selector-icon",rangeSelectorActive:"univer-range-selector-active",rangeSelectorError:"univer-range-selector-error",rangeSelectorDisabled:"univer-range-selector-disabled",rangeSelectorModal:"univer-range-selector-modal",rangeSelectorModalContainer:"univer-range-selector-modal-container",rangeSelectorModalContainerInput:"univer-range-selector-modal-container-input",rangeSelectorModalContainerInputActive:"univer-range-selector-modal-container-input-active",rangeSelectorModalContainerButton:"univer-range-selector-modal-container-button",rangeSelectorModalContainerDeleteButton:"univer-range-selector-modal-container-delete-button",rangeSelectorModalAdd:"univer-range-selector-modal-add",rangeSelectorModalAddButton:"univer-range-selector-modal-add-button"},Wa={pointerEvents:"none"};function za(i){const{dialogOnly:t,onChange:e,id:n,value:o="",width:a=220,placeholder:r="",size:c="middle",onActive:l,onValid:A,isSingleChoice:d=!1,openForSheetUnitId:u,openForSheetSubUnitId:m,isReadonly:h=!1,className:f,textEditorClassName:g,onSelectorVisibleChange:p}=i,S=y.useEvent(p),[I,E]=Q.useState([""]),T=J=>{E($=>[...$,J])},O=J=>{E($=>$.filter((oe,Gt)=>Gt!==J))},v=(J,$)=>{E(oe=>oe.map((Gt,at)=>at===J?$:Gt))},b=J=>{E($=>{const oe=[...$];return oe.length>0&&(oe[oe.length-1]=J),oe})},_=s.useDependency(fe),B=s.useDependency(ri),w=s.useDependency(s.IUniverInstanceService),[x,U]=Q.useState(!1),L=s.useDependency(s.LocaleService),[F,H]=Q.useState(!1),[k,X]=Q.useState(!0),[G,W]=Q.useState(o),[V,K]=Q.useState(-1),ee=Q.useRef(null),Z=Q.useRef(-1),j=Q.useRef(u),z=Q.useRef(m),Y=Q.useRef(d),ie=Q.useRef(h);Q.useEffect(()=>{const J=ee.current;if(!J)return;const $=new ResizeObserver(()=>{_.resize(n)});$.observe(J);let oe=1;const Gt=B.selectionChange$.subscribe(at=>{if(B.getCurrentSelectorId()!==n)return;if(at.length===0){oe=0;return}const Xs=at.length-oe;if(oe=at.length,Xs<0)return;const Le=at[at.length-1];let bt="";Le.unitId===j.current&&Le.sheetId===z.current?bt=Me.serializeRange(Le.range):Le.unitId===j.current?bt=Me.serializeRangeWithSheet(Le.sheetName,Le.range):bt=Me.serializeRangeWithSpreadsheet(Le.unitId,Le.sheetName,Le.range),Xs>=1&&!Y.current?(T(bt),K(-1)):Z.current===-1?b(bt):v(Z.current,bt)});return()=>{Gt.unsubscribe(),$.unobserve(J)}},[]),Q.useEffect(()=>{B.triggerModalVisibleChange(x)},[S,B,x]),Q.useEffect(()=>()=>{B.triggerModalVisibleChange(!1)},[B]),Q.useEffect(()=>{j.current=u,z.current=m,Y.current=d,ie.current=h},[u,m,d,h]),Q.useEffect(()=>{Z.current=V},[V]);function ce(){U(!1),S(!1),B.setCurrentSelectorId(null)}function ge(){ie.current!==!0&&(_.closeRangePrompt(),B.setCurrentSelectorId(n),U(!0),S(!0),G.length>0?E(k?G.split(","):[""]):B.openSelector())}function le(J){H(J),l&&l(J)}function Ce(J){X(J),A&&A(J)}function st(){if(ie.current===!0){ce();return}let J="";const $=I.filter(oe=>Me.isReferenceStringWithEffectiveColumn(oe.trim()));if($.length===1){const oe=$[0];Me.isReferenceStringWithEffectiveColumn(oe.trim())&&(J=oe.trim())}else J=$.join(",");_.setValue(J,n),Te(J),ce()}function Ae(){T(""),K(-1)}function Se(J){var $,oe;return((oe=($=w.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET))==null?void 0:$.getSheetBySheetName(J))==null?void 0:oe.getSheetId())||""}function Te(J){if(W(J||""),J==null){e&&e([]);return}const $=Me.getRangeWithRefsString(J,Se);e&&e($||[])}let xe=ae.rangeSelector;h?xe=`${ae.rangeSelector} ${ae.rangeSelectorDisabled}`:k?F&&(xe=`${ae.rangeSelector} ${ae.rangeSelectorActive}`):xe=`${ae.rangeSelector} ${ae.rangeSelectorError}`,g&&(xe=`${xe} ${g}`);let we=28;return c==="mini"?we=20:c==="small"?we=24:c==="large"&&(we=32),P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:en(xe,f),ref:ee,style:{width:a,height:we,cursor:t?"pointer":void 0},onClickCapture:J=>{t&&(J.stopPropagation(),J.preventDefault(),ge())},children:[P.jsx(Co,{style:t?Wa:void 0,placeholder:r,value:o,isReadonly:h,isSingleChoice:d,openForSheetUnitId:u,openForSheetSubUnitId:m,onValid:Ce,onActive:le,onChange:Te,id:n,onlyInputRange:!0,canvasStyle:{fontSize:10},className:ae.rangeSelectorEditor}),P.jsx(se.Tooltip,{title:L.t("rangeSelector.buttonTooltip"),placement:"bottom",children:P.jsx("button",{type:"button",className:ae.rangeSelectorIcon,onClick:ge,children:P.jsx(Do,{})})})]}),P.jsx(se.Dialog,{width:"328px",visible:x,title:L.t("rangeSelector.title"),draggable:!0,closeIcon:P.jsx(yo,{}),footer:P.jsxs("footer",{children:[P.jsx(se.Button,{onClick:ce,children:L.t("rangeSelector.cancel")}),P.jsx(se.Button,{style:{marginLeft:10},onClick:st,type:"primary",children:L.t("rangeSelector.confirm")})]}),onClose:ce,children:P.jsxs("div",{className:en(ae.rangeSelectorModal,f),children:[I.map((J,$)=>P.jsxs("div",{className:ae.rangeSelectorModalContainer,children:[P.jsx("div",{style:{width:I.length===1?"280px":"252px"},className:ae.rangeSelectorModalContainerInput,children:P.jsx(se.Input,{className:V===$||I.length-1===$&&V===-1?ae.rangeSelectorModalContainerInputActive:"",placeholder:L.t("rangeSelector.placeHolder"),affixWrapperStyle:{width:"100%"},onClick:()=>K($),value:J,onChange:oe=>v($,oe)},`input${$}`)}),P.jsx("div",{style:{display:I.length===1?"none":"inline-block"},className:ae.rangeSelectorModalContainerButton,children:P.jsx(Ro,{className:ae.rangeSelectorModalContainerDeleteButton,onClick:()=>O($)})})]},$)),P.jsx("div",{style:{display:d?"none":"unset"},className:ae.rangeSelectorModalAdd,children:P.jsxs(se.Button,{type:"link",size:"small",onClick:Ae,className:ae.rangeSelectorModalAddButton,children:[P.jsx(xo,{}),P.jsx("span",{children:L.t("rangeSelector.addAnotherRange")})]})})]})})]})}function Uo(i){var n;const{dataStream:t}=(n=i.body)!=null?n:{},e=[s.DataStreamTreeTokenType.TABLE_START,s.DataStreamTreeTokenType.TABLE_CELL_END,s.DataStreamTreeTokenType.TABLE_CELL_START,s.DataStreamTreeTokenType.TABLE_END,s.DataStreamTreeTokenType.TABLE_ROW_END,s.DataStreamTreeTokenType.TABLE_ROW_START,s.DataStreamTreeTokenType.COLUMN_BREAK,s.DataStreamTreeTokenType.PAGE_BREAK,s.DataStreamTreeTokenType.TAB,s.DataStreamTreeTokenType.DOCS_END,s.DataStreamTreeTokenType.CUSTOM_BLOCK];if(typeof t=="string")for(let o=0;o<t.length;o++){const a=t[o];if(!e.includes(a))return o}return 0}const wo="COMPONENT_DOC_HEADER_FOOTER_PANEL",he={panel:"univer-panel",optionsSection:"univer-options-section",optionsFormItem:"univer-options-form-item",optionsInput:"univer-options-input",optionsMarginSetting:"univer-options-margin-setting"};function Ga(i,t,e){const{useFirstPageHeaderFooter:n,evenAndOddHeaders:o,defaultHeaderId:a,defaultFooterId:r,firstPageHeaderId:c,firstPageFooterId:l,evenPageHeaderId:A,evenPageFooterId:d}=i;return t===M.DocumentEditArea.HEADER?n===s.BooleanNumber.TRUE&&e===0?c:o===s.BooleanNumber.TRUE&&e%2===1?A:a:n===s.BooleanNumber.TRUE&&e===0?l:o===s.BooleanNumber.TRUE&&e%2===1?d:r}const Ya=i=>{const t=s.useDependency(s.LocaleService),e=s.useDependency(s.IUniverInstanceService),n=s.useDependency(M.IRenderManagerService),o=s.useDependency(s.ICommandService),a=s.useDependency(y.ILayoutService),{unitId:r}=i,c=n.getRenderById(r).with(C.DocSelectionRenderService),[l,A]=Q.useState({}),d=(h,f)=>{var b;A(_=>({..._,[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}));const g=e.getUniverDocInstance(r),p=g==null?void 0:g.getSnapshot().documentStyle,S=(b=n.getRenderById(r))==null?void 0:b.with(D.DocSkeletonManagerService),I=S==null?void 0:S.getViewModel();if(p==null||I==null)return;const E=I.getEditArea();let T=!1;const O=c.getSegmentPage();let v=!1;if(f==="useFirstPageHeaderFooter"&&h===!0&&((E===M.DocumentEditArea.HEADER&&!p.firstPageHeaderId||E===M.DocumentEditArea.FOOTER&&!p.firstPageFooterId)&&(T=!0),T&&O===0&&(v=!0)),f==="evenAndOddHeaders"&&h===!0&&((E===M.DocumentEditArea.HEADER&&!p.evenPageHeaderId||E===M.DocumentEditArea.FOOTER&&!p.evenPageFooterId)&&(T=!0),T&&O%2===1&&(v=!0)),T){const B=s.Tools.generateRandomId(6);v&&c.setSegment(B),o.executeCommand(nn,{unitId:r,segmentId:B,headerFooterProps:{[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}else{const _=c.getSegmentPage(),B=c.getSegment(),w=Ga({...p,[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE},E,_);w&&w!==B&&c.setSegment(w),o.executeCommand(nn,{unitId:r,headerFooterProps:{[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}a.focus()},u=async(h,f)=>{A(g=>({...g,[f]:h})),await o.executeCommand(nn,{unitId:r,headerFooterProps:{[f]:h}}),c.removeAllRanges(),c.blur()},m=()=>{o.executeCommand(hi.id,{unitId:r})};return Q.useEffect(()=>{const h=e.getUniverDocInstance(r),f=h==null?void 0:h.getSnapshot().documentStyle;if(f){const{marginHeader:g=0,marginFooter:p=0,useFirstPageHeaderFooter:S=s.BooleanNumber.FALSE,evenAndOddHeaders:I=s.BooleanNumber.FALSE}=f;A({marginHeader:g,marginFooter:p,useFirstPageHeaderFooter:S,evenAndOddHeaders:I})}},[r]),P.jsxs("div",{className:he.options,children:[P.jsxs("div",{className:he.optionsSection,children:[P.jsx("div",{className:he.optionsFormItem,children:P.jsx(se.Checkbox,{checked:l.useFirstPageHeaderFooter===s.BooleanNumber.TRUE,onChange:h=>{d(h,"useFirstPageHeaderFooter")},children:t.t("headerFooter.firstPageCheckBox")})}),P.jsx("div",{className:he.optionsFormItem,children:P.jsx(se.Checkbox,{checked:l.evenAndOddHeaders===s.BooleanNumber.TRUE,onChange:h=>{d(h,"evenAndOddHeaders")},children:t.t("headerFooter.oddEvenCheckBox")})})]}),P.jsxs("div",{className:en(he.optionsSection,he.optionsMarginSetting),children:[P.jsxs("div",{className:he.optionsMarginItem,children:[P.jsx("span",{children:t.t("headerFooter.headerTopMargin")}),P.jsx(se.InputNumber,{min:0,max:200,precision:1,value:l.marginHeader,onChange:h=>{u(h,"marginHeader")},className:he.optionsInput})]}),P.jsxs("div",{className:he.optionsMarginItem,children:[P.jsx("span",{children:t.t("headerFooter.footerBottomMargin")}),P.jsx(se.InputNumber,{min:0,max:200,precision:1,value:l.marginFooter,onChange:h=>{u(h,"marginFooter")},className:he.optionsInput})]})]}),P.jsx("div",{className:he.optionsSection,children:P.jsx(se.Button,{onClick:m,children:t.t("headerFooter.closeHeaderFooter")})})]})},Xa=()=>{var A;const i=s.useDependency(s.LocaleService),t=s.useDependency(M.IRenderManagerService),o=s.useDependency(s.IUniverInstanceService).getCurrentUniverDocInstance().getUnitId(),r=((A=t.getRenderById(o))==null?void 0:A.with(D.DocSkeletonManagerService)).getViewModel(),[c,l]=Q.useState(!0);return Q.useEffect(()=>{const d=r.getEditArea();l(d!==M.DocumentEditArea.BODY);const u=r.editAreaChange$.subscribe(m=>{m!=null&&l(m!==M.DocumentEditArea.BODY)});return()=>{u.unsubscribe()}},[]),P.jsx("div",{className:he.panel,children:c?P.jsx(Ya,{unitId:o}):P.jsx("div",{className:he.panelDisableText,children:i.t("headerFooter.disableText")})})},Lo=18,Qo=200,ci=6,Ka=4;function Ja(i,t){let{radius:e,width:n,height:o}=t;e=e!=null?e:0,n=n!=null?n:30,o=o!=null?o:30;let a=0;a=Math.min(e,n/2,o/2),i.beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,o-a),i.arc(n-a,o-a,a,0,Math.PI/2,!1),i.lineTo(0,o),i.lineTo(0,0),i.closePath(),t.fill&&(i.save(),i.fillStyle=t.fill,t.fillRule==="evenodd"?i.fill("evenodd"):i.fill(),i.restore())}class tn extends M.Shape{constructor(e,n){super(e,n);R(this,"color");R(this,"text");this.color=n==null?void 0:n.color,this.text=n==null?void 0:n.text}static drawWith(e,n){const{text:o,color:a}=n;e.save(),e.font="13px Source Han Sans CN";const r=e.measureText(o).width,c=Math.min(r+2*ci,Qo);Ja(e,{height:Lo,width:c,radius:4,fill:a,evented:!1}),e.fillStyle="rgba(58, 96, 247, 1)";const l=ci,A=Lo-Ka,d=Qo-2*ci;if(r>d){let u="",m=0;for(const h of o){const f=e.measureText(h).width;if(m+f<=d-e.measureText("...").width)u+=h,m+=f;else{u+="...";break}}e.fillText(u,l,A)}else e.fillText(o,l,A);e.restore()}_draw(e){tn.drawWith(e,this)}}var Za=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,$a=(i,t,e,n)=>{for(var o=n>1?void 0:n?qa(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Za(t,e,o),o},Qe=(i,t)=>(e,n)=>t(e,n,i);const Fo="rgba(58, 96, 247, 1)",Ho="rgba(58, 96, 247, 0.08)";var ue=(i=>(i[i.FIRST_PAGE_HEADER=0]="FIRST_PAGE_HEADER",i[i.FIRST_PAGE_FOOTER=1]="FIRST_PAGE_FOOTER",i[i.DEFAULT_HEADER=2]="DEFAULT_HEADER",i[i.DEFAULT_FOOTER=3]="DEFAULT_FOOTER",i[i.EVEN_PAGE_HEADER=4]="EVEN_PAGE_HEADER",i[i.EVEN_PAGE_FOOTER=5]="EVEN_PAGE_FOOTER",i))(ue||{});function er(i,t,e){const{documentStyle:n}=i.getDataModel().getSnapshot(),{defaultHeaderId:o,defaultFooterId:a,evenPageHeaderId:r,evenPageFooterId:c,firstPageHeaderId:l,firstPageFooterId:A,evenAndOddHeaders:d,useFirstPageHeaderFooter:u}=n;switch(t){case M.DocumentEditArea.BODY:return{createType:null,headerFooterId:null};case M.DocumentEditArea.HEADER:return u===s.BooleanNumber.TRUE&&!l?{createType:0,headerFooterId:null}:d===s.BooleanNumber.TRUE&&e%2===0&&!r?{createType:4,headerFooterId:null}:o?{createType:null,headerFooterId:o}:{createType:2,headerFooterId:null};case M.DocumentEditArea.FOOTER:return u===s.BooleanNumber.TRUE&&!A?{createType:1,headerFooterId:null}:d===s.BooleanNumber.TRUE&&e%2===0&&!c?{createType:5,headerFooterId:null}:a?{createType:null,headerFooterId:a}:{createType:3,headerFooterId:null};default:throw new Error(`Invalid editArea: ${t}`)}}let li=class extends s.Disposable{constructor(t,e,n,o,a,r,c,l,A){super();R(this,"_loadedMap",new WeakSet);this._context=t,this._commandService=e,this._editorService=n,this._instanceSrv=o,this._renderManagerService=a,this._docSkeletonManagerService=r,this._docSelectionRenderService=c,this._localeService=l,this._componentManager=A,this._initialize()}_initialize(){this._init(),this._drawHeaderFooterLabel(),this._initCustomComponents(),this._listenSwitchMode()}_listenSwitchMode(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(D.RichTextEditingMutation.id===t.id){const e=this._context.unit,o=this._docSkeletonManagerService.getViewModel().getEditArea(),a=e.getSnapshot().documentStyle.documentFlavor;o!==M.DocumentEditArea.BODY&&a===s.DocumentFlavor.MODERN&&this._commandService.executeCommand(hi.id,{unitId:this._context.unitId})}}))}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(wo,Xa))}_init(){const{unitId:t}=this._context,e=Be(this._context);e==null||e.document==null||this._loadedMap.has(e.document)||(this._initialMain(t),this._loadedMap.add(e.document))}_initialMain(t){const e=Be(this._context),{document:n}=e;this.disposeWithMe(n.onDblclick$.subscribeEvent(async o=>{if(this._isEditorReadOnly(t)||!this._isTraditionalMode())return;const{offsetX:a,offsetY:r}=o,{pageLayoutType:c=M.PageLayoutType.VERTICAL,pageMarginLeft:l,pageMarginTop:A}=n.getOffsetConfig(),d=this._getTransformCoordForDocumentOffset(a,r);if(d==null)return;const u=this._docSkeletonManagerService.getViewModel(),m=this._docSkeletonManagerService.getSkeleton(),h=u.getEditArea(),{editArea:f,pageNumber:g}=m.findEditAreaByCoord(d,c,l,A);if(h===f)return;u.setEditArea(f);const{createType:p,headerFooterId:S}=er(u,f,g);if(f===M.DocumentEditArea.BODY)this._docSelectionRenderService.setSegment(""),this._docSelectionRenderService.setSegmentPage(-1),this._docSelectionRenderService.setCursorManually(a,r);else if(p!=null){const E=s.Tools.generateRandomId(6);this._docSelectionRenderService.setSegment(E),this._docSelectionRenderService.setSegmentPage(g),await this._commandService.executeCommand(Vo.id,{unitId:t,createType:p,segmentId:E})}else S!=null&&(this._docSelectionRenderService.setSegment(S),this._docSelectionRenderService.setSegmentPage(g),this._docSelectionRenderService.setCursorManually(a,r))}))}_getTransformCoordForDocumentOffset(t,e){const n=Be(this._context),{document:o,scene:a}=n,{documentTransform:r}=o.getOffsetConfig(),c=a.getViewports()[0];if(c==null)return;const l=c.transformVector2SceneCoord(M.Vector2.FromArray([t,e]));return r.clone().invert().applyPoint(l)}_drawHeaderFooterLabel(){const t=this._localeService;this._renderManagerService.currentRender$.subscribe(e=>{if(e==null)return;const n=this._renderManagerService.getRenderById(e);if(this._editorService.isEditor(e)||this._instanceSrv.getUniverDocInstance(e)==null||n==null)return;const{mainComponent:o}=n,a=o;this.disposeWithMe(s.toDisposable(a.pageRender$.subscribe(r=>{if(this._editorService.isEditor(e)||!this._isTraditionalMode())return;const A=this._docSkeletonManagerService.getViewModel().getEditArea()===M.DocumentEditArea.BODY,{page:d,pageLeft:u,pageTop:m,ctx:h}=r,{pageWidth:f,pageHeight:g,marginTop:p,marginBottom:S}=d;if(h.save(),h.translate(u-.5,m-.5),A?(M.Rect.drawWith(h,{left:0,top:0,width:f,height:p,fill:"rgba(255, 255, 255, 0.5)"}),h.save(),h.translate(0,g-S),M.Rect.drawWith(h,{left:0,top:0,width:f,height:S,fill:"rgba(255, 255, 255, 0.5)"}),h.restore()):(h.save(),h.translate(0,p),M.Rect.drawWith(h,{left:0,top:p,width:f,height:g-p-S,fill:"rgba(255, 255, 255, 0.5)"}),h.restore()),!A){const I={dataArray:[{command:"M",points:[0,p]},{command:"L",points:[f,p]}],strokeWidth:1,stroke:Fo},E={dataArray:[{command:"M",points:[0,g-S]},{command:"L",points:[f,g-S]}],strokeWidth:1,stroke:Fo};M.Path.drawWith(h,I),M.Path.drawWith(h,E),h.translate(0,p+1),tn.drawWith(h,{text:t.t("headerFooter.header"),color:Ho}),h.translate(0,g-p-S),tn.drawWith(h,{text:t.t("headerFooter.footer"),color:Ho})}h.restore()})))})}_isEditorReadOnly(t){const e=this._editorService.getEditor(t);return e?e.isReadOnly():!1}_isTraditionalMode(){return this._context.unit.getSnapshot().documentStyle.documentFlavor===s.DocumentFlavor.TRADITIONAL}};li=$a([Qe(1,s.ICommandService),Qe(2,fe),Qe(3,s.IUniverInstanceService),Qe(4,M.IRenderManagerService),Qe(5,s.Inject(D.DocSkeletonManagerService)),Qe(6,s.Inject(C.DocSelectionRenderService)),Qe(7,s.Inject(s.LocaleService)),Qe(8,s.Inject(y.ComponentManager))],li);const Ai={id:"sidebar.operation.doc-header-footer-panel",type:s.CommandType.OPERATION,handler:async(i,t)=>{const e=i.get(y.ISidebarService),n=i.get(s.LocaleService);switch(t.value){case"open":e.open({header:{title:n.t("headerFooter.panel")},children:{label:wo},onClose:()=>{},width:400});break;case"close":default:e.close();break}return!0}};function ko(){return{dataStream:`\r
|
|
118
|
+
`}_getNodePosition(e){if(e==null)return;const{node:n,ratioX:o,segmentPage:a}=e,c=this._docSkeletonManagerService.getSkeleton().findPositionByGlyph(n,a);if(c==null)return;let A=o<.5;return n.glyphType===M.GlyphType.LIST&&(A=!0),{...c,isBack:A}}_interactTextRanges(e){const n=[];for(const o of this._rangeList){if(e.some(a=>a.isIntersection(o))){o.dispose();continue}n.push(o)}this._rangeList=n}_interactRectRanges(e){const n=[];for(const o of this._rectRangeList){if(e.some(a=>a.isIntersection(o))){o.dispose();continue}n.push(o)}this._rectRangeList=n}_removeCollapsedTextRange(){const e=this._rangeList;this._rangeList=[];for(const n of e)n.collapsed?n.dispose():this._rangeList.push(n)}_removeAllRanges(){this._removeAllTextRanges(),this._removeAllRectRanges()}_removeAllCacheRanges(){this._rangeListCache.forEach(e=>{e.dispose()}),this._rectRangeListCache.forEach(e=>{e.dispose()}),this._rangeListCache=[],this._rectRangeListCache=[]}_removeAllTextRanges(){this._rangeList.forEach(e=>{e.dispose()}),this._rangeList=[]}_removeAllRectRanges(){this._rectRangeList.forEach(e=>{e.dispose()}),this._rectRangeList=[]}_removeAllCollapsedTextRanges(){for(const e of this._rangeList)e.collapsed&&e.dispose()}_deactivateAllTextRanges(){this._rangeList.forEach(e=>{e.deactivate()})}_deactivateAllRectRanges(){this._rectRangeList.forEach(e=>{e.deactivate()})}_addTextRangesToCache(e){this._rangeListCache.push(...e)}_addTextRange(e){this._deactivateAllTextRanges(),e.activate(),this._rangeList.push(e)}_addRectRangesToCache(e){this._rectRangeListCache.push(...e)}_addRectRanges(e){e.length!==0&&(this._deactivateAllRectRanges(),e[e.length-1].activate(),this._rectRangeList.push(...e))}_createTextRangeByAnchorPosition(e){this._removeAllRanges();const{scene:n,mainComponent:o}=this._context,a=this._docSkeletonManagerService.getSkeleton(),r=new je(n,o,a,e,void 0,this._selectionStyle,this._currentSegmentId,this._currentSegmentPage);this._addTextRange(r)}_updateActiveRangePosition(e){const n=this._getActiveRangeInstance();if(n==null||n.anchorNodePosition==null){this._logService.error("[DocSelectionRenderService] _updateActiveRangeFocusPosition: active range has no anchor");return}this._removeAllRanges(),this._anchorNodePosition=n.anchorNodePosition,this._focusNodePosition=e;const{scene:o,mainComponent:a}=this._context,r=this._docSkeletonManagerService.getSkeleton(),{_anchorNodePosition:c,_focusNodePosition:l,_selectionStyle:A,_currentSegmentId:d,_currentSegmentPage:u}=this;if(c==null||l==null||a==null)return;const m=si(c,l,o,a,r,A,d,u);if(m==null)return;const{textRanges:h,rectRanges:f}=m;this._addTextRangesToCache(h),this._addRectRangesToCache(f),this.deactivate()}_isEmpty(){return this._rangeList.length===0&&this._rectRangeList.length===0}_getCanvasOffset(){var n;const e=(n=this._context.scene)==null?void 0:n.getEngine();return Io(e)}_updateInputPosition(e=!1){const n=this._getActiveRangeInstance(),o=n==null?void 0:n.getAnchor();if(!o||o&&!o.visible||this.activeViewPort==null){this.focus();return}const{left:a,top:r}=o,c=this.activeViewPort.getAbsoluteVector(M.Vector2.FromArray([a,r])),{x:l,y:A}=c;let{left:d,top:u}=this._getCanvasOffset();d+=l,u+=A,this.activate(d,u,e)}_moving(e,n){var I,E;const{_currentSegmentId:o,_currentSegmentPage:a}=this,r=this._findNodeByCoord(e,n,{strict:!0,segmentId:o,segmentPage:a}),c=this._getNodePosition(r);if(c==null||r==null)return;const l=r==null?void 0:r.node.parent,A=l==null?void 0:l.glyphGroup[l.glyphGroup.indexOf(r.node)+1];(r==null?void 0:r.node.streamType)===s.DataStreamTreeTokenType.PARAGRAPH&&(A==null?void 0:A.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK&&(c.isBack=!0),this._focusNodePosition=c,this._removeAllCacheRanges();const{_anchorNodePosition:d,_selectionStyle:u}=this,{scene:m,mainComponent:h}=this._context,f=this._docSkeletonManagerService.getSkeleton();if(d==null||h==null)return;const g=si(d,c,m,h,f,u,o,a);if(g==null)return;const{textRanges:p,rectRanges:S}=g;this._rangeList.length>0&&p.length>0&&this._interactTextRanges(p),this._rectRangeList.length>0&&S.length>0&&this._interactRectRanges(S),this._addTextRangesToCache(p),this._addRectRangesToCache(S),this.deactivate(),(E=(I=this._context.scene)==null?void 0:I.getEngine())==null||E.setCapture()}__attachScrollEvent(){const e=this.activeViewPort;if(!e)return;const{unitId:n}=this._context;if(this._viewPortObserverMap.has(n))return;const o=e.onScrollAfter$.subscribeEvent(r=>{if(!r.viewport)return;const l=this._getActiveRangeInstance();l==null||l.activeStatic()}),a=e.onScrollEnd$.subscribeEvent(r=>{const c=r.viewport;if(!c)return;const l=c.getBounding(),A=this._getActiveRangeInstance(),d=A==null?void 0:A.getAnchor();if(!(!d||d&&!d.visible)){if(l){const{left:u,top:m,right:h,bottom:f}=l.viewBound;if(d.left<u||d.left>h||d.top<m||d.top>f){A==null||A.deactivateStatic();return}}this._updateInputPosition()}});this._viewPortObserverMap.set(n,{scrollBefore:o,scrollStop:a})}_initInputEvents(){this.disposeWithMe(N.fromEvent(this._input,"keydown").subscribe(e=>{this._isIMEInputApply||this._eventHandle(e,n=>{this._onKeydown$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"input").subscribe(e=>{if(!(e.inputType==="historyUndo"||e.inputType==="historyRedo")){if(this._rectRangeList.length>0)return e.stopPropagation(),e.preventDefault();this._isIMEInputApply||this._eventHandle(e,n=>{this._onInputBefore$.next(n),this._onInput$.next(n)})}})),this.disposeWithMe(N.fromEvent(this._input,"compositionstart").subscribe(e=>{if(this._rectRangeList.length>0)return e.stopPropagation(),e.preventDefault();this._isIMEInputApply=!0,this._eventHandle(e,n=>{this._onCompositionstart$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"compositionend").subscribe(e=>{this._isIMEInputApply=!1,this._eventHandle(e,n=>{this._onCompositionend$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"compositionupdate").subscribe(e=>{this._eventHandle(e,n=>{this._onInputBefore$.next(n),this._onCompositionupdate$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"paste").subscribe(e=>{this._eventHandle(e,n=>{this._onPaste$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"focus").subscribe(e=>{this._eventHandle(e,n=>{this._onFocus$.next(n)})})),this.disposeWithMe(N.fromEvent(this._input,"blur").subscribe(e=>{this._eventHandle(e,n=>{this._onBlur$.next(n)})}))}_eventHandle(e,n){const o=this._input.textContent||"";this._input.innerHTML="";const a=this._getActiveRange(),r=this._getAllTextRanges();n({event:e,content:o,activeRange:a,rangeList:r})}_getTransformCoordForDocumentOffset(e,n){const o=this._context.mainComponent,{documentTransform:a}=o.getOffsetConfig();if(this.activeViewPort==null||a==null)return;const r=this.activeViewPort.transformVector2SceneCoord(M.Vector2.FromArray([e,n]));if(r)return a.clone().invert().applyPoint(r)}_findNodeByCoord(e,n,o){const a=this._getTransformCoordForDocumentOffset(e,n);if(a==null)return;const r=this._context.mainComponent,c=this._docSkeletonManagerService.getSkeleton(),{pageLayoutType:l=M.PageLayoutType.VERTICAL,pageMarginLeft:A,pageMarginTop:d}=r.getOffsetConfig();return c.findNodeByCoord(a,l,A,d,o)}_detachEvent(){this._onInputBefore$.complete(),this._onKeydown$.complete(),this._onInput$.complete(),this._onCompositionstart$.complete(),this._onCompositionupdate$.complete(),this._onCompositionend$.complete(),this._onSelectionStart$.complete(),this._textSelectionInner$.complete(),this._onPaste$.complete(),this._onFocus$.complete(),this._onBlur$.complete(),this._onPointerDown$.complete()}},C.DocSelectionRenderService=ya([$t(1,y.ILayoutService),$t(2,s.ILogService),$t(3,s.IUniverInstanceService),$t(4,s.Inject(D.DocSkeletonManagerService))],C.DocSelectionRenderService);class vo extends s.Disposable{constructor(e,n,o,a,r){super();R(this,"_change$",new N.Subject);R(this,"change$",this._change$.asObservable());R(this,"_input$",new N.Subject);R(this,"input$",this._input$.asObservable());R(this,"_paste$",new N.Subject);R(this,"paste$",this._paste$.asObservable());R(this,"_focus",!1);R(this,"_focus$",new N.Subject);R(this,"focus$",this._focus$.asObservable());R(this,"_blur$",new N.Subject);R(this,"blur$",this._blur$.asObservable());R(this,"_selectionChange$",new N.Subject);R(this,"selectionChange$",this._selectionChange$.asObservable());R(this,"_valueLegality",!0);R(this,"_openForSheetUnitId");R(this,"_openForSheetSubUnitId");this._param=e,this._univerInstanceService=n,this._docSelectionManagerService=o,this._commandService=a,this._undoRedoService=r,this._openForSheetUnitId=this._param.openForSheetUnitId,this._openForSheetSubUnitId=this._param.openForSheetSubUnitId,this._listenSelection()}_listenSelection(){const e=this._param.render.with(C.DocSelectionRenderService);this.disposeWithMe(e.onBlur$.subscribe(n=>{this._blur$.next(n);const o=this.getDocumentData();this._change$.next({target:this,data:o})})),this.disposeWithMe(e.onFocus$.subscribe(n=>{this._focus$.next(n)})),this.disposeWithMe(e.onPaste$.subscribe(n=>{this._paste$.next(n)})),this.disposeWithMe(N.merge(e.onInput$,e.onKeydown$.pipe(yt.filter(n=>{const o=n.event;return o.ctrlKey||o.metaKey?[y.KeyCode.X,y.KeyCode.V].includes(o.keyCode):[y.KeyCode.BACKSPACE].includes(o.keyCode)})),e.onCompositionupdate$,e.onCompositionend$,e.onPaste$).subscribe(n=>{if(n==null)return;const{content:o=""}=n,a=this.getDocumentData();this._input$.next({target:this,content:o,data:a,isComposing:n.event.type==="compositionupdate"})})),this.disposeWithMe(this._docSelectionManagerService.textSelection$.subscribe(n=>{if(n==null)return;const{unitId:o,subUnitId:a,...r}=n,c=this.getEditorId();o===c&&this._selectionChange$.next(r)}))}focus(){const e=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),n=this.getEditorId();(e==null||e.getUnitId()!==n)&&this._univerInstanceService.setCurrentUnitForType(n),this._param.render.with(C.DocSelectionRenderService).focus();const a=this._docSelectionManagerService.getDocRanges({unitId:n,subUnitId:n});a&&this._docSelectionManagerService.replaceDocRanges(a,{unitId:n,subUnitId:n},!1),this._focus=!0}blur(){this._param.render.with(C.DocSelectionRenderService).blur(),this._focus=!1}select(){const e=this.getDocumentData();return this.setSelectionRanges([{startOffset:0,endOffset:e.body?e.body.dataStream.length-2:0}])}setSelectionRanges(e){const n=this.getEditorId(),o={unitId:n,subUnitId:n};return this._docSelectionManagerService.replaceDocRanges(e,o,!1)}getSelectionRanges(){const e=this.getEditorId(),n={unitId:e,subUnitId:e};return this._docSelectionManagerService.getDocRanges(n)}getEditorId(){return this._getEditorId()}getDocumentData(){return this._getDocDataModel().getSnapshot()}setDocumentData(e,n){const{id:o}=e;this._commandService.executeCommand(Xn.id,{unitId:o,snapshot:e,textRanges:n})}clearUndoRedoHistory(){const e=this.getEditorId();return this._undoRedoService.clearUndoRedo(e)}dispose(){this._getDocDataModel().dispose()}get editorUnitId(){return this._param.editorUnitId}get params(){return this._param}get cancelDefaultResizeListener(){return this._param.cancelDefaultResizeListener}get render(){return this._param.render}isSingleChoice(){var e;return(e=this._param.isSingleChoice)!=null?e:!1}setOpenForSheetUnitId(e){this._openForSheetUnitId=e}getOpenForSheetUnitId(){return this._openForSheetUnitId}setOpenForSheetSubUnitId(e){this._openForSheetSubUnitId=e}getOpenForSheetSubUnitId(){return this._openForSheetSubUnitId}isValueLegality(){return this._valueLegality===!0}setValueLegality(e=!0){this._valueLegality=e}isFocus(){return this._focus}setFocus(e=!1){this._focus=e}isSingle(){return this._param.isSingle===!0||this.onlyInputRange()}isReadOnly(){return this._param.readonly===!0}onlyInputContent(){return this._param.onlyInputContent===!0}onlyInputFormula(){return this._param.onlyInputFormula===!0}onlyInputRange(){return this._param.onlyInputRange===!0}getBoundingClientRect(){return this._param.editorDom.getBoundingClientRect()}isVisible(){return this._param.visible}isSheetEditor(){return this._param.isSheetEditor===!0}isFormulaEditor(){return this._param.isFormulaEditor===!0}getValue(){var o;return(((o=this._getDocDataModel().getBody())==null?void 0:o.dataStream)||"").replace(/\r\n/g,"").replace(/\n/g,"").replace(/\n/g,"")}getBody(){return this._getDocDataModel().getBody()}update(e){this._param={...this._param,...e}}verticalAlign(){var c;const e=this._getDocDataModel();if(e==null)return;const{width:n,height:o}=this._param.editorDom.getBoundingClientRect();if(o===0||n===0)return;if(!this.isSingle()){e.updateDocumentDataPageSize(n,void 0);return}let a=s.DEFAULT_STYLES.fs;(c=this._param.canvasStyle)!=null&&c.fontSize&&(a=this._param.canvasStyle.fontSize);const r=(o-a*4/3)/2-2;e.updateDocumentDataMargin({t:r<0?0:r}),e.updateDocumentDataPageSize(void 0,void 0)}updateCanvasStyle(){var o;const e=this._getDocDataModel();if(e==null)return;const n={};(o=this._param.canvasStyle)!=null&&o.fontSize&&(n.textStyle==null&&(n.textStyle={}),n.textStyle.fs=this._param.canvasStyle.fontSize),e.updateDocumentStyle(n)}_getDocDataModel(){const e=this._getEditorId();return this._univerInstanceService.getUnit(e,s.UniverInstanceType.UNIVER_DOC)}_getEditorId(){var e;return((e=this._param.initialSnapshot)==null?void 0:e.id)||this._param.editorUnitId||""}}var Ra=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,xa=(i,t,e,n)=>{for(var o=n>1?void 0:n?Oa(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Ra(t,e,o),o},We=(i,t)=>(e,n)=>t(e,n,i);const Ma=["univer-editor","univer-range-selector","univer-range-selector-editor","univer-render-canvas","univer-text-editor-container-placeholder"];C.EditorService=class extends s.Disposable{constructor(e,n,o,a,r,c,l){super();R(this,"_editors",new Map);R(this,"_focusEditorUnitId");R(this,"_state$",new N.Subject);R(this,"state$",this._state$.asObservable());R(this,"_currentSheetUnitId");R(this,"_currentSheetSubUnitId");R(this,"_inputFormula$",new N.Subject);R(this,"inputFormula$",this._inputFormula$.asObservable());R(this,"_resize$",new N.Subject);R(this,"resize$",this._resize$.asObservable());R(this,"_closeRangePrompt$",new N.Subject);R(this,"closeRangePrompt$",this._closeRangePrompt$.asObservable());R(this,"_blur$",new N.Subject);R(this,"blur$",this._blur$.asObservable());R(this,"_focus$",new N.Subject);R(this,"focus$",this._focus$.asObservable());R(this,"_setValue$",new N.Subject);R(this,"setValue$",this._setValue$.asObservable());R(this,"_valueChange$",new N.Subject);R(this,"valueChange$",this._valueChange$.asObservable());R(this,"_focusStyle$",new N.Subject);R(this,"focusStyle$",this._focusStyle$.asObservable());R(this,"_singleSelection$",new N.Subject);R(this,"singleSelection$",this._singleSelection$.asObservable());R(this,"_spreadsheetFocusState",!1);this._univerInstanceService=e,this._renderManagerService=n,this._lexerTreeBuilder=o,this._docSelectionManagerService=a,this._contextService=r,this._commandService=c,this._undoRedoService=l,this._initUniverFocusListener()}_initUniverFocusListener(){this.disposeWithMe(N.fromEvent(window,"focusin").subscribe(e=>{const n=e.target;this._blurSheetEditor(n)}))}_blurSheetEditor(e){if(Ma.some(o=>e.classList.contains(o)))return;const n=this.getFocusEditor();n&&n.isSheetEditor()!==!0&&this.blur()}setFocusId(e){this._focusEditorUnitId=e}getFocusId(){return this._focusEditorUnitId}getFocusEditor(){if(this._focusEditorUnitId)return this.getEditor(this._focusEditorUnitId)}isEditor(e){return this._editors.has(e)}isSheetEditor(e){const n=this._editors.get(e);return!!(n&&n.isSheetEditor())}closeRangePrompt(){const e=this._univerInstanceService.getCurrentUniverDocInstance();if(!e)return;const n=e.getUnitId();this._contextService.setContextValue(s.EDITOR_ACTIVATED,!1),this._contextService.setContextValue(s.FOCUSING_EDITOR_STANDALONE,!1),!(!this.isEditor(n)||this.isSheetEditor(n))&&(this.changeSpreadsheetFocusState(!1),this.blur())}changeSpreadsheetFocusState(e){this._spreadsheetFocusState=e}getSpreadsheetFocusState(){return this._spreadsheetFocusState}focusStyle(e){const n=this.getEditor(e);if(!n)return!1;n.setFocus(!0),this._contextService.setContextValue(s.EDITOR_ACTIVATED,!0),s.isInternalEditorID(e)||(this._contextService.setContextValue(s.FOCUSING_EDITOR_STANDALONE,!0),this._contextService.setContextValue(s.FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,n.isSingle())),this._spreadsheetFocusState||this.singleSelection(!!n.isSingleChoice()),this._focusStyle$.next(e),this.setFocusId(e)}singleSelection(e){this._singleSelection$.next(e)}selectionChangingState(){const e=this.getFocusId();if(e==null)return!0;const n=this.getEditor(e);return!n||n.isSheetEditor()||n.isFormulaEditor()?!0:n.onlyInputRange()!==!0&&n.onlyInputFormula()!==!0?(this.blur(),!0):n.onlyInputFormula()===!0&&this._contextService.getContextValue(s.FOCUSING_EDITOR_INPUT_FORMULA)!==!0?(this.blur(),!0):!this.getSpreadsheetFocusState()}blur(){this._spreadsheetFocusState||(this._closeRangePrompt$.next(null),this.singleSelection(!1),this.setFocusId(null),this._contextService.setContextValue(s.EDITOR_ACTIVATED,!1),this._contextService.setContextValue(s.FOCUSING_EDITOR_STANDALONE,!1)),this.getAllEditor().forEach(e=>{e.setFocus(!1)}),this._focusStyle$.next(),this._blur$.next(null)}focus(e=(n=>(n=this._univerInstanceService.getCurrentUniverDocInstance())==null?void 0:n.getUnitId())()){if(e==null)return;const o=this.getEditor(e);if(o==null)return;this._univerInstanceService.setCurrentUnitForType(e);const a=o.getValue().length;this.focusStyle(e),this._focus$.next({startOffset:a,endOffset:a})}setFormula(e,n=this._getCurrentEditorUnitId()){this._inputFormula$.next({formulaString:e,editorUnitId:n})}setValue(e,n=this._getCurrentEditorUnitId()){this.setValueNoRefresh(e,n),this._refreshValueChange(n)}setValueNoRefresh(e,n){this._setValue$.next({body:{dataStream:e},editorUnitId:n}),this.resize(n)}getValue(e){const n=this.getEditor(e);if(n!=null)return n.getValue()}setRichValue(e,n=this._getCurrentEditorUnitId()){this._setValue$.next({body:e,editorUnitId:n}),this._refreshValueChange(n)}getRichValue(e){const n=this.getEditor(e);if(n!=null)return n.getBody()}dispose(){this._state$.complete(),this._editors.clear(),super.dispose()}getEditor(e=this._getCurrentEditorUnitId()){return this._editors.get(e)}getAllEditor(){return this._editors}getFirstEditor(){return[...this.getAllEditor().values()][0]}resize(e){const n=this.getEditor(e);n!=null&&(n.verticalAlign(),this._resize$.next(e))}isVisible(e){var n;return(n=this.getEditor(e))==null?void 0:n.isVisible()}setOperationSheetUnitId(e){this._currentSheetUnitId=e}getOperationSheetUnitId(){return this._currentSheetUnitId}setOperationSheetSubUnitId(e){this._currentSheetSubUnitId=e}getOperationSheetSubUnitId(){return this._currentSheetSubUnitId}register(e,n){var A,d,u,m;const{initialSnapshot:o,canvasStyle:a={}}=e,r=o.id;this._univerInstanceService.getUnit(r,s.UniverInstanceType.UNIVER_DOC)==null&&this._univerInstanceService.createUnit(s.UniverInstanceType.UNIVER_DOC,o||this._getBlank(r),{makeCurrent:!1});let l=this._renderManagerService.getRenderById(r);if(l==null&&(this._renderManagerService.create(r),l=this._renderManagerService.getRenderById(r)),l){l.engine.setContainer(n);const h=new vo({...e,render:l,editorDom:n,canvasStyle:a},this._univerInstanceService,this._docSelectionManagerService,this._commandService,this._undoRedoService);this._editors.set(r,h),e.scrollBar||(m=(u=(d=(A=l.mainComponent)==null?void 0:A.getScene())==null?void 0:d.getViewports())==null?void 0:u[0].getScrollBar())==null||m.dispose(),!h.isSheetEditor()&&!e.noNeedVerticalAlign&&(h.verticalAlign(),h.updateCanvasStyle())}return s.toDisposable(()=>{this._unRegister(r)})}_unRegister(e){const n=this._editors.get(e);if(n==null||(this._renderManagerService.removeRender(e),n.dispose(),this._editors.delete(e),this._univerInstanceService.disposeUnit(e),this._contextService.setContextValue(s.FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,!1),!this.isSheetEditor(e)))return;if(this._univerInstanceService.getAllUnitsForType(s.UniverInstanceType.UNIVER_SHEET).length>0){const a=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET);a&&this._univerInstanceService.focusUnit(a.getUnitId())}}refreshValueChange(e){this._refreshValueChange(e)}checkValueLegality(e){const n=this._editors.get(e);if(n==null)return!0;let o=n.getValue();if(n.setValueLegality(),o=o.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\n/g,""),o.length===0)return!0;if(n.onlyInputFormula()){if(o.substring(0,1)!==Me.operatorToken.EQUALS)return n.setValueLegality(!1),!1;const a=this._lexerTreeBuilder.checkIfAddBracket(o);n.setValueLegality(a===0)}else if(n.onlyInputRange()){const a=o.split(",");if(n.isSingleChoice()&&a.length>1)return n.setValueLegality(!1),!1;n.setValueLegality(Me.isReferenceStrings(o))}return n.isValueLegality()}_refreshValueChange(e){const n=this.getEditor(e);n!=null&&this._valueChange$.next(n)}_getCurrentEditorUnitId(){return this._univerInstanceService.getCurrentUniverDocInstance().getUnitId()}_getBlank(e){return{id:e,body:{dataStream:`${s.DEFAULT_EMPTY_DOCUMENT_VALUE}`,textRuns:[],paragraphs:[{startIndex:0}]},documentStyle:{renderConfig:{verticalAlign:s.VerticalAlign.TOP,horizontalAlign:s.HorizontalAlign.LEFT},marginLeft:3,marginTop:0,marginRight:3}}}},C.EditorService=xa([We(0,s.IUniverInstanceService),We(1,M.IRenderManagerService),We(2,s.Inject(Me.LexerTreeBuilder)),We(3,s.Inject(D.DocSelectionManagerService)),We(4,s.IContextService),We(5,s.ICommandService),We(6,s.IUndoRedoService)],C.EditorService);const fe=s.createIdentifier("univer.editor.service"),lt={textEditorContainer:"univer-text-editor-container",textEditorContainerActive:"univer-text-editor-container-active",textEditorContainerError:"univer-text-editor-container-error",textEditorContainerDisabled:"univer-text-editor-container-disabled",textEditorContainerPlaceholder:"univer-text-editor-container-placeholder",textEditorValidationError:"univer-text-editor-validation-error"};function Ba(i="",t=""){const e=`${t}${s.DEFAULT_EMPTY_DOCUMENT_VALUE}`,n=[],o=[];for(let r=0;r<e.length;r++)e[r]==="\r"&&n.push({startIndex:r}),e[r]===`
|
|
119
|
+
`&&o.push({startIndex:r});return{id:i,body:{dataStream:e,tables:[],textRuns:[],paragraphs:n,sectionBreaks:o},tableSource:{},documentStyle:{documentFlavor:s.DocumentFlavor.UNSPECIFIED}}}const Da=new Set(["snapshot","resizeCallBack","cancelDefaultResizeListener","isSheetEditor","canvasStyle","isFormulaEditor","isSingle","isReadonly","onlyInputFormula","onlyInputRange","value","onlyInputContent","isSingleChoice","openForSheetUnitId","openForSheetSubUnitId","onChange","onActive","onValid","placeholder"]);function Co(i){const{id:t,snapshot:e,resizeCallBack:n,cancelDefaultResizeListener:o,isSheetEditor:a=!1,canvasStyle:r={},value:c,isSingle:l=!0,isReadonly:A=!1,isFormulaEditor:d=!1,onlyInputFormula:u=!1,onlyInputRange:m=!1,onlyInputContent:h=!1,isSingleChoice:f=!1,openForSheetUnitId:g,openForSheetSubUnitId:p,onChange:S,onActive:I,onValid:E,isValueValid:T=!0,placeholder:O,disabled:v}=i,b=s.useDependency(fe),_=s.useDependency(s.LocaleService),[B,w]=Q.useState(""),[x,U]=Q.useState(""),[L,F]=Q.useState(T),[H,k]=Q.useState([0,0]),X=Q.useRef(null),[G,W]=Q.useState(!1);if(!s.isInternalEditorID(t))throw new Error("Invalid editor ID");Q.useEffect(()=>{const j=X.current;if(!j)return;const z=new ResizeObserver(()=>{o!==!0&&b.resize(t),n&&n(j)});z.observe(j);const Y=e!=null?e:Ba(t,c);Y.id!==t&&(Y.id=t);const ie=b.register({editorUnitId:t,initialSnapshot:Y,cancelDefaultResizeListener:o,isSheetEditor:a,canvasStyle:r,isSingle:l,readonly:A,isSingleChoice:f,onlyInputFormula:u,onlyInputRange:m,onlyInputContent:h,openForSheetUnitId:g,openForSheetSubUnitId:p,isFormulaEditor:d},j);b.setValueNoRefresh(c||"",t),w(O||"");const ce=s.debounce(Ae=>{W(Ae),I&&I(Ae)},30),ge=160,le=s.debounce(Ae=>{const Se=Ae.getEditorId(),Te=b.checkValueLegality(Se);setTimeout(()=>{const we=Ae.getBoundingClientRect();k([we.left,we.top-16]),we.left+we.top>0&&F(Te),Ae.onlyInputFormula()?U(_.t("textEditor.formulaError")):U(_.t("textEditor.rangeError"))},ge),b.getValue(Se)!==c&&(E&&E(Te),S&&S(b.getValue(t)))},30),Ce=b.focusStyle$.subscribe(Ae=>{let Se=!1;Ae===t&&(Se=!0),ce(Se),setTimeout(()=>{if(!da(j))F(!0);else{const Te=b.getEditor(t);Te&&le(Te)}},ge)}),st=b.valueChange$.subscribe(Ae=>{if(Ae.isSheetEditor()||Ae.getEditorId()!==t)return;const Se=b.getFocusEditor();Se&&Se.getEditorId()!==t||le(Ae)});return()=>{z.unobserve(j),z.disconnect(),ie.dispose(),Ce==null||Ce.unsubscribe(),st==null||st.unsubscribe()}},[]),Q.useEffect(()=>{const j=b.getEditor(t);j!=null&&j.update({readonly:A,isSingle:l,isSingleChoice:f,onlyInputContent:h,onlyInputFormula:u,onlyInputRange:m,openForSheetSubUnitId:p,openForSheetUnitId:g})},[A,l,f,h,u,m,p,g]),Q.useEffect(()=>{c!=null&&b.setValueNoRefresh(c,t)},[c]),Q.useEffect(()=>{F(T)},[T]);function V(){const j=b.getValue(t);return!(j==null||j==="")}const K=Object.fromEntries(Object.entries(i).filter(([j])=>!Da.has(j)));let ee=lt.textEditorContainer;i.className!=null&&(ee=i.className);let Z="";return i.className==null&&(A?Z=` ${lt.textEditorContainerDisabled}`:L?G&&(Z=` ${lt.textEditorContainerActive}`):Z=` ${lt.textEditorContainerError}`),P.jsx(P.Fragment,{children:P.jsxs("div",{...K,style:{...K.style,...v?{pointerEvents:"none",opacity:0}:{}},className:ee+Z,ref:X,children:[P.jsx("div",{style:{display:L?"none":"block"},className:lt.textEditorValidationError,children:x}),P.jsx("div",{style:{display:V()?"none":"unset"},className:lt.textEditorContainerPlaceholder,children:B})]})})}var pe=function(){return pe=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},pe.apply(this,arguments)},_a=function(i,t){var e={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&t.indexOf(n)<0&&(e[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(i);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(i,n[o])&&(e[n[o]]=i[n[o]]);return e},ye=Q.forwardRef(function(i,t){var e=i.icon,n=i.id,o=i.className,a=i.extend,r=_a(i,["icon","id","className","extend"]),c="univerjs-icon univerjs-icon-".concat(n," ").concat(o||"").trim(),l=Q.useRef("_".concat(Ua()));return To(e,"".concat(n),{defIds:e.defIds,idSuffix:l.current},pe({ref:t,className:c},r),a)});function To(i,t,e,n,o){return Q.createElement(i.tag,pe(pe({key:t},Na(i,e,o)),n),(Pa(i,e).children||[]).map(function(a,r){return To(a,"".concat(t,"-").concat(i.tag,"-").concat(r),e,void 0,o)}))}function Na(i,t,e){var n=pe({},i.attrs);e!=null&&e.colorChannel1&&n.fill==="colorChannel1"&&(n.fill=e.colorChannel1);var o=t.defIds;return!o||o.length===0||(i.tag==="use"&&n["xlink:href"]&&(n["xlink:href"]=n["xlink:href"]+t.idSuffix),Object.entries(n).forEach(function(a){var r=a[0],c=a[1];typeof c=="string"&&(n[r]=c.replace(/url\(#(.*)\)/,"url(#$1".concat(t.idSuffix,")")))})),n}function Pa(i,t){var e,n=t.defIds;return!n||n.length===0?i:i.tag==="defs"&&(!((e=i.children)===null||e===void 0)&&e.length)?pe(pe({},i),{children:i.children.map(function(o){return typeof o.attrs.id=="string"&&n&&n.indexOf(o.attrs.id)>-1?pe(pe({},o),{attrs:pe(pe({},o.attrs),{id:o.attrs.id+t.idSuffix})}):o})}):i}function Ua(){return Math.random().toString(36).substring(2,8)}ye.displayName="UniverIcon";var wa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z"}}]},bo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"align-text-both-single",ref:t,icon:wa}))});bo.displayName="AlignTextBothSingle";var La={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"}}]},yo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"close-single",ref:t,icon:La}))});yo.displayName="CloseSingle";var Qa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z"}},{tag:"path",attrs:{fill:"currentColor",d:"M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Ro=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"delete-single",ref:t,icon:Qa}))});Ro.displayName="DeleteSingle";var Fa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM3.33315 5.56641C3.00178 5.56641 2.73315 5.83504 2.73315 6.16641 2.73315 6.49778 3.00178 6.76641 3.33315 6.76641H12.6665C12.9979 6.76641 13.2665 6.49778 13.2665 6.16641 13.2665 5.83504 12.9979 5.56641 12.6665 5.56641H3.33315zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM3.33315 12.9004C3.00178 12.9004 2.73315 13.169 2.73315 13.5004 2.73315 13.8318 3.00178 14.1004 3.33315 14.1004H12.6665C12.9979 14.1004 13.2665 13.8318 13.2665 13.5004 13.2665 13.169 12.9979 12.9004 12.6665 12.9004H3.33315z"}}]},Oo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"horizontally-single",ref:t,icon:Fa}))});Oo.displayName="HorizontallySingle";var Ha={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"}}]},xo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"increase-single",ref:t,icon:Ha}))});xo.displayName="IncreaseSingle";var ka={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H11.3332C11.6646 6.76641 11.9332 6.49778 11.9332 6.16641 11.9332 5.83504 11.6646 5.56641 11.3332 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H11.3332C11.6646 14.1004 11.9332 13.8318 11.9332 13.5004 11.9332 13.169 11.6646 12.9004 11.3332 12.9004H1.9999z"}}]},Mo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"left-justifying-single",ref:t,icon:ka}))});Mo.displayName="LeftJustifyingSingle";var Va={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM4.66665 5.56641C4.33528 5.56641 4.06665 5.83504 4.06665 6.16641 4.06665 6.49778 4.33528 6.76641 4.66665 6.76641H14C14.3314 6.76641 14.6 6.49778 14.6 6.16641 14.6 5.83504 14.3314 5.56641 14 5.56641H4.66665zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM4.66665 12.9004C4.33528 12.9004 4.06665 13.169 4.06665 13.5004 4.06665 13.8318 4.33528 14.1004 4.66665 14.1004H14C14.3314 14.1004 14.6 13.8318 14.6 13.5004 14.6 13.169 14.3314 12.9004 14 12.9004H4.66665z"}}]},Bo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"right-justifying-single",ref:t,icon:Va}))});Bo.displayName="RightJustifyingSingle";var ja={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.6185 12.4423C12.5907 12.2749 12.7773 12.15 12.9343 12.2308L15.4242 13.5126C15.6102 13.6084 15.5544 13.8745 15.3439 13.8955L14.2456 14.184L13.4521 15.1286C13.3495 15.2939 13.085 15.2463 13.0534 15.0568L12.6185 12.4423Z"}},{tag:"path",attrs:{fill:"currentColor",d:"M1 3.6C1 2.16406 2.16406 1 3.6 1H12.3C13.7359 1 14.9 2.16406 14.9 3.6V5.81156C14.9003 5.81881 14.9004 5.82609 14.9004 5.8334C14.9004 5.84071 14.9003 5.84799 14.9 5.85524V10.045C14.9003 10.0522 14.9004 10.0595 14.9004 10.0668C14.9004 10.3982 14.6318 10.6668 14.3004 10.6668H11.1668C10.8907 10.6668 10.6668 10.8907 10.6668 11.1668V14.3C10.6668 14.6314 10.3982 14.9 10.0668 14.9L10.05 14.8998L3.6 14.9C2.16406 14.9 1 13.7359 1 12.3V3.6ZM13.2 5.2334C13.4761 5.2334 13.7 5.00954 13.7 4.7334V3.6C13.7 2.8268 13.0732 2.2 12.3 2.2H11.1668C10.8907 2.2 10.6668 2.42386 10.6668 2.7V4.7334C10.6668 5.00954 10.8907 5.2334 11.1668 5.2334H13.2ZM10.6668 6.9334C10.6668 6.65726 10.8907 6.4334 11.1668 6.4334H13.2C13.4761 6.4334 13.7 6.65726 13.7 6.9334V8.9668C13.7 9.24294 13.4761 9.4668 13.2 9.4668H11.1668C10.8907 9.4668 10.6668 9.24294 10.6668 8.9668V6.9334ZM8.9668 5.2334C9.24294 5.2334 9.4668 5.00954 9.4668 4.7334V2.7C9.4668 2.42386 9.24294 2.2 8.9668 2.2H6.9334C6.65726 2.2 6.4334 2.42386 6.4334 2.7V4.7334C6.4334 5.00954 6.65726 5.2334 6.9334 5.2334L8.9668 5.2334ZM6.4334 6.9334C6.4334 6.65726 6.65726 6.4334 6.9334 6.4334L8.9668 6.4334C9.24294 6.4334 9.4668 6.65726 9.4668 6.9334V8.9668C9.4668 9.24294 9.24294 9.4668 8.9668 9.4668L6.9334 9.4668C6.65726 9.4668 6.4334 9.24294 6.4334 8.9668V6.9334ZM4.7334 5.2334C5.00954 5.2334 5.2334 5.00954 5.2334 4.7334V2.7C5.2334 2.42386 5.00954 2.2 4.7334 2.2H3.6C2.8268 2.2 2.2 2.8268 2.2 3.6V4.7334C2.2 5.00954 2.42386 5.2334 2.7 5.2334H4.7334ZM2.2 6.9334C2.2 6.65726 2.42386 6.4334 2.7 6.4334H4.7334C5.00954 6.4334 5.2334 6.65725 5.2334 6.9334V8.9668C5.2334 9.24294 5.00954 9.4668 4.7334 9.4668H2.7C2.42386 9.4668 2.2 9.24294 2.2 8.9668V6.9334ZM5.2334 11.1668C5.2334 10.8907 5.00954 10.6668 4.7334 10.6668H2.7C2.42386 10.6668 2.2 10.8907 2.2 11.1668V12.3C2.2 13.0732 2.8268 13.7 3.6 13.7H4.7334C5.00954 13.7 5.2334 13.4761 5.2334 13.2V11.1668ZM9.4668 11.1668C9.4668 10.8907 9.24294 10.6668 8.9668 10.6668H6.9334C6.65726 10.6668 6.4334 10.8907 6.4334 11.1668V13.2C6.4334 13.4761 6.65726 13.7 6.9334 13.7H8.9668C9.24294 13.7 9.4668 13.4761 9.4668 13.2V11.1668Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Do=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"select-range-single",ref:t,icon:ja}))});Do.displayName="SelectRangeSingle";var Wa={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4.96372 2.59116C5.19803 2.35684 5.19803 1.97695 4.96372 1.74263 4.7294 1.50832 4.3495 1.50832 4.11519 1.74263L2.53945 3.31837 1.96372 2.74263C1.7294 2.50832 1.3495 2.50832 1.11519 2.74263.880874 2.97695.880874 3.35684 1.11519 3.59116L2.11519 4.59116C2.3495 4.82547 2.7294 4.82547 2.96372 4.59116L4.96372 2.59116zM14.4605 2.56689H6.8981C6.56672 2.56689 6.2981 2.83552 6.2981 3.16689 6.2981 3.49827 6.56672 3.76689 6.8981 3.76689H14.4605C14.7918 3.76689 15.0605 3.49827 15.0605 3.16689 15.0605 2.83552 14.7918 2.56689 14.4605 2.56689zM6.8981 7.2334C6.56672 7.2334 6.2981 7.50203 6.2981 7.8334 6.2981 8.16477 6.56672 8.4334 6.8981 8.4334H14.4605C14.7918 8.4334 15.0605 8.16477 15.0605 7.8334 15.0605 7.50203 14.7918 7.2334 14.4605 7.2334H6.8981zM6.2981 12.4999C6.2981 12.1685 6.56672 11.8999 6.8981 11.8999H14.4605C14.7918 11.8999 15.0605 12.1685 15.0605 12.4999 15.0605 12.8313 14.7918 13.0999 14.4605 13.0999H6.8981C6.56672 13.0999 6.2981 12.8313 6.2981 12.4999z"}},{tag:"path",attrs:{fill:"currentColor",d:"M2.87279 5.8999C1.80504 5.8999.939453 6.76549.939453 7.83324.939453 8.90099 1.80504 9.76657 2.87279 9.76657 3.94054 9.76657 4.80612 8.90099 4.80612 7.83324 4.80612 6.76549 3.94054 5.8999 2.87279 5.8999zM2.13945 7.83324C2.13945 7.42823 2.46778 7.0999 2.87279 7.0999 3.2778 7.0999 3.60612 7.42823 3.60612 7.83324 3.60612 8.23824 3.2778 8.56657 2.87279 8.56657 2.46778 8.56657 2.13945 8.23824 2.13945 7.83324zM.939453 12.5002C.939453 11.4325 1.80504 10.5669 2.87279 10.5669 3.94054 10.5669 4.80612 11.4325 4.80612 12.5002 4.80612 13.568 3.94054 14.4336 2.87279 14.4336 1.80504 14.4336.939453 13.568.939453 12.5002zM2.87279 11.7669C2.46778 11.7669 2.13945 12.0952 2.13945 12.5002 2.13945 12.9052 2.46778 13.2336 2.87279 13.2336 3.2778 13.2336 3.60612 12.9052 3.60612 12.5002 3.60612 12.0952 3.2778 11.7669 2.87279 11.7669z",fillRule:"evenodd",clipRule:"evenodd"}}]},_o=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"todo-list",ref:t,icon:Wa}))});_o.displayName="TodoList";function No(i){var t,e,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var o=i.length;for(t=0;t<o;t++)i[t]&&(e=No(i[t]))&&(n&&(n+=" "),n+=e)}else for(e in i)i[e]&&(n&&(n+=" "),n+=e);return n}function en(){for(var i,t,e=0,n="",o=arguments.length;e<o;e++)(i=arguments[e])&&(t=No(i))&&(n&&(n+=" "),n+=t);return n}class Po extends s.Disposable{constructor(){super(...arguments);R(this,"_currentSelectorId");R(this,"_selectionChange$",new N.Subject);R(this,"selectionChange$",this._selectionChange$.asObservable());R(this,"_openSelector$",new N.Subject);R(this,"openSelector$",this._openSelector$.asObservable());R(this,"_selectorModalVisible$",new N.BehaviorSubject(!1));R(this,"selectorModalVisible$",this._selectorModalVisible$.asObservable())}get selectorModalVisible(){return this._selectorModalVisible$.getValue()}setCurrentSelectorId(e){this._currentSelectorId=e}getCurrentSelectorId(){return this._currentSelectorId}selectionChange(e){this._currentSelectorId&&this._selectionChange$.next(e)}openSelector(){this._openSelector$.next(null)}triggerModalVisibleChange(e){this._selectorModalVisible$.next(e)}}const ri=s.createIdentifier("univer.range-selector.service"),ae={rangeSelector:"univer-range-selector",rangeSelectorEditor:"univer-range-selector-editor",rangeSelectorIcon:"univer-range-selector-icon",rangeSelectorActive:"univer-range-selector-active",rangeSelectorError:"univer-range-selector-error",rangeSelectorDisabled:"univer-range-selector-disabled",rangeSelectorModal:"univer-range-selector-modal",rangeSelectorModalContainer:"univer-range-selector-modal-container",rangeSelectorModalContainerInput:"univer-range-selector-modal-container-input",rangeSelectorModalContainerInputActive:"univer-range-selector-modal-container-input-active",rangeSelectorModalContainerButton:"univer-range-selector-modal-container-button",rangeSelectorModalContainerDeleteButton:"univer-range-selector-modal-container-delete-button",rangeSelectorModalAdd:"univer-range-selector-modal-add",rangeSelectorModalAddButton:"univer-range-selector-modal-add-button"},za={pointerEvents:"none"};function Ga(i){const{dialogOnly:t,onChange:e,id:n,value:o="",width:a=220,placeholder:r="",size:c="middle",onActive:l,onValid:A,isSingleChoice:d=!1,openForSheetUnitId:u,openForSheetSubUnitId:m,isReadonly:h=!1,className:f,textEditorClassName:g,onSelectorVisibleChange:p}=i,S=y.useEvent(p),[I,E]=Q.useState([""]),T=J=>{E($=>[...$,J])},O=J=>{E($=>$.filter((oe,Gt)=>Gt!==J))},v=(J,$)=>{E(oe=>oe.map((Gt,at)=>at===J?$:Gt))},b=J=>{E($=>{const oe=[...$];return oe.length>0&&(oe[oe.length-1]=J),oe})},_=s.useDependency(fe),B=s.useDependency(ri),w=s.useDependency(s.IUniverInstanceService),[x,U]=Q.useState(!1),L=s.useDependency(s.LocaleService),[F,H]=Q.useState(!1),[k,X]=Q.useState(!0),[G,W]=Q.useState(o),[V,K]=Q.useState(-1),ee=Q.useRef(null),Z=Q.useRef(-1),j=Q.useRef(u),z=Q.useRef(m),Y=Q.useRef(d),ie=Q.useRef(h);Q.useEffect(()=>{const J=ee.current;if(!J)return;const $=new ResizeObserver(()=>{_.resize(n)});$.observe(J);let oe=1;const Gt=B.selectionChange$.subscribe(at=>{if(B.getCurrentSelectorId()!==n)return;if(at.length===0){oe=0;return}const Ks=at.length-oe;if(oe=at.length,Ks<0)return;const Le=at[at.length-1];let bt="";Le.unitId===j.current&&Le.sheetId===z.current?bt=Me.serializeRange(Le.range):Le.unitId===j.current?bt=Me.serializeRangeWithSheet(Le.sheetName,Le.range):bt=Me.serializeRangeWithSpreadsheet(Le.unitId,Le.sheetName,Le.range),Ks>=1&&!Y.current?(T(bt),K(-1)):Z.current===-1?b(bt):v(Z.current,bt)});return()=>{Gt.unsubscribe(),$.unobserve(J)}},[]),Q.useEffect(()=>{B.triggerModalVisibleChange(x)},[S,B,x]),Q.useEffect(()=>()=>{B.triggerModalVisibleChange(!1)},[B]),Q.useEffect(()=>{j.current=u,z.current=m,Y.current=d,ie.current=h},[u,m,d,h]),Q.useEffect(()=>{Z.current=V},[V]);function ce(){U(!1),S(!1),B.setCurrentSelectorId(null)}function ge(){ie.current!==!0&&(_.closeRangePrompt(),B.setCurrentSelectorId(n),U(!0),S(!0),G.length>0?E(k?G.split(","):[""]):B.openSelector())}function le(J){H(J),l&&l(J)}function Ce(J){X(J),A&&A(J)}function st(){if(ie.current===!0){ce();return}let J="";const $=I.filter(oe=>Me.isReferenceStringWithEffectiveColumn(oe.trim()));if($.length===1){const oe=$[0];Me.isReferenceStringWithEffectiveColumn(oe.trim())&&(J=oe.trim())}else J=$.join(",");_.setValue(J,n),Te(J),ce()}function Ae(){T(""),K(-1)}function Se(J){var $,oe;return((oe=($=w.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET))==null?void 0:$.getSheetBySheetName(J))==null?void 0:oe.getSheetId())||""}function Te(J){if(W(J||""),J==null){e&&e([]);return}const $=Me.getRangeWithRefsString(J,Se);e&&e($||[])}let xe=ae.rangeSelector;h?xe=`${ae.rangeSelector} ${ae.rangeSelectorDisabled}`:k?F&&(xe=`${ae.rangeSelector} ${ae.rangeSelectorActive}`):xe=`${ae.rangeSelector} ${ae.rangeSelectorError}`,g&&(xe=`${xe} ${g}`);let we=28;return c==="mini"?we=20:c==="small"?we=24:c==="large"&&(we=32),P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:en(xe,f),ref:ee,style:{width:a,height:we,cursor:t?"pointer":void 0},onClickCapture:J=>{t&&(J.stopPropagation(),J.preventDefault(),ge())},children:[P.jsx(Co,{style:t?za:void 0,placeholder:r,value:o,isReadonly:h,isSingleChoice:d,openForSheetUnitId:u,openForSheetSubUnitId:m,onValid:Ce,onActive:le,onChange:Te,id:n,onlyInputRange:!0,canvasStyle:{fontSize:10},className:ae.rangeSelectorEditor}),P.jsx(se.Tooltip,{title:L.t("rangeSelector.buttonTooltip"),placement:"bottom",children:P.jsx("button",{type:"button",className:ae.rangeSelectorIcon,onClick:ge,children:P.jsx(Do,{})})})]}),P.jsx(se.Dialog,{width:"328px",visible:x,title:L.t("rangeSelector.title"),draggable:!0,closeIcon:P.jsx(yo,{}),footer:P.jsxs("footer",{children:[P.jsx(se.Button,{onClick:ce,children:L.t("rangeSelector.cancel")}),P.jsx(se.Button,{style:{marginLeft:10},onClick:st,type:"primary",children:L.t("rangeSelector.confirm")})]}),onClose:ce,children:P.jsxs("div",{className:en(ae.rangeSelectorModal,f),children:[I.map((J,$)=>P.jsxs("div",{className:ae.rangeSelectorModalContainer,children:[P.jsx("div",{style:{width:I.length===1?"280px":"252px"},className:ae.rangeSelectorModalContainerInput,children:P.jsx(se.Input,{className:V===$||I.length-1===$&&V===-1?ae.rangeSelectorModalContainerInputActive:"",placeholder:L.t("rangeSelector.placeHolder"),affixWrapperStyle:{width:"100%"},onClick:()=>K($),value:J,onChange:oe=>v($,oe)},`input${$}`)}),P.jsx("div",{style:{display:I.length===1?"none":"inline-block"},className:ae.rangeSelectorModalContainerButton,children:P.jsx(Ro,{className:ae.rangeSelectorModalContainerDeleteButton,onClick:()=>O($)})})]},$)),P.jsx("div",{style:{display:d?"none":"unset"},className:ae.rangeSelectorModalAdd,children:P.jsxs(se.Button,{type:"link",size:"small",onClick:Ae,className:ae.rangeSelectorModalAddButton,children:[P.jsx(xo,{}),P.jsx("span",{children:L.t("rangeSelector.addAnotherRange")})]})})]})})]})}function Uo(i){var n;const{dataStream:t}=(n=i.body)!=null?n:{},e=[s.DataStreamTreeTokenType.TABLE_START,s.DataStreamTreeTokenType.TABLE_CELL_END,s.DataStreamTreeTokenType.TABLE_CELL_START,s.DataStreamTreeTokenType.TABLE_END,s.DataStreamTreeTokenType.TABLE_ROW_END,s.DataStreamTreeTokenType.TABLE_ROW_START,s.DataStreamTreeTokenType.COLUMN_BREAK,s.DataStreamTreeTokenType.PAGE_BREAK,s.DataStreamTreeTokenType.TAB,s.DataStreamTreeTokenType.DOCS_END,s.DataStreamTreeTokenType.CUSTOM_BLOCK];if(typeof t=="string")for(let o=0;o<t.length;o++){const a=t[o];if(!e.includes(a))return o}return 0}const wo="COMPONENT_DOC_HEADER_FOOTER_PANEL",he={panel:"univer-panel",optionsSection:"univer-options-section",optionsFormItem:"univer-options-form-item",optionsInput:"univer-options-input",optionsMarginSetting:"univer-options-margin-setting"};function Ya(i,t,e){const{useFirstPageHeaderFooter:n,evenAndOddHeaders:o,defaultHeaderId:a,defaultFooterId:r,firstPageHeaderId:c,firstPageFooterId:l,evenPageHeaderId:A,evenPageFooterId:d}=i;return t===M.DocumentEditArea.HEADER?n===s.BooleanNumber.TRUE&&e===0?c:o===s.BooleanNumber.TRUE&&e%2===1?A:a:n===s.BooleanNumber.TRUE&&e===0?l:o===s.BooleanNumber.TRUE&&e%2===1?d:r}const Xa=i=>{const t=s.useDependency(s.LocaleService),e=s.useDependency(s.IUniverInstanceService),n=s.useDependency(M.IRenderManagerService),o=s.useDependency(s.ICommandService),a=s.useDependency(y.ILayoutService),{unitId:r}=i,c=n.getRenderById(r).with(C.DocSelectionRenderService),[l,A]=Q.useState({}),d=(h,f)=>{var b;A(_=>({..._,[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}));const g=e.getUniverDocInstance(r),p=g==null?void 0:g.getSnapshot().documentStyle,S=(b=n.getRenderById(r))==null?void 0:b.with(D.DocSkeletonManagerService),I=S==null?void 0:S.getViewModel();if(p==null||I==null)return;const E=I.getEditArea();let T=!1;const O=c.getSegmentPage();let v=!1;if(f==="useFirstPageHeaderFooter"&&h===!0&&((E===M.DocumentEditArea.HEADER&&!p.firstPageHeaderId||E===M.DocumentEditArea.FOOTER&&!p.firstPageFooterId)&&(T=!0),T&&O===0&&(v=!0)),f==="evenAndOddHeaders"&&h===!0&&((E===M.DocumentEditArea.HEADER&&!p.evenPageHeaderId||E===M.DocumentEditArea.FOOTER&&!p.evenPageFooterId)&&(T=!0),T&&O%2===1&&(v=!0)),T){const B=s.Tools.generateRandomId(6);v&&c.setSegment(B),o.executeCommand(nn,{unitId:r,segmentId:B,headerFooterProps:{[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}else{const _=c.getSegmentPage(),B=c.getSegment(),w=Ya({...p,[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE},E,_);w&&w!==B&&c.setSegment(w),o.executeCommand(nn,{unitId:r,headerFooterProps:{[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}a.focus()},u=async(h,f)=>{A(g=>({...g,[f]:h})),await o.executeCommand(nn,{unitId:r,headerFooterProps:{[f]:h}}),c.removeAllRanges(),c.blur()},m=()=>{o.executeCommand(hi.id,{unitId:r})};return Q.useEffect(()=>{const h=e.getUniverDocInstance(r),f=h==null?void 0:h.getSnapshot().documentStyle;if(f){const{marginHeader:g=0,marginFooter:p=0,useFirstPageHeaderFooter:S=s.BooleanNumber.FALSE,evenAndOddHeaders:I=s.BooleanNumber.FALSE}=f;A({marginHeader:g,marginFooter:p,useFirstPageHeaderFooter:S,evenAndOddHeaders:I})}},[r]),P.jsxs("div",{className:he.options,children:[P.jsxs("div",{className:he.optionsSection,children:[P.jsx("div",{className:he.optionsFormItem,children:P.jsx(se.Checkbox,{checked:l.useFirstPageHeaderFooter===s.BooleanNumber.TRUE,onChange:h=>{d(h,"useFirstPageHeaderFooter")},children:t.t("headerFooter.firstPageCheckBox")})}),P.jsx("div",{className:he.optionsFormItem,children:P.jsx(se.Checkbox,{checked:l.evenAndOddHeaders===s.BooleanNumber.TRUE,onChange:h=>{d(h,"evenAndOddHeaders")},children:t.t("headerFooter.oddEvenCheckBox")})})]}),P.jsxs("div",{className:en(he.optionsSection,he.optionsMarginSetting),children:[P.jsxs("div",{className:he.optionsMarginItem,children:[P.jsx("span",{children:t.t("headerFooter.headerTopMargin")}),P.jsx(se.InputNumber,{min:0,max:200,precision:1,value:l.marginHeader,onChange:h=>{u(h,"marginHeader")},className:he.optionsInput})]}),P.jsxs("div",{className:he.optionsMarginItem,children:[P.jsx("span",{children:t.t("headerFooter.footerBottomMargin")}),P.jsx(se.InputNumber,{min:0,max:200,precision:1,value:l.marginFooter,onChange:h=>{u(h,"marginFooter")},className:he.optionsInput})]})]}),P.jsx("div",{className:he.optionsSection,children:P.jsx(se.Button,{onClick:m,children:t.t("headerFooter.closeHeaderFooter")})})]})},Ka=()=>{var A;const i=s.useDependency(s.LocaleService),t=s.useDependency(M.IRenderManagerService),o=s.useDependency(s.IUniverInstanceService).getCurrentUniverDocInstance().getUnitId(),r=((A=t.getRenderById(o))==null?void 0:A.with(D.DocSkeletonManagerService)).getViewModel(),[c,l]=Q.useState(!0);return Q.useEffect(()=>{const d=r.getEditArea();l(d!==M.DocumentEditArea.BODY);const u=r.editAreaChange$.subscribe(m=>{m!=null&&l(m!==M.DocumentEditArea.BODY)});return()=>{u.unsubscribe()}},[]),P.jsx("div",{className:he.panel,children:c?P.jsx(Xa,{unitId:o}):P.jsx("div",{className:he.panelDisableText,children:i.t("headerFooter.disableText")})})},Lo=18,Qo=200,ci=6,Ja=4;function Za(i,t){let{radius:e,width:n,height:o}=t;e=e!=null?e:0,n=n!=null?n:30,o=o!=null?o:30;let a=0;a=Math.min(e,n/2,o/2),i.beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,o-a),i.arc(n-a,o-a,a,0,Math.PI/2,!1),i.lineTo(0,o),i.lineTo(0,0),i.closePath(),t.fill&&(i.save(),i.fillStyle=t.fill,t.fillRule==="evenodd"?i.fill("evenodd"):i.fill(),i.restore())}class tn extends M.Shape{constructor(e,n){super(e,n);R(this,"color");R(this,"text");this.color=n==null?void 0:n.color,this.text=n==null?void 0:n.text}static drawWith(e,n){const{text:o,color:a}=n;e.save(),e.font="13px Source Han Sans CN";const r=e.measureText(o).width,c=Math.min(r+2*ci,Qo);Za(e,{height:Lo,width:c,radius:4,fill:a,evented:!1}),e.fillStyle="rgba(58, 96, 247, 1)";const l=ci,A=Lo-Ja,d=Qo-2*ci;if(r>d){let u="",m=0;for(const h of o){const f=e.measureText(h).width;if(m+f<=d-e.measureText("...").width)u+=h,m+=f;else{u+="...";break}}e.fillText(u,l,A)}else e.fillText(o,l,A);e.restore()}_draw(e){tn.drawWith(e,this)}}var qa=Object.defineProperty,$a=Object.getOwnPropertyDescriptor,er=(i,t,e,n)=>{for(var o=n>1?void 0:n?$a(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&qa(t,e,o),o},Qe=(i,t)=>(e,n)=>t(e,n,i);const Fo="rgba(58, 96, 247, 1)",Ho="rgba(58, 96, 247, 0.08)";var ue=(i=>(i[i.FIRST_PAGE_HEADER=0]="FIRST_PAGE_HEADER",i[i.FIRST_PAGE_FOOTER=1]="FIRST_PAGE_FOOTER",i[i.DEFAULT_HEADER=2]="DEFAULT_HEADER",i[i.DEFAULT_FOOTER=3]="DEFAULT_FOOTER",i[i.EVEN_PAGE_HEADER=4]="EVEN_PAGE_HEADER",i[i.EVEN_PAGE_FOOTER=5]="EVEN_PAGE_FOOTER",i))(ue||{});function tr(i,t,e){const{documentStyle:n}=i.getDataModel().getSnapshot(),{defaultHeaderId:o,defaultFooterId:a,evenPageHeaderId:r,evenPageFooterId:c,firstPageHeaderId:l,firstPageFooterId:A,evenAndOddHeaders:d,useFirstPageHeaderFooter:u}=n;switch(t){case M.DocumentEditArea.BODY:return{createType:null,headerFooterId:null};case M.DocumentEditArea.HEADER:return u===s.BooleanNumber.TRUE&&!l?{createType:0,headerFooterId:null}:d===s.BooleanNumber.TRUE&&e%2===0&&!r?{createType:4,headerFooterId:null}:o?{createType:null,headerFooterId:o}:{createType:2,headerFooterId:null};case M.DocumentEditArea.FOOTER:return u===s.BooleanNumber.TRUE&&!A?{createType:1,headerFooterId:null}:d===s.BooleanNumber.TRUE&&e%2===0&&!c?{createType:5,headerFooterId:null}:a?{createType:null,headerFooterId:a}:{createType:3,headerFooterId:null};default:throw new Error(`Invalid editArea: ${t}`)}}let li=class extends s.Disposable{constructor(t,e,n,o,a,r,c,l,A){super();R(this,"_loadedMap",new WeakSet);this._context=t,this._commandService=e,this._editorService=n,this._instanceSrv=o,this._renderManagerService=a,this._docSkeletonManagerService=r,this._docSelectionRenderService=c,this._localeService=l,this._componentManager=A,this._initialize()}_initialize(){this._init(),this._drawHeaderFooterLabel(),this._initCustomComponents(),this._listenSwitchMode()}_listenSwitchMode(){this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(D.RichTextEditingMutation.id===t.id){const e=this._context.unit,o=this._docSkeletonManagerService.getViewModel().getEditArea(),a=e.getSnapshot().documentStyle.documentFlavor;o!==M.DocumentEditArea.BODY&&a===s.DocumentFlavor.MODERN&&this._commandService.executeCommand(hi.id,{unitId:this._context.unitId})}}))}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(wo,Ka))}_init(){const{unitId:t}=this._context,e=Be(this._context);e==null||e.document==null||this._loadedMap.has(e.document)||(this._initialMain(t),this._loadedMap.add(e.document))}_initialMain(t){const e=Be(this._context),{document:n}=e;this.disposeWithMe(n.onDblclick$.subscribeEvent(async o=>{if(this._isEditorReadOnly(t)||!this._isTraditionalMode())return;const{offsetX:a,offsetY:r}=o,{pageLayoutType:c=M.PageLayoutType.VERTICAL,pageMarginLeft:l,pageMarginTop:A}=n.getOffsetConfig(),d=this._getTransformCoordForDocumentOffset(a,r);if(d==null)return;const u=this._docSkeletonManagerService.getViewModel(),m=this._docSkeletonManagerService.getSkeleton(),h=u.getEditArea(),{editArea:f,pageNumber:g}=m.findEditAreaByCoord(d,c,l,A);if(h===f)return;u.setEditArea(f);const{createType:p,headerFooterId:S}=tr(u,f,g);if(f===M.DocumentEditArea.BODY)this._docSelectionRenderService.setSegment(""),this._docSelectionRenderService.setSegmentPage(-1),this._docSelectionRenderService.setCursorManually(a,r);else if(p!=null){const E=s.Tools.generateRandomId(6);this._docSelectionRenderService.setSegment(E),this._docSelectionRenderService.setSegmentPage(g),await this._commandService.executeCommand(Vo.id,{unitId:t,createType:p,segmentId:E})}else S!=null&&(this._docSelectionRenderService.setSegment(S),this._docSelectionRenderService.setSegmentPage(g),this._docSelectionRenderService.setCursorManually(a,r))}))}_getTransformCoordForDocumentOffset(t,e){const n=Be(this._context),{document:o,scene:a}=n,{documentTransform:r}=o.getOffsetConfig(),c=a.getViewports()[0];if(c==null)return;const l=c.transformVector2SceneCoord(M.Vector2.FromArray([t,e]));return r.clone().invert().applyPoint(l)}_drawHeaderFooterLabel(){const t=this._localeService;this._renderManagerService.currentRender$.subscribe(e=>{if(e==null)return;const n=this._renderManagerService.getRenderById(e);if(this._editorService.isEditor(e)||this._instanceSrv.getUniverDocInstance(e)==null||n==null)return;const{mainComponent:o}=n,a=o;this.disposeWithMe(s.toDisposable(a.pageRender$.subscribe(r=>{if(this._editorService.isEditor(e)||!this._isTraditionalMode())return;const A=this._docSkeletonManagerService.getViewModel().getEditArea()===M.DocumentEditArea.BODY,{page:d,pageLeft:u,pageTop:m,ctx:h}=r,{pageWidth:f,pageHeight:g,marginTop:p,marginBottom:S}=d;if(h.save(),h.translate(u-.5,m-.5),A?(M.Rect.drawWith(h,{left:0,top:0,width:f,height:p,fill:"rgba(255, 255, 255, 0.5)"}),h.save(),h.translate(0,g-S),M.Rect.drawWith(h,{left:0,top:0,width:f,height:S,fill:"rgba(255, 255, 255, 0.5)"}),h.restore()):(h.save(),h.translate(0,p),M.Rect.drawWith(h,{left:0,top:p,width:f,height:g-p-S,fill:"rgba(255, 255, 255, 0.5)"}),h.restore()),!A){const I={dataArray:[{command:"M",points:[0,p]},{command:"L",points:[f,p]}],strokeWidth:1,stroke:Fo},E={dataArray:[{command:"M",points:[0,g-S]},{command:"L",points:[f,g-S]}],strokeWidth:1,stroke:Fo};M.Path.drawWith(h,I),M.Path.drawWith(h,E),h.translate(0,p+1),tn.drawWith(h,{text:t.t("headerFooter.header"),color:Ho}),h.translate(0,g-p-S),tn.drawWith(h,{text:t.t("headerFooter.footer"),color:Ho})}h.restore()})))})}_isEditorReadOnly(t){const e=this._editorService.getEditor(t);return e?e.isReadOnly():!1}_isTraditionalMode(){return this._context.unit.getSnapshot().documentStyle.documentFlavor===s.DocumentFlavor.TRADITIONAL}};li=er([Qe(1,s.ICommandService),Qe(2,fe),Qe(3,s.IUniverInstanceService),Qe(4,M.IRenderManagerService),Qe(5,s.Inject(D.DocSkeletonManagerService)),Qe(6,s.Inject(C.DocSelectionRenderService)),Qe(7,s.Inject(s.LocaleService)),Qe(8,s.Inject(y.ComponentManager))],li);const Ai={id:"sidebar.operation.doc-header-footer-panel",type:s.CommandType.OPERATION,handler:async(i,t)=>{const e=i.get(y.ISidebarService),n=i.get(s.LocaleService);switch(t.value){case"open":e.open({header:{title:n.t("headerFooter.panel")},children:{label:wo},onClose:()=>{},width:400});break;case"close":default:e.close();break}return!0}};function ko(){return{dataStream:`\r
|
|
92
120
|
`,textRuns:[{st:0,ed:0,ts:{fs:9}}],customBlocks:[],paragraphs:[{startIndex:0,paragraphStyle:{spaceAbove:{v:0},lineSpacing:1.5,spaceBelow:{v:0}}}],sectionBreaks:[{startIndex:1}]}}function di(i,t,e,n){const o=s.JSONX.getInstance(),a=6,r=i!=null?i:s.Tools.generateRandomId(a),c=t===ue.DEFAULT_HEADER||t===ue.FIRST_PAGE_HEADER||t===ue.EVEN_PAGE_HEADER,l=o.insertOp([c?"headers":"footers",r],{[c?"headerId":"footerId"]:r,body:ko()});n.push(l);const A=s.Tools.generateRandomId(a),d=o.insertOp([c?"footers":"headers",A],{[c?"footerId":"headerId"]:A,body:ko()});n.push(d);let u="defaultHeaderId",m="defaultFooterId";switch(t){case ue.DEFAULT_HEADER:u="defaultHeaderId",m="defaultFooterId";break;case ue.DEFAULT_FOOTER:u="defaultFooterId",m="defaultHeaderId";break;case ue.FIRST_PAGE_HEADER:u="firstPageHeaderId",m="firstPageFooterId";break;case ue.FIRST_PAGE_FOOTER:u="firstPageFooterId",m="firstPageHeaderId";break;case ue.EVEN_PAGE_HEADER:u="evenPageHeaderId",m="evenPageFooterId";break;case ue.EVEN_PAGE_FOOTER:u="evenPageFooterId",m="evenPageHeaderId";break;default:throw new Error(`Unknown header footer type: ${t}`)}for(const[h,f]of[[u,r],[m,A]])if(e[h]!=null){const g=o.replaceOp(["documentStyle",h],e[h],f);n.push(g)}else{const g=o.insertOp(["documentStyle",h],f);n.push(g)}return n}const nn="doc.command.core-header-footer",Vo={id:nn,type:s.CommandType.COMMAND,handler:async(i,t)=>{var T;const e=i.get(s.ICommandService),n=i.get(s.IUniverInstanceService),o=i.get(M.IRenderManagerService),{unitId:a,segmentId:r,createType:c,headerFooterProps:l}=t,A=(T=o.getRenderById(a))==null?void 0:T.with(D.DocSkeletonManagerService),d=n.getUniverDocInstance(a),u=A==null?void 0:A.getViewModel();if(d==null||u==null)return!1;const m=u.getEditArea(),{documentStyle:h}=d.getSnapshot(),f=(l==null?void 0:l.marginFooter)!=null||(l==null?void 0:l.marginHeader)!=null,g=[{startOffset:0,endOffset:0,collapsed:!0}],p={id:D.RichTextEditingMutation.id,params:{unitId:a,actions:[],textRanges:g,debounce:!0}};f&&(p.params.noNeedSetTextRange=!0);const S=s.JSONX.getInstance(),I=[];return c!=null&&di(r,c,h,I),l!=null&&Object.keys(l).forEach(O=>{const v=l[O],b=h[O];if(v===b)return;let _;if(b===void 0?_=S.insertOp(["documentStyle",O],v):_=S.replaceOp(["documentStyle",O],b,v),I.push(_),O==="useFirstPageHeaderFooter"&&v===s.BooleanNumber.TRUE&&!h.firstPageHeaderId){const B=m===M.DocumentEditArea.HEADER?ue.FIRST_PAGE_HEADER:ue.FIRST_PAGE_FOOTER;di(r,B,h,I)}else if(O==="evenAndOddHeaders"&&v===s.BooleanNumber.TRUE&&!h.evenPageHeaderId){const B=m===M.DocumentEditArea.HEADER?ue.EVEN_PAGE_HEADER:ue.EVEN_PAGE_FOOTER;di(r,B,h,I)}}),I.length===0?!1:(p.params.actions=I.reduce((O,v)=>s.JSONX.compose(O,v),null),!!e.syncExecuteCommand(p.id,p.params))}},ui={id:"doc.command.open-header-footer-panel",type:s.CommandType.COMMAND,handler:async(i,t)=>i.get(s.ICommandService).executeCommand(Ai.id,{value:"open"})},hi={id:"doc.command.close-header-footer",type:s.CommandType.COMMAND,handler:async(i,t)=>{var f;const e=i.get(s.ICommandService),n=i.get(M.IRenderManagerService),o=i.get(D.DocSelectionManagerService),a=i.get(s.IUniverInstanceService),{unitId:r}=t,c=n.getRenderById(r);if(c==null)return!1;const{scene:l}=c,A=l.getTransformerByCreate(),d=c.with(D.DocSkeletonManagerService),u=c.with(C.DocSelectionRenderService),m=d==null?void 0:d.getSkeleton(),h=d==null?void 0:d.getViewModel();return h==null||m==null?!1:(o.replaceDocRanges([]),A.clearSelectedObjects(),u.setSegment(""),u.setSegmentPage(-1),h.setEditArea(M.DocumentEditArea.BODY),m.calculate(),(f=c.mainComponent)==null||f.makeDirty(!0),queueMicrotask(()=>{const g=a.getUnit(r),p=g==null?void 0:g.getSnapshot();if(p==null)return;const S=Uo(p);o.replaceDocRanges([{startOffset:S,endOffset:S}])}),e.executeCommand(Ai.id,{value:"close"}),!0)}},At="UI_PLUGIN_DOCS",gi=`${At}_COLOR_PICKER_COMPONENT`,jo=`${At}_FONT_FAMILY_COMPONENT`,Wo=`${At}_FONT_FAMILY_ITEM_COMPONENT`,zo=`${At}_FONT_SIZE_COMPONENT`,mi={docListTypePicker:"univer-doc-list-type-picker",docListTypePickerItem:"univer-doc-list-type-picker-item",docListTypePickerItemActive:"univer-doc-list-type-picker-item-active"},Go=i=>{const{value:t,onChange:e,options:n}=i;return P.jsx("div",{className:mi.docListTypePicker,children:n.map(o=>P.jsx("img",{className:mi.docListTypePickerItem+(t===o.value?`
|
|
93
121
|
${mi.docListTypePickerItemActive}
|
|
94
|
-
`:""),onClick:()=>{e(o.value)},src:o.img},o.value))})},tr=[{value:s.PresetListType.ORDER_LIST,img:"data:image/jpeg;base64,/9j/4AAQSkZJR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dEzRvxao8DYRhLltUapQ4qZCCM51FeNGj6Yk0NTxMxuNopCjPMLIuObAb6p8eY2npDzYILqzmxsHAeOVIfR2at9UYfcfTxyoqqgkokPHeb9pSGqTNrGssbSTbu4dsDEZiRCAIFRdvpByx93W/PWvUcYVg8DKXOdEcOJioiplNoOB998xtEUlYbEWylzIHnRFCqqi4d954mvqI0Yykf6KwP/InPwG0OumrLiO+48DSG8xoNU61EG+VhGMxh4SoSAJkgDE0T5kT4ktRQVQ2TN53Wj+g7SyI/wBSg538xXQQIYrkT+xJHL17Yu6w1meAvJ92m6kKPpGTyEzqm4ZHyPPaXcQ10jwGJwo7s7aTcBcBgOqDGsRzkp8j5HaGUMCrCYPvnSJDMM4g2HyOfVBg6Os31XD8f74bSyhgVYTB986Q4AQlidIz1ch69oVjSJWIJFTIsAdHInCYsuOVLaxWDtUTUYRPtOpE/U2E1XG3KQoSi1woirihM0Pmp3bqqJGR6jqtZImYO42HuOG09IeShBa1u4ep8DRVZzJQSfdpsHGidHUVvrHD7f73DI7T8ExGLxJgGxRbK6ZrAzAvnZRVCiSgAZe69/aj/9k="}],or=i=>P.jsx(Go,{...i,options:ir}),Yo=`${At}_ORDER_LIST_TYPE_COMPONENT`,Xo=`${At}_BULLET_LIST_TYPE_COMPONENT`,ze={id:"doc.command.tab",type:s.CommandType.COMMAND,async handler(i,t){const n=i.get(C.DocAutoFormatService).onAutoFormat(ze.id,t);return(await s.sequenceExecuteAsync(n,i.get(s.ICommandService))).result}},xt={id:"doc.command.after-space",type:s.CommandType.COMMAND,async handler(i){const e=i.get(C.DocAutoFormatService).onAutoFormat(xt.id);return(await s.sequenceExecuteAsync(e,i.get(s.ICommandService))).result}},dt={id:"doc.command.enter",type:s.CommandType.COMMAND,async handler(i){const e=i.get(C.DocAutoFormatService).onAutoFormat(dt.id);return(await s.sequenceExecuteAsync(e,i.get(s.ICommandService))).result}};function ne(i){return i.getContextValue(s.FOCUSING_DOC)&&i.getContextValue(s.FOCUSING_UNIVER_EDITOR)&&!i.getContextValue(s.FOCUSING_COMMON_DRAWINGS)}function sr(i){return i.getContextValue(s.FOCUSING_DOC)&&i.getContextValue(s.FOCUSING_UNIVER_EDITOR)&&!i.getContextValue(s.FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE)&&!i.getContextValue(s.FOCUSING_COMMON_DRAWINGS)}const ar={id:ze.id,binding:y.KeyCode.TAB,preconditions:ne},rr={id:ze.id,binding:y.KeyCode.TAB|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{shift:!0}};var cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,Ar=(i,t,e,n)=>{for(var o=n>1?void 0:n?lr(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&cr(t,e,o),o},fi=(i,t)=>(e,n)=>t(e,n,i);const dr=11,ur=9,on={ff:"Arial",fs:dr};let _e=class extends s.Disposable{constructor(t,e,n){super();R(this,"_cacheStyle",null);this._textSelectionManagerService=t,this._univerInstanceService=e,this._renderManagerService=n,this._init()}_init(){this._listenDocRangeChange()}_listenDocRangeChange(){this.disposeWithMe(this._textSelectionManagerService.textSelection$.subscribe(()=>{this._clearStyleCache()}))}getStyleCache(){return this._cacheStyle}getDefaultStyle(){var r;const t=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(t==null)return{...on};const e=t==null?void 0:t.getUnitId(),n=(r=this._renderManagerService.getRenderById(e))==null?void 0:r.with(D.DocSkeletonManagerService),o=n==null?void 0:n.getViewModel();return o==null?{...on}:o.getEditArea()===M.DocumentEditArea.BODY?{...on}:{...on,fs:ur}}setStyleCache(t){this._cacheStyle={...this._cacheStyle,...t}}_clearStyleCache(){this._cacheStyle=null}};_e=Ar([fi(0,s.Inject(D.DocSelectionManagerService)),fi(1,s.IUniverInstanceService),fi(2,M.IRenderManagerService)],_e);function Ee(i,t,e){return e.executeCommand(Ne.id,{preCommandId:i,...t!=null?t:{}})}const Ko="doc.command.set-inline-format-bold",Ge={id:Ko,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(Ko,t,e)}},Jo="doc.command.set-inline-format-italic",Ye={id:Jo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(Jo,t,e)}},Zo="doc.command.set-inline-format-underline",Xe={id:Zo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(Zo,t,e)}},qo="doc.command.set-inline-format-strikethrough",Ke={id:qo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(qo,t,e)}},$o="doc.command.set-inline-format-subscript",Fe={id:$o,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee($o,t,e)}},es="doc.command.set-inline-format-superscript",Je={id:es,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(es,t,e)}},ts="doc.command.set-inline-format-fontsize",Ze={id:ts,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(ts,t,e)}},ns="doc.command.set-inline-format-font-family",qe={id:ns,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(ns,t,e)}},is="doc.command.set-inline-format-text-color",$e={id:is,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(is,t,e)}},os="doc.command.set-inline-format-text-background-color",et={id:os,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(os,t,e)}},ss="doc.command.reset-inline-format-text-background-color",ut={id:ss,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(ss,t,e)}},pi={[Ge.id]:"bl",[Ye.id]:"it",[Xe.id]:"ul",[Ke.id]:"st",[Ze.id]:"fs",[qe.id]:"ff",[$e.id]:"cl",[et.id]:"bg",[ut.id]:"bg",[Fe.id]:"va",[Je.id]:"va"},Ne={id:"doc.command.set-inline-format",type:s.CommandType.COMMAND,handler:async(i,t)=>{var O;const{value:e,preCommandId:n}=t,o=i.get(s.ICommandService),a=i.get(D.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=i.get(_e),l=a.getDocRanges(),A=(O=l.find(v=>v.isActive))!=null?O:l[0];if(l.length===0)return!1;const{segmentId:d}=l[0],u=r.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(u==null)return!1;const m=u.getSelfOrHeaderFooterModel(d).getBody();if(m==null)return!1;const h=u.getUnitId();let f;switch(n){case Ge.id:case Ye.id:case Xe.id:case Ke.id:case Fe.id:case Je.id:{const v=c.getDefaultStyle(),b=rs(m,A,v);f=gr(b,n);break}case Ze.id:case qe.id:{f=e;break}case $e.id:case et.id:{f={rgb:e};break}case ut.id:{f={rgb:null};break}default:throw new Error(`Unknown command: ${n} in handleInlineFormat`)}const g={id:D.RichTextEditingMutation.id,params:{unitId:h,actions:[],textRanges:l}},p=new s.TextX,S=s.JSONX.getInstance(),I=new s.MemoryCursor;I.reset();for(const v of l){let{startOffset:b,endOffset:_,rangeType:B}=v;if(b==null||_==null)continue;if(B===s.DOC_RANGE_TYPE.RECT&&(b=b-1),b===_){const U=c.getStyleCache(),L=pi[n];c.setStyleCache({[L]:(U==null?void 0:U[L])!==void 0?as(U,L,n):f});continue}const w={dataStream:"",textRuns:[{st:0,ed:_-b,ts:{[pi[n]]:f}}]},x=b-I.cursor;x!==0&&p.push({t:s.TextXActionType.RETAIN,len:x}),p.push({t:s.TextXActionType.RETAIN,body:w,len:_-b}),I.reset(),I.moveCursor(_)}const E=te(u,d);return g.params.actions=S.editOp(p.serialize(),E),!!o.syncExecuteCommand(g.id,g.params)}};function hr(i){return i!==null&&typeof i=="object"}function as(i,t,e){if(/bl|it/.test(t))return(i==null?void 0:i[t])===s.BooleanNumber.TRUE?s.BooleanNumber.FALSE:s.BooleanNumber.TRUE;if(/ul|st/.test(t))return hr(i==null?void 0:i[t])&&(i==null?void 0:i[t]).s===s.BooleanNumber.TRUE?{s:s.BooleanNumber.FALSE}:{s:s.BooleanNumber.TRUE};if(/va/.test(t))return e===Fe.id?(i==null?void 0:i[t])===s.BaselineOffset.SUBSCRIPT?s.BaselineOffset.NORMAL:s.BaselineOffset.SUBSCRIPT:(i==null?void 0:i[t])===s.BaselineOffset.SUPERSCRIPT?s.BaselineOffset.NORMAL:s.BaselineOffset.SUPERSCRIPT}function rs(i,t,e){var A,d,u,m,h,f,g,p,S,I,E,T,O,v;const{startOffset:n,endOffset:o,collapsed:a}=t;if(a){const b=(A=i.textRuns)!=null?A:[];let _=null;for(let B=b.length-1;B>=0;B--){const w=b[B];if(w.st<n&&n<=w.ed){_=w;break}}return _!=null&&_.ts?{...e,..._.ts}:e}const{textRuns:r=[]}=s.getBodySlice(i,n,o),c=s.Tools.deepClone(e);c.fs=Math.max(c.fs,...r.map(b=>{var _,B;return(B=(_=b==null?void 0:b.ts)==null?void 0:_.fs)!=null?B:c.fs})),c.ff=(m=(u=(d=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.ff)!=null}))==null?void 0:d.ts)==null?void 0:u.ff)!=null?m:c.ff,c.it=r.length&&r.every(b=>{var _;return((_=b.ts)==null?void 0:_.it)===s.BooleanNumber.TRUE})?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE,c.bl=r.length&&r.every(b=>{var _;return((_=b.ts)==null?void 0:_.bl)===s.BooleanNumber.TRUE})?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE,c.ul=r.length&&r.every(b=>{var _,B;return((B=(_=b.ts)==null?void 0:_.ul)==null?void 0:B.s)===s.BooleanNumber.TRUE})?(h=r[0].ts)==null?void 0:h.ul:c.ul,c.st=r.length&&r.every(b=>{var _,B;return((B=(_=b.ts)==null?void 0:_.st)==null?void 0:B.s)===s.BooleanNumber.TRUE})?(f=r[0].ts)==null?void 0:f.st:c.st,c.bg=(S=(p=(g=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.bg)!=null}))==null?void 0:g.ts)==null?void 0:p.bg)!=null?S:c.bg,c.cl=(T=(E=(I=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.cl)!=null}))==null?void 0:I.ts)==null?void 0:E.cl)!=null?T:c.cl;const l=r.filter(b=>{var _;return((_=b==null?void 0:b.ts)==null?void 0:_.va)!=null});if(l.length>0&&l.length===r.length){const b=(O=l[0].ts)==null?void 0:O.va;let _=!0;for(let B=1;B<l.length;B++)if(((v=l[B].ts)==null?void 0:v.va)!==b){_=!1;break}_&&(c.va=b)}return c}function gr(i,t){const e=pi[t];return as(i,e,t)}const ht={id:"doc.command.list-operation",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,E;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=t.listType,r=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),c=(I=e.getDocRanges())!=null?I:[];if(r==null||c.length===0)return!1;const l=c[0].segmentId,A=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(A==null)return!1;const d=gt(c,A),u=r.getUnitId(),m={id:D.RichTextEditingMutation.id,params:{unitId:u,actions:[],textRanges:c,isEditing:!1}};new s.MemoryCursor().reset();const f=s.BuildTextUtils.paragraph.bullet.switch({paragraphs:d,listType:a,document:r,segmentId:l}),g=s.JSONX.getInstance(),p=te(r,l);return m.params.actions=g.editOp(f.serialize(),p),!!o.syncExecuteCommand(m.id,m.params)}},Mt={id:"doc.command.change-list-type",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,E;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),{listType:a}=t,r=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),c=e.getDocRanges();if(r==null||c==null||!c.length)return!1;const{segmentId:l}=c[0],A=(I=e.getDocRanges())!=null?I:[],d=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(d==null)return!1;const u=gt(A,d),m=r.getUnitId(),h=s.BuildTextUtils.paragraph.bullet.set({paragraphs:u,listType:a,segmentId:l,document:r});if(!h)return!1;const f=s.JSONX.getInstance(),g={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return g.params.actions=f.editOp(h.serialize(),p),!!o.syncExecuteCommand(g.id,g.params)}};var Bt=(i=>(i[i.increase=1]="increase",i[i.decrease=-1]="decrease",i))(Bt||{});const sn={id:"doc.command.change-list-nesting-level",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,E;if(!t)return!1;const{type:e}=t,n=i.get(D.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=o.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),c=n.getActiveTextRange();if(r==null||c==null)return!1;const{segmentId:l}=c,A=(I=n.getDocRanges())!=null?I:[],d=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(d==null)return!1;const u=cn(c,d),m=r.getUnitId(),h=s.JSONX.getInstance(),f=s.BuildTextUtils.paragraph.bullet.changeNestLevel({paragraphs:u,type:e,segmentId:l,document:r}),g={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return g.params.actions=h.editOp(f.serialize(),p),!!a.syncExecuteCommand(g.id,g.params)}},Dt={id:"doc.command.bullet-list",type:s.CommandType.COMMAND,handler:(i,t)=>{const e=i.get(s.ICommandService);return t!=null&&t.value?e.syncExecuteCommand(Mt.id,{listType:t.value}):e.syncExecuteCommand(ht.id,{listType:s.PresetListType.BULLET_LIST})}},an={id:"doc.command.check-list",type:s.CommandType.COMMAND,handler:(i,t)=>{const e=i.get(s.ICommandService);return t!=null&&t.value?e.syncExecuteCommand(Mt.id,{listType:t.value}):e.syncExecuteCommand(ht.id,{listType:s.PresetListType.CHECK_LIST})}},rn={id:"doc.command.toggle-check-list",type:s.CommandType.COMMAND,handler:(i,t)=>{var g;if(!t)return!1;const e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),{index:o,segmentId:a,textRanges:r}=t,c=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(c==null||((g=c.getSelfOrHeaderFooterModel(a).getBody())==null?void 0:g.paragraphs)==null)return!1;const A=c.getUnitId(),d={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:r!=null?r:[],segmentId:a,isEditing:!1}},u=s.BuildTextUtils.paragraph.bullet.toggleChecklist({document:c,paragraphIndex:o,segmentId:a});if(!u)return!1;const m=s.JSONX.getInstance(),h=te(c,a);return d.params.actions=m.editOp(u.serialize(),h),!!n.syncExecuteCommand(d.id,d.params)}},_t={id:"doc.command.order-list",type:s.CommandType.COMMAND,handler:(i,t)=>{const e=i.get(s.ICommandService);return t!=null&&t.value?e.syncExecuteCommand(Mt.id,{listType:t.value}):e.syncExecuteCommand(ht.id,{listType:s.PresetListType.ORDER_LIST})}},Si={id:"doc.command.quick-list",type:s.CommandType.COMMAND,handler(i,t){var K,ee,Z,j,z;if(!t)return!1;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=e.getActiveTextRange();if(a==null||r==null)return!1;const{segmentId:c}=r,{listType:l,paragraph:A}=t,{paragraphStart:d,paragraphEnd:u}=A,m=new s.TextX,h=s.JSONX.getInstance(),{defaultTabStop:f=36}=a.getSnapshot().documentStyle,g=(ee=(K=a.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:K.sectionBreaks)!=null?ee:[],{startIndex:p,paragraphStyle:S={}}=A,{indentFirstLine:I,snapToGrid:E,indentStart:T}=S,O=s.PRESET_LIST_TYPE[l].nestingLevel[0].paragraphProperties||{},{hanging:v,indentStart:b}=O,_=O.textStyle,{charSpace:B,gridType:w}=mr(p,g)||{charSpace:0,gridType:s.GridType.LINES},x=M.getCharSpaceApply(B,f,w,E);let L=s.Tools.generateRandomId(6);const F=(j=(Z=a.getBody())==null?void 0:Z.paragraphs)!=null?j:[],H=F.findIndex(Y=>Y.startIndex===A.startIndex),k=F[H-1],X=F[H+1];k&&k.bullet&&k.bullet.listType.indexOf(l)===0?L=k.bullet.listId:X&&X.bullet&&X.bullet.listType.indexOf(l)===0&&(L=X.bullet.listId);const G={id:D.RichTextEditingMutation.id,params:{unitId:a.getUnitId(),actions:[],textRanges:[{startOffset:d,endOffset:d,collapsed:!0}],isEditing:!1}};m.push({t:s.TextXActionType.RETAIN,len:d}),m.push({t:s.TextXActionType.DELETE,len:u-d}),m.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{startIndex:0,paragraphStyle:{...S,textStyle:{...S.textStyle,..._},indentFirstLine:void 0,hanging:v,indentStart:{v:M.getNumberUnitValue(b,x)-M.getNumberUnitValue(v,x)+M.getNumberUnitValue(I,x)+M.getNumberUnitValue(T,x)}},bullet:{...(z=A.bullet)!=null?z:{nestingLevel:0,textStyle:{fs:20}},listType:l,listId:L}}]}});const W=te(a,c);return G.params.actions=h.editOp(m.serialize(),W),!!o.syncExecuteCommand(G.id,G.params)}};function cn(i,t){const{startOffset:e,endOffset:n}=i,o=[];let a=-1;for(const r of t){const{startIndex:c}=r;(e>a&&e<=c||n>a&&n<=c||c>=e&&c<=n)&&o.push(r),a=c}return o}function gt(i,t){const e=[];for(const n of i){const o=cn(n,t);e.push(...o)}return e}function mr(i,t){const e=t.sort(s.sortRulesFactory("startIndex"));for(let n=0;n<e.length;n++){const o=t[n];if(o.startIndex>=i)return o}}const Re={id:"doc.command.align-action",type:s.CommandType.COMMAND,handler:(i,t)=>{var E;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),{alignType:a}=t,r=n.getCurrentUniverDocInstance();if(r==null)return!1;const c=e.getDocRanges();if(c.length===0)return!1;const l=c[0].segmentId,A=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(A==null)return!1;const d=gt(c,A),u=r.getUnitId(),m=d.every(T=>{var O;return((O=T.paragraphStyle)==null?void 0:O.horizontalAlign)===a}),h={id:D.RichTextEditingMutation.id,params:{unitId:u,actions:[],textRanges:c}},f=new s.MemoryCursor;f.reset();const g=new s.TextX,p=s.JSONX.getInstance();for(const T of d){const{startIndex:O}=T;g.push({t:s.TextXActionType.RETAIN,len:O-f.cursor});const v={...T.paragraphStyle,horizontalAlign:m?s.HorizontalAlign.UNSPECIFIED:a};g.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...T,paragraphStyle:v,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),f.moveCursorTo(O+1)}const S=te(r,l);return h.params.actions=p.editOp(g.serialize(),S),!!o.syncExecuteCommand(h.id,h.params)}},Nt={id:"doc.command.align-left",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.LEFT})},Pt={id:"doc.command.align-center",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.CENTER})},Ut={id:"doc.command.align-right",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.RIGHT})},wt={id:"doc.command.align-justify",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.JUSTIFIED})},fr={id:Ge.id,binding:y.KeyCode.B|y.MetaKeys.CTRL_COMMAND,preconditions:ne},pr={id:Ye.id,binding:y.KeyCode.I|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Sr={id:Xe.id,binding:y.KeyCode.U|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Ir={id:Ke.id,binding:y.KeyCode.X|y.MetaKeys.SHIFT|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Er={id:Fe.id,binding:y.KeyCode.COMMA|y.MetaKeys.CTRL_COMMAND,preconditions:ne},vr={id:Je.id,binding:y.KeyCode.PERIOD|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Cr={id:Nt.id,binding:y.KeyCode.L|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Tr={id:Ut.id,binding:y.KeyCode.R|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},br={id:Pt.id,binding:y.KeyCode.E|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},yr={id:wt.id,binding:y.KeyCode.J|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Rr={id:_t.id,binding:y.KeyCode.Digit7|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Or={id:Dt.id,binding:y.KeyCode.Digit8|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},xr={docCountBar:"univer-doc-count-bar"},Mr=(i,t)=>{const e=i.get(s.IUniverInstanceService).getUniverDocInstance(t.unitId),n=(e==null?void 0:e.zoomRatio)||1;return{...s.Tools.deepClone(t),zoomRatio:n}},ve={id:"doc.operation.set-zoom-ratio",type:s.CommandType.OPERATION,handler:(i,t)=>{const e=i.get(s.IUniverInstanceService).getUniverDocInstance(t.unitId);if(!e)return!1;const n=e.getSnapshot();return n.settings==null?n.settings={zoomRatio:t.zoomRatio}:n.settings.zoomRatio=t.zoomRatio,!0}},Br=[50,80,100,130,150,170,200,400],Dr=[10,400];function _r(){const i=s.useDependency(s.ICommandService),t=s.useDependency(s.IUniverInstanceService),e=Q.useMemo(()=>t.getCurrentTypeOfUnit$(s.UniverInstanceType.UNIVER_DOC),[]),n=s.useObservable(e),o=Q.useCallback(()=>{var A,d;if(!n)return 100;const l=((d=(A=n.getSettings())==null?void 0:A.zoomRatio)!=null?d:1)*100;return Math.round(l)},[n]),[a,r]=Q.useState(()=>o());Q.useEffect(()=>(r(o()),i.onCommandExecuted(A=>{if(A.id===ve.id){const d=o();r(d)}}).dispose),[i,o]);function c(l){if(r(l),n==null)return;const A=l/100;i.executeCommand(ve.id,{unitId:n.getUnitId(),zoomRatio:A})}return P.jsx(se.Slider,{min:Dr[0],value:a,shortcuts:Br,onChange:c})}function Nr(i){return P.jsx("section",{className:xr.docCountBar,children:P.jsx(_r,{})})}const Pr={docFooterContainer:"univer-doc-footer-container"},Ur=()=>P.jsxs("div",{className:Pr.docFooterContainer,children:[P.jsx("div",{}),P.jsx(Nr,{})]}),Ii="docs-ui.config",wr={layout:{docContainerConfig:oo,toolbarConfig:io}};var ln=(i=>(i[i.ABOVE=0]="ABOVE",i[i.BELLOW=1]="BELLOW",i))(ln||{}),Ei=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(Ei||{});function Lr(i,t){let e=s.DataStreamTreeTokenType.TABLE_START;const n=[],o=[];for(let a=0;a<i;a++){e+=s.DataStreamTreeTokenType.TABLE_ROW_START;for(let r=0;r<t;r++)e+=`${s.DataStreamTreeTokenType.TABLE_CELL_START}\r
|
|
122
|
+
`:""),onClick:()=>{e(o.value)},src:o.img},o.value))})},nr=[{value:s.PresetListType.ORDER_LIST,img:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/CABEIAPQA2AMBEQACEQEDEQH/xAAzAAEAAgMBAQEAAAAAAAAAAAAABwkGCAoFBAMBAQADAQEAAAAAAAAAAAAAAAACAwQBBf/aAAwDAQACEAMQAAAA7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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TcBcBgOqDGsRzkp8j5HaGUMCrCYPvnSJDMM4g2HyOfVBg6Os31XD8f74bSyhgVYTB986Q4AQlidIz1ch69oVjSJWIJFTIsAdHInCYsuOVLaxWDtUTUYRPtOpE/U2E1XG3KQoSi1woirihM0Pmp3bqqJGR6jqtZImYO42HuOG09IeShBa1u4ep8DRVZzJQSfdpsHGidHUVvrHD7f73DI7T8ExGLxJgGxRbK6ZrAzAvnZRVCiSgAZe69/aj/9k="}],sr=i=>P.jsx(Go,{...i,options:or}),Yo=`${At}_ORDER_LIST_TYPE_COMPONENT`,Xo=`${At}_BULLET_LIST_TYPE_COMPONENT`,ze={id:"doc.command.tab",type:s.CommandType.COMMAND,async handler(i,t){const n=i.get(C.DocAutoFormatService).onAutoFormat(ze.id,t);return(await s.sequenceExecuteAsync(n,i.get(s.ICommandService))).result}},xt={id:"doc.command.after-space",type:s.CommandType.COMMAND,async handler(i){const e=i.get(C.DocAutoFormatService).onAutoFormat(xt.id);return(await s.sequenceExecuteAsync(e,i.get(s.ICommandService))).result}},dt={id:"doc.command.enter",type:s.CommandType.COMMAND,async handler(i){const e=i.get(C.DocAutoFormatService).onAutoFormat(dt.id);return(await s.sequenceExecuteAsync(e,i.get(s.ICommandService))).result}};function ne(i){return i.getContextValue(s.FOCUSING_DOC)&&i.getContextValue(s.FOCUSING_UNIVER_EDITOR)&&!i.getContextValue(s.FOCUSING_COMMON_DRAWINGS)}function ar(i){return i.getContextValue(s.FOCUSING_DOC)&&i.getContextValue(s.FOCUSING_UNIVER_EDITOR)&&!i.getContextValue(s.FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE)&&!i.getContextValue(s.FOCUSING_COMMON_DRAWINGS)}const rr={id:ze.id,binding:y.KeyCode.TAB,preconditions:ne},cr={id:ze.id,binding:y.KeyCode.TAB|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{shift:!0}};var lr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,dr=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ar(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&lr(t,e,o),o},fi=(i,t)=>(e,n)=>t(e,n,i);const ur=11,hr=9,on={ff:"Arial",fs:ur};let _e=class extends s.Disposable{constructor(t,e,n){super();R(this,"_cacheStyle",null);this._textSelectionManagerService=t,this._univerInstanceService=e,this._renderManagerService=n,this._init()}_init(){this._listenDocRangeChange()}_listenDocRangeChange(){this.disposeWithMe(this._textSelectionManagerService.textSelection$.subscribe(()=>{this._clearStyleCache()}))}getStyleCache(){return this._cacheStyle}getDefaultStyle(){var r;const t=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(t==null)return{...on};const e=t==null?void 0:t.getUnitId(),n=(r=this._renderManagerService.getRenderById(e))==null?void 0:r.with(D.DocSkeletonManagerService),o=n==null?void 0:n.getViewModel();return o==null?{...on}:o.getEditArea()===M.DocumentEditArea.BODY?{...on}:{...on,fs:hr}}setStyleCache(t){this._cacheStyle={...this._cacheStyle,...t}}_clearStyleCache(){this._cacheStyle=null}};_e=dr([fi(0,s.Inject(D.DocSelectionManagerService)),fi(1,s.IUniverInstanceService),fi(2,M.IRenderManagerService)],_e);function Ee(i,t,e){return e.executeCommand(Ne.id,{preCommandId:i,...t!=null?t:{}})}const Ko="doc.command.set-inline-format-bold",Ge={id:Ko,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(Ko,t,e)}},Jo="doc.command.set-inline-format-italic",Ye={id:Jo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(Jo,t,e)}},Zo="doc.command.set-inline-format-underline",Xe={id:Zo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(Zo,t,e)}},qo="doc.command.set-inline-format-strikethrough",Ke={id:qo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(qo,t,e)}},$o="doc.command.set-inline-format-subscript",Fe={id:$o,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee($o,t,e)}},es="doc.command.set-inline-format-superscript",Je={id:es,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(es,t,e)}},ts="doc.command.set-inline-format-fontsize",Ze={id:ts,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(ts,t,e)}},ns="doc.command.set-inline-format-font-family",qe={id:ns,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(ns,t,e)}},is="doc.command.set-inline-format-text-color",$e={id:is,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(is,t,e)}},os="doc.command.set-inline-format-text-background-color",et={id:os,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(os,t,e)}},ss="doc.command.reset-inline-format-text-background-color",ut={id:ss,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return Ee(ss,t,e)}},pi={[Ge.id]:"bl",[Ye.id]:"it",[Xe.id]:"ul",[Ke.id]:"st",[Ze.id]:"fs",[qe.id]:"ff",[$e.id]:"cl",[et.id]:"bg",[ut.id]:"bg",[Fe.id]:"va",[Je.id]:"va"},Ne={id:"doc.command.set-inline-format",type:s.CommandType.COMMAND,handler:async(i,t)=>{var O;const{value:e,preCommandId:n}=t,o=i.get(s.ICommandService),a=i.get(D.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=i.get(_e),l=a.getDocRanges(),A=(O=l.find(v=>v.isActive))!=null?O:l[0];if(l.length===0)return!1;const{segmentId:d}=l[0],u=r.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(u==null)return!1;const m=u.getSelfOrHeaderFooterModel(d).getBody();if(m==null)return!1;const h=u.getUnitId();let f;switch(n){case Ge.id:case Ye.id:case Xe.id:case Ke.id:case Fe.id:case Je.id:{const v=c.getDefaultStyle(),b=rs(m,A,v);f=mr(b,n);break}case Ze.id:case qe.id:{f=e;break}case $e.id:case et.id:{f={rgb:e};break}case ut.id:{f={rgb:null};break}default:throw new Error(`Unknown command: ${n} in handleInlineFormat`)}const g={id:D.RichTextEditingMutation.id,params:{unitId:h,actions:[],textRanges:l}},p=new s.TextX,S=s.JSONX.getInstance(),I=new s.MemoryCursor;I.reset();for(const v of l){let{startOffset:b,endOffset:_,rangeType:B}=v;if(b==null||_==null)continue;if(B===s.DOC_RANGE_TYPE.RECT&&(b=b-1),b===_){const U=c.getStyleCache(),L=pi[n];c.setStyleCache({[L]:(U==null?void 0:U[L])!==void 0?as(U,L,n):f});continue}const w={dataStream:"",textRuns:[{st:0,ed:_-b,ts:{[pi[n]]:f}}]},x=b-I.cursor;x!==0&&p.push({t:s.TextXActionType.RETAIN,len:x}),p.push({t:s.TextXActionType.RETAIN,body:w,len:_-b}),I.reset(),I.moveCursor(_)}const E=te(u,d);return g.params.actions=S.editOp(p.serialize(),E),!!o.syncExecuteCommand(g.id,g.params)}};function gr(i){return i!==null&&typeof i=="object"}function as(i,t,e){if(/bl|it/.test(t))return(i==null?void 0:i[t])===s.BooleanNumber.TRUE?s.BooleanNumber.FALSE:s.BooleanNumber.TRUE;if(/ul|st/.test(t))return gr(i==null?void 0:i[t])&&(i==null?void 0:i[t]).s===s.BooleanNumber.TRUE?{s:s.BooleanNumber.FALSE}:{s:s.BooleanNumber.TRUE};if(/va/.test(t))return e===Fe.id?(i==null?void 0:i[t])===s.BaselineOffset.SUBSCRIPT?s.BaselineOffset.NORMAL:s.BaselineOffset.SUBSCRIPT:(i==null?void 0:i[t])===s.BaselineOffset.SUPERSCRIPT?s.BaselineOffset.NORMAL:s.BaselineOffset.SUPERSCRIPT}function rs(i,t,e){var A,d,u,m,h,f,g,p,S,I,E,T,O,v;const{startOffset:n,endOffset:o,collapsed:a}=t;if(a){const b=(A=i.textRuns)!=null?A:[];let _=null;for(let B=b.length-1;B>=0;B--){const w=b[B];if(w.st<n&&n<=w.ed){_=w;break}}return _!=null&&_.ts?{...e,..._.ts}:e}const{textRuns:r=[]}=s.getBodySlice(i,n,o),c=s.Tools.deepClone(e);c.fs=Math.max(c.fs,...r.map(b=>{var _,B;return(B=(_=b==null?void 0:b.ts)==null?void 0:_.fs)!=null?B:c.fs})),c.ff=(m=(u=(d=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.ff)!=null}))==null?void 0:d.ts)==null?void 0:u.ff)!=null?m:c.ff,c.it=r.length&&r.every(b=>{var _;return((_=b.ts)==null?void 0:_.it)===s.BooleanNumber.TRUE})?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE,c.bl=r.length&&r.every(b=>{var _;return((_=b.ts)==null?void 0:_.bl)===s.BooleanNumber.TRUE})?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE,c.ul=r.length&&r.every(b=>{var _,B;return((B=(_=b.ts)==null?void 0:_.ul)==null?void 0:B.s)===s.BooleanNumber.TRUE})?(h=r[0].ts)==null?void 0:h.ul:c.ul,c.st=r.length&&r.every(b=>{var _,B;return((B=(_=b.ts)==null?void 0:_.st)==null?void 0:B.s)===s.BooleanNumber.TRUE})?(f=r[0].ts)==null?void 0:f.st:c.st,c.bg=(S=(p=(g=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.bg)!=null}))==null?void 0:g.ts)==null?void 0:p.bg)!=null?S:c.bg,c.cl=(T=(E=(I=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.cl)!=null}))==null?void 0:I.ts)==null?void 0:E.cl)!=null?T:c.cl;const l=r.filter(b=>{var _;return((_=b==null?void 0:b.ts)==null?void 0:_.va)!=null});if(l.length>0&&l.length===r.length){const b=(O=l[0].ts)==null?void 0:O.va;let _=!0;for(let B=1;B<l.length;B++)if(((v=l[B].ts)==null?void 0:v.va)!==b){_=!1;break}_&&(c.va=b)}return c}function mr(i,t){const e=pi[t];return as(i,e,t)}const ht={id:"doc.command.list-operation",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,E;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=t.listType,r=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),c=(I=e.getDocRanges())!=null?I:[];if(r==null||c.length===0)return!1;const l=c[0].segmentId,A=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(A==null)return!1;const d=gt(c,A),u=r.getUnitId(),m={id:D.RichTextEditingMutation.id,params:{unitId:u,actions:[],textRanges:c,isEditing:!1}};new s.MemoryCursor().reset();const f=s.BuildTextUtils.paragraph.bullet.switch({paragraphs:d,listType:a,document:r,segmentId:l}),g=s.JSONX.getInstance(),p=te(r,l);return m.params.actions=g.editOp(f.serialize(),p),!!o.syncExecuteCommand(m.id,m.params)}},Mt={id:"doc.command.change-list-type",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,E;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),{listType:a}=t,r=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),c=e.getDocRanges();if(r==null||c==null||!c.length)return!1;const{segmentId:l}=c[0],A=(I=e.getDocRanges())!=null?I:[],d=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(d==null)return!1;const u=gt(A,d),m=r.getUnitId(),h=s.BuildTextUtils.paragraph.bullet.set({paragraphs:u,listType:a,segmentId:l,document:r});if(!h)return!1;const f=s.JSONX.getInstance(),g={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return g.params.actions=f.editOp(h.serialize(),p),!!o.syncExecuteCommand(g.id,g.params)}};var Bt=(i=>(i[i.increase=1]="increase",i[i.decrease=-1]="decrease",i))(Bt||{});const sn={id:"doc.command.change-list-nesting-level",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,E;if(!t)return!1;const{type:e}=t,n=i.get(D.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=o.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),c=n.getActiveTextRange();if(r==null||c==null)return!1;const{segmentId:l}=c,A=(I=n.getDocRanges())!=null?I:[],d=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(d==null)return!1;const u=cn(c,d),m=r.getUnitId(),h=s.JSONX.getInstance(),f=s.BuildTextUtils.paragraph.bullet.changeNestLevel({paragraphs:u,type:e,segmentId:l,document:r}),g={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return g.params.actions=h.editOp(f.serialize(),p),!!a.syncExecuteCommand(g.id,g.params)}},Dt={id:"doc.command.bullet-list",type:s.CommandType.COMMAND,handler:(i,t)=>{const e=i.get(s.ICommandService);return t!=null&&t.value?e.syncExecuteCommand(Mt.id,{listType:t.value}):e.syncExecuteCommand(ht.id,{listType:s.PresetListType.BULLET_LIST})}},an={id:"doc.command.check-list",type:s.CommandType.COMMAND,handler:(i,t)=>{const e=i.get(s.ICommandService);return t!=null&&t.value?e.syncExecuteCommand(Mt.id,{listType:t.value}):e.syncExecuteCommand(ht.id,{listType:s.PresetListType.CHECK_LIST})}},rn={id:"doc.command.toggle-check-list",type:s.CommandType.COMMAND,handler:(i,t)=>{var g;if(!t)return!1;const e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),{index:o,segmentId:a,textRanges:r}=t,c=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(c==null||((g=c.getSelfOrHeaderFooterModel(a).getBody())==null?void 0:g.paragraphs)==null)return!1;const A=c.getUnitId(),d={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:r!=null?r:[],segmentId:a,isEditing:!1}},u=s.BuildTextUtils.paragraph.bullet.toggleChecklist({document:c,paragraphIndex:o,segmentId:a});if(!u)return!1;const m=s.JSONX.getInstance(),h=te(c,a);return d.params.actions=m.editOp(u.serialize(),h),!!n.syncExecuteCommand(d.id,d.params)}},_t={id:"doc.command.order-list",type:s.CommandType.COMMAND,handler:(i,t)=>{const e=i.get(s.ICommandService);return t!=null&&t.value?e.syncExecuteCommand(Mt.id,{listType:t.value}):e.syncExecuteCommand(ht.id,{listType:s.PresetListType.ORDER_LIST})}},Si={id:"doc.command.quick-list",type:s.CommandType.COMMAND,handler(i,t){var K,ee,Z,j,z;if(!t)return!1;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=e.getActiveTextRange();if(a==null||r==null)return!1;const{segmentId:c}=r,{listType:l,paragraph:A}=t,{paragraphStart:d,paragraphEnd:u}=A,m=new s.TextX,h=s.JSONX.getInstance(),{defaultTabStop:f=36}=a.getSnapshot().documentStyle,g=(ee=(K=a.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:K.sectionBreaks)!=null?ee:[],{startIndex:p,paragraphStyle:S={}}=A,{indentFirstLine:I,snapToGrid:E,indentStart:T}=S,O=s.PRESET_LIST_TYPE[l].nestingLevel[0].paragraphProperties||{},{hanging:v,indentStart:b}=O,_=O.textStyle,{charSpace:B,gridType:w}=fr(p,g)||{charSpace:0,gridType:s.GridType.LINES},x=M.getCharSpaceApply(B,f,w,E);let L=s.Tools.generateRandomId(6);const F=(j=(Z=a.getBody())==null?void 0:Z.paragraphs)!=null?j:[],H=F.findIndex(Y=>Y.startIndex===A.startIndex),k=F[H-1],X=F[H+1];k&&k.bullet&&k.bullet.listType.indexOf(l)===0?L=k.bullet.listId:X&&X.bullet&&X.bullet.listType.indexOf(l)===0&&(L=X.bullet.listId);const G={id:D.RichTextEditingMutation.id,params:{unitId:a.getUnitId(),actions:[],textRanges:[{startOffset:d,endOffset:d,collapsed:!0}],isEditing:!1}};m.push({t:s.TextXActionType.RETAIN,len:d}),m.push({t:s.TextXActionType.DELETE,len:u-d}),m.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{startIndex:0,paragraphStyle:{...S,textStyle:{...S.textStyle,..._},indentFirstLine:void 0,hanging:v,indentStart:{v:M.getNumberUnitValue(b,x)-M.getNumberUnitValue(v,x)+M.getNumberUnitValue(I,x)+M.getNumberUnitValue(T,x)}},bullet:{...(z=A.bullet)!=null?z:{nestingLevel:0,textStyle:{fs:20}},listType:l,listId:L}}]}});const W=te(a,c);return G.params.actions=h.editOp(m.serialize(),W),!!o.syncExecuteCommand(G.id,G.params)}};function cn(i,t){const{startOffset:e,endOffset:n}=i,o=[];let a=-1;for(const r of t){const{startIndex:c}=r;(e>a&&e<=c||n>a&&n<=c||c>=e&&c<=n)&&o.push(r),a=c}return o}function gt(i,t){const e=[];for(const n of i){const o=cn(n,t);e.push(...o)}return e}function fr(i,t){const e=t.sort(s.sortRulesFactory("startIndex"));for(let n=0;n<e.length;n++){const o=t[n];if(o.startIndex>=i)return o}}const Re={id:"doc.command.align-action",type:s.CommandType.COMMAND,handler:(i,t)=>{var E;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),{alignType:a}=t,r=n.getCurrentUniverDocInstance();if(r==null)return!1;const c=e.getDocRanges();if(c.length===0)return!1;const l=c[0].segmentId,A=(E=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:E.paragraphs;if(A==null)return!1;const d=gt(c,A),u=r.getUnitId(),m=d.every(T=>{var O;return((O=T.paragraphStyle)==null?void 0:O.horizontalAlign)===a}),h={id:D.RichTextEditingMutation.id,params:{unitId:u,actions:[],textRanges:c}},f=new s.MemoryCursor;f.reset();const g=new s.TextX,p=s.JSONX.getInstance();for(const T of d){const{startIndex:O}=T;g.push({t:s.TextXActionType.RETAIN,len:O-f.cursor});const v={...T.paragraphStyle,horizontalAlign:m?s.HorizontalAlign.UNSPECIFIED:a};g.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...T,paragraphStyle:v,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),f.moveCursorTo(O+1)}const S=te(r,l);return h.params.actions=p.editOp(g.serialize(),S),!!o.syncExecuteCommand(h.id,h.params)}},Nt={id:"doc.command.align-left",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.LEFT})},Pt={id:"doc.command.align-center",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.CENTER})},Ut={id:"doc.command.align-right",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.RIGHT})},wt={id:"doc.command.align-justify",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.JUSTIFIED})},pr={id:Ge.id,binding:y.KeyCode.B|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Sr={id:Ye.id,binding:y.KeyCode.I|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Ir={id:Xe.id,binding:y.KeyCode.U|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Er={id:Ke.id,binding:y.KeyCode.X|y.MetaKeys.SHIFT|y.MetaKeys.CTRL_COMMAND,preconditions:ne},vr={id:Fe.id,binding:y.KeyCode.COMMA|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Cr={id:Je.id,binding:y.KeyCode.PERIOD|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Tr={id:Nt.id,binding:y.KeyCode.L|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},br={id:Ut.id,binding:y.KeyCode.R|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},yr={id:Pt.id,binding:y.KeyCode.E|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Rr={id:wt.id,binding:y.KeyCode.J|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Or={id:_t.id,binding:y.KeyCode.Digit7|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},xr={id:Dt.id,binding:y.KeyCode.Digit8|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Mr={docCountBar:"univer-doc-count-bar"},Br=(i,t)=>{const e=i.get(s.IUniverInstanceService).getUniverDocInstance(t.unitId),n=(e==null?void 0:e.zoomRatio)||1;return{...s.Tools.deepClone(t),zoomRatio:n}},ve={id:"doc.operation.set-zoom-ratio",type:s.CommandType.OPERATION,handler:(i,t)=>{const e=i.get(s.IUniverInstanceService).getUniverDocInstance(t.unitId);if(!e)return!1;const n=e.getSnapshot();return n.settings==null?n.settings={zoomRatio:t.zoomRatio}:n.settings.zoomRatio=t.zoomRatio,!0}},Dr=[50,80,100,130,150,170,200,400],_r=[10,400];function Nr(){const i=s.useDependency(s.ICommandService),t=s.useDependency(s.IUniverInstanceService),e=Q.useMemo(()=>t.getCurrentTypeOfUnit$(s.UniverInstanceType.UNIVER_DOC),[]),n=s.useObservable(e),o=Q.useCallback(()=>{var A,d;if(!n)return 100;const l=((d=(A=n.getSettings())==null?void 0:A.zoomRatio)!=null?d:1)*100;return Math.round(l)},[n]),[a,r]=Q.useState(()=>o());Q.useEffect(()=>(r(o()),i.onCommandExecuted(A=>{if(A.id===ve.id){const d=o();r(d)}}).dispose),[i,o]);function c(l){if(r(l),n==null)return;const A=l/100;i.executeCommand(ve.id,{unitId:n.getUnitId(),zoomRatio:A})}return P.jsx(se.Slider,{min:_r[0],value:a,shortcuts:Dr,onChange:c})}function Pr(i){return P.jsx("section",{className:Mr.docCountBar,children:P.jsx(Nr,{})})}const Ur={docFooterContainer:"univer-doc-footer-container"},wr=()=>P.jsxs("div",{className:Ur.docFooterContainer,children:[P.jsx("div",{}),P.jsx(Pr,{})]}),Ii="docs-ui.config",cs={layout:{docContainerConfig:oo,toolbarConfig:io}};var ln=(i=>(i[i.ABOVE=0]="ABOVE",i[i.BELLOW=1]="BELLOW",i))(ln||{}),Ei=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(Ei||{});function Lr(i,t){let e=s.DataStreamTreeTokenType.TABLE_START;const n=[],o=[];for(let a=0;a<i;a++){e+=s.DataStreamTreeTokenType.TABLE_ROW_START;for(let r=0;r<t;r++)e+=`${s.DataStreamTreeTokenType.TABLE_CELL_START}\r
|
|
95
123
|
${s.DataStreamTreeTokenType.TABLE_CELL_END}`,n.push({startIndex:e.length-3,paragraphStyle:{spaceAbove:{v:3},lineSpacing:2,spaceBelow:{v:0}}}),o.push({startIndex:e.length-2});e+=s.DataStreamTreeTokenType.TABLE_ROW_END}return e+=s.DataStreamTreeTokenType.TABLE_END,{dataStream:e,paragraphs:n,sectionBreaks:o}}function An(){return{margin:{start:{v:10},end:{v:10},top:{v:5},bottom:{v:5}}}}function dn(i){const t=An();return{tableCells:[...new Array(i).fill(null).map(()=>s.Tools.deepClone(t))],trHeight:{val:{v:30},hRule:s.TableRowHeightRule.AUTO}}}function un(i){return{size:{type:s.TableSizeType.SPECIFIED,width:{v:i}}}}function vi(i,t,e){const n=un(e/t),o=dn(t),a=[...new Array(i).fill(null).map(()=>s.Tools.deepClone(o))],r=[...new Array(t).fill(null).map(()=>s.Tools.deepClone(n))],c=s.generateRandomId(6);return{tableRows:a,tableColumns:r,tableId:c,align:s.TableAlignmentType.START,indent:{v:0},textWrap:s.TableTextWrapType.NONE,position:{positionH:{relativeFrom:s.ObjectRelativeFromH.PAGE,posOffset:0},positionV:{relativeFrom:s.ObjectRelativeFromV.PAGE,posOffset:0}},dist:{distB:0,distL:0,distR:0,distT:0},cellMargin:{start:{v:10},end:{v:10},top:{v:5},bottom:{v:5}},size:{type:s.TableSizeType.UNSPECIFIED,width:{v:e}}}}function Lt(i,t){if(!i&&!t)return null;if(t&&t.length>0){let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;const o="";for(const a of t){const{startOffset:r,endOffset:c,segmentId:l}=a;r==null||c==null||l==null||(e=Math.min(e,r),n=Math.max(n,c))}if(Number.isFinite(e)&&Number.isFinite(n))return{startOffset:e,endOffset:n,segmentId:o}}else if(i){const{startOffset:e,endOffset:n,segmentId:o}=i;return e==null||n==null||o==null?null:{startOffset:e,endOffset:n,segmentId:o}}}function Qr(i){let t=s.DataStreamTreeTokenType.TABLE_ROW_START;const e=[],n=[];for(let o=0;o<i;o++)t+=`${s.DataStreamTreeTokenType.TABLE_CELL_START}\r
|
|
96
124
|
${s.DataStreamTreeTokenType.TABLE_CELL_END}`,e.push({startIndex:t.length-3,paragraphStyle:{spaceAbove:{v:3},lineSpacing:2,spaceBelow:{v:0}}}),n.push({startIndex:t.length-2});return t+=s.DataStreamTreeTokenType.TABLE_ROW_END,{dataStream:t,paragraphs:e,sectionBreaks:n}}function Fr(){const i=`${s.DataStreamTreeTokenType.TABLE_CELL_START}\r
|
|
97
|
-
${s.DataStreamTreeTokenType.TABLE_CELL_END}`,t=[],e=[];return t.push({startIndex:1,paragraphStyle:{spaceAbove:{v:3},lineSpacing:2,spaceBelow:{v:0}}}),e.push({startIndex:2}),{dataStream:i,paragraphs:t,sectionBreaks:e}}function Hr(i,t,e){var u,m,h;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o;let l=null;const A=(h=(m=(u=e.getBody())==null?void 0:u.tables)==null?void 0:m.find(f=>c>=f.startIndex&&c<=f.endIndex))==null?void 0:h.tableId;let d=0;for(const f of r.getChildren()){for(const g of f.children){const{children:p}=g,S=p[0];if(S){for(const I of S.children)if(I.startIndex<=c&&c<=I.endIndex){d=S.children.indexOf(I),l=I;break}}if(l)break}if(l)break}return l==null||A==null?null:{offset:t===0?l.startIndex:l.endIndex+1,colCount:l.children.length,tableId:A,insertRowIndex:t===0?d:d+1}}function kr(i,t,e){var h,f,g;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o,l=(g=(f=(h=e.getBody())==null?void 0:h.tables)==null?void 0:f.find(p=>c>=p.startIndex&&c<=p.endIndex))==null?void 0:g.tableId,A=[];let d=null,u=-1;for(const p of r.getChildren()){for(const S of p.children){const{children:I}=S,E=I[0];if(E){if(c<E.startIndex||c>E.endIndex)continue;d=E;for(const T of E.children){for(const O of T.children){const v=T.children.indexOf(O);if(c>=O.startIndex&&c<=O.endIndex){u=v;break}}if(u!==-1)break}}if(d)break}if(d)break}if(d==null||l==null||u===-1)return null;let m=0;for(const p of d.children){const S=p.children[u],I=t===0?S.startIndex:S.endIndex+1;A.push(I-m),m=I}return{offsets:A,tableId:l,columnIndex:u,rowCount:d.children.length}}function Vr(i,t,e){const n=[];let o=t[e].size.width.v,a=0;for(let r=0;r<t.length;r++)a+=t[r].size.width.v;a+=o;for(let r=0;r<t.length;r++)n.push(t[r].size.width.v/a*i);return o=o/a*i,{widths:n,newColWidth:o}}function cs(i,t){var m,h,f;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(f=(h=(m=t.getBody())==null?void 0:m.tables)==null?void 0:h.find(g=>e>=g.startIndex&&n<=g.endIndex))==null?void 0:f.tableId,c=[];let l=-1,A=0,d=-1,u=!1;for(const g of a.getChildren()){for(const p of g.children){const{children:S}=p,I=S[0];if(I){if(e<I.startIndex||n>I.endIndex)continue;d=I.startIndex+3;for(const E of I.children){const T=I.children.indexOf(E),{startIndex:O,endIndex:v}=E;e>=O&&e<=v?(l=O,c.push(T),A+=v-O+1):(O>e&&v<n||n>=O&&n<=v)&&(c.push(T),A+=v-O+1),c.length===I.children.length&&(u=!0)}}if(c.length)break}if(c.length)break}return r==null||c.length===0?null:{tableId:r,rowIndexes:c,offset:l,len:A,cursor:d,selectWholeTable:u}}function jr(i,t){var f,g,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(g=(f=t.getBody())==null?void 0:f.tables)==null?void 0:g.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null;const A=[];let d=-1,u=-1,m=-1;for(const S of a.getChildren()){for(const I of S.children){const{children:E}=I,T=E[0];if(T){if(e<T.startIndex||n>T.endIndex)continue;l=T;for(const O of T.children)for(const v of O.children){const b=O.children.indexOf(v);e>=v.startIndex&&e<=v.endIndex&&(u=b),n>=v.startIndex&&n<=v.endIndex&&(m=b)}}if(l)break}if(l)break}if(l==null||r==null)return null;for(let S=u;S<=m;S++)A.push(S);let h=0;for(const S of l.children){const I=S.children[u],E=S.children[m];c.push({retain:I.startIndex-h,delete:E.endIndex-I.startIndex+1}),h=E.endIndex+1}return d=l.startIndex+3,{offsets:c,tableId:r,columnIndexes:A,cursor:d,selectWholeTable:A.length===l.children[0].children.length,rowCount:l.children.length}}function ls(i,t){var d,u,m;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(m=(u=(d=t.getBody())==null?void 0:d.tables)==null?void 0:u.find(h=>e>=h.startIndex&&n<=h.endIndex))==null?void 0:m.tableId;let c=-1,l=0,A=-1;for(const h of a.getChildren()){for(const f of h.children){const{children:g}=f,p=g[0];if(p){if(e<p.startIndex||n>p.endIndex)continue;c=p.startIndex,l=p.endIndex-p.startIndex+1,A=p.startIndex}if(p)break}if(l>0)break}return r==null?null:{tableId:r,offset:c,len:l,cursor:A}}function Wr(i,t){var f,g,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(g=(f=t.getBody())==null?void 0:f.tables)==null?void 0:g.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null,A=-1,d=-1,u=-1,m=-1;for(const S of a.getChildren()){for(const I of S.children){const{children:E}=I,T=E[0];if(T){if(e<T.startIndex||n>T.endIndex)continue;l=T;for(const O of T.children){const v=T.children.indexOf(O);for(const b of O.children){const _=O.children.indexOf(b);e>=b.startIndex&&e<=b.endIndex&&(d=v,u=_),n>=b.startIndex&&n<=b.endIndex&&(m=_)}}}if(l)break}if(l)break}if(l==null||r==null||d===-1)return null;const h=l.children[d];for(let S=u;S<=m;S++){const I=h.children[S];c.push({retain:I.startIndex+1,delete:I.endIndex-I.startIndex-3})}return A=l.startIndex+3,{offsets:c,tableId:r,cursor:A,rowCount:l.children.length}}var Ci=(i=>(i[i.NEXT=0]="NEXT",i[i.PREV=1]="PREV",i))(Ci||{});function As(i,t,e){const{startOffset:n}=t;let o=null;for(const A of i.getChildren()){for(const d of A.children){const u=d.children[0];if(u&&n>u.startIndex&&n<u.endIndex){o=u;break}}if(o)break}if(o==null)return null;let a=-1,r=-1,c=null;for(const A of o.children){for(const d of A.children)if(n>d.startIndex&&n<d.endIndex){a=A.children.indexOf(d),r=o.children.indexOf(A),c=A;break}if(a>-1)break}if(a===-1||r===-1||c==null)return null;let l=null;if(e===0){if(l=c.children[a+1],!l){const A=o.children[r+1];A&&(l=A.children[0])}}else if(l=c.children[a-1],!l){const A=o.children[r-1];A&&(l=A.children[A.children.length-1])}if(l){const{startIndex:A,endIndex:d}=l;return{startOffset:A+1,endOffset:d-2}}}function ds(i,t){const e=[],{customBlocks:n=[]}=i;for(const o of t){const{startOffset:a,endOffset:r}=o;if(!(a==null||r==null))for(const c of n){const{startIndex:l}=c;l>=a&&l<r&&e.push(c.blockId)}}return e}function zr(i){return i.some(t=>{const{startNodePosition:e}=t;return e?(e==null?void 0:e.path.indexOf("cells"))>-1:!1})}const Gr=s.SHEET_EDITOR_UNITS,Ti={id:"doc.command.inner-paste",type:s.CommandType.COMMAND,handler:async(i,t)=>{var B,w,x,U,L,F;const{segmentId:e,textRanges:n,doc:o}=t,a=i.get(s.ICommandService),r=i.get(D.DocSelectionManagerService),c=i.get(s.IUniverInstanceService),l=r.getTextRanges(),A=r.getRectRanges(),{body:d,tableSource:u,drawings:m}=o;if(!Array.isArray(l)||l.length===0||d==null)return!1;const h=c.getCurrentUniverDocInstance(),f=h==null?void 0:h.getSelfOrHeaderFooterModel(e).getBody();if(h==null||f==null)return!1;const g=h.getUnitId(),p={id:D.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:n,segmentId:e}},S=new s.MemoryCursor;S.reset();const I=new s.TextX,E=s.JSONX.getInstance(),T=[],O=!!((B=d.tables)!=null&&B.length),v=!!((w=d.customBlocks)!=null&&w.length);if(O&&e||O&&zr(l)||l.length&&(A!=null&&A.length))return!1;for(let H=0;H<l.length;H++){const k=l[H],{startOffset:X,endOffset:G,collapsed:W}=k,V=X-S.cursor,K=s.Tools.deepClone(d);if(O)for(const j of K.tables){const{tableId:z}=j,Y=s.Tools.generateRandomId(6);j.tableId=Y;const ie=s.Tools.deepClone(u[z]);ie.tableId=Y;const ce=E.insertOp(["tableSource",Y],ie);T.push(ce)}if(v&&m){const j=(U=(x=h.getSnapshot().drawingsOrder)==null?void 0:x.length)!=null?U:0;for(const z of K.customBlocks){const{blockId:Y}=z,ie=s.Tools.generateRandomId(6);z.blockId=ie;const ce=s.Tools.deepClone(m[Y]);ce.drawingId=ie;const ge=E.insertOp(["drawings",ie],ce),le=E.insertOp(["drawingsOrder",j],ie);T.push(ge),T.push(le)}}const ee=zn((L=f.customRanges)!=null?L:[],G,Gr.includes(g)),Z=Gn((F=f.customDecorations)!=null?F:[],G);if(ee&&(K.customRanges=[{...ee,startIndex:0,endIndex:d.dataStream.length-1}]),Z.length&&(K.customDecorations=Z.map(j=>({...j,startIndex:0,endIndex:d.dataStream.length-1}))),W)I.push({t:s.TextXActionType.RETAIN,len:V}),I.push({t:s.TextXActionType.INSERT,body:K,len:d.dataStream.length});else{const j=s.BuildTextUtils.selection.delete([k],d,S.cursor,K,l.length===1);I.push(...j)}S.reset(),S.moveCursor(G)}const b=te(h,e);return T.push(E.editOp(I.serialize(),b)),p.params.actions=T.reduce((H,k)=>s.JSONX.compose(H,k),null),!!a.syncExecuteCommand(p.id,p.params)}};function Yr(i,t){const{startOffset:e,endOffset:n}=i,o=t.some(r=>r.startIndex===n),a=Math.max(e,o?n-1:n);return{...i,endOffset:a,collapsed:e===a}}function Xr(i,t,e){var f,g;const n=t.getSelfOrHeaderFooterModel(e).getBody(),o=new s.TextX,a=s.JSONX.getInstance(),r=[];if(n==null)return r;const{tables:c=[]}=n,l=new s.MemoryCursor;l.reset();for(let p=0;p<i.length;p++){const S=Yr(i[p],c),{startOffset:I,endOffset:E,collapsed:T}=S,O=I-l.cursor;T?o.push({t:s.TextXActionType.RETAIN,len:O}):o.push(...s.BuildTextUtils.selection.delete([S],n,l.cursor,null,!1)),l.reset(),l.moveCursor(E)}const A=te(t,e);r.push(a.editOp(o.serialize(),A));const d=ds(n,i),u=(f=t.getDrawings())!=null?f:{},m=(g=t.getDrawingsOrder())!=null?g:[],h=d.sort((p,S)=>m.indexOf(p)>m.indexOf(S)?-1:m.indexOf(p)<m.indexOf(S)?1:0);if(h.length>0)for(const p of h){const S=u[p],I=m.indexOf(p);if(S==null||I<0)continue;const E=a.removeOp(["drawings",p],S),T=a.removeOp(["drawingsOrder",I],p);r.push(E),r.push(T)}return r.reduce((p,S)=>s.JSONX.compose(p,S),null)}function Kr(i,t,e,n){const o=[];if(t.getSelfOrHeaderFooterModel(n).getBody()==null)return o;const r=new s.TextX,c=s.JSONX.getInstance(),l=new s.MemoryCursor;l.reset();for(const d of i){const{startOffset:u,endOffset:m,spanEntireRow:h,spanEntireTable:f}=d;if(!(u==null||m==null))if(f){const g=ls({startOffset:u,endOffset:m,segmentId:n},e);if(g==null)continue;const{offset:p,len:S,tableId:I}=g;p-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:p-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:S});const E=c.removeOp(["tableSource",I]);o.push(E),l.moveCursorTo(p+S)}else if(h){const g=cs({startOffset:u,endOffset:m,segmentId:n},e);if(g==null)continue;const{offset:p,rowIndexes:S,len:I,tableId:E}=g;p-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:p-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:I});for(const T of S.reverse()){const O=c.removeOp(["tableSource",E,"tableRows",T]);o.push(O)}l.moveCursorTo(p+I)}else{const g=Wr({startOffset:u,endOffset:m,segmentId:n},e);if(g==null)continue;const{offsets:p}=g;for(const S of p){const{retain:I,delete:E}=S;I-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:I-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:E}),l.moveCursorTo(I+E)}}}const A=te(t,n);return o.push(c.editOp(r.serialize(),A)),o.reduce((d,u)=>s.JSONX.compose(d,u),null)}function us(i,t,e,n,o){let a=[];if(Array.isArray(i)&&(i==null?void 0:i.length)!==0&&(a=Xr(i,e,o)),Array.isArray(t)&&(t==null?void 0:t.length)!==0){const r=Kr(t,e,n,o);a==null||a.length===0?a=r:a=s.JSONX.compose(a,s.JSONX.transform(r,a,"right"))}return a}const tt={id:"doc.command.inner-cut",type:s.CommandType.COMMAND,handler:async(i,t)=>{var g,p;const{segmentId:e,textRanges:n}=t,o=i.get(s.ICommandService),a=i.get(D.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=(g=t.selections)!=null?g:a.getTextRanges(),l=a.getRectRanges();if((!Array.isArray(c)||c.length===0)&&(!Array.isArray(l)||l.length===0))return!1;const A=(p=r.getCurrentUniverDocInstance())==null?void 0:p.getUnitId();if(!A)return!1;const d=r.getUniverDocInstance(A);if(d==null)return!1;const u=me(i,A);if(u==null)return!1;const m=u.getViewModel(),h={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:n}};return h.params.actions=us(c,l,d,m,e),!!o.syncExecuteCommand(h.id,h.params)}};var de=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(de||{});const hs="doc.command.insert-text",hn={id:hs,type:s.CommandType.COMMAND,handler:async(i,t)=>{var v;const e=i.get(s.ICommandService),{range:n,segmentId:o,body:a,unitId:r,cursorOffset:c}=t,l=i.get(D.DocSelectionManagerService),d=i.get(s.IUniverInstanceService).getUnit(r,s.UniverInstanceType.UNIVER_DOC);if(d==null)return!1;const u=l.getActiveTextRange(),m=d.getSelfOrHeaderFooterModel((v=u==null?void 0:u.segmentId)!=null?v:"").getBody();if(m==null)return!1;const{startOffset:h,collapsed:f}=n,g=c!=null?c:a.dataStream.length,p=[{startOffset:h+g,endOffset:h+g,style:u==null?void 0:u.style,collapsed:f}],S={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:p,debounce:!0}},I=new s.TextX,E=s.JSONX.getInstance();if(f)h>0&&I.push({t:s.TextXActionType.RETAIN,len:h}),I.push({t:s.TextXActionType.INSERT,body:a,len:a.dataStream.length});else{const b=s.BuildTextUtils.selection.delete([n],m,0,a);I.push(...b)}S.params.textRanges=[{startOffset:h+g,endOffset:h+g,collapsed:f}];const T=te(d,o);return S.params.actions=E.editOp(I.serialize(),T),!!e.syncExecuteCommand(S.id,S.params)}},mt={id:"doc.command.delete-text",type:s.CommandType.COMMAND,handler:async(i,t)=>{var O;const e=i.get(s.ICommandService),n=i.get(s.IUniverInstanceService),{range:o,segmentId:a,unitId:r,direction:c,len:l=1}=t,A=n.getUnit(r,s.UniverInstanceType.UNIVER_DOC),d=A==null?void 0:A.getSelfOrHeaderFooterModel(a).getBody();if(A==null||d==null)return!1;const{startOffset:u}=o;let m=c===de.LEFT?u-l:u,h=c===de.LEFT?u-1:u+l-1;const f=(O=d.customRanges)==null?void 0:O.find(v=>v.startIndex<=m&&v.endIndex>=h);f!=null&&f.wholeEntity&&(m=f.startIndex,h=Math.max(h,f.endIndex));const g={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:[{startOffset:m,endOffset:m,collapsed:!0}],debounce:!0}},p=new s.TextX,S=s.JSONX.getInstance();p.push({t:s.TextXActionType.RETAIN,len:m-0}),p.push({t:s.TextXActionType.DELETE,len:h-m+1});const E=te(A,a);return g.params.actions=S.editOp(p.serialize(),E),!!e.syncExecuteCommand(g.id,g.params)}},bi={id:"doc.command.update-text",type:s.CommandType.COMMAND,handler:async(i,t)=>{const{range:e,segmentId:n,updateBody:o,coverType:a,unitId:r,textRanges:c}=t,l=i.get(s.ICommandService),d=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(d==null)return!1;const u={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:c}},m=new s.TextX,h=s.JSONX.getInstance(),{startOffset:f,endOffset:g}=e;m.push({t:s.TextXActionType.RETAIN,len:f}),m.push({t:s.TextXActionType.RETAIN,body:o,len:g-f,coverType:a});const p=te(d,n);return u.params.actions=h.editOp(m.serialize(),p),!!l.syncExecuteCommand(u.id,u.params)}},gn={id:"doc.command.delete-custom-block",type:s.CommandType.COMMAND,handler:async(i,t)=>{var x;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=e.getActiveTextRange(),r=n.getCurrentUniverDocInstance();if(a==null||r==null)return!1;const{direction:c,range:l,unitId:A,drawingId:d}=t,{startOffset:u,segmentId:m,style:h}=a,f=c===de.LEFT?u-1:u,g=[{startOffset:f,endOffset:f,style:h}],p={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:g,prevTextRanges:[l]}},S=new s.TextX,I=s.JSONX.getInstance(),E=[];u>0&&S.push({t:s.TextXActionType.RETAIN,len:c===de.LEFT?u-1:u}),S.push({t:s.TextXActionType.DELETE,len:1});const T=te(r,m);E.push(I.editOp(S.serialize(),T));const O=((x=r.getDrawings())!=null?x:{})[d],b=r.getDrawingsOrder().indexOf(d),_=I.removeOp(["drawings",d],O),B=I.removeOp(["drawingsOrder",b],d);return E.push(_),E.push(B),p.params.actions=E.reduce((U,L)=>s.JSONX.compose(U,L),null),!!o.syncExecuteCommand(p.id,p.params)}},mn={id:"doc.command.merge-two-paragraph",type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),{direction:a,range:r}=t,c=e.getActiveTextRange(),l=e.getTextRanges();if(c==null||l==null)return!1;const{segmentId:A,style:d}=c,u=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),m=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||m==null)return!1;const h=c,f=u.getUnitId(),{startOffset:g,collapsed:p}=h;if(!p)return!1;const S=a===de.LEFT?g:g+1;let I,E;for(const x of m.paragraphs){if(x.startIndex>=S){E=x;break}I=x}if(I==null||E==null)return!1;const T=a===de.LEFT?g-1:g,O=[{startOffset:T,endOffset:T,style:d}],v={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:O,prevTextRanges:[r]}},b=new s.TextX,_=s.JSONX.getInstance();I.startIndex>0&&b.push({t:s.TextXActionType.RETAIN,len:I.startIndex}),b.push({t:s.TextXActionType.DELETE,len:1}),E.startIndex>I.startIndex+1&&b.push({t:s.TextXActionType.RETAIN,len:E.startIndex-I.startIndex-1}),b.push({t:s.TextXActionType.RETAIN,len:1,coverType:s.UpdateDocsAttributeType.REPLACE,body:{dataStream:"",paragraphs:[{...s.Tools.deepClone(I),startIndex:0}]}});const B=te(u,A);return v.params.actions=_.editOp(b.serialize(),B),!!o.syncExecuteCommand(v.id,v.params)}};function fn(i,t){let e=0;if(i==null||i.length===0){if(typeof t[0].startOffset=="number"){const n=t[0],{spanEntireRow:o,spanEntireTable:a}=n;a?e=n.startOffset-3:o?n.startRow>0?e=n.startOffset-6:e=n.startOffset:e=t[0].startOffset}}else if(i.length>0&&t.length>0){const n=i[0],o=t[0];if(n.startOffset!=null&&o.startOffset!=null){if(n.startOffset<o.startOffset)e=n.startOffset;else if(n.startOffset>=o.startOffset){const{spanEntireRow:a,spanEntireTable:r}=o;r?e=o.startOffset-3:a&&(e=o.startOffset-6)}}}return e}const Qt={id:"doc.command.delete-left",type:s.CommandType.COMMAND,handler:async i=>{var B,w;const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService);let o=!0;const a=e.getCurrentUniverDocInstance();if(a==null)return!1;const r=a.getUnitId(),c=me(i,r),l=t.getActiveTextRange(),A=t.getRectRanges(),d=t.getTextRanges(),u=c==null?void 0:c.getSkeleton();if(u==null)return!1;if(A!=null&&A.length){const x=fn(d,A),U=A[0].segmentId,L=[{startOffset:x,endOffset:x}];return n.executeCommand(tt.id,{segmentId:U,textRanges:L})}if(l==null||d==null)return!1;const{segmentId:m,style:h,segmentPage:f}=l,g=a.getSelfOrHeaderFooterModel(m).getBody();if(g==null)return!1;const p=l,{startOffset:S,collapsed:I}=p,E=u.findNodeByCharIndex(S,m,f),T=M.hasListGlyph(E),O=M.isIndentByGlyph(E,g);let v=S;const b=u.findNodeByCharIndex(S-1,m,f);if(M.isFirstGlyph(E)&&b!==E&&(T===!0||O===!0)&&I){const x=M.getParagraphByGlyph(E,g);if(x==null)return!1;const U=x==null?void 0:x.startIndex,L={startIndex:0},F=x.paragraphStyle;if(T===!0){const k=x.paragraphStyle;if(k){L.paragraphStyle=k;const{hanging:X}=k;X&&(L.paragraphStyle.indentStart=X,L.paragraphStyle.hanging=void 0)}}else if(O===!0){const k=x.bullet;k&&(L.bullet=k),F!=null&&(L.paragraphStyle={...F},delete L.paragraphStyle.hanging,delete L.paragraphStyle.indentStart)}const H=[{startOffset:v,endOffset:v,style:h}];o=await n.executeCommand(bi.id,{unitId:a.getUnitId(),updateBody:{dataStream:"",paragraphs:[{...L}]},range:{startOffset:U,endOffset:U+1},textRanges:H,coverType:s.UpdateDocsAttributeType.REPLACE,segmentId:m})}else if(I===!0){if(b==null)return!0;if(b.content==="\r")o=await n.executeCommand(mn.id,{direction:de.LEFT,range:p});else if(b.streamType==="\b"){const x=(w=a.getSnapshot().drawings)==null?void 0:w[(B=b.drawingId)!=null?B:""];if(x==null)return!0;if(x.layoutType===s.PositionedObjectLayoutType.INLINE){const L=a.getUnitId();o=await n.executeCommand(gn.id,{direction:de.LEFT,range:l,unitId:L,drawingId:b.drawingId})}else{const L=u.findNodeByCharIndex(S-2);if(L==null)return!0;v-=b.count,v-=L.count;const F=[{startOffset:v,endOffset:v,style:h}];o=await n.executeCommand(mt.id,{unitId:a.getUnitId(),range:{...l,startOffset:l.startOffset-1,endOffset:l.endOffset-1},segmentId:m,direction:de.LEFT,len:L.count,textRanges:F})}}else v-=b.count,o=await n.executeCommand(mt.id,{unitId:a.getUnitId(),range:p,segmentId:m,direction:de.LEFT,len:b.count})}else{const x=gs(p,[p]);o=await n.executeCommand(tt.id,{segmentId:m,textRanges:x,selections:[p]})}return o}},yi={id:"doc.command.delete-right",type:s.CommandType.COMMAND,handler:async i=>{var E,T;const t=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(!n)return!1;const o=me(i,n.getUnitId()),a=i.get(s.ICommandService),r=t.getActiveTextRange(),c=t.getRectRanges(),l=t.getTextRanges(),A=o==null?void 0:o.getSkeleton();if(c!=null&&c.length){const O=fn(l,c),v=c[0].segmentId,b=[{startOffset:O,endOffset:O}];return a.executeCommand(tt.id,{segmentId:v,textRanges:b})}if(r==null||A==null||l==null)return!1;const{segmentId:d,style:u,segmentPage:m}=r,h=n==null?void 0:n.getSelfOrHeaderFooterModel(d).getBody();if(!n||!h)return!1;const f=r,{startOffset:g,endOffset:p,collapsed:S}=f;if(g===h.dataStream.length-2&&S)return!0;let I=!1;if(S===!0){const O=A.findNodeByCharIndex(g,d,m),v=A.findNodeByCharIndex(g+1);if(O.streamType===s.DataStreamTreeTokenType.PARAGRAPH&&(v==null?void 0:v.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK)return!1;if(O.content==="\r")I=await a.executeCommand(mn.id,{direction:de.RIGHT,range:r});else if(O.streamType==="\b"){const b=(T=n.getSnapshot().drawings)==null?void 0:T[(E=O.drawingId)!=null?E:""];if(b==null)return!0;if(b.layoutType===s.PositionedObjectLayoutType.INLINE){const B=n.getUnitId();I=await a.executeCommand(gn.id,{direction:de.RIGHT,range:r,unitId:B,drawingId:O.drawingId})}else{if(v==null)return!0;const B=[{startOffset:g+1,endOffset:g+1,style:u}];I=await a.executeCommand(mt.id,{unitId:n.getUnitId(),range:{...r,startOffset:g+1,endOffset:p+1},segmentId:d,direction:de.RIGHT,textRanges:B,len:v.count})}}else{const b=[{startOffset:g,endOffset:g,style:u}];I=await a.executeCommand(mt.id,{unitId:n.getUnitId(),range:f,segmentId:d,direction:de.RIGHT,textRanges:b,len:O.count})}}else{const O=gs(f,[f]);I=await a.executeCommand(tt.id,{segmentId:d,textRanges:O,selections:[f]})}return I}};function gs(i,t){let e=i.endOffset;for(const o of t){const{startOffset:a,endOffset:r}=o;a==null||r==null||r<=i.endOffset&&(e-=r-a)}return[{startOffset:e,endOffset:e,style:i.style}]}const Jr=10,Zr=6;function qr(){return s.Tools.generateRandomId(Zr)}function $r(i){const t=i.match(/data-copy-id="([^\s]+)"/);return t&&t[1]?t[1]:null}class ec{constructor(){R(this,"_cache",new s.LRUMap(Jr))}set(t,e){this._cache.set(t,e)}get(t){return this._cache.get(t)}clear(){this._cache.clear()}}const Ri=new ec;function Oi(i){const t=i.style,e={},n=i.tagName.toLowerCase();switch(n){case"b":case"em":case"strong":{e.bl=s.BooleanNumber.TRUE;break}case"s":{e.st={s:s.BooleanNumber.TRUE};break}case"u":{e.ul={s:s.BooleanNumber.TRUE};break}case"i":{e.it=s.BooleanNumber.TRUE;break}case"sub":case"sup":{e.va=n==="sup"?s.BaselineOffset.SUPERSCRIPT:s.BaselineOffset.SUBSCRIPT;break}}for(let o=0;o<t.length;o++){const a=t[o],r=t.getPropertyValue(a);switch(a){case"font-family":{e.ff=r.replace(/^"/g,"").replace(/"$/g,"");break}case"font-size":{const c=Number.parseInt(r);Number.isNaN(c)||(r.endsWith("pt")?e.fs=c:r.endsWith("px")&&(e.fs=M.pixelToPt(c)));break}case"font-style":{r==="italic"&&(e.it=s.BooleanNumber.TRUE);break}case"font-weight":{(Number(r)>400||String(r)==="bold")&&(e.bl=s.BooleanNumber.TRUE);break}case"text-decoration":{/underline/.test(r)?e.ul={s:s.BooleanNumber.TRUE}:/overline/.test(r)?e.ol={s:s.BooleanNumber.TRUE}:/line-through/.test(r)&&(e.st={s:s.BooleanNumber.TRUE});break}case"color":{try{const c=new s.ColorKit(r);c.isValid&&(e.cl={rgb:c.toRgbString()})}catch{}break}case"background-color":{const c=new s.ColorKit(r);c.isValid&&(e.bg={rgb:c.toRgbString()});break}}}return e}function tc(i){const t=new DOMParser,e=`<x-univer id="univer-root">${i}</x-univer>`;return t.parseFromString(e,"text/html").querySelector("#univer-root")}function ms(i,t){const e=i.tagName.toLowerCase();return typeof t=="string"?e===t:Array.isArray(t)?t.some(n=>n===e):t(i)}const fs=600,Vn=class Vn{constructor(){R(this,"_tableCache",[]);R(this,"_styleCache",new Map);R(this,"_styleRules",[]);R(this,"_afterProcessRules",[])}static use(t){if(this._pluginList.includes(t))throw new Error(`Univer paste plugin ${t.name} already added`);this._pluginList.push(t)}convert(t,e={}){var c;const n=Vn._pluginList.find(l=>l.checkPasteType(t)),o=tc(t),r={body:{dataStream:"",paragraphs:[],sectionBreaks:[],tables:[],textRuns:[],customBlocks:[]},tableSource:{},id:(c=e==null?void 0:e.unitId)!=null?c:""};return n&&(this._styleRules=[...n.stylesRules],this._afterProcessRules=[...n.afterProcessRules]),this._tableCache=[],this._styleCache.clear(),this._process(null,o.childNodes,r),this._styleCache.clear(),this._styleRules=[],this._afterProcessRules=[],r}_process(t,e,n){var a,r,c,l;const o=n.body;for(const A of e)if(A.nodeType===Node.TEXT_NODE){if(((a=A.nodeValue)==null?void 0:a.trim())==="")continue;const d=(r=A.nodeValue)==null?void 0:r.replace(/[\r\n]/g,"");let u;t&&this._styleCache.has(t)&&(u=this._styleCache.get(t)),o.dataStream+=d,u&&Object.getOwnPropertyNames(u).length&&o.textRuns.push({st:o.dataStream.length-d.length,ed:o.dataStream.length,ts:u})}else if(A.nodeName==="IMG"){const d=A,u=d.dataset.imageSourceType,m=u===jn.ImageSourceType.UUID?d.dataset.source:d.src;if(m&&u){const h=Number(d.dataset.width||100),f=Number(d.dataset.height||100),g=Number(d.dataset.docTransformWidth||h),p=Number(d.dataset.docTransformHeight||f),S=s.Tools.generateRandomId(6);(l=(c=n.body)==null?void 0:c.customBlocks)==null||l.push({startIndex:o.dataStream.length,blockId:S}),o.dataStream+="\b",n.drawings||(n.drawings={}),n.drawings[S]={drawingId:S,title:"",description:"",imageSourceType:u,source:m,transform:{width:h,height:f,left:0},docTransform:{size:{width:g,height:p},angle:0,positionH:{relativeFrom:s.ObjectRelativeFromH.PAGE,posOffset:0},positionV:{relativeFrom:s.ObjectRelativeFromV.PARAGRAPH,posOffset:0}},layoutType:s.PositionedObjectLayoutType.INLINE,drawingType:s.DrawingTypeEnum.DRAWING_IMAGE,unitId:n.id||"",subUnitId:n.id||""}}}else{if(s.skipParseTagNames.includes(A.nodeName.toLowerCase()))continue;if(A.nodeType===Node.ELEMENT_NODE){const d=A,u=this._processBeforeLink(d,n),m=t?this._styleCache.get(t):{},h=this._styleRules.find(({filter:S})=>ms(A,S)),f=h?h.getStyle(A):Oi(A);this._styleCache.set(A,{...m,...f});const{childNodes:g}=A;this._processBeforeTable(A,n),this._process(A,g,n),this._processAfterTable(A,n);const p=this._afterProcessRules.find(({filter:S})=>ms(A,S));p&&p.handler(n,A),this._processAfterLink(d,n,u)}}}_processBeforeTable(t,e){var a;const n=t.tagName.toUpperCase(),o=e.body;switch(n){case"TABLE":{o.dataStream[o.dataStream.length-1]!=="\r"&&(o.dataStream+="\r",o.paragraphs==null&&(o.paragraphs=[]),(a=o.paragraphs)==null||a.push({startIndex:o.dataStream.length-1}));const r=vi(0,0,fs);this._tableCache.push({table:r,startIndex:o.dataStream.length}),o.dataStream+=s.DataStreamTreeTokenType.TABLE_START;break}case"TR":{const r=dn(0);this._tableCache[this._tableCache.length-1].table.tableRows.push(r),o.dataStream+=s.DataStreamTreeTokenType.TABLE_ROW_START;break}case"TD":{const r=An(),c=this._tableCache[this._tableCache.length-1].table;c.tableRows[c.tableRows.length-1].tableCells.push(r),o.dataStream+=s.DataStreamTreeTokenType.TABLE_CELL_START;break}}}_processAfterTable(t,e){var r,c;const n=t.tagName.toUpperCase(),o=e.body;e.tableSource==null&&(e.tableSource={}),o.tables==null&&(o.tables=[]),o.sectionBreaks==null&&(o.sectionBreaks=[]);const{tableSource:a}=e;switch(n){case"TABLE":{const l=this._tableCache.pop(),{startIndex:A,table:d}=l,u=d.tableRows[0].tableCells.length,m=un(fs/u),h=[...new Array(u).fill(null).map(()=>s.Tools.deepClone(m))];d.tableColumns=h,a[d.tableId]=d,o.dataStream+=s.DataStreamTreeTokenType.TABLE_END,o.tables.push({startIndex:A,endIndex:o.dataStream.length,tableId:d.tableId});break}case"TR":{o.dataStream+=s.DataStreamTreeTokenType.TABLE_ROW_END;break}case"TD":{o.dataStream[o.dataStream.length-1]!=="\r"&&((r=o.paragraphs)==null||r.push({startIndex:o.dataStream.length}),o.dataStream+="\r"),(c=o.sectionBreaks)==null||c.push({startIndex:o.dataStream.length}),o.dataStream+=`
|
|
98
|
-
${s.DataStreamTreeTokenType.TABLE_CELL_END}`;break}}}_processBeforeLink(t,e){return e.body.dataStream.length}_processAfterLink(t,e,n){var r,c;const o=e.body,a=t;a.tagName.toUpperCase()==="A"&&(o.customRanges=(r=o.customRanges)!=null?r:[],o.customRanges.push({startIndex:n,endIndex:o.dataStream.length-1,rangeId:(c=a.dataset.rangeid)!=null?c:s.generateRandomId(),rangeType:s.CustomRangeType.HYPERLINK,properties:{url:a.href}}))}};R(Vn,"_pluginList",[]);let ft=Vn;const
|
|
125
|
+
${s.DataStreamTreeTokenType.TABLE_CELL_END}`,t=[],e=[];return t.push({startIndex:1,paragraphStyle:{spaceAbove:{v:3},lineSpacing:2,spaceBelow:{v:0}}}),e.push({startIndex:2}),{dataStream:i,paragraphs:t,sectionBreaks:e}}function Hr(i,t,e){var u,m,h;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o;let l=null;const A=(h=(m=(u=e.getBody())==null?void 0:u.tables)==null?void 0:m.find(f=>c>=f.startIndex&&c<=f.endIndex))==null?void 0:h.tableId;let d=0;for(const f of r.getChildren()){for(const g of f.children){const{children:p}=g,S=p[0];if(S){for(const I of S.children)if(I.startIndex<=c&&c<=I.endIndex){d=S.children.indexOf(I),l=I;break}}if(l)break}if(l)break}return l==null||A==null?null:{offset:t===0?l.startIndex:l.endIndex+1,colCount:l.children.length,tableId:A,insertRowIndex:t===0?d:d+1}}function kr(i,t,e){var h,f,g;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o,l=(g=(f=(h=e.getBody())==null?void 0:h.tables)==null?void 0:f.find(p=>c>=p.startIndex&&c<=p.endIndex))==null?void 0:g.tableId,A=[];let d=null,u=-1;for(const p of r.getChildren()){for(const S of p.children){const{children:I}=S,E=I[0];if(E){if(c<E.startIndex||c>E.endIndex)continue;d=E;for(const T of E.children){for(const O of T.children){const v=T.children.indexOf(O);if(c>=O.startIndex&&c<=O.endIndex){u=v;break}}if(u!==-1)break}}if(d)break}if(d)break}if(d==null||l==null||u===-1)return null;let m=0;for(const p of d.children){const S=p.children[u],I=t===0?S.startIndex:S.endIndex+1;A.push(I-m),m=I}return{offsets:A,tableId:l,columnIndex:u,rowCount:d.children.length}}function Vr(i,t,e){const n=[];let o=t[e].size.width.v,a=0;for(let r=0;r<t.length;r++)a+=t[r].size.width.v;a+=o;for(let r=0;r<t.length;r++)n.push(t[r].size.width.v/a*i);return o=o/a*i,{widths:n,newColWidth:o}}function ls(i,t){var m,h,f;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(f=(h=(m=t.getBody())==null?void 0:m.tables)==null?void 0:h.find(g=>e>=g.startIndex&&n<=g.endIndex))==null?void 0:f.tableId,c=[];let l=-1,A=0,d=-1,u=!1;for(const g of a.getChildren()){for(const p of g.children){const{children:S}=p,I=S[0];if(I){if(e<I.startIndex||n>I.endIndex)continue;d=I.startIndex+3;for(const E of I.children){const T=I.children.indexOf(E),{startIndex:O,endIndex:v}=E;e>=O&&e<=v?(l=O,c.push(T),A+=v-O+1):(O>e&&v<n||n>=O&&n<=v)&&(c.push(T),A+=v-O+1),c.length===I.children.length&&(u=!0)}}if(c.length)break}if(c.length)break}return r==null||c.length===0?null:{tableId:r,rowIndexes:c,offset:l,len:A,cursor:d,selectWholeTable:u}}function jr(i,t){var f,g,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(g=(f=t.getBody())==null?void 0:f.tables)==null?void 0:g.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null;const A=[];let d=-1,u=-1,m=-1;for(const S of a.getChildren()){for(const I of S.children){const{children:E}=I,T=E[0];if(T){if(e<T.startIndex||n>T.endIndex)continue;l=T;for(const O of T.children)for(const v of O.children){const b=O.children.indexOf(v);e>=v.startIndex&&e<=v.endIndex&&(u=b),n>=v.startIndex&&n<=v.endIndex&&(m=b)}}if(l)break}if(l)break}if(l==null||r==null)return null;for(let S=u;S<=m;S++)A.push(S);let h=0;for(const S of l.children){const I=S.children[u],E=S.children[m];c.push({retain:I.startIndex-h,delete:E.endIndex-I.startIndex+1}),h=E.endIndex+1}return d=l.startIndex+3,{offsets:c,tableId:r,columnIndexes:A,cursor:d,selectWholeTable:A.length===l.children[0].children.length,rowCount:l.children.length}}function As(i,t){var d,u,m;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(m=(u=(d=t.getBody())==null?void 0:d.tables)==null?void 0:u.find(h=>e>=h.startIndex&&n<=h.endIndex))==null?void 0:m.tableId;let c=-1,l=0,A=-1;for(const h of a.getChildren()){for(const f of h.children){const{children:g}=f,p=g[0];if(p){if(e<p.startIndex||n>p.endIndex)continue;c=p.startIndex,l=p.endIndex-p.startIndex+1,A=p.startIndex}if(p)break}if(l>0)break}return r==null?null:{tableId:r,offset:c,len:l,cursor:A}}function Wr(i,t){var f,g,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(g=(f=t.getBody())==null?void 0:f.tables)==null?void 0:g.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null,A=-1,d=-1,u=-1,m=-1;for(const S of a.getChildren()){for(const I of S.children){const{children:E}=I,T=E[0];if(T){if(e<T.startIndex||n>T.endIndex)continue;l=T;for(const O of T.children){const v=T.children.indexOf(O);for(const b of O.children){const _=O.children.indexOf(b);e>=b.startIndex&&e<=b.endIndex&&(d=v,u=_),n>=b.startIndex&&n<=b.endIndex&&(m=_)}}}if(l)break}if(l)break}if(l==null||r==null||d===-1)return null;const h=l.children[d];for(let S=u;S<=m;S++){const I=h.children[S];c.push({retain:I.startIndex+1,delete:I.endIndex-I.startIndex-3})}return A=l.startIndex+3,{offsets:c,tableId:r,cursor:A,rowCount:l.children.length}}var Ci=(i=>(i[i.NEXT=0]="NEXT",i[i.PREV=1]="PREV",i))(Ci||{});function ds(i,t,e){const{startOffset:n}=t;let o=null;for(const A of i.getChildren()){for(const d of A.children){const u=d.children[0];if(u&&n>u.startIndex&&n<u.endIndex){o=u;break}}if(o)break}if(o==null)return null;let a=-1,r=-1,c=null;for(const A of o.children){for(const d of A.children)if(n>d.startIndex&&n<d.endIndex){a=A.children.indexOf(d),r=o.children.indexOf(A),c=A;break}if(a>-1)break}if(a===-1||r===-1||c==null)return null;let l=null;if(e===0){if(l=c.children[a+1],!l){const A=o.children[r+1];A&&(l=A.children[0])}}else if(l=c.children[a-1],!l){const A=o.children[r-1];A&&(l=A.children[A.children.length-1])}if(l){const{startIndex:A,endIndex:d}=l;return{startOffset:A+1,endOffset:d-2}}}function us(i,t){const e=[],{customBlocks:n=[]}=i;for(const o of t){const{startOffset:a,endOffset:r}=o;if(!(a==null||r==null))for(const c of n){const{startIndex:l}=c;l>=a&&l<r&&e.push(c.blockId)}}return e}function zr(i){return i.some(t=>{const{startNodePosition:e}=t;return e?(e==null?void 0:e.path.indexOf("cells"))>-1:!1})}const Gr=s.SHEET_EDITOR_UNITS,Ti={id:"doc.command.inner-paste",type:s.CommandType.COMMAND,handler:async(i,t)=>{var B,w,x,U,L,F;const{segmentId:e,textRanges:n,doc:o}=t,a=i.get(s.ICommandService),r=i.get(D.DocSelectionManagerService),c=i.get(s.IUniverInstanceService),l=r.getTextRanges(),A=r.getRectRanges(),{body:d,tableSource:u,drawings:m}=o;if(!Array.isArray(l)||l.length===0||d==null)return!1;const h=c.getCurrentUniverDocInstance(),f=h==null?void 0:h.getSelfOrHeaderFooterModel(e).getBody();if(h==null||f==null)return!1;const g=h.getUnitId(),p={id:D.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:n,segmentId:e}},S=new s.MemoryCursor;S.reset();const I=new s.TextX,E=s.JSONX.getInstance(),T=[],O=!!((B=d.tables)!=null&&B.length),v=!!((w=d.customBlocks)!=null&&w.length);if(O&&e||O&&zr(l)||l.length&&(A!=null&&A.length))return!1;for(let H=0;H<l.length;H++){const k=l[H],{startOffset:X,endOffset:G,collapsed:W}=k,V=X-S.cursor,K=s.Tools.deepClone(d);if(O)for(const j of K.tables){const{tableId:z}=j,Y=s.Tools.generateRandomId(6);j.tableId=Y;const ie=s.Tools.deepClone(u[z]);ie.tableId=Y;const ce=E.insertOp(["tableSource",Y],ie);T.push(ce)}if(v&&m){const j=(U=(x=h.getSnapshot().drawingsOrder)==null?void 0:x.length)!=null?U:0;for(const z of K.customBlocks){const{blockId:Y}=z,ie=s.Tools.generateRandomId(6);z.blockId=ie;const ce=s.Tools.deepClone(m[Y]);ce.drawingId=ie;const ge=E.insertOp(["drawings",ie],ce),le=E.insertOp(["drawingsOrder",j],ie);T.push(ge),T.push(le)}}const ee=zn((L=f.customRanges)!=null?L:[],G,Gr.includes(g)),Z=Gn((F=f.customDecorations)!=null?F:[],G);if(ee&&(K.customRanges=[{...ee,startIndex:0,endIndex:d.dataStream.length-1}]),Z.length&&(K.customDecorations=Z.map(j=>({...j,startIndex:0,endIndex:d.dataStream.length-1}))),W)I.push({t:s.TextXActionType.RETAIN,len:V}),I.push({t:s.TextXActionType.INSERT,body:K,len:d.dataStream.length});else{const j=s.BuildTextUtils.selection.delete([k],d,S.cursor,K,l.length===1);I.push(...j)}S.reset(),S.moveCursor(G)}const b=te(h,e);return T.push(E.editOp(I.serialize(),b)),p.params.actions=T.reduce((H,k)=>s.JSONX.compose(H,k),null),!!a.syncExecuteCommand(p.id,p.params)}};function Yr(i,t){const{startOffset:e,endOffset:n}=i,o=t.some(r=>r.startIndex===n),a=Math.max(e,o?n-1:n);return{...i,endOffset:a,collapsed:e===a}}function Xr(i,t,e){var f,g;const n=t.getSelfOrHeaderFooterModel(e).getBody(),o=new s.TextX,a=s.JSONX.getInstance(),r=[];if(n==null)return r;const{tables:c=[]}=n,l=new s.MemoryCursor;l.reset();for(let p=0;p<i.length;p++){const S=Yr(i[p],c),{startOffset:I,endOffset:E,collapsed:T}=S,O=I-l.cursor;T?o.push({t:s.TextXActionType.RETAIN,len:O}):o.push(...s.BuildTextUtils.selection.delete([S],n,l.cursor,null,!1)),l.reset(),l.moveCursor(E)}const A=te(t,e);r.push(a.editOp(o.serialize(),A));const d=us(n,i),u=(f=t.getDrawings())!=null?f:{},m=(g=t.getDrawingsOrder())!=null?g:[],h=d.sort((p,S)=>m.indexOf(p)>m.indexOf(S)?-1:m.indexOf(p)<m.indexOf(S)?1:0);if(h.length>0)for(const p of h){const S=u[p],I=m.indexOf(p);if(S==null||I<0)continue;const E=a.removeOp(["drawings",p],S),T=a.removeOp(["drawingsOrder",I],p);r.push(E),r.push(T)}return r.reduce((p,S)=>s.JSONX.compose(p,S),null)}function Kr(i,t,e,n){const o=[];if(t.getSelfOrHeaderFooterModel(n).getBody()==null)return o;const r=new s.TextX,c=s.JSONX.getInstance(),l=new s.MemoryCursor;l.reset();for(const d of i){const{startOffset:u,endOffset:m,spanEntireRow:h,spanEntireTable:f}=d;if(!(u==null||m==null))if(f){const g=As({startOffset:u,endOffset:m,segmentId:n},e);if(g==null)continue;const{offset:p,len:S,tableId:I}=g;p-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:p-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:S});const E=c.removeOp(["tableSource",I]);o.push(E),l.moveCursorTo(p+S)}else if(h){const g=ls({startOffset:u,endOffset:m,segmentId:n},e);if(g==null)continue;const{offset:p,rowIndexes:S,len:I,tableId:E}=g;p-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:p-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:I});for(const T of S.reverse()){const O=c.removeOp(["tableSource",E,"tableRows",T]);o.push(O)}l.moveCursorTo(p+I)}else{const g=Wr({startOffset:u,endOffset:m,segmentId:n},e);if(g==null)continue;const{offsets:p}=g;for(const S of p){const{retain:I,delete:E}=S;I-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:I-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:E}),l.moveCursorTo(I+E)}}}const A=te(t,n);return o.push(c.editOp(r.serialize(),A)),o.reduce((d,u)=>s.JSONX.compose(d,u),null)}function hs(i,t,e,n,o){let a=[];if(Array.isArray(i)&&(i==null?void 0:i.length)!==0&&(a=Xr(i,e,o)),Array.isArray(t)&&(t==null?void 0:t.length)!==0){const r=Kr(t,e,n,o);a==null||a.length===0?a=r:a=s.JSONX.compose(a,s.JSONX.transform(r,a,"right"))}return a}const tt={id:"doc.command.inner-cut",type:s.CommandType.COMMAND,handler:async(i,t)=>{var g,p;const{segmentId:e,textRanges:n}=t,o=i.get(s.ICommandService),a=i.get(D.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=(g=t.selections)!=null?g:a.getTextRanges(),l=a.getRectRanges();if((!Array.isArray(c)||c.length===0)&&(!Array.isArray(l)||l.length===0))return!1;const A=(p=r.getCurrentUniverDocInstance())==null?void 0:p.getUnitId();if(!A)return!1;const d=r.getUniverDocInstance(A);if(d==null)return!1;const u=me(i,A);if(u==null)return!1;const m=u.getViewModel(),h={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:n}};return h.params.actions=hs(c,l,d,m,e),!!o.syncExecuteCommand(h.id,h.params)}};var de=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(de||{});const gs="doc.command.insert-text",hn={id:gs,type:s.CommandType.COMMAND,handler:async(i,t)=>{var v;const e=i.get(s.ICommandService),{range:n,segmentId:o,body:a,unitId:r,cursorOffset:c}=t,l=i.get(D.DocSelectionManagerService),d=i.get(s.IUniverInstanceService).getUnit(r,s.UniverInstanceType.UNIVER_DOC);if(d==null)return!1;const u=l.getActiveTextRange(),m=d.getSelfOrHeaderFooterModel((v=u==null?void 0:u.segmentId)!=null?v:"").getBody();if(m==null)return!1;const{startOffset:h,collapsed:f}=n,g=c!=null?c:a.dataStream.length,p=[{startOffset:h+g,endOffset:h+g,style:u==null?void 0:u.style,collapsed:f}],S={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:p,debounce:!0}},I=new s.TextX,E=s.JSONX.getInstance();if(f)h>0&&I.push({t:s.TextXActionType.RETAIN,len:h}),I.push({t:s.TextXActionType.INSERT,body:a,len:a.dataStream.length});else{const b=s.BuildTextUtils.selection.delete([n],m,0,a);I.push(...b)}S.params.textRanges=[{startOffset:h+g,endOffset:h+g,collapsed:f}];const T=te(d,o);return S.params.actions=E.editOp(I.serialize(),T),!!e.syncExecuteCommand(S.id,S.params)}},mt={id:"doc.command.delete-text",type:s.CommandType.COMMAND,handler:async(i,t)=>{var O;const e=i.get(s.ICommandService),n=i.get(s.IUniverInstanceService),{range:o,segmentId:a,unitId:r,direction:c,len:l=1}=t,A=n.getUnit(r,s.UniverInstanceType.UNIVER_DOC),d=A==null?void 0:A.getSelfOrHeaderFooterModel(a).getBody();if(A==null||d==null)return!1;const{startOffset:u}=o;let m=c===de.LEFT?u-l:u,h=c===de.LEFT?u-1:u+l-1;const f=(O=d.customRanges)==null?void 0:O.find(v=>v.startIndex<=m&&v.endIndex>=h);f!=null&&f.wholeEntity&&(m=f.startIndex,h=Math.max(h,f.endIndex));const g={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:[{startOffset:m,endOffset:m,collapsed:!0}],debounce:!0}},p=new s.TextX,S=s.JSONX.getInstance();p.push({t:s.TextXActionType.RETAIN,len:m-0}),p.push({t:s.TextXActionType.DELETE,len:h-m+1});const E=te(A,a);return g.params.actions=S.editOp(p.serialize(),E),!!e.syncExecuteCommand(g.id,g.params)}},bi={id:"doc.command.update-text",type:s.CommandType.COMMAND,handler:async(i,t)=>{const{range:e,segmentId:n,updateBody:o,coverType:a,unitId:r,textRanges:c}=t,l=i.get(s.ICommandService),d=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(d==null)return!1;const u={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:c}},m=new s.TextX,h=s.JSONX.getInstance(),{startOffset:f,endOffset:g}=e;m.push({t:s.TextXActionType.RETAIN,len:f}),m.push({t:s.TextXActionType.RETAIN,body:o,len:g-f,coverType:a});const p=te(d,n);return u.params.actions=h.editOp(m.serialize(),p),!!l.syncExecuteCommand(u.id,u.params)}},gn={id:"doc.command.delete-custom-block",type:s.CommandType.COMMAND,handler:async(i,t)=>{var x;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=e.getActiveTextRange(),r=n.getCurrentUniverDocInstance();if(a==null||r==null)return!1;const{direction:c,range:l,unitId:A,drawingId:d}=t,{startOffset:u,segmentId:m,style:h}=a,f=c===de.LEFT?u-1:u,g=[{startOffset:f,endOffset:f,style:h}],p={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:g,prevTextRanges:[l]}},S=new s.TextX,I=s.JSONX.getInstance(),E=[];u>0&&S.push({t:s.TextXActionType.RETAIN,len:c===de.LEFT?u-1:u}),S.push({t:s.TextXActionType.DELETE,len:1});const T=te(r,m);E.push(I.editOp(S.serialize(),T));const O=((x=r.getDrawings())!=null?x:{})[d],b=r.getDrawingsOrder().indexOf(d),_=I.removeOp(["drawings",d],O),B=I.removeOp(["drawingsOrder",b],d);return E.push(_),E.push(B),p.params.actions=E.reduce((U,L)=>s.JSONX.compose(U,L),null),!!o.syncExecuteCommand(p.id,p.params)}},mn={id:"doc.command.merge-two-paragraph",type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),{direction:a,range:r}=t,c=e.getActiveTextRange(),l=e.getTextRanges();if(c==null||l==null)return!1;const{segmentId:A,style:d}=c,u=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),m=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||m==null)return!1;const h=c,f=u.getUnitId(),{startOffset:g,collapsed:p}=h;if(!p)return!1;const S=a===de.LEFT?g:g+1;let I,E;for(const x of m.paragraphs){if(x.startIndex>=S){E=x;break}I=x}if(I==null||E==null)return!1;const T=a===de.LEFT?g-1:g,O=[{startOffset:T,endOffset:T,style:d}],v={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:O,prevTextRanges:[r]}},b=new s.TextX,_=s.JSONX.getInstance();I.startIndex>0&&b.push({t:s.TextXActionType.RETAIN,len:I.startIndex}),b.push({t:s.TextXActionType.DELETE,len:1}),E.startIndex>I.startIndex+1&&b.push({t:s.TextXActionType.RETAIN,len:E.startIndex-I.startIndex-1}),b.push({t:s.TextXActionType.RETAIN,len:1,coverType:s.UpdateDocsAttributeType.REPLACE,body:{dataStream:"",paragraphs:[{...s.Tools.deepClone(I),startIndex:0}]}});const B=te(u,A);return v.params.actions=_.editOp(b.serialize(),B),!!o.syncExecuteCommand(v.id,v.params)}};function fn(i,t){let e=0;if(i==null||i.length===0){if(typeof t[0].startOffset=="number"){const n=t[0],{spanEntireRow:o,spanEntireTable:a}=n;a?e=n.startOffset-3:o?n.startRow>0?e=n.startOffset-6:e=n.startOffset:e=t[0].startOffset}}else if(i.length>0&&t.length>0){const n=i[0],o=t[0];if(n.startOffset!=null&&o.startOffset!=null){if(n.startOffset<o.startOffset)e=n.startOffset;else if(n.startOffset>=o.startOffset){const{spanEntireRow:a,spanEntireTable:r}=o;r?e=o.startOffset-3:a&&(e=o.startOffset-6)}}}return e}const Qt={id:"doc.command.delete-left",type:s.CommandType.COMMAND,handler:async i=>{var B,w;const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService);let o=!0;const a=e.getCurrentUniverDocInstance();if(a==null)return!1;const r=a.getUnitId(),c=me(i,r),l=t.getActiveTextRange(),A=t.getRectRanges(),d=t.getTextRanges(),u=c==null?void 0:c.getSkeleton();if(u==null)return!1;if(A!=null&&A.length){const x=fn(d,A),U=A[0].segmentId,L=[{startOffset:x,endOffset:x}];return n.executeCommand(tt.id,{segmentId:U,textRanges:L})}if(l==null||d==null)return!1;const{segmentId:m,style:h,segmentPage:f}=l,g=a.getSelfOrHeaderFooterModel(m).getBody();if(g==null)return!1;const p=l,{startOffset:S,collapsed:I}=p,E=u.findNodeByCharIndex(S,m,f),T=M.hasListGlyph(E),O=M.isIndentByGlyph(E,g);let v=S;const b=u.findNodeByCharIndex(S-1,m,f);if(M.isFirstGlyph(E)&&b!==E&&(T===!0||O===!0)&&I){const x=M.getParagraphByGlyph(E,g);if(x==null)return!1;const U=x==null?void 0:x.startIndex,L={startIndex:0},F=x.paragraphStyle;if(T===!0){const k=x.paragraphStyle;if(k){L.paragraphStyle=k;const{hanging:X}=k;X&&(L.paragraphStyle.indentStart=X,L.paragraphStyle.hanging=void 0)}}else if(O===!0){const k=x.bullet;k&&(L.bullet=k),F!=null&&(L.paragraphStyle={...F},delete L.paragraphStyle.hanging,delete L.paragraphStyle.indentStart)}const H=[{startOffset:v,endOffset:v,style:h}];o=await n.executeCommand(bi.id,{unitId:a.getUnitId(),updateBody:{dataStream:"",paragraphs:[{...L}]},range:{startOffset:U,endOffset:U+1},textRanges:H,coverType:s.UpdateDocsAttributeType.REPLACE,segmentId:m})}else if(I===!0){if(b==null)return!0;if(b.content==="\r")o=await n.executeCommand(mn.id,{direction:de.LEFT,range:p});else if(b.streamType==="\b"){const x=(w=a.getSnapshot().drawings)==null?void 0:w[(B=b.drawingId)!=null?B:""];if(x==null)return!0;if(x.layoutType===s.PositionedObjectLayoutType.INLINE){const L=a.getUnitId();o=await n.executeCommand(gn.id,{direction:de.LEFT,range:l,unitId:L,drawingId:b.drawingId})}else{const L=u.findNodeByCharIndex(S-2);if(L==null)return!0;v-=b.count,v-=L.count;const F=[{startOffset:v,endOffset:v,style:h}];o=await n.executeCommand(mt.id,{unitId:a.getUnitId(),range:{...l,startOffset:l.startOffset-1,endOffset:l.endOffset-1},segmentId:m,direction:de.LEFT,len:L.count,textRanges:F})}}else v-=b.count,o=await n.executeCommand(mt.id,{unitId:a.getUnitId(),range:p,segmentId:m,direction:de.LEFT,len:b.count})}else{const x=ms(p,[p]);o=await n.executeCommand(tt.id,{segmentId:m,textRanges:x,selections:[p]})}return o}},yi={id:"doc.command.delete-right",type:s.CommandType.COMMAND,handler:async i=>{var E,T;const t=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(!n)return!1;const o=me(i,n.getUnitId()),a=i.get(s.ICommandService),r=t.getActiveTextRange(),c=t.getRectRanges(),l=t.getTextRanges(),A=o==null?void 0:o.getSkeleton();if(c!=null&&c.length){const O=fn(l,c),v=c[0].segmentId,b=[{startOffset:O,endOffset:O}];return a.executeCommand(tt.id,{segmentId:v,textRanges:b})}if(r==null||A==null||l==null)return!1;const{segmentId:d,style:u,segmentPage:m}=r,h=n==null?void 0:n.getSelfOrHeaderFooterModel(d).getBody();if(!n||!h)return!1;const f=r,{startOffset:g,endOffset:p,collapsed:S}=f;if(g===h.dataStream.length-2&&S)return!0;let I=!1;if(S===!0){const O=A.findNodeByCharIndex(g,d,m),v=A.findNodeByCharIndex(g+1);if(O.streamType===s.DataStreamTreeTokenType.PARAGRAPH&&(v==null?void 0:v.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK)return!1;if(O.content==="\r")I=await a.executeCommand(mn.id,{direction:de.RIGHT,range:r});else if(O.streamType==="\b"){const b=(T=n.getSnapshot().drawings)==null?void 0:T[(E=O.drawingId)!=null?E:""];if(b==null)return!0;if(b.layoutType===s.PositionedObjectLayoutType.INLINE){const B=n.getUnitId();I=await a.executeCommand(gn.id,{direction:de.RIGHT,range:r,unitId:B,drawingId:O.drawingId})}else{if(v==null)return!0;const B=[{startOffset:g+1,endOffset:g+1,style:u}];I=await a.executeCommand(mt.id,{unitId:n.getUnitId(),range:{...r,startOffset:g+1,endOffset:p+1},segmentId:d,direction:de.RIGHT,textRanges:B,len:v.count})}}else{const b=[{startOffset:g,endOffset:g,style:u}];I=await a.executeCommand(mt.id,{unitId:n.getUnitId(),range:f,segmentId:d,direction:de.RIGHT,textRanges:b,len:O.count})}}else{const O=ms(f,[f]);I=await a.executeCommand(tt.id,{segmentId:d,textRanges:O,selections:[f]})}return I}};function ms(i,t){let e=i.endOffset;for(const o of t){const{startOffset:a,endOffset:r}=o;a==null||r==null||r<=i.endOffset&&(e-=r-a)}return[{startOffset:e,endOffset:e,style:i.style}]}const Jr=10,Zr=6;function qr(){return s.Tools.generateRandomId(Zr)}function $r(i){const t=i.match(/data-copy-id="([^\s]+)"/);return t&&t[1]?t[1]:null}class ec{constructor(){R(this,"_cache",new s.LRUMap(Jr))}set(t,e){this._cache.set(t,e)}get(t){return this._cache.get(t)}clear(){this._cache.clear()}}const Ri=new ec;function Oi(i){const t=i.style,e={},n=i.tagName.toLowerCase();switch(n){case"b":case"em":case"strong":{e.bl=s.BooleanNumber.TRUE;break}case"s":{e.st={s:s.BooleanNumber.TRUE};break}case"u":{e.ul={s:s.BooleanNumber.TRUE};break}case"i":{e.it=s.BooleanNumber.TRUE;break}case"sub":case"sup":{e.va=n==="sup"?s.BaselineOffset.SUPERSCRIPT:s.BaselineOffset.SUBSCRIPT;break}}for(let o=0;o<t.length;o++){const a=t[o],r=t.getPropertyValue(a);switch(a){case"font-family":{e.ff=r.replace(/^"/g,"").replace(/"$/g,"");break}case"font-size":{const c=Number.parseInt(r);Number.isNaN(c)||(r.endsWith("pt")?e.fs=c:r.endsWith("px")&&(e.fs=M.pixelToPt(c)));break}case"font-style":{r==="italic"&&(e.it=s.BooleanNumber.TRUE);break}case"font-weight":{(Number(r)>400||String(r)==="bold")&&(e.bl=s.BooleanNumber.TRUE);break}case"text-decoration":{/underline/.test(r)?e.ul={s:s.BooleanNumber.TRUE}:/overline/.test(r)?e.ol={s:s.BooleanNumber.TRUE}:/line-through/.test(r)&&(e.st={s:s.BooleanNumber.TRUE});break}case"color":{try{const c=new s.ColorKit(r);c.isValid&&(e.cl={rgb:c.toRgbString()})}catch{}break}case"background-color":{const c=new s.ColorKit(r);c.isValid&&(e.bg={rgb:c.toRgbString()});break}}}return e}function tc(i){const t=new DOMParser,e=`<x-univer id="univer-root">${i}</x-univer>`;return t.parseFromString(e,"text/html").querySelector("#univer-root")}function fs(i,t){const e=i.tagName.toLowerCase();return typeof t=="string"?e===t:Array.isArray(t)?t.some(n=>n===e):t(i)}const ps=600,Vn=class Vn{constructor(){R(this,"_tableCache",[]);R(this,"_styleCache",new Map);R(this,"_styleRules",[]);R(this,"_afterProcessRules",[])}static use(t){if(this._pluginList.includes(t))throw new Error(`Univer paste plugin ${t.name} already added`);this._pluginList.push(t)}convert(t,e={}){var c;const n=Vn._pluginList.find(l=>l.checkPasteType(t)),o=tc(t),r={body:{dataStream:"",paragraphs:[],sectionBreaks:[],tables:[],textRuns:[],customBlocks:[]},tableSource:{},id:(c=e==null?void 0:e.unitId)!=null?c:""};return n&&(this._styleRules=[...n.stylesRules],this._afterProcessRules=[...n.afterProcessRules]),this._tableCache=[],this._styleCache.clear(),this._process(null,o.childNodes,r),this._styleCache.clear(),this._styleRules=[],this._afterProcessRules=[],r}_process(t,e,n){var a,r,c,l;const o=n.body;for(const A of e)if(A.nodeType===Node.TEXT_NODE){if(((a=A.nodeValue)==null?void 0:a.trim())==="")continue;const d=(r=A.nodeValue)==null?void 0:r.replace(/[\r\n]/g,"");let u;t&&this._styleCache.has(t)&&(u=this._styleCache.get(t)),o.dataStream+=d,u&&Object.getOwnPropertyNames(u).length&&o.textRuns.push({st:o.dataStream.length-d.length,ed:o.dataStream.length,ts:u})}else if(A.nodeName==="IMG"){const d=A,u=d.dataset.imageSourceType,m=u===jn.ImageSourceType.UUID?d.dataset.source:d.src;if(m&&u){const h=Number(d.dataset.width||100),f=Number(d.dataset.height||100),g=Number(d.dataset.docTransformWidth||h),p=Number(d.dataset.docTransformHeight||f),S=s.Tools.generateRandomId(6);(l=(c=n.body)==null?void 0:c.customBlocks)==null||l.push({startIndex:o.dataStream.length,blockId:S}),o.dataStream+="\b",n.drawings||(n.drawings={}),n.drawings[S]={drawingId:S,title:"",description:"",imageSourceType:u,source:m,transform:{width:h,height:f,left:0},docTransform:{size:{width:g,height:p},angle:0,positionH:{relativeFrom:s.ObjectRelativeFromH.PAGE,posOffset:0},positionV:{relativeFrom:s.ObjectRelativeFromV.PARAGRAPH,posOffset:0}},layoutType:s.PositionedObjectLayoutType.INLINE,drawingType:s.DrawingTypeEnum.DRAWING_IMAGE,unitId:n.id||"",subUnitId:n.id||""}}}else{if(s.skipParseTagNames.includes(A.nodeName.toLowerCase()))continue;if(A.nodeType===Node.ELEMENT_NODE){const d=A,u=this._processBeforeLink(d,n),m=t?this._styleCache.get(t):{},h=this._styleRules.find(({filter:S})=>fs(A,S)),f=h?h.getStyle(A):Oi(A);this._styleCache.set(A,{...m,...f});const{childNodes:g}=A;this._processBeforeTable(A,n),this._process(A,g,n),this._processAfterTable(A,n);const p=this._afterProcessRules.find(({filter:S})=>fs(A,S));p&&p.handler(n,A),this._processAfterLink(d,n,u)}}}_processBeforeTable(t,e){var a;const n=t.tagName.toUpperCase(),o=e.body;switch(n){case"TABLE":{o.dataStream[o.dataStream.length-1]!=="\r"&&(o.dataStream+="\r",o.paragraphs==null&&(o.paragraphs=[]),(a=o.paragraphs)==null||a.push({startIndex:o.dataStream.length-1}));const r=vi(0,0,ps);this._tableCache.push({table:r,startIndex:o.dataStream.length}),o.dataStream+=s.DataStreamTreeTokenType.TABLE_START;break}case"TR":{const r=dn(0);this._tableCache[this._tableCache.length-1].table.tableRows.push(r),o.dataStream+=s.DataStreamTreeTokenType.TABLE_ROW_START;break}case"TD":{const r=An(),c=this._tableCache[this._tableCache.length-1].table;c.tableRows[c.tableRows.length-1].tableCells.push(r),o.dataStream+=s.DataStreamTreeTokenType.TABLE_CELL_START;break}}}_processAfterTable(t,e){var r,c;const n=t.tagName.toUpperCase(),o=e.body;e.tableSource==null&&(e.tableSource={}),o.tables==null&&(o.tables=[]),o.sectionBreaks==null&&(o.sectionBreaks=[]);const{tableSource:a}=e;switch(n){case"TABLE":{const l=this._tableCache.pop(),{startIndex:A,table:d}=l,u=d.tableRows[0].tableCells.length,m=un(ps/u),h=[...new Array(u).fill(null).map(()=>s.Tools.deepClone(m))];d.tableColumns=h,a[d.tableId]=d,o.dataStream+=s.DataStreamTreeTokenType.TABLE_END,o.tables.push({startIndex:A,endIndex:o.dataStream.length,tableId:d.tableId});break}case"TR":{o.dataStream+=s.DataStreamTreeTokenType.TABLE_ROW_END;break}case"TD":{o.dataStream[o.dataStream.length-1]!=="\r"&&((r=o.paragraphs)==null||r.push({startIndex:o.dataStream.length}),o.dataStream+="\r"),(c=o.sectionBreaks)==null||c.push({startIndex:o.dataStream.length}),o.dataStream+=`
|
|
126
|
+
${s.DataStreamTreeTokenType.TABLE_CELL_END}`;break}}}_processBeforeLink(t,e){return e.body.dataStream.length}_processAfterLink(t,e,n){var r,c;const o=e.body,a=t;a.tagName.toUpperCase()==="A"&&(o.customRanges=(r=o.customRanges)!=null?r:[],o.customRanges.push({startIndex:n,endIndex:o.dataStream.length-1,rangeId:(c=a.dataset.rangeid)!=null?c:s.generateRandomId(),rangeType:s.CustomRangeType.HYPERLINK,properties:{url:a.href}}))}};R(Vn,"_pluginList",[]);let ft=Vn;const Ss={name:"univer-doc-paste-plugin-lark",checkPasteType(i){return/lark-record-clipboard/i.test(i)},stylesRules:[{filter:["s"],getStyle(i){const t=Oi(i);return{st:{s:s.BooleanNumber.TRUE},...t}}}],afterProcessRules:[{filter(i){return i.tagName==="DIV"&&/ace-line/i.test(i.className)},handler(i){const t=i.body;t.paragraphs==null&&(t.paragraphs=[]),t.paragraphs.push({startIndex:t.dataStream.length}),t.dataStream+="\r"}}]};function Is(i){const t=i.style,e={};for(let n=0;n<t.length;n++){const o=t[n],a=t.getPropertyValue(o);switch(o){case"margin-top":{const r=Number.parseInt(a);e.spaceAbove={v:/pt/.test(a)?M.ptToPixel(r):r};break}case"margin-bottom":{const r=Number.parseInt(a);e.spaceBelow={v:/pt/.test(a)?M.ptToPixel(r):r};break}case"line-height":{let r=Number.parseFloat(a);a.endsWith("%")&&(r/=100),e.lineSpacing=r;break}}}return Object.getOwnPropertyNames(e).length?e:null}const Es={name:"univer-doc-paste-plugin-univer",checkPasteType(i){return/UniverNormal/i.test(i)},stylesRules:[],afterProcessRules:[{filter(i){return i.tagName==="P"&&/UniverNormal/i.test(i.className)},handler(i,t){const e=i.body;e.paragraphs==null&&(e.paragraphs=[]);const n={startIndex:e.dataStream.length},o=Is(t);o&&(n.paragraphStyle=o),e.paragraphs.push(n),e.dataStream+="\r"}}]},vs={name:"univer-doc-paste-plugin-word",checkPasteType(i){return/word|mso/i.test(i)},stylesRules:[{filter:["b"],getStyle(i){const t=Oi(i);return{bl:s.BooleanNumber.TRUE,...t}}}],afterProcessRules:[{filter(i){return i.tagName==="P"},handler(i,t){const e=i.body;e.paragraphs==null&&(e.paragraphs=[]);const n={startIndex:e.dataStream.length},o=Is(t);o&&(n.paragraphStyle=o),e.paragraphs.push(n),e.dataStream+="\r"}}]};function nc(i){var n,o;const t=a=>{let r="";return Object.keys(a).forEach(c=>{a[c]!==void 0&&(r+=` ${c}=${a[c]}`)}),r},e={"data-doc-transform-height":i.docTransform.size.height,"data-doc-transform-width":i.docTransform.size.width,"data-width":(n=i.transform)==null?void 0:n.width,"data-height":(o=i.transform)==null?void 0:o.height,"data-image-source-type":i.imageSourceType,"data-source":i.imageSourceType===jn.ImageSourceType.UUID?i.source:void 0,src:i.source};return`<img ${t(e)}></img>`}function Cs(i,t){const{st:e,ed:n,ts:o={}}=t,{ff:a,fs:r,it:c,bl:l,ul:A,st:d,ol:u,bg:m,cl:h,va:f}=o;let g=i.slice(e,n);const p=[];return c===s.BooleanNumber.TRUE&&(g=`<i>${g}</i>`),f===s.BaselineOffset.SUPERSCRIPT?g=`<sup>${g}</sup>`:f===s.BaselineOffset.SUBSCRIPT&&(g=`<sub>${g}</sub>`),(A==null?void 0:A.s)===s.BooleanNumber.TRUE&&(g=`<u>${g}</u>`),(d==null?void 0:d.s)===s.BooleanNumber.TRUE&&(g=`<s>${g}</s>`),l===s.BooleanNumber.TRUE&&(g=`<strong>${g}</strong>`),a&&p.push(`font-family: ${a}`),h&&p.push(`color: ${h.rgb}`),r&&p.push(`font-size: ${r}pt`),u&&p.push("text-decoration: overline"),m&&p.push(`background: ${m.rgb}`),p.length?`<span style="${p.join("; ")};">${g}</span>`:g}function xi(i,t,e){const{dataStream:n,textRuns:o=[]}=i;if(t===e)return"";let a=t;const r=[];for(const c of o){const{st:l,ed:A}=c;s.Tools.hasIntersectionBetweenTwoRanges(t,e,l,A)&&(l>a?(r.push(n.slice(a,l)),r.push(Cs(n,{...c,ed:Math.min(A,e)}))):r.push(Cs(n,{...c,st:a,ed:Math.min(A,e)}))),a=Math.max(t,Math.min(A,e))}return a!==e&&r.push(n.slice(a,e)),r.join("")}function ic(i,t,e){const n=i.body,o=i.drawings||{},{customRanges:a=[],customBlocks:r=[]}=n||{},c=[...r],l=a.filter(h=>h.startIndex>=t&&h.endIndex<=e);let A=t,d="";const u=(h,f)=>{let g="",p=0,S=h,I=c.findIndex(E=>h<=E.startIndex&&f>=E.startIndex);if(I===-1)return g=xi(n,h,f),{sliceHtml:g,customBlockLength:p};for(;I!==-1;){const E=c[I];c.splice(I,1),g+=xi(n,S,E.startIndex);const T=o[E.blockId];if(T)switch(T.drawingType){case s.DrawingTypeEnum.DRAWING_IMAGE:{g+=nc(T),p++;break}}S=E.startIndex+1,I=c.findIndex(O=>S<=O.startIndex&&f>=O.startIndex)}return g=g+xi(n,S,f+1),{sliceHtml:g,customBlockLength:p}};l.forEach(h=>{var T,O;const{startIndex:f,endIndex:g,rangeType:p,rangeId:S}=h,I=u(A,f);d+=I.sliceHtml;const E=u(f,g+1);switch(p){case s.CustomRangeType.HYPERLINK:{d+=`<a data-rangeid="${S}" href="${(O=(T=h.properties)==null?void 0:T.url)!=null?O:""}">${E.sliceHtml}</a>`;break}default:{d+=E.sliceHtml;break}}A=g+1+(I.customBlockLength+E.customBlockLength)});const m=u(A,e);return d+=m.sliceHtml,d}function oc(i){const t=i.body||{},{paragraphs:e=[],sectionBreaks:n=[]}=t;let{dataStream:o=""}=t;o.endsWith(`\r
|
|
99
127
|
`)||(o+=`\r
|
|
100
|
-
`,e.push({startIndex:o.length-2}),n.push({startIndex:o.length-1}),t.dataStream=o,t.paragraphs=e,t.sectionBreaks=n);const a={html:""},r=M.parseDataStreamToTree(o).sectionList;for(const c of r)pt(c,i,a);return a.html}function pt(i,t,e){var n,o;switch(i.nodeType){case s.DataStreamTreeNodeType.SECTION_BREAK:{for(const a of i.children)pt(a,t,e);break}case s.DataStreamTreeNodeType.PARAGRAPH:{const{children:a,startIndex:r,endIndex:c}=i,l=(o=(n=t.body)==null?void 0:n.paragraphs.find(f=>f.startIndex===c))!=null?o:{},{paragraphStyle:A={}}=l,{spaceAbove:d,spaceBelow:u,lineSpacing:m}=A,h=[];if(d!=null&&(typeof d=="number"?h.push(`margin-top: ${d}px`):h.push(`margin-top: ${d.v}px`)),u!=null&&(typeof u=="number"?h.push(`margin-bottom: ${u}px`):h.push(`margin-bottom: ${u.v}px`)),m!=null&&h.push(`line-height: ${m}`),e.html+=`<p class="UniverNormal" ${h.length?`style="${h.join("; ")};"`:""}>`,a.length)for(const f of a)pt(f,t,e);e.html+=`${ic(t,r,c)}</p>`;break}case s.DataStreamTreeNodeType.TABLE:{const{children:a}=i;e.html+='<table class="UniverTable" style="width: 100%; border-collapse: collapse;"><tbody>';for(const r of a)pt(r,t,e);e.html+="</tbody></table>";break}case s.DataStreamTreeNodeType.TABLE_ROW:{const{children:a}=i;e.html+='<tr class="UniverTableRow">';for(const r of a)pt(r,t,e);e.html+="</tr>";break}case s.DataStreamTreeNodeType.TABLE_CELL:{const{children:a}=i;e.html+='<td class="UniverTableCell">';for(const r of a)pt(r,t,e);e.html+="</td>";break}default:throw new Error(`Unknown node type: ${i.nodeType}`)}}class sc{convert(t){if(t.length===0)throw new Error("The bodyList length at least to be 1");let e="";for(const n of s.Tools.deepClone(t))e+=oc(n);return e}}var ac=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,cc=(i,t,e,n)=>{for(var o=n>1?void 0:n?rc(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&ac(t,e,o),o},Ft=(i,t)=>(e,n)=>t(e,n,i);ft.use(
|
|
128
|
+
`,e.push({startIndex:o.length-2}),n.push({startIndex:o.length-1}),t.dataStream=o,t.paragraphs=e,t.sectionBreaks=n);const a={html:""},r=M.parseDataStreamToTree(o).sectionList;for(const c of r)pt(c,i,a);return a.html}function pt(i,t,e){var n,o;switch(i.nodeType){case s.DataStreamTreeNodeType.SECTION_BREAK:{for(const a of i.children)pt(a,t,e);break}case s.DataStreamTreeNodeType.PARAGRAPH:{const{children:a,startIndex:r,endIndex:c}=i,l=(o=(n=t.body)==null?void 0:n.paragraphs.find(f=>f.startIndex===c))!=null?o:{},{paragraphStyle:A={}}=l,{spaceAbove:d,spaceBelow:u,lineSpacing:m}=A,h=[];if(d!=null&&(typeof d=="number"?h.push(`margin-top: ${d}px`):h.push(`margin-top: ${d.v}px`)),u!=null&&(typeof u=="number"?h.push(`margin-bottom: ${u}px`):h.push(`margin-bottom: ${u.v}px`)),m!=null&&h.push(`line-height: ${m}`),e.html+=`<p class="UniverNormal" ${h.length?`style="${h.join("; ")};"`:""}>`,a.length)for(const f of a)pt(f,t,e);e.html+=`${ic(t,r,c)}</p>`;break}case s.DataStreamTreeNodeType.TABLE:{const{children:a}=i;e.html+='<table class="UniverTable" style="width: 100%; border-collapse: collapse;"><tbody>';for(const r of a)pt(r,t,e);e.html+="</tbody></table>";break}case s.DataStreamTreeNodeType.TABLE_ROW:{const{children:a}=i;e.html+='<tr class="UniverTableRow">';for(const r of a)pt(r,t,e);e.html+="</tr>";break}case s.DataStreamTreeNodeType.TABLE_CELL:{const{children:a}=i;e.html+='<td class="UniverTableCell">';for(const r of a)pt(r,t,e);e.html+="</td>";break}default:throw new Error(`Unknown node type: ${i.nodeType}`)}}class sc{convert(t){if(t.length===0)throw new Error("The bodyList length at least to be 1");let e="";for(const n of s.Tools.deepClone(t))e+=oc(n);return e}}var ac=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,cc=(i,t,e,n)=>{for(var o=n>1?void 0:n?rc(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&ac(t,e,o),o},Ft=(i,t)=>(e,n)=>t(e,n,i);ft.use(vs),ft.use(Ss),ft.use(Es);function Ts(i,t,e){var a,r,c;const n=s.getBodySlice(i,t,e+2),o=s.DataStreamTreeTokenType.TABLE_START+s.DataStreamTreeTokenType.TABLE_ROW_START+s.DataStreamTreeTokenType.TABLE_CELL_START+n.dataStream+s.DataStreamTreeTokenType.TABLE_CELL_END+s.DataStreamTreeTokenType.TABLE_ROW_END+s.DataStreamTreeTokenType.TABLE_END;return n.dataStream=o,(a=n.textRuns)==null||a.forEach(l=>{const{st:A,ed:d}=l;l.st=A+3,l.ed=d+3}),(r=n.tables)==null||r.forEach(l=>{const{startIndex:A,endIndex:d}=l;l.startIndex=A+3,l.endIndex=d+3}),(c=n.paragraphs)==null||c.forEach(l=>{const{startIndex:A}=l;l.startIndex=A+3}),n}const St=s.createIdentifier("doc.clipboard-service");let Mi=class extends s.Disposable{constructor(t,e,n,o,a){super();R(this,"_clipboardHooks",[]);R(this,"_htmlToUDM",new ft);R(this,"_umdToHtml",new sc);this._univerInstanceService=t,this._logService=e,this._commandService=n,this._clipboardInterfaceService=o,this._docSelectionManagerService=a}async copy(t=s.SliceBodyType.copy){var a;const{newSnapshotList:e=[],needCache:n=!1,snapshot:o}=(a=this._getDocumentBodyInRanges(t))!=null?a:{};if(e.length===0||o==null)return!1;try{const r=this._docSelectionManagerService.getActiveTextRange(),c=!!(r!=null&&r.segmentId);this._setClipboardData(e,!c&&n)}catch(r){return this._logService.error("[DocClipboardService] copy failed",r),!1}return!0}async cut(){return this._cut()}async paste(t){const e=await this._genDocDataFromClipboardItems(t);return this._paste(e)}async legacyPaste(t){let{html:e,text:n,files:o}=t;const a=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=(a==null?void 0:a.getUnitId())||"";!e&&!n&&o.length&&(e=await this._createImagePasteHtml(o));const c=this._genDocDataFromHtmlAndText(e,n,r);if(r===s.DOCS_NORMAL_EDITOR_UNIT_ID_KEY)if(n){const l=s.BuildTextUtils.transform.fromPlainText(n);return this._paste({body:l})}else c.body.textRuns=[];return this._paste(c)}async _cut(){var r,c,l;const{segmentId:t,endOffset:e,style:n}=(r=this._docSelectionManagerService.getActiveTextRange())!=null?r:{},o=(c=this._docSelectionManagerService.getTextRanges())!=null?c:[],a=(l=this._docSelectionManagerService.getRectRanges())!=null?l:[];if(t==null&&this._logService.error("[DocClipboardController] segmentId is not existed"),o.length===0&&a.length===0)return!1;this.copy(s.SliceBodyType.cut);try{let A=0;if(a.length>0)A=fn(o,a);else if(e!=null){A=e;for(const u of o){const{startOffset:m,endOffset:h}=u;m==null||h==null||h<=e&&(A-=h-m)}}const d=[{startOffset:A,endOffset:A,style:n}];return this._commandService.executeCommand(tt.id,{segmentId:t,textRanges:d})}catch{return this._logService.error("[DocClipboardController] cut content failed"),!1}}async _paste(t){var d,u;const{body:e}=t;if(e==null)return!1;let n=s.normalizeBody(e);if(!((d=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC))==null?void 0:d.getUnitId()))return!1;this._clipboardHooks.forEach(m=>{m.onBeforePaste&&(n=m.onBeforePaste(n))}),n.customRanges=(u=n.customRanges)==null?void 0:u.map(s.BuildTextUtils.customRange.copyCustomRange);const a=this._docSelectionManagerService.getActiveTextRange(),{segmentId:r,endOffset:c,style:l}=a||{},A=this._docSelectionManagerService.getTextRanges();if(r==null&&this._logService.error("[DocClipboardController] segmentId does not exist!"),c==null||A==null)return!1;try{let m=c;for(const f of A){const{startOffset:g,endOffset:p}=f;g==null||p==null||p<=c&&(m+=n.dataStream.length-(p-g))}const h=[{startOffset:m,endOffset:m,style:l}];return this._commandService.executeCommand(Ti.id,{doc:{...t,body:n},segmentId:r,textRanges:h})}catch{return this._logService.error("[DocClipboardController]","clipboard is empty."),!1}}async _setClipboardData(t,e=!0){var r,c,l,A;const n=qr(),o=(t.length>1?t.map(d=>{var u;return((u=d.body)==null?void 0:u.dataStream)||""}).join(`
|
|
101
129
|
`):((r=t[0].body)==null?void 0:r.dataStream)||"").replaceAll(s.DataStreamTreeTokenType.TABLE_START,"").replaceAll(s.DataStreamTreeTokenType.TABLE_END,"").replaceAll(s.DataStreamTreeTokenType.TABLE_ROW_START,"").replaceAll(s.DataStreamTreeTokenType.TABLE_ROW_END,"").replaceAll(s.DataStreamTreeTokenType.TABLE_CELL_START,"").replaceAll(s.DataStreamTreeTokenType.TABLE_CELL_END,"").replaceAll(`\r
|
|
102
|
-
`," ");let a=this._umdToHtml.convert(t);if(t.length===1&&e){a=a.replace(/(<[a-z]+)/,(m,h)=>`${h} data-copy-id="${n}"`);const d=t[0],u={body:d.body};if((l=(c=d.body)==null?void 0:c.customBlocks)!=null&&l.length){u.drawings={};for(const m of d.body.customBlocks){const{blockId:h}=m,f=(A=d.drawings)==null?void 0:A[h];if(f){const g=s.Tools.generateRandomId(6);m.blockId=g,u.drawings[g]={...s.Tools.deepClone(f),drawingId:g}}}}Ri.set(n,u)}return this._clipboardInterfaceService.write(o,a)}addClipboardHook(t){return this._clipboardHooks.push(t),s.toDisposable(()=>{const e=this._clipboardHooks.indexOf(t);e>-1&&this._clipboardHooks.splice(e,1)})}_getDocumentBodyInRanges(t){var A;const e=this._univerInstanceService.getCurrentUniverDocInstance(),n=this._docSelectionManagerService.getDocRanges(),o=[];let a=!0;if(e==null||n.length===0)return;const r=n[0].segmentId,c=(A=e==null?void 0:e.getSelfOrHeaderFooterModel(r))==null?void 0:A.getBody(),l=e.getSnapshot();if(c!=null){for(const d of n){const{startOffset:u,endOffset:m,collapsed:h,rangeType:f}=d;if(h||u==null||m==null)continue;if(f===s.DOC_RANGE_TYPE.RECT){a=!1;const{spanEntireRow:S}=d;let I;I=Cs(c,u,m),o.push(I);continue}const g={startOffset:u,endOffset:m,collapsed:h},p=e.getSelfOrHeaderFooterModel(r).sliceBody(g.startOffset,g.endOffset,t);p!=null&&o.push(p)}return{newSnapshotList:o.map(d=>({...l,body:d})),needCache:a,snapshot:l}}}async _genDocDataFromClipboardItems(t){try{let e="",n="";const o=[];for(const a of t)for(const r of a.types)switch(r){case y.PLAIN_TEXT_CLIPBOARD_MIME_TYPE:{n=await a.getType(r).then(c=>c&&c.text());break}case y.HTML_CLIPBOARD_MIME_TYPE:{e=await a.getType(r).then(c=>c&&c.text());break}case y.FILE__BMP_CLIPBOARD_MIME_TYPE:case y.FILE__JPEG_CLIPBOARD_MIME_TYPE:case y.FILE__WEBP_CLIPBOARD_MIME_TYPE:case y.FILE_PNG_CLIPBOARD_MIME_TYPE:{const c=await a.getType(r),l=new File([c],`pasted_image.${r.split("/")[1]}`,{type:r});o.push(l);break}}return!e&&!n&&o.length&&(e=await this._createImagePasteHtml(o)),this._genDocDataFromHtmlAndText(e,n)}catch(e){return Promise.reject(e)}}_genDocDataFromHtmlAndText(t,e,n){if(!t){if(e)return{body:s.BuildTextUtils.transform.fromPlainText(e)};throw new Error("[DocClipboardService] html and text cannot be both empty!")}const o=$r(t);if(o){const r=Ri.get(o);if(r)return r}if(!n){const r=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);n=(r==null?void 0:r.getUnitId())||""}const a=this._htmlToUDM.convert(t,{unitId:n});return o&&Ri.set(o,a),a}async _createImagePasteHtml(t){var c,l;const e={id:"",documentStyle:{},body:{dataStream:"",customBlocks:[]},drawings:{}},n=async A=>{const d=new FileReader;return new Promise(u=>{d.onloadend=function(){u({source:d.result,imageSourceType:jn.ImageSourceType.BASE64})},d.readAsDataURL(A)})},o=A=>{const d=new Image,u=500;return new Promise(m=>{d.src=typeof A=="string"?A:URL.createObjectURL(A),d.onload=()=>{const h=Math.min(u,d.naturalWidth),f=d.naturalHeight/d.naturalWidth;m({width:h,height:h*f})}})},a=(l=(c=this._clipboardHooks.find(A=>A.onBeforePasteImage))==null?void 0:c.onBeforePasteImage)!=null?l:n;return await Promise.all(t.map(async(A,d)=>{var S;const u=await a(A);if(!u)return Promise.resolve();const{width:m=100,height:h=100}=await o(A),f=`paste_image_id_${d}`,g=e.body,p=e.drawings;g.dataStream+="\b",(S=g.customBlocks)==null||S.push({startIndex:d,blockId:f}),p[f]={drawingId:f,unitId:"",subUnitId:"",imageSourceType:u.imageSourceType,title:"",source:u.source,description:"",layoutType:s.PositionedObjectLayoutType.INLINE,drawingType:s.DrawingTypeEnum.DRAWING_IMAGE,transform:{width:m,height:h,angle:0},docTransform:{angle:0,size:{width:m,height:h},positionH:{relativeFrom:s.ObjectRelativeFromH.CHARACTER,posOffset:0},positionV:{relativeFrom:s.ObjectRelativeFromV.LINE,posOffset:0}}}})),this._umdToHtml.convert([e])}};Mi=cc([Ft(0,s.IUniverInstanceService),Ft(1,s.ILogService),Ft(2,s.ICommandService),Ft(3,y.IClipboardInterfaceService),Ft(4,s.Inject(D.DocSelectionManagerService))],Mi);function pn(i){return i.getContextValue(s.FOCUSING_DOC)||i.getContextValue(s.EDITOR_ACTIVATED)}const Bi=999,Ht={id:y.CopyCommand.id,name:"doc.command.copy",type:s.CommandType.COMMAND,multi:!0,priority:Bi,preconditions:pn,handler:async i=>i.get(St).copy()},Sn={id:y.CutCommand.id,name:"doc.command.cut",type:s.CommandType.COMMAND,multi:!0,priority:Bi,preconditions:pn,handler:async i=>i.get(St).cut()},In={id:y.PasteCommand.id,name:"doc.command.paste",type:s.CommandType.COMMAND,multi:!0,priority:Bi,preconditions:pn,handler:async i=>{const t=i.get(St),n=await i.get(y.IClipboardInterfaceService).read();return n.length===0?!1:t.paste(n)}},En={id:"doc.command.switch-mode",type:s.CommandType.COMMAND,handler:async i=>{var I,E,T,O,v;const t=i.get(s.ICommandService),e=i.get(M.IRenderManagerService),n=i.get(D.DocSelectionManagerService),a=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(a==null)return!1;const r=a.getUnitId(),c=(I=e.getRenderById(r))==null?void 0:I.with(D.DocSkeletonManagerService).getSkeleton(),l=(E=e.getRenderById(r))==null?void 0:E.with(C.DocSelectionRenderService);if(c==null||l==null)return!1;const A=l==null?void 0:l.getSegment(),d=l==null?void 0:l.getSegmentPage(),u=a.getSnapshot().documentStyle.documentFlavor,m=n.getDocRanges(),h={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:u===s.DocumentFlavor.TRADITIONAL&&A?[]:m}},f=s.JSONX.getInstance(),g=[];let p;if(u===void 0?p=f.insertOp(["documentStyle","documentFlavor"],s.DocumentFlavor.MODERN):u===s.DocumentFlavor.MODERN?p=f.replaceOp(["documentStyle","documentFlavor"],u,s.DocumentFlavor.TRADITIONAL):p=f.replaceOp(["documentStyle","documentFlavor"],u,s.DocumentFlavor.MODERN),p)g.push(p);else return!1;if(u!==s.DocumentFlavor.MODERN){const b=a.getSnapshot(),{drawings:_={},body:B}=b,w=(T=B==null?void 0:B.customBlocks)!=null?T:[];for(const x in _){const U=_[x],L=w.find(Y=>Y.blockId===x);if(L==null)continue;const F=U.docTransform.positionV,{relativeFrom:H,posOffset:k}=F;if(H===s.ObjectRelativeFromV.PARAGRAPH)continue;const{startIndex:X}=L,G=c.findNodeByCharIndex(X,A,d),W=(O=G==null?void 0:G.parent)==null?void 0:O.parent,V=W==null?void 0:W.parent,K=V==null?void 0:V.lines.find(Y=>Y.paragraphIndex===(W==null?void 0:W.paragraphIndex)&&Y.paragraphStart),ee=(v=V==null?void 0:V.parent)==null?void 0:v.parent;if(G==null||W==null||K==null||V==null||ee==null)continue;let Z=0;H===s.ObjectRelativeFromV.LINE?Z-=W.top:H===s.ObjectRelativeFromV.PAGE&&(Z+=ee.marginTop),Z+=K.top;const j={...F,relativeFrom:s.ObjectRelativeFromV.PARAGRAPH,posOffset:(k!=null?k:0)-Z},z=f.replaceOp(["drawings",x,"docTransform","positionV"],F,j);z&&g.push(z)}}return h.params.actions=g.reduce((b,_)=>s.JSONX.compose(b,_),null),!!t.syncExecuteCommand(h.id,h.params)}},vn={id:"doc.table.delete-rows",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Lt(a,o);if(r==null)return!1;const{segmentId:c}=r,l=e.getCurrentUniverDocInstance(),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c).getBody();if(l==null||A==null)return!1;const d=me(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),m=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),g=cs(r,u);if(g==null)return!1;const{offset:p,rowIndexes:S,len:I,tableId:E,cursor:T,selectWholeTable:O}=g;if(O)return n.executeCommand(It.id);const v=[],b=[{startOffset:T,endOffset:T,collapsed:!0}],_={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:b}};p>0&&h.push({t:s.TextXActionType.RETAIN,len:p}),h.push({t:s.TextXActionType.DELETE,len:I});const B=te(l,c);v.push(f.editOp(h.serialize(),B));for(const x of S.reverse()){const U=f.removeOp(["tableSource",E,"tableRows",x]);v.push(U)}return _.params.actions=v.reduce((x,U)=>s.JSONX.compose(x,U),null),!!n.syncExecuteCommand(_.id,_.params)}},Cn={id:"doc.table.delete-columns",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Lt(a,o);if(r==null)return!1;const{segmentId:c}=r,l=e.getCurrentUniverDocInstance(),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c).getBody();if(l==null||A==null)return!1;const d=me(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),m=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),g=jr(r,u);if(g==null)return!1;const{offsets:p,columnIndexes:S,tableId:I,cursor:E,rowCount:T,selectWholeTable:O}=g;if(O)return n.executeCommand(It.id);const v=[],b=[{startOffset:E,endOffset:E,collapsed:!0}],_={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:b}};for(const x of p){const{retain:U,delete:L}=x;U>0&&h.push({t:s.TextXActionType.RETAIN,len:U}),h.push({t:s.TextXActionType.DELETE,len:L})}const B=te(l,c);v.push(f.editOp(h.serialize(),B)),S.reverse();for(let x=0;x<T;x++)for(const U of S){const L=f.removeOp(["tableSource",I,"tableRows",x,"tableCells",U]);v.push(L)}for(const x of S){const U=f.removeOp(["tableSource",I,"tableColumns",x]);v.push(U)}return _.params.actions=v.reduce((x,U)=>s.JSONX.compose(x,U),null),!!n.syncExecuteCommand(_.id,_.params)}},It={id:"doc.table.delete-table",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Lt(a,o);if(r==null)return!1;const{segmentId:c}=r,l=e.getCurrentUniverDocInstance(),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c).getBody();if(l==null||A==null)return!1;const d=me(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),m=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),g=ls(r,u);if(g==null)return!1;const{offset:p,len:S,tableId:I,cursor:E}=g,T=[],O=[{startOffset:E,endOffset:E,collapsed:!0}],v={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:O}};p>0&&h.push({t:s.TextXActionType.RETAIN,len:p}),h.push({t:s.TextXActionType.DELETE,len:S});const b=te(l,c);T.push(f.editOp(h.serialize(),b));const _=f.removeOp(["tableSource",I]);return T.push(_),v.params.actions=T.reduce((w,x)=>s.JSONX.compose(w,x),null),!!n.syncExecuteCommand(v.id,v.params)}},Di="doc.command.table-insert-row",_i="doc.command.table-insert-column",lc="doc.command.table-insert-row-above",Ac="doc.command.table-insert-row-bellow",dc="doc.command.table-insert-column-left",uc="doc.command.table-insert-column-right",Tn={id:lc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Di,{position:ln.ABOVE})},bn={id:Ac,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Di,{position:ln.BELLOW})},yn={id:dc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(_i,{position:Ei.LEFT})},Rn={id:uc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(_i,{position:Ei.RIGHT})},Ni={id:Di,type:s.CommandType.COMMAND,handler:async(i,t)=>{const{position:e}=t,n=i.get(D.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=n.getRectRanges(),c=n.getActiveTextRange(),l=Lt(c,r);if(l==null)return!1;const{segmentId:A}=l,d=o.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),u=d==null?void 0:d.getSelfOrHeaderFooterModel(A).getBody();if(d==null||u==null)return!1;const m=me(i,d.getUnitId());if(m==null)return!1;const h=m.getViewModel(),f=d==null?void 0:d.getUnitId(),g=new s.TextX,p=s.JSONX.getInstance(),S=Hr(l,e,h);if(S==null)return!1;const{offset:I,colCount:E,tableId:T,insertRowIndex:O}=S,v=[],b=I+2,_=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:_}};I>0&&g.push({t:s.TextXActionType.RETAIN,len:I});const w=Qr(E);g.push({t:s.TextXActionType.INSERT,body:w,len:w.dataStream.length});const x=te(d,A);v.push(p.editOp(g.serialize(),x));const U=dn(E),L=p.insertOp(["tableSource",T,"tableRows",O],U);return v.push(L),B.params.actions=v.reduce((H,k)=>s.JSONX.compose(H,k),null),!!a.syncExecuteCommand(B.id,B.params)}},Ts={id:_i,type:s.CommandType.COMMAND,handler:async(i,t)=>{var ee,Z,j;const{position:e}=t,n=i.get(D.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=n.getRectRanges(),c=n.getActiveTextRange(),l=Lt(c,r);if(l==null)return!1;const{segmentId:A}=l,d=o.getCurrentUniverDocInstance(),u=d==null?void 0:d.getSelfOrHeaderFooterModel(A).getBody();if(d==null||u==null)return!1;const m=me(i,d.getUnitId());if(m==null)return!1;const h=m.getViewModel(),f=d==null?void 0:d.getUnitId(),g=new s.TextX,p=s.JSONX.getInstance(),S=kr(l,e,h);if(S==null)return!1;const{offsets:I,columnIndex:E,tableId:T,rowCount:O}=S,v=[],b=I[0]+1,_=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:_}};for(const z of I){g.push({t:s.TextXActionType.RETAIN,len:z});const Y=Fr();g.push({t:s.TextXActionType.INSERT,body:Y,len:Y.dataStream.length})}const w=te(d,A);v.push(p.editOp(g.serialize(),w));for(let z=0;z<O;z++){const Y=An(),ie=p.insertOp(["tableSource",T,"tableRows",z,"tableCells",E],Y);v.push(ie)}const x=d.getSnapshot(),U=x.documentStyle,{marginLeft:L=0,marginRight:F=0}=U,H=((Z=(ee=U.pageSize)==null?void 0:ee.width)!=null?Z:800)-L-F,k=(j=x==null?void 0:x.tableSource)==null?void 0:j[T].tableColumns,{newColWidth:X,widths:G}=Vr(H,k,E);for(let z=0;z<G.length;z++){const Y=p.replaceOp(["tableSource",T,"tableColumns",z,"size","width","v"],k[z].size.width.v,G[z]);v.push(Y)}const W=un(X),V=p.insertOp(["tableSource",T,"tableColumns",E],W);return v.push(V),B.params.actions=v.reduce((z,Y)=>s.JSONX.compose(z,Y),null),!!a.syncExecuteCommand(B.id,B.params)}},bs="COMPONENT_DOC_CREATE_TABLE_CONFIRM";function Pi(i,t){const e=[];for(let n=0,o=i.length;n<o;n++)i[n]===s.DataStreamTreeTokenType.PARAGRAPH&&e.push({startIndex:n});if(t)for(const n of e)t.bullet&&(n.bullet=s.Tools.deepClone(t.bullet)),t.paragraphStyle&&(n.paragraphStyle=s.Tools.deepClone(t.paragraphStyle));return e}const Ui={id:"doc.command.break-line",type:s.CommandType.COMMAND,handler:async i=>{var v,b,_;const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=i.get(_e),a=t.getActiveTextRange(),r=t.getRectRanges();if(a==null)return!1;if(r&&r.length){const{startOffset:B}=a;return t.replaceDocRanges([{startOffset:B,endOffset:B}]),!0}const{segmentId:c}=a,l=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c!=null?c:"").getBody();if(l==null||A==null)return!1;const d=l.getUnitId(),{startOffset:u,endOffset:m}=a,f=((v=A.paragraphs)!=null?v:[]).find(B=>B.startIndex>=u);if(!f)return!1;const g=f.startIndex,p=o.getDefaultStyle(),S=o.getStyleCache(),I=Xt((b=A.textRuns)!=null?b:[],m,p,S),E={dataStream:s.DataStreamTreeTokenType.PARAGRAPH,paragraphs:Pi(s.DataStreamTreeTokenType.PARAGRAPH,f),textRuns:[{st:0,ed:1,ts:{...I.ts}}]},T={startOffset:u,endOffset:m,collapsed:u===m},O=await n.executeCommand(hn.id,{unitId:d,body:E,range:T,segmentId:c});if(((_=f.bullet)==null?void 0:_.listType)===s.PresetListType.CHECK_LIST_CHECKED){const B={index:g+1-(m-u),segmentId:c,textRanges:[{startOffset:u+1,endOffset:u+1}]};return!!await n.executeCommand(rn.id,B)&&O}return O}},wi={id:"doc.command.create-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{var j,z,Y,ie,ce,ge;const{rowCount:e,colCount:n}=t,o=i.get(D.DocSelectionManagerService),a=i.get(s.IUniverInstanceService),r=i.get(s.ICommandService),c=i.get(_e),l=o.getActiveTextRange();if(l==null)return!1;const{segmentId:A,segmentPage:d}=l,u=a.getCurrentUniverDocInstance(),m=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||m==null)return!1;const h=u.getUnitId(),f=me(i,h),g=f==null?void 0:f.getSkeleton();if(g==null)return!1;const{startOffset:p}=l,I=((j=m.paragraphs)!=null?j:[]).find(le=>le.startIndex>=p),E=g.findNodeByCharIndex(p,A,d);if(E==null)return!1;const T=new s.TextX,O=s.JSONX.getInstance(),v=[],b=p+4,_=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:D.RichTextEditingMutation.id,params:{unitId:h,actions:[],textRanges:_}};p>0&&T.push({t:s.TextXActionType.RETAIN,len:p}),T.push({t:s.TextXActionType.INSERT,body:{dataStream:s.DataStreamTreeTokenType.PARAGRAPH,paragraphs:Pi(s.DataStreamTreeTokenType.PARAGRAPH,I)},len:1});const w=c.getDefaultStyle(),x=c.getStyleCache(),U=Xt((z=m.textRuns)!=null?z:[],p,w,x),{dataStream:L,paragraphs:F,sectionBreaks:H}=Lr(e,n),k=(ge=(ce=(ie=(Y=E.parent)==null?void 0:Y.parent)==null?void 0:ie.parent)==null?void 0:ce.parent)==null?void 0:ge.parent;if(k==null)return!1;const{pageWidth:X,marginLeft:G,marginRight:W}=k,V=vi(e,n,X-G-W);T.push({t:s.TextXActionType.INSERT,body:{dataStream:L,paragraphs:F,sectionBreaks:H,textRuns:[{...U,st:0,ed:L.length}],tables:[{startIndex:0,endIndex:L.length,tableId:V.tableId}]},len:L.length});const K=te(u,A);v.push(O.editOp(T.serialize(),K));const ee=O.insertOp(["tableSource",V.tableId],V);return v.push(ee),B.params.actions=v.reduce((le,Ce)=>s.JSONX.compose(le,Ce),null),!!r.syncExecuteCommand(B.id,B.params)}},Li="doc.component.create-table-confirm",On={id:"doc.operation.create-table",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(s.LocaleService),e=i.get(y.IConfirmService),n=i.get(s.ICommandService),o={rowCount:3,colCount:5},a=(r,c)=>{o.rowCount=r,o.colCount=c};return await e.open({id:Li,children:{label:{name:bs,props:{handleRowColChange:a,tableCreateParams:o}}},width:400,title:{title:t.t("toolbar.table.insert")},onConfirm:()=>{n.executeCommand(wi.id,o),e.close(Li)},onClose:()=>{e.close(Li)}}),!0}},Oe={id:"doc-paragraph-setting.command",type:s.CommandType.COMMAND,handler:async(i,t)=>{var S,I,E;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=e.getDocRanges();if(!a||r.length===0||!t)return!1;const c=r[0].segmentId,l=a.getUnitId(),A=(I=(S=a.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:S.paragraphs)!=null?I:[],d=(E=gt(r,A))!=null?E:[],u={id:D.RichTextEditingMutation.id,params:{unitId:l,actions:[],textRanges:r}},m=new s.MemoryCursor;m.reset();const h=new s.TextX,f=s.JSONX.getInstance();for(const T of d){const{startIndex:O}=T;h.push({t:s.TextXActionType.RETAIN,len:O-m.cursor});const v={...T.paragraphStyle,...t.paragraph};h.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...T,paragraphStyle:v,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),m.moveCursorTo(O+1)}const g=te(a,c);return u.params.actions=f.editOp(h.serialize(),g),!!o.syncExecuteCommand(u.id,u.params)}},hc=()=>{const i=s.useDependency(D.DocSelectionManagerService),t=s.useDependency(Et),e=Q.useMemo(()=>i.getDocRanges(),[]);return Q.useEffect(()=>{e.length||t.closePanel()},[e]),e},gc=()=>{var r,c,l;const t=s.useDependency(s.IUniverInstanceService).getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),e=hc();if(!t||e.length===0)return[];const n=e[0].segmentId,o=(c=(r=t.getSelfOrHeaderFooterModel(n).getBody())==null?void 0:r.paragraphs)!=null?c:[];return(l=gt(e,o))!=null?l:[]},mc=(i,t)=>{const e=s.useDependency(s.ICommandService),[n,o]=Q.useState(()=>{var c,l;const r=i[0];return r?String((l=(c=r.paragraphStyle)==null?void 0:c.horizontalAlign)!=null?l:t):t});return[n,r=>(o(r),e.executeCommand(Oe.id,{paragraph:{horizontalAlign:Number(r)}}))]},fc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentStart,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentStart:{v:a}}}))]},pc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentEnd,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentEnd:{v:a}}}))]},Sc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentFirstLine,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentFirstLine:{v:a}}}))]},Ic=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.hanging,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{hanging:{v:a}}}))]},Ec=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.spaceAbove,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{spaceAbove:{v:a}}}))]},vc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.spaceBelow,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{spaceBelow:{v:a}}}))]},Cc=i=>{const t=s.useDependency(s.ICommandService),e=s.useDependency(M.IRenderManagerService),n=s.useDependency(s.IUniverInstanceService),o=Q.useMemo(()=>{var f;const h=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(h)return(f=e.getRenderById(h==null?void 0:h.getUnitId()))==null?void 0:f.with(D.DocSkeletonManagerService).getSkeleton()},[]),a=Q.useMemo(()=>new N.BehaviorSubject({}),[]),[r,c]=Q.useState(()=>{var f,g;const h=i[0];return h&&(g=(f=h.paragraphStyle)==null?void 0:f.lineSpacing)!=null?g:1}),l=Q.useRef(r),[A,d]=Q.useState(()=>{var f,g;const h=i[0];return h&&(g=(f=h.paragraphStyle)==null?void 0:f.spacingRule)!=null?g:s.SpacingRule.AUTO}),u=async h=>{c(h),a.next({lineSpacing:h,spacingRule:A})},m=async h=>{if(h!==A){let f=l.current;if(h===s.SpacingRule.AT_LEAST){const g=o==null?void 0:o.findNodeByCharIndex(i[0].startIndex),p=g==null?void 0:g.parent,S=p==null?void 0:p.parent;(S==null?void 0:S.contentHeight)!==void 0&&(f=Math.max(S.contentHeight,f))}else f>5&&(f=2);l.current=r,u(f),d(h),a.next({spacingRule:h})}};return Q.useEffect(()=>{const h=a.pipe(yt.filter(f=>!!Object.keys(f).length),yt.bufferTime(16),yt.filter(f=>!!f.length),yt.map(f=>f.reduce((g,p)=>(Object.keys(p).forEach(S=>{g[S]=p[S]}),g),{}))).subscribe(f=>t.executeCommand(Oe.id,{paragraph:{...f}}));return()=>h.unsubscribe()},[]),{lineSpacing:[r,u],spacingRule:[A,m]}},q={paragraphSettingIconList:"univer-paragraph-setting-icon-list",paragraphSettingIconListItem:"univer-paragraph-setting-icon-list-item",paragraphSettingIconListActive:"univer-paragraph-setting-icon-list-active",paragraphSettingTitle:"univer-paragraph-setting-title",paragraphSettingLabel:"univer-paragraph-setting-label",paragraphSettingMtBase:"univer-paragraph-setting-mt-base",paragraphSettingFlexCol:"univer-paragraph-setting-flex-col",paragraphSettingSpaceLine:"univer-paragraph-setting-space-line"},nt=i=>{const{value:t,onChange:e,className:n="",min:o=0,max:a=100,step:r=1}=i,c=Js.useRef(null);return P.jsx(se.InputNumber,{step:r,ref:c,min:o,max:a,value:t,onChange:l=>{e(l!=null?l:0).finally(()=>{setTimeout(()=>{var A;(A=c.current)==null||A.focus()},30)})},className:n})};function Tc(){const i=s.useDependency(s.LocaleService),t=Q.useMemo(()=>[{label:i.t("toolbar.alignLeft"),value:String(s.HorizontalAlign.LEFT),icon:P.jsx(Mo,{})},{label:i.t("toolbar.alignCenter"),value:String(s.HorizontalAlign.CENTER),icon:P.jsx(Oo,{})},{label:i.t("toolbar.alignRight"),value:String(s.HorizontalAlign.RIGHT),icon:P.jsx(Bo,{})},{label:i.t("toolbar.alignJustify"),value:String(s.HorizontalAlign.JUSTIFIED),icon:P.jsx(bo,{})}],[]),e=gc(),[n,o]=mc(e,t[0].value),[a,r]=fc(e),[c,l]=pc(e),[A,d]=Sc(e),[u,m]=Ic(e),[h,f]=Ec(e),[g,p]=vc(e),{lineSpacing:[S,I],spacingRule:[E,T]}=Cc(e),O=Q.useMemo(()=>E===s.SpacingRule.AUTO?{min:1,max:5,step:S<2?.5:1}:{min:1,max:100},[E,S]);return P.jsxs("div",{className:q.paragraphSetting,children:[P.jsx("div",{className:q.paragraphSettingTitle,children:i.t("doc.paragraphSetting.alignment")}),P.jsx("div",{className:`
|
|
130
|
+
`," ");let a=this._umdToHtml.convert(t);if(t.length===1&&e){a=a.replace(/(<[a-z]+)/,(m,h)=>`${h} data-copy-id="${n}"`);const d=t[0],u={body:d.body};if((l=(c=d.body)==null?void 0:c.customBlocks)!=null&&l.length){u.drawings={};for(const m of d.body.customBlocks){const{blockId:h}=m,f=(A=d.drawings)==null?void 0:A[h];if(f){const g=s.Tools.generateRandomId(6);m.blockId=g,u.drawings[g]={...s.Tools.deepClone(f),drawingId:g}}}}Ri.set(n,u)}return this._clipboardInterfaceService.write(o,a)}addClipboardHook(t){return this._clipboardHooks.push(t),s.toDisposable(()=>{const e=this._clipboardHooks.indexOf(t);e>-1&&this._clipboardHooks.splice(e,1)})}_getDocumentBodyInRanges(t){var A;const e=this._univerInstanceService.getCurrentUniverDocInstance(),n=this._docSelectionManagerService.getDocRanges(),o=[];let a=!0;if(e==null||n.length===0)return;const r=n[0].segmentId,c=(A=e==null?void 0:e.getSelfOrHeaderFooterModel(r))==null?void 0:A.getBody(),l=e.getSnapshot();if(c!=null){for(const d of n){const{startOffset:u,endOffset:m,collapsed:h,rangeType:f}=d;if(h||u==null||m==null)continue;if(f===s.DOC_RANGE_TYPE.RECT){a=!1;const{spanEntireRow:S}=d;let I;I=Ts(c,u,m),o.push(I);continue}const g={startOffset:u,endOffset:m,collapsed:h},p=e.getSelfOrHeaderFooterModel(r).sliceBody(g.startOffset,g.endOffset,t);p!=null&&o.push(p)}return{newSnapshotList:o.map(d=>({...l,body:d})),needCache:a,snapshot:l}}}async _genDocDataFromClipboardItems(t){try{let e="",n="";const o=[];for(const a of t)for(const r of a.types)switch(r){case y.PLAIN_TEXT_CLIPBOARD_MIME_TYPE:{n=await a.getType(r).then(c=>c&&c.text());break}case y.HTML_CLIPBOARD_MIME_TYPE:{e=await a.getType(r).then(c=>c&&c.text());break}case y.FILE__BMP_CLIPBOARD_MIME_TYPE:case y.FILE__JPEG_CLIPBOARD_MIME_TYPE:case y.FILE__WEBP_CLIPBOARD_MIME_TYPE:case y.FILE_PNG_CLIPBOARD_MIME_TYPE:{const c=await a.getType(r),l=new File([c],`pasted_image.${r.split("/")[1]}`,{type:r});o.push(l);break}}return!e&&!n&&o.length&&(e=await this._createImagePasteHtml(o)),this._genDocDataFromHtmlAndText(e,n)}catch(e){return Promise.reject(e)}}_genDocDataFromHtmlAndText(t,e,n){if(!t){if(e)return{body:s.BuildTextUtils.transform.fromPlainText(e)};throw new Error("[DocClipboardService] html and text cannot be both empty!")}const o=$r(t);if(o){const r=Ri.get(o);if(r)return r}if(!n){const r=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);n=(r==null?void 0:r.getUnitId())||""}const a=this._htmlToUDM.convert(t,{unitId:n});return o&&Ri.set(o,a),a}async _createImagePasteHtml(t){var c,l;const e={id:"",documentStyle:{},body:{dataStream:"",customBlocks:[]},drawings:{}},n=async A=>{const d=new FileReader;return new Promise(u=>{d.onloadend=function(){u({source:d.result,imageSourceType:jn.ImageSourceType.BASE64})},d.readAsDataURL(A)})},o=A=>{const d=new Image,u=500;return new Promise(m=>{d.src=typeof A=="string"?A:URL.createObjectURL(A),d.onload=()=>{const h=Math.min(u,d.naturalWidth),f=d.naturalHeight/d.naturalWidth;m({width:h,height:h*f})}})},a=(l=(c=this._clipboardHooks.find(A=>A.onBeforePasteImage))==null?void 0:c.onBeforePasteImage)!=null?l:n;return await Promise.all(t.map(async(A,d)=>{var S;const u=await a(A);if(!u)return Promise.resolve();const{width:m=100,height:h=100}=await o(A),f=`paste_image_id_${d}`,g=e.body,p=e.drawings;g.dataStream+="\b",(S=g.customBlocks)==null||S.push({startIndex:d,blockId:f}),p[f]={drawingId:f,unitId:"",subUnitId:"",imageSourceType:u.imageSourceType,title:"",source:u.source,description:"",layoutType:s.PositionedObjectLayoutType.INLINE,drawingType:s.DrawingTypeEnum.DRAWING_IMAGE,transform:{width:m,height:h,angle:0},docTransform:{angle:0,size:{width:m,height:h},positionH:{relativeFrom:s.ObjectRelativeFromH.CHARACTER,posOffset:0},positionV:{relativeFrom:s.ObjectRelativeFromV.LINE,posOffset:0}}}})),this._umdToHtml.convert([e])}};Mi=cc([Ft(0,s.IUniverInstanceService),Ft(1,s.ILogService),Ft(2,s.ICommandService),Ft(3,y.IClipboardInterfaceService),Ft(4,s.Inject(D.DocSelectionManagerService))],Mi);function pn(i){return i.getContextValue(s.FOCUSING_DOC)||i.getContextValue(s.EDITOR_ACTIVATED)}const Bi=999,Ht={id:y.CopyCommand.id,name:"doc.command.copy",type:s.CommandType.COMMAND,multi:!0,priority:Bi,preconditions:pn,handler:async i=>i.get(St).copy()},Sn={id:y.CutCommand.id,name:"doc.command.cut",type:s.CommandType.COMMAND,multi:!0,priority:Bi,preconditions:pn,handler:async i=>i.get(St).cut()},In={id:y.PasteCommand.id,name:"doc.command.paste",type:s.CommandType.COMMAND,multi:!0,priority:Bi,preconditions:pn,handler:async i=>{const t=i.get(St),n=await i.get(y.IClipboardInterfaceService).read();return n.length===0?!1:t.paste(n)}},En={id:"doc.command.switch-mode",type:s.CommandType.COMMAND,handler:async i=>{var I,E,T,O,v;const t=i.get(s.ICommandService),e=i.get(M.IRenderManagerService),n=i.get(D.DocSelectionManagerService),a=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(a==null)return!1;const r=a.getUnitId(),c=(I=e.getRenderById(r))==null?void 0:I.with(D.DocSkeletonManagerService).getSkeleton(),l=(E=e.getRenderById(r))==null?void 0:E.with(C.DocSelectionRenderService);if(c==null||l==null)return!1;const A=l==null?void 0:l.getSegment(),d=l==null?void 0:l.getSegmentPage(),u=a.getSnapshot().documentStyle.documentFlavor,m=n.getDocRanges(),h={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:u===s.DocumentFlavor.TRADITIONAL&&A?[]:m}},f=s.JSONX.getInstance(),g=[];let p;if(u===void 0?p=f.insertOp(["documentStyle","documentFlavor"],s.DocumentFlavor.MODERN):u===s.DocumentFlavor.MODERN?p=f.replaceOp(["documentStyle","documentFlavor"],u,s.DocumentFlavor.TRADITIONAL):p=f.replaceOp(["documentStyle","documentFlavor"],u,s.DocumentFlavor.MODERN),p)g.push(p);else return!1;if(u!==s.DocumentFlavor.MODERN){const b=a.getSnapshot(),{drawings:_={},body:B}=b,w=(T=B==null?void 0:B.customBlocks)!=null?T:[];for(const x in _){const U=_[x],L=w.find(Y=>Y.blockId===x);if(L==null)continue;const F=U.docTransform.positionV,{relativeFrom:H,posOffset:k}=F;if(H===s.ObjectRelativeFromV.PARAGRAPH)continue;const{startIndex:X}=L,G=c.findNodeByCharIndex(X,A,d),W=(O=G==null?void 0:G.parent)==null?void 0:O.parent,V=W==null?void 0:W.parent,K=V==null?void 0:V.lines.find(Y=>Y.paragraphIndex===(W==null?void 0:W.paragraphIndex)&&Y.paragraphStart),ee=(v=V==null?void 0:V.parent)==null?void 0:v.parent;if(G==null||W==null||K==null||V==null||ee==null)continue;let Z=0;H===s.ObjectRelativeFromV.LINE?Z-=W.top:H===s.ObjectRelativeFromV.PAGE&&(Z+=ee.marginTop),Z+=K.top;const j={...F,relativeFrom:s.ObjectRelativeFromV.PARAGRAPH,posOffset:(k!=null?k:0)-Z},z=f.replaceOp(["drawings",x,"docTransform","positionV"],F,j);z&&g.push(z)}}return h.params.actions=g.reduce((b,_)=>s.JSONX.compose(b,_),null),!!t.syncExecuteCommand(h.id,h.params)}},vn={id:"doc.table.delete-rows",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Lt(a,o);if(r==null)return!1;const{segmentId:c}=r,l=e.getCurrentUniverDocInstance(),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c).getBody();if(l==null||A==null)return!1;const d=me(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),m=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),g=ls(r,u);if(g==null)return!1;const{offset:p,rowIndexes:S,len:I,tableId:E,cursor:T,selectWholeTable:O}=g;if(O)return n.executeCommand(It.id);const v=[],b=[{startOffset:T,endOffset:T,collapsed:!0}],_={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:b}};p>0&&h.push({t:s.TextXActionType.RETAIN,len:p}),h.push({t:s.TextXActionType.DELETE,len:I});const B=te(l,c);v.push(f.editOp(h.serialize(),B));for(const x of S.reverse()){const U=f.removeOp(["tableSource",E,"tableRows",x]);v.push(U)}return _.params.actions=v.reduce((x,U)=>s.JSONX.compose(x,U),null),!!n.syncExecuteCommand(_.id,_.params)}},Cn={id:"doc.table.delete-columns",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Lt(a,o);if(r==null)return!1;const{segmentId:c}=r,l=e.getCurrentUniverDocInstance(),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c).getBody();if(l==null||A==null)return!1;const d=me(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),m=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),g=jr(r,u);if(g==null)return!1;const{offsets:p,columnIndexes:S,tableId:I,cursor:E,rowCount:T,selectWholeTable:O}=g;if(O)return n.executeCommand(It.id);const v=[],b=[{startOffset:E,endOffset:E,collapsed:!0}],_={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:b}};for(const x of p){const{retain:U,delete:L}=x;U>0&&h.push({t:s.TextXActionType.RETAIN,len:U}),h.push({t:s.TextXActionType.DELETE,len:L})}const B=te(l,c);v.push(f.editOp(h.serialize(),B)),S.reverse();for(let x=0;x<T;x++)for(const U of S){const L=f.removeOp(["tableSource",I,"tableRows",x,"tableCells",U]);v.push(L)}for(const x of S){const U=f.removeOp(["tableSource",I,"tableColumns",x]);v.push(U)}return _.params.actions=v.reduce((x,U)=>s.JSONX.compose(x,U),null),!!n.syncExecuteCommand(_.id,_.params)}},It={id:"doc.table.delete-table",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Lt(a,o);if(r==null)return!1;const{segmentId:c}=r,l=e.getCurrentUniverDocInstance(),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c).getBody();if(l==null||A==null)return!1;const d=me(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),m=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),g=As(r,u);if(g==null)return!1;const{offset:p,len:S,tableId:I,cursor:E}=g,T=[],O=[{startOffset:E,endOffset:E,collapsed:!0}],v={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:O}};p>0&&h.push({t:s.TextXActionType.RETAIN,len:p}),h.push({t:s.TextXActionType.DELETE,len:S});const b=te(l,c);T.push(f.editOp(h.serialize(),b));const _=f.removeOp(["tableSource",I]);return T.push(_),v.params.actions=T.reduce((w,x)=>s.JSONX.compose(w,x),null),!!n.syncExecuteCommand(v.id,v.params)}},Di="doc.command.table-insert-row",_i="doc.command.table-insert-column",lc="doc.command.table-insert-row-above",Ac="doc.command.table-insert-row-bellow",dc="doc.command.table-insert-column-left",uc="doc.command.table-insert-column-right",Tn={id:lc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Di,{position:ln.ABOVE})},bn={id:Ac,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Di,{position:ln.BELLOW})},yn={id:dc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(_i,{position:Ei.LEFT})},Rn={id:uc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(_i,{position:Ei.RIGHT})},Ni={id:Di,type:s.CommandType.COMMAND,handler:async(i,t)=>{const{position:e}=t,n=i.get(D.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=n.getRectRanges(),c=n.getActiveTextRange(),l=Lt(c,r);if(l==null)return!1;const{segmentId:A}=l,d=o.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),u=d==null?void 0:d.getSelfOrHeaderFooterModel(A).getBody();if(d==null||u==null)return!1;const m=me(i,d.getUnitId());if(m==null)return!1;const h=m.getViewModel(),f=d==null?void 0:d.getUnitId(),g=new s.TextX,p=s.JSONX.getInstance(),S=Hr(l,e,h);if(S==null)return!1;const{offset:I,colCount:E,tableId:T,insertRowIndex:O}=S,v=[],b=I+2,_=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:_}};I>0&&g.push({t:s.TextXActionType.RETAIN,len:I});const w=Qr(E);g.push({t:s.TextXActionType.INSERT,body:w,len:w.dataStream.length});const x=te(d,A);v.push(p.editOp(g.serialize(),x));const U=dn(E),L=p.insertOp(["tableSource",T,"tableRows",O],U);return v.push(L),B.params.actions=v.reduce((H,k)=>s.JSONX.compose(H,k),null),!!a.syncExecuteCommand(B.id,B.params)}},bs={id:_i,type:s.CommandType.COMMAND,handler:async(i,t)=>{var ee,Z,j;const{position:e}=t,n=i.get(D.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=n.getRectRanges(),c=n.getActiveTextRange(),l=Lt(c,r);if(l==null)return!1;const{segmentId:A}=l,d=o.getCurrentUniverDocInstance(),u=d==null?void 0:d.getSelfOrHeaderFooterModel(A).getBody();if(d==null||u==null)return!1;const m=me(i,d.getUnitId());if(m==null)return!1;const h=m.getViewModel(),f=d==null?void 0:d.getUnitId(),g=new s.TextX,p=s.JSONX.getInstance(),S=kr(l,e,h);if(S==null)return!1;const{offsets:I,columnIndex:E,tableId:T,rowCount:O}=S,v=[],b=I[0]+1,_=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:_}};for(const z of I){g.push({t:s.TextXActionType.RETAIN,len:z});const Y=Fr();g.push({t:s.TextXActionType.INSERT,body:Y,len:Y.dataStream.length})}const w=te(d,A);v.push(p.editOp(g.serialize(),w));for(let z=0;z<O;z++){const Y=An(),ie=p.insertOp(["tableSource",T,"tableRows",z,"tableCells",E],Y);v.push(ie)}const x=d.getSnapshot(),U=x.documentStyle,{marginLeft:L=0,marginRight:F=0}=U,H=((Z=(ee=U.pageSize)==null?void 0:ee.width)!=null?Z:800)-L-F,k=(j=x==null?void 0:x.tableSource)==null?void 0:j[T].tableColumns,{newColWidth:X,widths:G}=Vr(H,k,E);for(let z=0;z<G.length;z++){const Y=p.replaceOp(["tableSource",T,"tableColumns",z,"size","width","v"],k[z].size.width.v,G[z]);v.push(Y)}const W=un(X),V=p.insertOp(["tableSource",T,"tableColumns",E],W);return v.push(V),B.params.actions=v.reduce((z,Y)=>s.JSONX.compose(z,Y),null),!!a.syncExecuteCommand(B.id,B.params)}},ys="COMPONENT_DOC_CREATE_TABLE_CONFIRM";function Pi(i,t){const e=[];for(let n=0,o=i.length;n<o;n++)i[n]===s.DataStreamTreeTokenType.PARAGRAPH&&e.push({startIndex:n});if(t)for(const n of e)t.bullet&&(n.bullet=s.Tools.deepClone(t.bullet)),t.paragraphStyle&&(n.paragraphStyle=s.Tools.deepClone(t.paragraphStyle));return e}const Ui={id:"doc.command.break-line",type:s.CommandType.COMMAND,handler:async i=>{var v,b,_;const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=i.get(_e),a=t.getActiveTextRange(),r=t.getRectRanges();if(a==null)return!1;if(r&&r.length){const{startOffset:B}=a;return t.replaceDocRanges([{startOffset:B,endOffset:B}]),!0}const{segmentId:c}=a,l=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),A=l==null?void 0:l.getSelfOrHeaderFooterModel(c!=null?c:"").getBody();if(l==null||A==null)return!1;const d=l.getUnitId(),{startOffset:u,endOffset:m}=a,f=((v=A.paragraphs)!=null?v:[]).find(B=>B.startIndex>=u);if(!f)return!1;const g=f.startIndex,p=o.getDefaultStyle(),S=o.getStyleCache(),I=Xt((b=A.textRuns)!=null?b:[],m,p,S),E={dataStream:s.DataStreamTreeTokenType.PARAGRAPH,paragraphs:Pi(s.DataStreamTreeTokenType.PARAGRAPH,f),textRuns:[{st:0,ed:1,ts:{...I.ts}}]},T={startOffset:u,endOffset:m,collapsed:u===m},O=await n.executeCommand(hn.id,{unitId:d,body:E,range:T,segmentId:c});if(((_=f.bullet)==null?void 0:_.listType)===s.PresetListType.CHECK_LIST_CHECKED){const B={index:g+1-(m-u),segmentId:c,textRanges:[{startOffset:u+1,endOffset:u+1}]};return!!await n.executeCommand(rn.id,B)&&O}return O}},wi={id:"doc.command.create-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{var j,z,Y,ie,ce,ge;const{rowCount:e,colCount:n}=t,o=i.get(D.DocSelectionManagerService),a=i.get(s.IUniverInstanceService),r=i.get(s.ICommandService),c=i.get(_e),l=o.getActiveTextRange();if(l==null)return!1;const{segmentId:A,segmentPage:d}=l,u=a.getCurrentUniverDocInstance(),m=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||m==null)return!1;const h=u.getUnitId(),f=me(i,h),g=f==null?void 0:f.getSkeleton();if(g==null)return!1;const{startOffset:p}=l,I=((j=m.paragraphs)!=null?j:[]).find(le=>le.startIndex>=p),E=g.findNodeByCharIndex(p,A,d);if(E==null)return!1;const T=new s.TextX,O=s.JSONX.getInstance(),v=[],b=p+4,_=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:D.RichTextEditingMutation.id,params:{unitId:h,actions:[],textRanges:_}};p>0&&T.push({t:s.TextXActionType.RETAIN,len:p}),T.push({t:s.TextXActionType.INSERT,body:{dataStream:s.DataStreamTreeTokenType.PARAGRAPH,paragraphs:Pi(s.DataStreamTreeTokenType.PARAGRAPH,I)},len:1});const w=c.getDefaultStyle(),x=c.getStyleCache(),U=Xt((z=m.textRuns)!=null?z:[],p,w,x),{dataStream:L,paragraphs:F,sectionBreaks:H}=Lr(e,n),k=(ge=(ce=(ie=(Y=E.parent)==null?void 0:Y.parent)==null?void 0:ie.parent)==null?void 0:ce.parent)==null?void 0:ge.parent;if(k==null)return!1;const{pageWidth:X,marginLeft:G,marginRight:W}=k,V=vi(e,n,X-G-W);T.push({t:s.TextXActionType.INSERT,body:{dataStream:L,paragraphs:F,sectionBreaks:H,textRuns:[{...U,st:0,ed:L.length}],tables:[{startIndex:0,endIndex:L.length,tableId:V.tableId}]},len:L.length});const K=te(u,A);v.push(O.editOp(T.serialize(),K));const ee=O.insertOp(["tableSource",V.tableId],V);return v.push(ee),B.params.actions=v.reduce((le,Ce)=>s.JSONX.compose(le,Ce),null),!!r.syncExecuteCommand(B.id,B.params)}},Li="doc.component.create-table-confirm",On={id:"doc.operation.create-table",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(s.LocaleService),e=i.get(y.IConfirmService),n=i.get(s.ICommandService),o={rowCount:3,colCount:5},a=(r,c)=>{o.rowCount=r,o.colCount=c};return await e.open({id:Li,children:{label:{name:ys,props:{handleRowColChange:a,tableCreateParams:o}}},width:400,title:{title:t.t("toolbar.table.insert")},onConfirm:()=>{n.executeCommand(wi.id,o),e.close(Li)},onClose:()=>{e.close(Li)}}),!0}},Oe={id:"doc-paragraph-setting.command",type:s.CommandType.COMMAND,handler:async(i,t)=>{var S,I;const e=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService),o=i.get(s.ICommandService),a=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=e.getDocRanges();if(!a||r.length===0||!t)return!1;const c=r[0].segmentId,l=a.getUnitId(),A=(I=(S=a.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:S.paragraphs)!=null?I:[],d=gt(r,A),u={id:D.RichTextEditingMutation.id,params:{unitId:l,actions:[],textRanges:r}},m=new s.MemoryCursor;m.reset();const h=new s.TextX,f=s.JSONX.getInstance();for(const E of d){const{startIndex:T}=E;h.push({t:s.TextXActionType.RETAIN,len:T-m.cursor});const O={...E.paragraphStyle,...t.paragraph};h.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...E,paragraphStyle:O,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),m.moveCursorTo(T+1)}const g=te(a,c);return u.params.actions=f.editOp(h.serialize(),g),!!o.syncExecuteCommand(u.id,u.params)}},hc=()=>{const i=s.useDependency(D.DocSelectionManagerService),t=s.useDependency(Et),e=Q.useMemo(()=>i.getDocRanges(),[]);return Q.useEffect(()=>{e.length||t.closePanel()},[e]),e},gc=()=>{var r,c;const t=s.useDependency(s.IUniverInstanceService).getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),e=hc();if(!t||e.length===0)return[];const n=e[0].segmentId,o=(c=(r=t.getSelfOrHeaderFooterModel(n).getBody())==null?void 0:r.paragraphs)!=null?c:[];return gt(e,o)},mc=(i,t)=>{const e=s.useDependency(s.ICommandService),[n,o]=Q.useState(()=>{var c,l;const r=i[0];return r?String((l=(c=r.paragraphStyle)==null?void 0:c.horizontalAlign)!=null?l:t):t});return[n,r=>(o(r),e.executeCommand(Oe.id,{paragraph:{horizontalAlign:Number(r)}}))]},fc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentStart,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentStart:{v:a}}}))]},pc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentEnd,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentEnd:{v:a}}}))]},Sc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentFirstLine,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentFirstLine:{v:a}}}))]},Ic=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.hanging,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{hanging:{v:a}}}))]},Ec=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.spaceAbove,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{spaceAbove:{v:a}}}))]},vc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?M.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.spaceBelow,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{spaceBelow:{v:a}}}))]},Cc=i=>{const t=s.useDependency(s.ICommandService),e=s.useDependency(M.IRenderManagerService),n=s.useDependency(s.IUniverInstanceService),o=Q.useMemo(()=>{var f;const h=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(h)return(f=e.getRenderById(h==null?void 0:h.getUnitId()))==null?void 0:f.with(D.DocSkeletonManagerService).getSkeleton()},[]),a=Q.useMemo(()=>new N.BehaviorSubject({}),[]),[r,c]=Q.useState(()=>{var f,g;const h=i[0];return h&&(g=(f=h.paragraphStyle)==null?void 0:f.lineSpacing)!=null?g:1}),l=Q.useRef(r),[A,d]=Q.useState(()=>{var f,g;const h=i[0];return h&&(g=(f=h.paragraphStyle)==null?void 0:f.spacingRule)!=null?g:s.SpacingRule.AUTO}),u=async h=>{c(h),a.next({lineSpacing:h,spacingRule:A})},m=async h=>{if(h!==A){let f=l.current;if(h===s.SpacingRule.AT_LEAST){const g=o==null?void 0:o.findNodeByCharIndex(i[0].startIndex),p=g==null?void 0:g.parent,S=p==null?void 0:p.parent;(S==null?void 0:S.contentHeight)!==void 0&&(f=Math.max(S.contentHeight,f))}else f>5&&(f=2);l.current=r,u(f),d(h),a.next({spacingRule:h})}};return Q.useEffect(()=>{const h=a.pipe(yt.filter(f=>!!Object.keys(f).length),yt.bufferTime(16),yt.filter(f=>!!f.length),yt.map(f=>f.reduce((g,p)=>(Object.keys(p).forEach(S=>{g[S]=p[S]}),g),{}))).subscribe(f=>t.executeCommand(Oe.id,{paragraph:{...f}}));return()=>h.unsubscribe()},[]),{lineSpacing:[r,u],spacingRule:[A,m]}},q={paragraphSettingIconList:"univer-paragraph-setting-icon-list",paragraphSettingIconListItem:"univer-paragraph-setting-icon-list-item",paragraphSettingIconListActive:"univer-paragraph-setting-icon-list-active",paragraphSettingTitle:"univer-paragraph-setting-title",paragraphSettingLabel:"univer-paragraph-setting-label",paragraphSettingMtBase:"univer-paragraph-setting-mt-base",paragraphSettingFlexCol:"univer-paragraph-setting-flex-col",paragraphSettingSpaceLine:"univer-paragraph-setting-space-line"},nt=i=>{const{value:t,onChange:e,className:n="",min:o=0,max:a=100,step:r=1}=i,c=Zs.useRef(null);return P.jsx(se.InputNumber,{step:r,ref:c,min:o,max:a,value:t,onChange:l=>{e(l!=null?l:0).finally(()=>{setTimeout(()=>{var A;(A=c.current)==null||A.focus()},30)})},className:n})};function Tc(){const i=s.useDependency(s.LocaleService),t=Q.useMemo(()=>[{label:i.t("toolbar.alignLeft"),value:String(s.HorizontalAlign.LEFT),icon:P.jsx(Mo,{})},{label:i.t("toolbar.alignCenter"),value:String(s.HorizontalAlign.CENTER),icon:P.jsx(Oo,{})},{label:i.t("toolbar.alignRight"),value:String(s.HorizontalAlign.RIGHT),icon:P.jsx(Bo,{})},{label:i.t("toolbar.alignJustify"),value:String(s.HorizontalAlign.JUSTIFIED),icon:P.jsx(bo,{})}],[]),e=gc(),[n,o]=mc(e,t[0].value),[a,r]=fc(e),[c,l]=pc(e),[A,d]=Sc(e),[u,m]=Ic(e),[h,f]=Ec(e),[g,p]=vc(e),{lineSpacing:[S,I],spacingRule:[E,T]}=Cc(e),O=Q.useMemo(()=>E===s.SpacingRule.AUTO?{min:1,max:5,step:S<2?.5:1}:{min:1,max:100},[E,S]);return P.jsxs("div",{className:q.paragraphSetting,children:[P.jsx("div",{className:q.paragraphSettingTitle,children:i.t("doc.paragraphSetting.alignment")}),P.jsx("div",{className:`
|
|
103
131
|
${q.paragraphSettingIconList}
|
|
104
132
|
${q.paragraphSettingMtBase}
|
|
105
133
|
`,children:t.map(v=>P.jsx(se.Tooltip,{title:v.label,placement:"bottom",children:P.jsx("span",{className:en(q.paragraphSettingIconListItem,{[q.paragraphSettingIconListActive]:n===v.value}),onClick:()=>o(v.value),children:v.icon})},v.value))}),P.jsx("div",{className:q.paragraphSettingTitle,children:i.t("doc.paragraphSetting.indentation")}),P.jsxs("div",{children:[P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.left"),"(px)"]}),P.jsx(nt,{className:q.paragraphSettingMtBase,value:a,onChange:v=>r(v!=null?v:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.right"),"(px)"]}),P.jsx(nt,{className:q.paragraphSettingMtBase,value:c,onChange:v=>l(v!=null?v:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.firstLine"),"(px)"]}),P.jsx(nt,{className:q.paragraphSettingMtBase,value:A,onChange:v=>d(v!=null?v:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.hanging"),"(px)"]}),P.jsx(nt,{className:q.paragraphSettingMtBase,value:u,onChange:v=>m(v!=null?v:0)})]})]}),P.jsx("div",{className:q.paragraphSettingTitle,children:i.t("doc.paragraphSetting.spacing")}),P.jsxs("div",{children:[P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.before"),"(px)"]}),P.jsx(nt,{className:q.paragraphSettingMtBase,value:h,onChange:v=>f(v!=null?v:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.after"),"(px)"]}),P.jsx(nt,{className:q.paragraphSettingMtBase,value:g,onChange:v=>p(v!=null?v:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsx("div",{className:q.paragraphSettingLabel,children:i.t("doc.paragraphSetting.lineSpace")}),P.jsxs("div",{className:`
|
|
106
134
|
${q.paragraphSettingMtBase}
|
|
107
135
|
${q.paragraphSettingSpaceLine}
|
|
108
|
-
`,style:{width:162},children:[P.jsx(se.Select,{value:`${E}`,options:[{label:i.t("doc.paragraphSetting.multiSpace"),value:`${s.SpacingRule.AUTO}`},{label:i.t("doc.paragraphSetting.fixedValue"),value:`${s.SpacingRule.AT_LEAST}`}],onChange:v=>T(Number(v))}),P.jsx(nt,{...O,value:S,onChange:v=>I(v!=null?v:0)})]})]})]})]})}const bc=(i,t)=>t.length===i.length&&i.some(e=>t.some(n=>n.startOffset===e.startOffset&&n.endOffset===e.endOffset));function yc(){const i=s.useDependency(s.ICommandService),t=s.useDependency(s.LocaleService),e=s.useObservable(t.currentLocale$),[n,o]=Q.useState(""),a=Q.useMemo(()=>s.debounce(()=>o(s.generateRandomId(4)),300),[]),r=Q.useRef([]);return Q.useEffect(()=>{const c=i.onCommandExecuted(l=>{if(D.SetTextSelectionsOperation.id===l.id){const A=l.params.ranges;bc(A,r.current)||o(s.generateRandomId(4)),r.current=A}D.RichTextEditingMutation.id===l.id&&l.params.trigger!==Oe.id&&a()});return()=>c.dispose()},[a]),Q.useEffect(()=>{o(s.generateRandomId(4))},[e]),Q.useEffect(()=>()=>a.cancel(),[a]),P.jsx(Tc,{},n)}var Rc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,xc=(i,t,e,n)=>{for(var o=n>1?void 0:n?Oc(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Rc(t,e,o),o},Qi=(i,t)=>(e,n)=>t(e,n,i);const ys="doc_ui_paragraph-setting-panel";let Et=class extends s.Disposable{constructor(t,e,n){super();R(this,"_id");this._commandService=t,this._componentManager=e,this._sidebarService=n,this._init()}_init(){this.disposeWithMe(this._componentManager.register(ys,yc))}openPanel(){const t={header:{title:"doc.slider.paragraphSetting"},id:this._id,children:{label:ys},width:300};this._sidebarService.open(t)}closePanel(){this._sidebarService.close(this._id)}};Et=xc([Qi(0,s.ICommandService),Qi(1,s.Inject(y.ComponentManager)),Qi(2,s.Inject(y.ISidebarService))],Et);const Fi={id:"sidebar.operation.doc-paragraph-setting-panel",type:s.CommandType.OPERATION,handler:i=>(i.get(Et).openPanel(),!0)},Hi=i=>{const t=i.get(D.DocSelectionManagerService);return new N.Observable(e=>{const n=t.textSelection$.subscribe(()=>{const o=t.getActiveTextRange();o&&!o.collapsed?e.next(!1):e.next(!0)});return()=>n.unsubscribe()})};function Mc(i){if(i.length<2)return!0;const t=i.map(e=>e.tableId);return t.every(e=>e===t[0])}function Rs(i,t,e){var a;const n=t.getRectRanges(),o=t.getActiveTextRange();if(n&&n.length&&Mc(n)&&o==null){i.next(!1);return}if(o&&(n==null||n.length===0)){const{segmentId:r,startOffset:c,endOffset:l}=o,A=e.getCurrentUniverDocInstance(),d=(a=A==null?void 0:A.getSelfOrHeaderFooterModel(r).getBody())==null?void 0:a.tables;if(d&&d.length&&d.some(u=>{const{startIndex:m,endIndex:h}=u;return c>m&&c<h||l>m&&l<h})){i.next(!1);return}}i.next(!0)}const Pe=i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService);return new N.Observable(n=>{const o=t.textSelection$.subscribe(()=>{Rs(n,t,e)});return Rs(n,t,e),()=>o.unsubscribe()})},Bc=i=>({id:Ht.name,commandId:Ht.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.copy",disabled$:Hi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Dc=i=>({id:Fi.id,type:y.MenuItemType.BUTTON,icon:"MenuSingle24",title:"doc.menu.paragraphSetting",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),_c=i=>({id:Sn.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.cut",disabled$:Hi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Nc=i=>({id:In.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.paste",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Pc=i=>({id:Qt.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.delete",disabled$:Hi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Os="doc.menu.table-insert";function Uc(i){return{id:Os,type:y.MenuItemType.SUBITEMS,title:"table.insert",icon:"Insert",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Pe(i),(t,e)=>t||e)}}function wc(i){return{id:Tn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowAbove",icon:"InsertRowAbove",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Lc(i){return{id:bn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowBelow",icon:"InsertRowBelow",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Qc(i){return{id:yn.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnLeft",icon:"LeftInsertColumn",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Fc(i){return{id:Rn.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnRight",icon:"RightInsertColumn",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}const xs="doc.menu.table-delete";function Hc(i){return{id:xs,type:y.MenuItemType.SUBITEMS,title:"table.delete",icon:"Reduce",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Pe(i),(t,e)=>t||e)}}function kc(i){return{id:vn.id,type:y.MenuItemType.BUTTON,title:"table.deleteRows",icon:"DeleteRow",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Vc(i){return{id:Cn.id,type:y.MenuItemType.BUTTON,title:"table.deleteColumns",icon:"DeleteColumn",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function jc(i){return{id:It.id,type:y.MenuItemType.BUTTON,title:"table.deleteTable",icon:"GridSingle",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Wc(i){const t=i.get(s.IUniverInstanceService),e=i.get(M.IRenderManagerService);return new N.Observable(n=>{const o=t.focused$.subscribe(c=>{if(c==null||t.getUnitType(c)!==s.UniverInstanceType.UNIVER_DOC)return n.next(!0);const A=e.getRenderById(c);if(A==null)return n.next(!0);A.with(D.DocSkeletonManagerService).getViewModel().editAreaChange$.subscribe(u=>{n.next(u===M.DocumentEditArea.HEADER||u===M.DocumentEditArea.FOOTER)})}),a=e.getCurrentTypeOfRenderer(s.UniverInstanceType.UNIVER_DOC);if(a==null)return n.next(!0);const r=a.with(D.DocSkeletonManagerService).getViewModel();return n.next(r.getEditArea()!==M.DocumentEditArea.BODY),()=>o.unsubscribe()})}function zc(i){const t=i.get(s.IUniverInstanceService),e=i.get(s.ICommandService);return new N.Observable(n=>{const o=e.onCommandExecuted(l=>{if(l.id===D.RichTextEditingMutation.id){const{unitId:A}=l.params,d=t.getUnit(A);if(d==null){n.next(!0);return}const{documentStyle:u}=d.getSnapshot();n.next((u==null?void 0:u.documentFlavor)!==s.DocumentFlavor.TRADITIONAL)}}),a=t.focused$.subscribe(l=>{if(l==null)return n.next(!0);const A=t.getUniverDocInstance(l),d=A==null?void 0:A.getSnapshot().documentStyle.documentFlavor;n.next(d!==s.DocumentFlavor.TRADITIONAL)}),r=t.getCurrentUniverDocInstance();if(r==null)return n.next(!0);const c=r==null?void 0:r.getSnapshot().documentStyle.documentFlavor;return n.next(c!==s.DocumentFlavor.TRADITIONAL),()=>{o.dispose(),a.unsubscribe()}})}function Gc(i){const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService);return new N.Observable(n=>{const o=t.textSelection$.subscribe(a=>{if(a==null){n.next(!0);return}const{textRanges:r}=a;if(r.length!==1){n.next(!0);return}const c=r[0],{collapsed:l,startNodePosition:A,startOffset:d}=c;if(!l||d==null){n.next(!0);return}const u=e.getCurrentUniverDocInstance();if(u==null){n.next(!0);return}const m=me(i,u.getUnitId());if(m==null){n.next(!0);return}if(m.getViewModel().getCustomRangeRaw(d)){n.next(!0);return}if(A!=null){const{path:g}=A;if(g.indexOf("cells")!==-1){n.next(!0);return}}n.next(!1)});return()=>o.unsubscribe()})}function re(i){const t=i.get(D.DocSelectionManagerService);return new N.Observable(e=>{const n=t.textSelection$.subscribe(o=>{if(o==null){e.next(!0);return}const{textRanges:a,rectRanges:r}=o;if(a.length===0&&r.length===0){e.next(!0);return}e.next(!1)});return()=>n.unsubscribe()})}function Yc(i){const t=i.get(s.ICommandService);return{id:Ge.id,type:y.MenuItemType.BUTTON,icon:"BoldSingle",title:"Set bold",tooltip:"toolbar.bold",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.bl;e.next(l===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Xc(i){const t=i.get(s.ICommandService);return{id:Ye.id,type:y.MenuItemType.BUTTON,icon:"ItalicSingle",title:"Set italic",tooltip:"toolbar.italic",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.it;e.next(l===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Kc(i){const t=i.get(s.ICommandService);return{id:Xe.id,type:y.MenuItemType.BUTTON,icon:"UnderlineSingle",title:"Set underline",tooltip:"toolbar.underline",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.ul;e.next((l==null?void 0:l.s)===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Jc(i){const t=i.get(s.ICommandService);return{id:Ke.id,type:y.MenuItemType.BUTTON,icon:"StrikethroughSingle",title:"Set strike through",tooltip:"toolbar.strikethrough",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.st;e.next((l==null?void 0:l.s)===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Zc(i){const t=i.get(s.ICommandService);return{id:Fe.id,type:y.MenuItemType.BUTTON,icon:"SubscriptSingle",tooltip:"toolbar.subscript",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.va;e.next(l===s.BaselineOffset.SUBSCRIPT)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function qc(i){const t=i.get(s.ICommandService);return{id:Je.id,type:y.MenuItemType.BUTTON,icon:"SuperscriptSingle",tooltip:"toolbar.superscript",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.va;e.next(l===s.BaselineOffset.SUPERSCRIPT)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function $c(i){const t=i.get(s.ICommandService);return{id:qe.id,tooltip:"toolbar.font",type:y.MenuItemType.SELECTOR,label:jo,selections:y.FONT_FAMILY_LIST.map(e=>({label:{name:Wo,hoverable:!0},value:e.value})),value$:new N.Observable(e=>{const n=s.DEFAULT_STYLES.ff,o=t.onCommandExecuted(a=>{var c;const r=a.id;if(r===D.SetTextSelectionsOperation.id||r===qe.id){const l=He(i);if(l==null){e.next(n);return}const A=(c=l.ts)==null?void 0:c.ff;e.next(A!=null?A:n)}});return e.next(n),o.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function el(i){const t=i.get(s.ICommandService);return{id:Ze.id,type:y.MenuItemType.SELECTOR,tooltip:"toolbar.fontSize",label:{name:zo,props:{min:1,max:400}},selections:y.FONT_SIZE_LIST,value$:new N.Observable(e=>{const n=s.DEFAULT_STYLES.fs,o=t.onCommandExecuted(a=>{var c;const r=a.id;if(r===D.SetTextSelectionsOperation.id||r===Ze.id){const l=He(i);if(l==null){e.next(n);return}const A=(c=l.ts)==null?void 0:c.fs;e.next(A!=null?A:n)}});return e.next(n),o.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function tl(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:$e.id,icon:"FontColor",tooltip:"toolbar.textColor.main",type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:gi,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().textColor,a=t.onCommandExecuted(r=>{if(r.id===$e.id){const c=r.params.value;n.next(c!=null?c:o)}});return n.next(o),a.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function nl(i){return{id:ui.id,type:y.MenuItemType.BUTTON,icon:"HeaderFooterSingle",tooltip:"toolbar.headerFooter",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),zc(i),(t,e)=>t||e)}}const il="GridSingle",Ms="doc.menu.table";function ol(i){return{id:Ms,type:y.MenuItemType.SUBITEMS,icon:il,tooltip:"toolbar.table.main",disabled$:Gc(i),hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),Wc(i),(t,e)=>t||e)}}function sl(i){return{id:On.id,title:"toolbar.table.insert",type:y.MenuItemType.BUTTON,hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function al(i){const t=i.get(s.ICommandService);return{id:Nt.id,type:y.MenuItemType.BUTTON,icon:"LeftJustifyingSingle",tooltip:"toolbar.alignLeft",disabled$:re(i),activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.LEFT)}});return e.next(!1),n.dispose}),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function rl(i){const t=i.get(s.ICommandService);return{id:Pt.id,type:y.MenuItemType.BUTTON,icon:"HorizontallySingle",tooltip:"toolbar.alignCenter",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.CENTER)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function cl(i){const t=i.get(s.ICommandService);return{id:Ut.id,type:y.MenuItemType.BUTTON,icon:"RightJustifyingSingle",tooltip:"toolbar.alignRight",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.RIGHT)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function ll(i){const t=i.get(s.ICommandService);return{id:wt.id,type:y.MenuItemType.BUTTON,icon:"AlignTextBothSingle",tooltip:"toolbar.alignJustify",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.JUSTIFIED)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}const kt=i=>new N.Observable(t=>{const e=i.get(s.IUniverInstanceService),n=i.get(D.DocSelectionManagerService);let o;const a=e.focused$.subscribe(r=>{if(o==null||o.unsubscribe(),r==null)return;const c=e.getUniverDocInstance(r);c!=null&&(o=n.textSelection$.subscribe(()=>{var d,u,m;const l=n.getDocRanges(),A=(d=l.find(h=>h.isActive))!=null?d:l[0];if(A){const h=c.getSelfOrHeaderFooterModel(A==null?void 0:A.segmentId),f=cn(A,(m=(u=h.getBody())==null?void 0:u.paragraphs)!=null?m:[]);let g;if(f.every(p=>{var S;return g||(g=(S=p.bullet)==null?void 0:S.listType),p.bullet&&p.bullet.listType===g})){t.next(g);return}}t.next(void 0)}))});return()=>{a.unsubscribe(),o==null||o.unsubscribe()}});function Al(i){return{id:_t.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:Yo,hoverable:!1},value$:kt(i)}],icon:"OrderSingle",tooltip:"toolbar.order",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),disabled$:re(i),activated$:kt(i).pipe(N.map(t=>t&&t.indexOf("ORDER_LIST")===0))}}function dl(i){return{id:Dt.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:Xo,hoverable:!1},value$:kt(i)}],icon:"UnorderSingle",tooltip:"toolbar.unorder",disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:kt(i).pipe(N.map(t=>t&&t.indexOf("BULLET_LIST")===0))}}function ul(i){return{id:an.id,type:y.MenuItemType.BUTTON,icon:"TodoList",tooltip:"toolbar.checklist",disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:kt(i).pipe(N.map(t=>t&&t.indexOf("CHECK_LIST")===0))}}function hl(i){const t=i.get(s.ICommandService),e=i.get(s.IUniverInstanceService);return{id:En.id,type:y.MenuItemType.BUTTON,icon:"KeyboardSingle",tooltip:"toolbar.documentFlavor",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),activated$:new N.Observable(n=>{var r;const o=t.onCommandExecuted(c=>{var l;if(c.id===D.RichTextEditingMutation.id){const A=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);n.next(((l=A==null?void 0:A.getSnapshot())==null?void 0:l.documentStyle.documentFlavor)===s.DocumentFlavor.MODERN)}}),a=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);return n.next(((r=a==null?void 0:a.getSnapshot())==null?void 0:r.documentStyle.documentFlavor)===s.DocumentFlavor.MODERN),()=>o.dispose()})}}function gl(i){return{id:ut.id,type:y.MenuItemType.BUTTON,title:"toolbar.resetColor",icon:"NoColor"}}function ml(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:et.id,tooltip:"toolbar.fillColor.main",type:y.MenuItemType.BUTTON_SELECTOR,icon:"PaintBucket",selections:[{label:{name:gi,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().primaryColor,a=t.onCommandExecuted(r=>{if(r.id===et.id){const c=r.params.value;n.next(c!=null?c:o)}});return n.next(o),a.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function He(i){var m,h;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=i.get(_e),o=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),a=e.getDocRanges(),r=(m=a.find(f=>f.isActive))!=null?m:a[0],c=n.getDefaultStyle(),l=(h=n.getStyleCache())!=null?h:{};if(o==null||r==null)return{ts:{...c,...l}};const{segmentId:A}=r,d=o.getSelfOrHeaderFooterModel(A).getBody();return d==null?{ts:{...c,...l}}:{ts:{...rs(d,r,c),...l}}}function xn(i){var d,u;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=t.getCurrentUniverDocInstance(),o=e.getDocRanges(),a=(d=o.find(m=>m.isActive))!=null?d:o[0];if(n==null||a==null)return;const{startOffset:r,segmentId:c}=a,l=(u=n.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:u.paragraphs;if(l==null)return;let A=-1;for(const m of l){const{startIndex:h}=m;if(r>A&&r<=h)return m;A=h}return null}const Bs={[y.RibbonStartGroup.FORMAT]:{[Ge.id]:{order:0,menuItemFactory:Yc},[Ye.id]:{order:1,menuItemFactory:Xc},[Xe.id]:{order:2,menuItemFactory:Kc},[Ke.id]:{order:3,menuItemFactory:Jc},[Fe.id]:{order:4,menuItemFactory:Zc},[Je.id]:{order:5,menuItemFactory:qc},[Ze.id]:{order:6,menuItemFactory:el},[qe.id]:{order:7,menuItemFactory:$c},[$e.id]:{order:8,menuItemFactory:tl},[et.id]:{order:9,menuItemFactory:ml,[ut.id]:{order:0,menuItemFactory:gl}}},[y.RibbonStartGroup.LAYOUT]:{[Ms]:{order:1,menuItemFactory:ol,[On.id]:{order:0,menuItemFactory:sl}},[Nt.id]:{order:2,menuItemFactory:al},[Pt.id]:{order:3,menuItemFactory:rl},[Ut.id]:{order:4,menuItemFactory:cl},[wt.id]:{order:5,menuItemFactory:ll},[_t.id]:{order:6,menuItemFactory:Al},[Dt.id]:{order:7,menuItemFactory:dl},[an.id]:{order:8,menuItemFactory:ul},[ui.id]:{order:9,menuItemFactory:nl},[En.id]:{order:10,menuItemFactory:hl}},[y.ContextMenuPosition.MAIN_AREA]:{[y.ContextMenuGroup.FORMAT]:{[Ht.name]:{order:0,menuItemFactory:Bc},[Sn.id]:{order:1,menuItemFactory:_c},[In.id]:{order:2,menuItemFactory:Nc},[Qt.id]:{order:3,menuItemFactory:Pc}},[y.ContextMenuGroup.LAYOUT]:{[Fi.id]:{order:0,menuItemFactory:Dc},[Os]:{order:1,menuItemFactory:Uc,[Tn.id]:{order:1,menuItemFactory:wc},[bn.id]:{order:2,menuItemFactory:Lc},[yn.id]:{order:3,menuItemFactory:Qc},[Rn.id]:{order:4,menuItemFactory:Fc}},[xs]:{order:2,menuItemFactory:Hc,[vn.id]:{order:1,menuItemFactory:kc},[Cn.id]:{order:2,menuItemFactory:Vc},[It.id]:{order:3,menuItemFactory:jc}}}}};var fl=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,Sl=(i,t,e,n)=>{for(var o=n>1?void 0:n?pl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&fl(t,e,o),o},Ue=(i,t)=>(e,n)=>t(e,n,i);C.DocUIController=class extends s.Disposable{constructor(t,e,n,o,a,r,c,l,A){super(),this._injector=t,this._componentManager=e,this._commandService=n,this._layoutService=o,this._menuManagerService=a,this._uiPartsService=r,this._univerInstanceService=c,this._shortcutService=l,this._configService=A,this._init()}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(gi,se.ColorPicker)),this.disposeWithMe(t.register(jo,y.FontFamily)),this.disposeWithMe(t.register(Wo,y.FontFamilyItem)),this.disposeWithMe(t.register(zo,y.FontSize)),this.disposeWithMe(t.register(Xo,or)),this.disposeWithMe(t.register(Yo,nr)),this.disposeWithMe(t.register("TodoList",_o))}_initUiParts(){var n,o;const t=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET),e=this._configService.getConfig(Ii);(o=(n=e==null?void 0:e.layout)==null?void 0:n.docContainerConfig)!=null&&o.footer&&!t&&this.disposeWithMe(this._uiPartsService.registerComponent(y.BuiltInUIPart.FOOTER,()=>s.connectInjector(Ur,this._injector)))}_initMenus(){this._menuManagerService.mergeMenu(Bs)}_initShortCut(){[fr,pr,Sr,Ir,Er,vr,br,yr,Tr,Cr,Rr,Or,ar].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_init(){this._initCustomComponents(),this._initMenus(),this._initFocusHandler(),this._initCommands(),this._initUiParts(),this._initShortCut()}_initCommands(){[Vo,ui,Ai].forEach(t=>this.disposeWithMe(this._commandService.registerCommand(t)))}_initFocusHandler(){this.disposeWithMe(this._layoutService.registerFocusHandler(s.UniverInstanceType.UNIVER_DOC,t=>{this._injector.get(M.IRenderManagerService).getRenderById(t).with(C.DocSelectionRenderService).focus()}))}},C.DocUIController=Sl([Ue(0,s.Inject(s.Injector)),Ue(1,s.Inject(y.ComponentManager)),Ue(2,s.ICommandService),Ue(3,y.ILayoutService),Ue(4,y.IMenuManagerService),Ue(5,y.IUIPartsService),Ue(6,s.IUniverInstanceService),Ue(7,y.IShortcutService),Ue(8,s.IConfigService)],C.DocUIController);var Il=Object.defineProperty,El=Object.getOwnPropertyDescriptor,vl=(i,t,e,n)=>{for(var o=n>1?void 0:n?El(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Il(t,e,o),o},ki=(i,t)=>(e,n)=>t(e,n,i);const Ds=1.5;C.DocBackScrollRenderController=class extends s.RxDisposable{constructor(t,e,n,o){super(),this._context=t,this._textSelectionManagerService=e,this._editorService=n,this._docSkeletonManagerService=o,this._init()}_init(){this._textSelectionManagerService.textSelection$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>{if(t==null)return;const{isEditing:e,unitId:n}=t;n!==this._context.unitId||!e||this._context.unitId!==s.DOCS_NORMAL_EDITOR_UNIT_ID_KEY&&this._scrollToSelection()})}scrollToRange(t){const e=this._docSkeletonManagerService.getSkeleton();if(!e)return;const{startOffset:n}=t,o=e.findNodePositionByCharIndex(n);o&&this.scrollToNode(o)}scrollToNode(t){var w;const{unitId:e,scene:n,mainComponent:o}=this._context,a=this._docSkeletonManagerService.getSkeleton();if(o==null||a==null)return;const r=o.getOffsetConfig(),{docsLeft:c,docsTop:l}=r,A=new De(r,a),{contentBoxPointGroup:d}=A.getRangePointData(t,t),{left:u,top:m,height:h}=Ot(d),f=u+c,g=m+l,p=n.getViewport(be.VIEW_MAIN),S=this._editorService.getEditor(e);if(p==null)return;const{left:I,top:E,right:T,bottom:O}=p.getBounding().viewBound;let v=0,b=0;const _=S?(w=S.params.backScrollOffset)!=null?w:0:100;g<E?v=g-E-_:g>O-h&&(v=g-O+h+_),f<I?b=f-I:f>T-Ds&&(b=f-T+Ds);const B=p.transViewportScroll2ScrollValue(b,v);p.scrollByBarDeltaValue(B)}_scrollToSelection(){const t=this._textSelectionManagerService.getActiveTextRange();if(t==null)return;const{collapsed:e,startNodePosition:n}=t;e&&this.scrollToNode(n)}},C.DocBackScrollRenderController=vl([ki(1,s.Inject(D.DocSelectionManagerService)),ki(2,fe),ki(3,s.Inject(D.DocSkeletonManagerService))],C.DocBackScrollRenderController);var Cl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,bl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Tl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Cl(t,e,o),o},vt=(i,t)=>(e,n)=>t(e,n,i);C.DocRenderController=class extends s.RxDisposable{constructor(t,e,n,o,a,r,c){super(),this._context=t,this._commandService=e,this._docSelectionRenderService=n,this._docSkeletonManagerService=o,this._editorService=a,this._renderManagerService=r,this._univerInstanceService=c,this._addNewRender(),this._initRenderRefresh(),this._initCommandListener()}reRender(t){var r,c;const e=(r=this._renderManagerService.getRenderById(t))==null?void 0:r.with(D.DocSkeletonManagerService),n=e==null?void 0:e.getSkeleton();if(!n||!!n.getViewModel().getDataModel().getSnapshot().disabled)return;n.calculate();const a=this._editorService.getEditor(t);if(this._editorService.isEditor(t)&&!(a!=null&&a.params.scrollBar)){(c=this._context.mainComponent)==null||c.makeDirty();return}this._recalculateSizeBySkeleton(n)}_addNewRender(){const{scene:t,engine:e}=this._context,n=new M.Viewport(be.VIEW_MAIN,t,{left:0,top:0,bottom:0,right:0,isWheelPreventDefaultX:!0});t.attachControl(),t.onMouseWheel$.subscribeEvent((o,a)=>{const r=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if((r==null?void 0:r.getUnitId())!==this._context.unitId)return;const c=o;if(c.ctrlKey){const l=Math.abs(c.deltaX);let A=l<40?.2:l<80?.4:.2;A*=c.deltaY>0?-1:1,t.scaleX<1&&(A/=2),t.scaleX+A>4?t.scale(4,4):t.scaleX+A<.1?t.scale(.1,.1):c.preventDefault()}else n.onMouseWheel(c,a)}),new M.ScrollBar(n),t.addLayer(new M.Layer(t,[],Yt),new M.Layer(t,[],ro)),this._addComponent(),e.runRenderLoop(()=>{t.render()}),this._docSelectionRenderService.__attachScrollEvent()}_addComponent(){const{scene:t,unit:e,components:n}=this._context,r={pageMarginLeft:20,pageMarginTop:20},c=new M.Documents(Ie.MAIN,void 0,r);c.zIndex=Wn;const l=new M.DocBackground(Ie.BACKGROUND,void 0,r);l.zIndex=Wn,this._context.mainComponent=c,n.set(Ie.MAIN,c),n.set(Ie.BACKGROUND,l),t.addObjects([c],Yt),t.addObjects([l],ao),this._editorService.getEditor(e.getUnitId())==null&&t.enableLayerCache(Yt)}_initRenderRefresh(){this._docSkeletonManagerService.currentSkeletonBefore$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>{this._create(t)})}_create(t){if(!t)return;const{mainComponent:e,components:n}=this._context,o=e,a=n.get(Ie.BACKGROUND);o.changeSkeleton(t),a.changeSkeleton(t),this._recalculateSizeBySkeleton(t)}_initCommandListener(){const t=[D.RichTextEditingMutation.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)){const n=e.params,{unitId:o}=n;this.reRender(o)}}))}_recalculateSizeBySkeleton(t){var f;const{mainComponent:e,scene:n,unitId:o,components:a}=this._context,r=e,c=a.get(Ie.BACKGROUND),l=(f=t.getSkeletonData())==null?void 0:f.pages;if(l==null)return;let A=0,d=0;const m=this._context.unit.getSnapshot().documentStyle.documentFlavor;for(let g=0,p=l.length;g<p;g++){const S=l[g];let{pageWidth:I,pageHeight:E}=S;if(m===s.DocumentFlavor.MODERN){const T=yl(S);I=T.pageWidth,E=T.pageHeight}r.pageLayoutType===M.PageLayoutType.VERTICAL?(d+=E,d+=r.pageMarginTop,g===p-1&&(d+=r.pageMarginTop),A=Math.max(A,I)):r.pageLayoutType===M.PageLayoutType.HORIZONTAL&&(A+=I,g!==p-1&&(A+=r.pageMarginLeft),d=Math.max(d,E))}r.resize(A,d),c.resize(A,d);const h=this._editorService.getEditor(o);(!this._editorService.isEditor(o)||h!=null&&h.params.scrollBar)&&n.resize(A,d)}},C.DocRenderController=bl([vt(1,s.ICommandService),vt(2,s.Inject(C.DocSelectionRenderService)),vt(3,s.Inject(D.DocSkeletonManagerService)),vt(4,fe),vt(5,M.IRenderManagerService),vt(6,s.IUniverInstanceService)],C.DocRenderController);function yl(i){let{pageWidth:t,pageHeight:e}=i;const{marginLeft:n,marginRight:o,marginTop:a,marginBottom:r,skeDrawings:c,skeTables:l}=i;t===Number.POSITIVE_INFINITY&&(t=i.width+n+o),e===Number.POSITIVE_INFINITY&&(e=i.height+a+r);for(const A of c.values())t=Math.max(t,A.aLeft+A.width+n+o),e=Math.max(e,A.aTop+A.height+a+r);for(const A of l.values())t=Math.max(t,A.left+A.width+n+o),e=Math.max(e,A.top+A.height+a+r);return{pageWidth:t,pageHeight:e}}const Vi={id:"doc.command.select-all",type:s.CommandType.COMMAND,handler:async i=>{var m;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),o=e.getDocRanges(),a=(m=o.find(h=>h.isActive))!=null?m:o[0];if(n==null||a==null)return!1;const{segmentId:r}=a,c=n.getUnitId(),l=n.getSelfOrHeaderFooterModel(r).getSnapshot().body;if(l==null)return!1;const{tables:A=[]}=l,d=[];let u=0;for(const h of A){const{startIndex:f,endIndex:g}=h;u!==f&&d.push({startOffset:u,endOffset:f-1,rangeType:s.DOC_RANGE_TYPE.TEXT}),d.push({startOffset:f+3,endOffset:g-5,rangeType:s.DOC_RANGE_TYPE.RECT}),u=g}return u!==l.dataStream.length-2&&d.push({startOffset:u,endOffset:l.dataStream.length-2,rangeType:s.DOC_RANGE_TYPE.TEXT}),e.replaceDocRanges(d,{unitId:c,subUnitId:c},!1),!0}};class Vt extends s.RxDisposable{constructor(e){super();R(this,"_previousActiveRange",null);R(this,"_undoMutationParamsCache",[]);R(this,"_redoMutationParamsCache",[]);this._context=e}clearUndoRedoMutationParamsCache(){this._undoMutationParamsCache=[],this._redoMutationParamsCache=[]}getUndoRedoMutationParamsCache(){return{undoCache:this._undoMutationParamsCache,redoCache:this._redoMutationParamsCache}}setUndoRedoMutationParamsCache({undoCache:e=[],redoCache:n=[]}){this._undoMutationParamsCache=e,this._redoMutationParamsCache=n}getActiveRange(){return this._previousActiveRange}setActiveRange(e){this._previousActiveRange=e}pushUndoRedoMutationParams(e,n){this._undoMutationParamsCache.push(e),this._redoMutationParamsCache.push(n)}fetchComposedUndoRedoMutationParams(){if(this._undoMutationParamsCache.length===0||this._previousActiveRange==null||this._redoMutationParamsCache.length===0)return null;const{unitId:e}=this._undoMutationParamsCache[0],n={unitId:e,actions:this._undoMutationParamsCache.reverse().reduce((a,r)=>s.JSONX.compose(a,r.actions),null),textRanges:[]};return{redoMutationParams:{unitId:e,actions:this._redoMutationParamsCache.reduce((a,r)=>s.JSONX.compose(a,r.actions),null),textRanges:[]},undoMutationParams:n,previousActiveRange:this._previousActiveRange}}dispose(){this._undoMutationParamsCache=[],this._redoMutationParamsCache=[],this._previousActiveRange=null}}const Rl=s.SHEET_EDITOR_UNITS,ji={id:"doc.command.ime-input",type:s.CommandType.COMMAND,handler:async(i,t)=>{var k,X,G,W;const{unitId:e,newText:n,oldTextLen:o,isCompositionEnd:a,isCompositionStart:r}=t,c=i.get(s.ICommandService),l=i.get(M.IRenderManagerService),A=i.get(s.IUniverInstanceService),d=i.get(_e),u=(k=l.getRenderById(e))==null?void 0:k.with(Vt),m=A.getUnit(e,s.UniverInstanceType.UNIVER_DOC);if(m==null||u==null)return!1;const h=u.getActiveRange();if(h==null)return!1;const{style:f,segmentId:g}=h,p=m.getSelfOrHeaderFooterModel(g).getBody();if(p==null)return!1;Object.assign(h,h);const{startOffset:I,endOffset:E}=h,T=n.length,O=[{startOffset:I+T,endOffset:I+T,collapsed:!0,style:f}],v={id:D.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:O}},b=d.getDefaultStyle(),_=d.getStyleCache(),B=zn((X=p.customRanges)!=null?X:[],I+o,Rl.includes(e)),w=Xt((G=p.textRuns)!=null?G:[],r?E:I+o,b,_),x=Gn((W=p.customDecorations)!=null?W:[],I+o),U=new s.TextX,L=s.JSONX.getInstance();if(!h.collapsed&&r){const V=s.BuildTextUtils.selection.delete([h],p,0,null,!1);U.push(...V),v.params.textRanges=[{startOffset:I+T,endOffset:I+T,collapsed:!0}]}else U.push({t:s.TextXActionType.RETAIN,len:I});o>0&&U.push({t:s.TextXActionType.DELETE,len:o}),U.push({t:s.TextXActionType.INSERT,body:{dataStream:n,textRuns:w?[{...w,st:0,ed:n.length}]:[],customRanges:B?[{...B,startIndex:0,endIndex:n.length-1}]:[],customDecorations:x.map(V=>({...V,startIndex:0,endIndex:n.length-1}))},len:n.length});const F=te(m,g);v.params.actions=L.editOp(U.serialize(),F),v.params.noHistory=!a,v.params.isCompositionEnd=a;const H=c.syncExecuteCommand(v.id,v.params);return u.pushUndoRedoMutationParams(H,v.params),!!H}},Mn={type:s.CommandType.COMMAND,id:"doc.command.set-zoom-ratio",handler:async(i,t)=>{var u,m,h;const e=i.get(s.ICommandService),n=i.get(s.IUndoRedoService),o=i.get(s.IUniverInstanceService);let a=(u=o.getCurrentUniverDocInstance())==null?void 0:u.getUnitId();if(!a)return!1;let r=1;if(t&&(a=(m=t.documentId)!=null?m:a,r=(h=t.zoomRatio)!=null?h:r),!o.getUniverDocInstance(a))return!1;const l={zoomRatio:r,unitId:a},A=Mr(i,l);return e.syncExecuteCommand(ve.id,l)?(n.pushUndoRedo({unitID:a,undoMutations:[{id:ve.id,params:A}],redoMutations:[{id:ve.id,params:l}]}),!0):!1}},Wi={id:"doc.table.tab-in-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{var f;const{shift:e}=t,n=i.get(D.DocSelectionManagerService),o=n.getDocRanges(),a=i.get(s.ICommandService),c=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(!c)return!1;const l=(f=o.find(g=>g.isActive))!=null?f:o[0],A=c.getUnitId(),d=me(i,A),u=d==null?void 0:d.getSkeleton(),m=u==null?void 0:u.getViewModel().getSelfOrHeaderFooterViewModel(l==null?void 0:l.segmentId);if(m==null||l==null)return!1;let h=null;if(e?h=As(m,l,Ci.PREV):h=As(m,l,Ci.NEXT),h){const{startOffset:g,endOffset:p}=h,S=[{startOffset:g,endOffset:p}];return n.replaceDocRanges(S),!0}return e===!1?await a.executeCommand(Ni.id,{position:ln.BELLOW}):!0}},ke={id:"doc.operation.move-cursor",type:s.CommandType.OPERATION,handler:(i,t)=>!!t},Ve={id:"doc.operation.move-selection",type:s.CommandType.OPERATION,handler:(i,t)=>!!t};var Ol=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,Ml=(i,t,e,n)=>{for(var o=n>1?void 0:n?xl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Ol(t,e,o),o},zi=(i,t)=>(e,n)=>t(e,n,i);let Gi=class{constructor(i,t,e){R(this,"_docContainer");R(this,"getComponent",i=>{if(this._docContainer=i,!i.getContentRef().current)throw new Error("container is not ready")});R(this,"changeLocale",i=>{this._localeService.setLocale(i)});this._localeService=i,this._injector=t,this._configService=e}getUIConfig(){return{injector:this._injector,config:this._configService.getConfig(Ii),changeLocale:this.changeLocale,getComponent:this.getComponent}}getContentRef(){return this._docContainer.getContentRef()}UIDidMount(i){if(this._docContainer)return i(this._docContainer)}getDocContainer(){return this._docContainer}};Gi=Ml([zi(0,s.Inject(s.LocaleService)),zi(1,s.Inject(s.Injector)),zi(2,s.IConfigService)],Gi);var Bl=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,_l=(i,t,e,n)=>{for(var o=n>1?void 0:n?Dl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Bl(t,e,o),o},Nl=(i,t)=>(e,n)=>t(e,n,i);let Bn=class extends s.RxDisposable{constructor(t){super();R(this,"_docContainerController");this._injector=t,this._docContainerController=this._injector.createInstance(Gi)}};Bn=_l([Nl(0,s.Inject(s.Injector))],Bn);var Pl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,wl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ul(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Pl(t,e,o),o},_s=(i,t)=>(e,n)=>t(e,n,i);let Dn=class extends s.Disposable{constructor(i,t){super(),this._docAutoFormatService=i,this._renderManagerService=t,this._initListTabAutoFormat(),this._initListSpaceAutoFormat(),this._initDefaultEnterFormat(),this._initExitListAutoFormat()}_initListTabAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:ze.id,match:i=>{var o;const{selection:t,paragraphs:e,unit:n}=i;if(e.length===1&&t.startOffset===e[0].paragraphStart&&e[0].bullet){const a=(o=n.getBody())==null?void 0:o.paragraphs,r=a==null?void 0:a.filter(c=>{var l;return((l=c.bullet)==null?void 0:l.listId)===e[0].bullet.listId});return(r==null?void 0:r.findIndex(c=>c.startIndex===e[0].startIndex))!==0}else if(e.length>1&&e.some(a=>a.bullet))return!0;return!1},getMutations(i){const t=i.commandParams;return[{id:sn.id,params:{type:t!=null&&t.shift?Bt.decrease:Bt.increase}}]},priority:100})),this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:ze.id,match:i=>{const{selection:t,unit:e}=i,{startNodePosition:n,endNodePosition:o}=t,a=this._renderManagerService.getRenderById(e.getUnitId()),r=a==null?void 0:a.with(D.DocSkeletonManagerService).getSkeleton();return r==null?!1:!!(n&&o&&fo(r,n,o)||n&&!o&&n.path.indexOf("cells")>-1)},getMutations(i){const t=i.commandParams;return[{id:Wi.id,params:{shift:!!(t!=null&&t.shift)}}]},priority:99}))}_initListSpaceAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:xt.id,match:i=>{var a;const{selection:t,paragraphs:e,unit:n}=i;if(!t.collapsed||e.length!==1)return!1;const o=(a=n.getBody())==null?void 0:a.dataStream.slice(e[0].paragraphStart,e[0].paragraphEnd-1);return!!(o&&Object.keys(s.QuickListTypeMap).includes(o))},getMutations(i){var o;const{paragraphs:t,unit:e}=i,n=(o=e.getBody())==null?void 0:o.dataStream.slice(t[0].paragraphStart,t[0].paragraphEnd-1);if(n&&Object.keys(s.QuickListTypeMap).includes(n)){const a=s.QuickListTypeMap[n];return[{id:Si.id,params:{listType:a,paragraph:t[0]}}]}return[]}}))}_initExitListAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:dt.id,match:i=>{const{paragraphs:t}=i;return!!(t.length===1&&t[0].bullet&&t[0].paragraphStart===t[0].paragraphEnd)},getMutations:i=>{const t=i.paragraphs[0].bullet;return t?t.nestingLevel>0?[{id:sn.id,params:{type:Bt.decrease}}]:[{id:ht.id,params:{listType:i.paragraphs[0].bullet.listType}}]:[]}}))}_initDefaultEnterFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:dt.id,match:()=>!0,getMutations(){return[{id:Ui.id}]},priority:-9999}))}};Dn=wl([_s(0,s.Inject(C.DocAutoFormatService)),_s(1,M.IRenderManagerService)],Dn);function Ll(i){return i.rows[0].cells[0].sections[0].columns[0].lines[0]}function Ql(i){const t=i.rows[i.rows.length-1],e=t.cells[t.cells.length-1];return M.getLastLine(e)}function Fl(i,t){const{ed:e}=i,{skeTables:n}=t;let o=null;for(const a of n.values())if(a.st===e+1){o=a;break}return o}function Ns(i){const t=i==null?void 0:i.parent;let e=null,n=null;if(i==null||t==null)return{lineBeforeTable:e,lineAfterTable:n};const{st:o,ed:a}=i,r=t.type===M.DocumentSkeletonPageType.CELL?[t]:t.parent.pages;return M.lineIterator(r,c=>{c.st===a+1?n=c:c.ed===o-1&&(e=c)}),{lineBeforeTable:e,lineAfterTable:n}}function Ps(i){return i.sections[0].columns[0].lines.length===0}function Us(i){var r,c;const t=i.parent,e=t==null?void 0:t.parent,n=e==null?void 0:e.tableId;if(t==null||e==null)return;const o=t.cells.indexOf(i);let a=e.rows[e.rows.indexOf(t)+1];if(a==null&&n.indexOf("#-#")){const[l,A]=n.split("#-#"),d=(c=(r=e.parent)==null?void 0:r.parent)==null?void 0:c.pages,u=`${l}#-#${Number.parseInt(A)+1}`;if(d)for(const m of d){const{skeTables:h}=m;if(h.has(u)){const f=h.get(u);if(f!=null&&f.rows.length){a=f.rows.find(g=>!g.isRepeatRow);break}}}}if(a!=null){const l=a.cells[o];return Ps(l)?Us(l):l}}function ws(i){var a,r;const t=i.parent,e=t==null?void 0:t.parent;if(t==null||e==null)return;let n=e.rows[e.rows.indexOf(t)-1];const o=t.cells.indexOf(i);if((n==null||n.isRepeatRow)&&e.tableId.indexOf("#-#")){const[c,l]=e.tableId.split("#-#"),A=(r=(a=e.parent)==null?void 0:a.parent)==null?void 0:r.pages,d=`${c}#-#${Number.parseInt(l)-1}`;if(A)for(const u of A){const{skeTables:m}=u;if(m.has(d)){const h=m.get(d);if(h!=null&&h.rows.length){n=h.rows[h.rows.length-1];break}}}}if(n!=null){const c=n.cells[o];return Ps(c)?ws(c):c}}function Hl(i,t){const{st:e}=i,{skeTables:n}=t;let o=null;for(const a of n.values())if(a.ed===e-1){o=a;break}return o}function kl(i){return i.sections[0].columns[0].lines[0]}function Vl(i){const t=M.getLastColumn(i);return t.lines[t.lines.length-1]}var jl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,zl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Wl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&jl(t,e,o),o},_n=(i,t)=>(e,n)=>t(e,n,i);let Nn=class extends s.Disposable{constructor(t,e,n,o){super();R(this,"_onInputSubscription");this._univerInstanceService=t,this._renderManagerService=e,this._textSelectionManagerService=n,this._commandService=o,this._commandExecutedListener()}dispose(){var t;super.dispose(),(t=this._onInputSubscription)==null||t.unsubscribe()}_commandExecutedListener(){const t=[ke.id,Ve.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(!t.includes(e.id))return;const n=e.params;switch(e.id){case ke.id:return this._handleMoveCursor(n.direction);case Ve.id:return this._handleShiftMoveSelection(n.direction);default:throw new Error("Unknown command")}}))}_handleShiftMoveSelection(t){var E,T,O;const e=this._textSelectionManagerService.getActiveTextRange(),n=this._textSelectionManagerService.getTextRanges(),o=this._univerInstanceService.getCurrentUniverDocInstance();if(o==null)return;const a=(E=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:E.with(D.DocSkeletonManagerService).getSkeleton(),r=this._getDocObject();if(e==null||a==null||r==null)return;const{startOffset:c,endOffset:l,style:A,collapsed:d,direction:u,segmentId:m,startNodePosition:h,endNodePosition:f,segmentPage:g}=e;if(n.length>1){let v=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY;for(const _ of n)v=Math.min(v,_.startOffset),b=Math.max(b,_.endOffset);this._textSelectionManagerService.replaceTextRanges([{startOffset:t===s.Direction.LEFT||t===s.Direction.UP?b:v,endOffset:t===s.Direction.LEFT||t===s.Direction.UP?v:b,style:A}],!1);return}const p=d||u===s.RANGE_DIRECTION.FORWARD?c:l;let S=d||u===s.RANGE_DIRECTION.FORWARD?l:c;const I=(T=o.getSelfOrHeaderFooterModel(m).getBody().dataStream.length)!=null?T:Number.POSITIVE_INFINITY;if(t===s.Direction.LEFT||t===s.Direction.RIGHT){const v=a.findNodeByCharIndex(S-1,m,g),b=a.findNodeByCharIndex(S,m,g);S=t===s.Direction.RIGHT?S+b.count:S-((O=v==null?void 0:v.count)!=null?O:0),S=Math.min(I-2,Math.max(0,S)),this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:S,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),S)}else{const v=a.findNodeByCharIndex(S,m,g),b=r.document.getOffsetConfig(),_=d?h:u===s.RANGE_DIRECTION.FORWARD?f:h,B=this._getTopOrBottomPosition(a,v,_,t===s.Direction.DOWN,!0);if(B==null){const x=t===s.Direction.UP?0:I-2;if(x===S)return;this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:x,style:A}],!1);return}const w=new De(b,a).getRangePointData(B,B).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:w.endOffset,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),w.endOffset)}}_handleMoveCursor(t){var I,E,T,O;const e=this._textSelectionManagerService.getActiveTextRange(),n=this._textSelectionManagerService.getTextRanges(),o=this._univerInstanceService.getCurrentUniverDocInstance();if(o==null)return!1;const a=(I=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:I.with(D.DocSkeletonManagerService).getSkeleton(),r=this._getDocObject();if(e==null||a==null||r==null||n==null)return;const{startOffset:c,endOffset:l,style:A,collapsed:d,segmentId:u,startNodePosition:m,endNodePosition:h,segmentPage:f}=e,g=o.getSelfOrHeaderFooterModel(u).getBody();if(g==null)return;const p=(E=g.dataStream.length)!=null?E:Number.POSITIVE_INFINITY,S=(T=o.getCustomRanges())!=null?T:[];if(t===s.Direction.LEFT||t===s.Direction.RIGHT){let v;if(!e.collapsed||n.length>1){let B=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY;for(const x of n)B=Math.min(B,x.startOffset),w=Math.max(w,x.endOffset);v=t===s.Direction.LEFT?B:w}else{const B=a.findNodeByCharIndex(c-1,u,f),w=a.findNodeByCharIndex(c,u,f),x=a.findNodeByCharIndex(c+1,u,f);t===s.Direction.LEFT?v=Math.max(0,c-((O=B==null?void 0:B.count)!=null?O:1)):v=Math.min(p-2,l+w.count+((x==null?void 0:x.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK?1:0))}const b=[s.DataStreamTreeTokenType.TABLE_START,s.DataStreamTreeTokenType.TABLE_END,s.DataStreamTreeTokenType.TABLE_ROW_START,s.DataStreamTreeTokenType.TABLE_ROW_END,s.DataStreamTreeTokenType.TABLE_CELL_START,s.DataStreamTreeTokenType.TABLE_CELL_END,s.DataStreamTreeTokenType.SECTION_BREAK];if(t===s.Direction.LEFT)for(;b.includes(g.dataStream[v]);)v--;else for(;b.includes(g.dataStream[v]);)v++;S.filter(B=>B.wholeEntity&&B.startIndex<v&&B.endIndex>=v).forEach(B=>{t===s.Direction.LEFT?v=Math.min(B.startIndex,v):v=Math.max(B.endIndex+1,v)}),this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,v),endOffset:Math.max(0,v),style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),v)}else{const v=a.findNodeByCharIndex(c,u,f),b=a.findNodeByCharIndex(l,u,f),_=r.document.getOffsetConfig(),B=this._getTopOrBottomPosition(a,t===s.Direction.UP||d?v:b,t===s.Direction.UP||d?m:h,t===s.Direction.DOWN);if(B==null){let x;d?x=t===s.Direction.UP?0:p-2:x=t===s.Direction.UP?c:l,this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,x),endOffset:Math.max(0,x),style:A}],!1);return}const w=new De(_,a).getRangePointData(B,B).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{...w,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),w.endOffset)}}_getTopOrBottomPosition(t,e,n,o,a=!1){if(e==null||n==null)return;const r=this._getGlyphLeftOffsetInLine(e),c=this._getNextOrPrevLine(e,o,a);if(c==null)return;const l=this._matchPositionByLeftOffset(t,c,r,n);if(l!=null)return{...l,isBack:!0}}_getGlyphLeftOffsetInLine(t){const e=t.parent;if(e==null)return Number.NEGATIVE_INFINITY;const n=e.left,{left:o}=t;return n+o}_matchPositionByLeftOffset(t,e,n,o){const a={distance:Number.POSITIVE_INFINITY};for(const c of e.divides){const l=c.left;for(const A of c.glyphGroup){if(A.streamType===s.DataStreamTreeTokenType.SECTION_BREAK)continue;const{left:d}=A,u=l+d,m=Math.abs(n-u);m<a.distance&&(a.glyph=A,a.distance=m)}}if(a.glyph==null)return;const{segmentPage:r}=o;return t.findPositionByGlyph(a.glyph,r)}_getNextOrPrevLine(t,e,n=!1){var g,p,S,I,E,T,O,v,b,_,B,w;const o=t.parent,a=o==null?void 0:o.parent,r=a==null?void 0:a.parent,c=r==null?void 0:r.parent,l=c==null?void 0:c.parent;if(o==null||a==null||r==null||c==null||l==null)return;const A=r.lines.indexOf(a);if(A===-1)return;let d;if(l.type===M.DocumentSkeletonPageType.CELL&&n){const x=Ls(l,e);if(x)return x}if(e===!0){d=r.lines[A+1];const x=Fl(a,l);if(x){const U=Ll(x);U&&(d=U)}}else{d=r.lines[A-1];const x=Hl(a,l);if(x){const U=Ql(x);U&&(d=U)}}if(d!=null)return d;const u=c.columns.indexOf(r);if(u===-1)return;if(e===!0)d=(g=c.columns[u+1])==null?void 0:g.lines[0];else{const x=(S=(p=c.columns)==null?void 0:p[u-1])==null?void 0:S.lines;d=x==null?void 0:x[x.length-1]}if(d!=null)return d;const m=l.sections.indexOf(c);if(m===-1)return;if(e===!0)d=(E=(I=l.sections[m-1])==null?void 0:I.columns[0])==null?void 0:E.lines[0];else{const x=(O=(T=l.sections)==null?void 0:T[m-1])==null?void 0:O.columns,U=x==null?void 0:x[x.length-1],L=U==null?void 0:U.lines;d=L==null?void 0:L[L.length-1]}if(d!=null)return d;if(l.type===M.DocumentSkeletonPageType.CELL)return Ls(l,e);const h=l.parent;if(h==null)return;const f=h.pages.indexOf(l);if(f!==-1){if(e===!0)d=(_=(b=(v=h.pages[f+1])==null?void 0:v.sections[0])==null?void 0:b.columns[0])==null?void 0:_.lines[0];else{const x=(B=h.pages[f-1])==null?void 0:B.sections;if(x==null)return;const U=(w=x[x.length-1])==null?void 0:w.columns,L=U[U.length-1],F=L==null?void 0:L.lines;d=F[F.length-1]}if(d!=null)return d}}_scrollToFocusNodePosition(t,e){var o;const n=(o=this._renderManagerService.getRenderById(t))==null?void 0:o.with(C.DocBackScrollRenderController);n!=null&&n.scrollToRange({startOffset:e,endOffset:e,collapsed:!0})}_getDocObject(){return co(this._univerInstanceService,this._renderManagerService)}};Nn=zl([_n(0,s.IUniverInstanceService),_n(1,M.IRenderManagerService),_n(2,s.Inject(D.DocSelectionManagerService)),_n(3,s.ICommandService)],Nn);function Ls(i,t){var n,o;let e=null;if(t===!0){const a=Us(i);if(a)e=kl(a);else{const r=(n=i.parent)==null?void 0:n.parent,{lineAfterTable:c}=Ns(r);c&&(e=c)}}else{const a=ws(i);if(a)e=Vl(a);else{const r=(o=i.parent)==null?void 0:o.parent,{lineBeforeTable:c}=Ns(r);c&&(e=c)}}return e}const it={create:"univer-create",createItem:"univer-create-item",createLabel:"univer-create-label",createInput:"univer-create-input"},Gl=({handleRowColChange:i,tableCreateParams:t})=>{const e=s.useDependency(s.LocaleService),[n,o]=Q.useState(3),[a,r]=Q.useState(5);function c(l,A){o(l),r(A),i(l,A)}return Q.useEffect(()=>{o(t.rowCount),r(t.colCount)},[t]),P.jsxs("div",{className:it.create,children:[P.jsxs("div",{className:it.createItem,children:[P.jsx("span",{className:it.createLabel,children:e.t("toolbar.table.rowCount")}),P.jsx(se.InputNumber,{min:1,max:20,precision:0,value:n,onChange:l=>{c(l,a)},className:it.createInput})]}),P.jsxs("div",{className:it.createItem,children:[P.jsx("span",{className:it.createLabel,children:e.t("toolbar.table.colCount")}),P.jsx(se.InputNumber,{min:1,max:20,precision:0,value:a,onChange:l=>{c(n,l)},className:it.createInput})]})]})};var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Kl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Xl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Yl(t,e,o),o},Qs=(i,t)=>(e,n)=>t(e,n,i);let Pn=class extends s.Disposable{constructor(i,t){super(),this._commandService=i,this._componentManager=t,this._initialize()}_initialize(){this._init(),this._registerCommands(),this._initCustomComponents()}_registerCommands(){[On].forEach(i=>this.disposeWithMe(this._commandService.registerCommand(i)))}_initCustomComponents(){const i=this._componentManager;this.disposeWithMe(i.register(bs,Gl))}_init(){}};Pn=Kl([Qs(0,s.ICommandService),Qs(1,s.Inject(y.ComponentManager))],Pn);const Yi=4;var Jl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,ql=(i,t,e,n)=>{for(var o=n>1?void 0:n?Zl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Jl(t,e,o),o},Un=(i,t)=>(e,n)=>t(e,n,i);function Fs(i,t){const e=Hs(i.left,i.top,t),n=Hs(i.right,i.bottom,t);return{left:e.x,top:e.y,right:n.x,bottom:n.y}}function Hs(i,t,e){const{scaleX:n,scaleY:o}=e.getAncestorScale(),a=e.getViewport(be.VIEW_MAIN);if(!a)return{x:i,y:t};const{viewportScrollX:r,viewportScrollY:c}=a,l=(i-r)*n,A=(t-c)*o;return{x:l,y:A}}function ks(i,t,e){const{scaleX:n,scaleY:o}=e.getAncestorScale(),a=e.getViewport(be.VIEW_MAIN);if(!a)return{x:i,y:t};const{viewportScrollX:r,viewportScrollY:c}=a,l=i/n+r,A=t/o+c;return{x:l,y:A}}const wn=(i,t)=>{const{scene:e,mainComponent:n,engine:o}=t,a=t.with(D.DocSkeletonManagerService).getSkeleton(),r=a.findNodePositionByCharIndex(i.startOffset,!0,i.segmentId,i.segmentPage),c=a.findNodePositionByCharIndex(i.endOffset,!0,i.segmentId,i.segmentPage),l=n;if(!c||!r)return;const A=l.getOffsetConfig(),{docsLeft:d,docsTop:u}=A,m=o.getCanvasElement(),h=m.getBoundingClientRect(),f=M.pxToNum(m.style.width),{top:g,left:p,width:S}=h,I=S/f,{scaleX:E,scaleY:T}=e.getAncestorScale(),O=new De(A,a),{borderBoxPointGroup:v}=O.getRangePointData(r,c);return Zt(v).map(B=>Fs(B,e)).map(B=>({left:(B.left+d*E)*I+p,right:(B.right+d*E)*I+p,top:(B.top+u*T)*I+g,bottom:(B.bottom+u*T)*I+g}))};C.DocCanvasPopManagerService=class extends s.Disposable{constructor(t,e,n,o){super(),this._globalPopupManagerService=t,this._renderManagerService=e,this._univerInstanceService=n,this._commandService=o}_createObjectPositionObserver(t,e){const n=()=>{const{scene:l,engine:A}=e,{left:d,top:u,width:m,height:h}=t,f={left:d,right:d+m,top:u,bottom:u+h},g=A.getCanvasElement(),p=g.getBoundingClientRect(),S=M.pxToNum(g.style.width),I=Fs(f,l),{top:E,left:T,width:O}=p,v=O/S;return{left:I.left*v+T,right:I.right*v+T,top:I.top*v+E,bottom:I.bottom*v+E}},o=n(),a=new N.BehaviorSubject(o),r=new s.DisposableCollection;r.add(this._commandService.onCommandExecuted(l=>{if(l.id===ve.id||l.id===D.RichTextEditingMutation.id){const A=n();A&&a.next(A)}}));const c=e.scene.getViewport(be.VIEW_MAIN);return c&&r.add(c.onScrollAfter$.subscribeEvent(()=>{a.next(n())})),{position:o,position$:a,disposable:r}}_createRangePositionObserver(t,e){var c;const n=(c=wn(t,e))!=null?c:[],o=new N.BehaviorSubject(n),a=new s.DisposableCollection;a.add(this._commandService.onCommandExecuted(l=>{if((l.id===ve.id||l.id===D.RichTextEditingMutation.id)&&l.params.unitId===e.unitId){const d=wn(t,e);d&&o.next(d)}}));const r=e.scene.getViewport(be.VIEW_MAIN);return r&&a.add(r.onScrollAfter$.subscribeEvent(()=>{const l=wn(t,e);l&&o.next(l)})),{positions:n,positions$:o,disposable:a}}attachPopupToObject(t,e,n){const o=this._renderManagerService.getRenderById(n);if(!o)throw new Error(`Current render not found, unitId: ${n}`);const{position:a,position$:r,disposable:c}=this._createObjectPositionObserver(t,o),l=this._globalPopupManagerService.addPopup({...e,unitId:n,subUnitId:"default",anchorRect:a,anchorRect$:r,canvasElement:o.engine.getCanvasElement()});return{dispose:()=>{this._globalPopupManagerService.removePopup(l),r.complete(),c.dispose()}}}attachPopupToRange(t,e,n){if(!this._univerInstanceService.getUnit(n))throw new Error(`Document not found, unitId: ${n}`);const{direction:a="top",multipleDirection:r}=e,c=this._renderManagerService.getRenderById(n);if(!c)throw new Error(`Current render not found, unitId: ${n}`);const{positions:l,positions$:A,disposable:d}=this._createRangePositionObserver(t,c),u=A.pipe(N.map(h=>a.includes("top")?h[0]:h[h.length-1])),m=this._globalPopupManagerService.addPopup({...e,unitId:n,subUnitId:"default",anchorRect:a.includes("top")?l[0]:l[l.length-1],anchorRect$:u,excludeRects:l,excludeRects$:A,direction:a.includes("top")||a.includes("bottom")?l.length>1?r:a:"bottom",canvasElement:c.engine.getCanvasElement()});return{dispose:()=>{this._globalPopupManagerService.removePopup(m),A.complete(),d.dispose()},canDispose:()=>this._globalPopupManagerService.activePopupId!==m}}},C.DocCanvasPopManagerService=ql([Un(0,s.Inject(y.ICanvasPopupService)),Un(1,M.IRenderManagerService),Un(2,s.IUniverInstanceService),Un(3,s.ICommandService)],C.DocCanvasPopManagerService);var $l=Object.defineProperty,eA=Object.getOwnPropertyDescriptor,tA=(i,t,e,n)=>{for(var o=n>1?void 0:n?eA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&$l(t,e,o),o},nA=(i,t)=>(e,n)=>t(e,n,i);const iA=(i,t,e,n)=>{var m,h,f,g,p;const o=e.findNodePositionByCharIndex(i.startOffset,!0,i.segmentId,n),a=e.getSkeletonData();let r=i.endOffset;if(i.segmentId){const S=(p=Array.from((h=(m=a==null?void 0:a.skeFooters.get(i.segmentId))==null?void 0:m.values())!=null?h:[])[0])!=null?p:Array.from((g=(f=a==null?void 0:a.skeHeaders.get(i.segmentId))==null?void 0:f.values())!=null?g:[])[0];S&&(r=Math.min(S.ed,r))}const c=e.findNodePositionByCharIndex(r,!0,i.segmentId,n);if(!c||!o)return;const l=t.getOffsetConfig(),A=new De(l,e),{borderBoxPointGroup:d}=A.getRangePointData(o,c);return Zt(d).map(S=>({top:S.top+l.docsTop-Yi,bottom:S.bottom+l.docsTop+Yi,left:S.left+l.docsLeft,right:S.right+l.docsLeft}))},oA=(i,t,e,n=-1)=>{const o=e.findPositionByGlyph(i,n);if(!o)return;const a=t.getOffsetConfig(),r={...o,isBack:!0},c=new De(a,e),{borderBoxPointGroup:l}=c.getRangePointData(r,r),d=Zt(l)[0];return{top:d.top+a.docsTop,bottom:d.bottom+a.docsTop,left:d.left+a.docsLeft,right:d.left+a.docsLeft+i.width}};C.DocEventManagerService=class extends s.Disposable{constructor(e,n){super();R(this,"_hoverCustomRanges$",new N.BehaviorSubject([]));R(this,"hoverCustomRanges$",this._hoverCustomRanges$.pipe(N.distinctUntilChanged((e,n)=>e.length===n.length&&e.every((o,a)=>n[a].range.rangeId===o.range.rangeId&&n[a].segmentId===o.segmentId&&n[a].segmentPageIndex===o.segmentPageIndex&&n[a].range.startIndex===o.range.startIndex))));R(this,"_clickCustomRanges$",new N.Subject);R(this,"clickCustomRanges$",this._clickCustomRanges$.asObservable());R(this,"_hoverBullet$",new N.Subject);R(this,"hoverBullet$",this._hoverBullet$.pipe(N.distinctUntilChanged((e,n)=>(e==null?void 0:e.paragraph.startIndex)===(n==null?void 0:n.paragraph.startIndex)&&(e==null?void 0:e.segmentId)===(n==null?void 0:n.segmentId)&&(e==null?void 0:e.segmentPageIndex)===(n==null?void 0:n.segmentPageIndex))));R(this,"_clickBullet$",new N.Subject);R(this,"clickBullets$",this._clickBullet$.asObservable());R(this,"_customRangeDirty",!0);R(this,"_bulletDirty",!0);R(this,"_customRangeBounds",[]);R(this,"_bulletBounds",[]);this._context=e,this._docSkeletonManagerService=n,this._initResetDirty(),this._initEvents(),this._initPointer()}get _skeleton(){return this._docSkeletonManagerService.getSkeleton()}get _documents(){return this._context.mainComponent}dispose(){this._hoverCustomRanges$.complete(),this._clickCustomRanges$.complete(),super.dispose()}_initPointer(){let e=M.CURSOR_TYPE.TEXT;this.disposeWithMe(this.hoverCustomRanges$.subscribe(n=>{n.length?(e=this._context.scene.getCursor(),this._context.scene.setCursor(M.CURSOR_TYPE.POINTER)):this._context.scene.setCursor(e)}))}_initResetDirty(){this.disposeWithMe(this._skeleton.dirty$.subscribe(()=>{this._customRangeDirty=!0,this._bulletDirty=!0})),this.disposeWithMe(s.fromEventSubject(this._context.engine.onTransformChange$).pipe(N.filter(e=>e.type===M.TRANSFORM_CHANGE_OBSERVABLE_TYPE.resize)).subscribe(()=>{this._customRangeDirty=!0,this._bulletDirty=!0}))}_initEvents(){this.disposeWithMe(s.fromEventSubject(this._context.scene.onPointerMove$).pipe(N.throttleTime(30)).subscribe(o=>{this._hoverCustomRanges$.next(this._calcActiveRanges(o)),this._hoverBullet$.next(this._calcActiveBullet(o))})),this.disposeWithMe(this._context.scene.onPointerEnter$.subscribeEvent(()=>{this._hoverBullet$.next(null),this._hoverCustomRanges$.next([])}));const e=s.fromEventSubject(this._context.mainComponent.onPointerDown$),n=s.fromEventSubject(this._context.scene.onPointerUp$);this.disposeWithMe(e.pipe(N.switchMap(o=>n.pipe(N.take(1),N.map(a=>({down:o,up:a})))),N.filter(({down:o,up:a})=>o.target===a.target&&a.timeStamp-o.timeStamp<300)).subscribe(({down:o})=>{if(o.button===2)return;const a=this._calcActiveRanges(o);a.length&&this._clickCustomRanges$.next(a.pop());const r=this._calcActiveBullet(o);r&&this._clickBullet$.next(r)}))}_buildCustomRangeBoundsBySegment(e,n=-1){var r,c,l;const o=(l=(c=(r=this._context.unit.getSelfOrHeaderFooterModel(e))==null?void 0:r.getBody())==null?void 0:c.customRanges)!=null?l:[],a=[];return o.forEach(A=>{const d={startOffset:A.startIndex,endOffset:A.endIndex+1,collapsed:!1,segmentId:e},u=iA(d,this._documents,this._skeleton,n);if(!u)return null;a.push({customRange:A,rects:u,segmentId:e,segmentPageIndex:n})}),a}_buildCustomRangeBounds(){var n;if(!this._customRangeDirty)return;this._customRangeDirty=!1;const e=[];e.push(...this._buildCustomRangeBoundsBySegment()),(n=this._skeleton.getSkeletonData())==null||n.pages.forEach((o,a)=>{o.headerId&&e.push(...this._buildCustomRangeBoundsBySegment(o.headerId,a)),o.footerId&&e.push(...this._buildCustomRangeBoundsBySegment(o.footerId,a))}),this._customRangeBounds=e}_calcActiveRanges(e){this._buildCustomRangeBounds();const{offsetX:n,offsetY:o}=e,{x:a,y:r}=ks(n,o,this._context.scene);return this._customRangeBounds.filter(l=>l.rects.some(A=>{const{left:d,right:u,top:m,bottom:h}=A;return a>=d&&a<=u&&r>=m&&r<=h})).map(l=>({segmentId:l.segmentId,range:l.customRange,segmentPageIndex:l.segmentPageIndex,rects:l.rects}))}_buildBulletBoundsBySegment(e,n=-1){var A,d,u,m,h;const o=(A=this._context.unit.getSelfOrHeaderFooterModel(e))==null?void 0:A.getBody(),a=((d=o==null?void 0:o.paragraphs)!=null?d:[]).filter(f=>f.bullet&&f.bullet.listType.indexOf("CHECK_LIST")===0),r=[],c=this._skeleton.getSkeletonData();if(!c)return r;const l=f=>{var g,p,S;for(const I of f){const E=[...I.sections];if(I.skeTables){const T=Array.from(I.skeTables.values());E.push(...T.map(O=>O.rows.map(v=>v.cells.map(b=>b.sections))).flat(4))}for(const T of E)for(const O of T.columns)for(const v of O.lines)if(v.paragraphStart){const b=a.find(_=>_.startIndex===v.paragraphIndex);if(b){const _=v,B=(S=(p=(g=_==null?void 0:_.divides)==null?void 0:g[0])==null?void 0:p.glyphGroup)==null?void 0:S[0];if(!B)continue;const w=oA(B,this._documents,this._skeleton,n);if(!w)continue;r.push({rect:w,segmentId:e,segmentPageIndex:n,paragraph:b})}}}return r};if(e){const f=(h=(u=c.skeFooters.get(e))==null?void 0:u.values())!=null?h:(m=c.skeHeaders.get(e))==null?void 0:m.values();return f?l(Array.from(f)):r}return l(c.pages)}_buildBulletBounds(){var e;this._bulletDirty&&(this._bulletDirty=!1,this._bulletBounds=[],this._bulletBounds.push(...this._buildBulletBoundsBySegment()),(e=this._skeleton.getSkeletonData())==null||e.pages.forEach((n,o)=>{n.headerId&&this._bulletBounds.push(...this._buildBulletBoundsBySegment(n.headerId,o)),n.footerId&&this._bulletBounds.push(...this._buildBulletBoundsBySegment(n.footerId,o))}))}_calcActiveBullet(e){this._buildBulletBounds();const{offsetX:n,offsetY:o}=e,{x:a,y:r}=ks(n,o,this._context.scene);return this._bulletBounds.find(l=>{const{left:A,right:d,top:u,bottom:m}=l.rect;return a>=A&&a<=d&&r>=u&&r<=m})}},C.DocEventManagerService=tA([nA(1,s.Inject(D.DocSkeletonManagerService))],C.DocEventManagerService);var sA=Object.defineProperty,aA=Object.getOwnPropertyDescriptor,rA=(i,t,e,n)=>{for(var o=n>1?void 0:n?aA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&sA(t,e,o),o},Ln=(i,t)=>(e,n)=>t(e,n,i);let Xi=class extends s.Disposable{constructor(i,t,e,n,o){super(),this._context=i,this._docSkeletonManagerService=t,this._commandService=e,this._docEventManagerService=n,this._textSelectionManagerService=o,this._initPointerDownObserver(),this._initHoverCursor()}_initPointerDownObserver(){this._docEventManagerService.clickBullets$.subscribe(i=>{const t=this._textSelectionManagerService.getTextRanges();this._commandService.executeCommand(rn.id,{index:i.paragraph.startIndex,segmentId:i.segmentId,textRanges:t})})}_initHoverCursor(){this.disposeWithMe(this._docEventManagerService.hoverBullet$.subscribe(i=>{i?this._context.mainComponent.setCursor(M.CURSOR_TYPE.POINTER):this._context.mainComponent.setCursor(M.CURSOR_TYPE.TEXT)}))}_getTransformCoordForDocumentOffset(i,t,e,n){const{documentTransform:o}=i.getOffsetConfig(),a=t.transformVector2SceneCoord(M.Vector2.FromArray([e,n]));if(a)return o.clone().invert().applyPoint(a)}};Xi=rA([Ln(1,s.Inject(D.DocSkeletonManagerService)),Ln(2,s.ICommandService),Ln(3,s.Inject(C.DocEventManagerService)),Ln(4,s.Inject(D.DocSelectionManagerService))],Xi);var cA=Object.defineProperty,lA=Object.getOwnPropertyDescriptor,AA=(i,t,e,n)=>{for(var o=n>1?void 0:n?lA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&cA(t,e,o),o},jt=(i,t)=>(e,n)=>t(e,n,i);let Qn=class extends s.RxDisposable{constructor(i,t,e,n,o,a){super(),this._context=i,this._commandService=t,this._docClipboardService=e,this._docSelectionRenderService=n,this._contextService=o,this._editorService=a,this._init()}_init(){this._initLegacyPasteCommand()}_initLegacyPasteCommand(){var i;(i=this._docSelectionRenderService)==null||i.onPaste$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>{var l,A,d;if(!pn(this._contextService))return;t.event.preventDefault();const e=t.event;let n=(l=e.clipboardData)==null?void 0:l.getData(y.HTML_CLIPBOARD_MIME_TYPE);const o=(A=e.clipboardData)==null?void 0:A.getData(y.PLAIN_TEXT_CLIPBOARD_MIME_TYPE),a=[y.FILE__BMP_CLIPBOARD_MIME_TYPE,y.FILE__JPEG_CLIPBOARD_MIME_TYPE,y.FILE__WEBP_CLIPBOARD_MIME_TYPE,y.FILE_PNG_CLIPBOARD_MIME_TYPE],r=[...((d=e.clipboardData)==null?void 0:d.items)||[]].filter(u=>a.includes(u.type)).map(u=>u.getAsFile()).filter(u=>!!u);this._editorService.getEditor(this._context.unitId)&&(n!=null?n:"").indexOf("</table>")>-1&&(n=""),this._docClipboardService.legacyPaste({html:n,text:o,files:r})})}};Qn=AA([jt(1,s.ICommandService),jt(2,St),jt(3,s.Inject(C.DocSelectionRenderService)),jt(4,s.IContextService),jt(5,fe)],Qn);var dA=Object.defineProperty,uA=Object.getOwnPropertyDescriptor,hA=(i,t,e,n)=>{for(var o=n>1?void 0:n?uA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&dA(t,e,o),o},Vs=(i,t)=>(e,n)=>t(e,n,i);const gA=[s.DEFAULT_EMPTY_DOCUMENT_VALUE,s.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,s.DOCS_NORMAL_EDITOR_UNIT_ID_KEY,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY];let Ki=class extends s.Disposable{constructor(i,t,e){super(),this._context=i,this._contextMenuService=t,this._commandService=e,gA.includes(this._context.unitId)||(this._initPointerDown(),this._initEditChange())}_initPointerDown(){var e,n;const t=((n=(e=this._context)==null?void 0:e.mainComponent)==null?void 0:n.onPointerDown$).subscribeEvent(o=>{o.button===2&&this._contextMenuService.triggerContextMenu(o,y.ContextMenuPosition.MAIN_AREA)});this.disposeWithMe(t)}_initEditChange(){this.disposeWithMe(this._commandService.onCommandExecuted(i=>{i.id===D.RichTextEditingMutation.id&&this._contextMenuService.visible&&this._contextMenuService.hideContextMenu()}))}};Ki=hA([Vs(1,y.IContextMenuService),Vs(2,s.ICommandService)],Ki);var mA=Object.defineProperty,fA=Object.getOwnPropertyDescriptor,pA=(i,t,e,n)=>{for(var o=n>1?void 0:n?fA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&mA(t,e,o),o},Ct=(i,t)=>(e,n)=>t(e,n,i);let Fn=class extends s.Disposable{constructor(t,e,n,o,a,r,c){super();R(this,"_initialEditors",new Set);this._context=t,this._univerInstanceService=e,this._editorService=n,this._commandService=o,this._docSelectionRenderService=a,this._docSkeletonManagerService=r,this._renderManagerService=c,this._initialize()}_initialize(){this.disposeWithMe(this._editorService.resize$.subscribe(t=>{t===this._context.unitId&&this._resize(t)})),this._editorService.getAllEditor().forEach(t=>{const e=t.getEditorId();e===this._context.unitId&&(this._initialEditors.has(e)||(this._initialEditors.add(e),this._resize(e)))}),this._commandExecutedListener(),this._initialSetValue(),this._initialBlur(),this._initialFocus(),this._initialValueChange()}_resize(t){var E,T;if(t==null)return;const e=this._editorService.getEditor(t);if((e==null?void 0:e.cancelDefaultResizeListener)===!0)return;const n=this._univerInstanceService.getUniverDocInstance(t);if(!n)return;const o=this._docSkeletonManagerService.getSkeleton();if(e==null||e.render==null||o==null||n==null)return;o.calculate();const{marginTop:a=0,marginBottom:r=0,marginLeft:c=0,marginRight:l=0}=n.getSnapshot().documentStyle,{scene:A,mainComponent:d}=e.render;let{actualHeight:u,actualWidth:m}=o.getActualSize();u+=a+r,m+=c+l;const{width:h,height:f}=e.getBoundingClientRect(),g=A.getViewport(be.VIEW_MAIN);let p=g==null?void 0:g.getScrollBar();const S=Math.max(m,h),I=Math.max(u,f);A.transformByState({width:S,height:I}),d==null||d.resize(S,I),e.isSingle()?m>h?p==null?g&&new M.ScrollBar(g,{barSize:8,enableVertical:!1}):g==null||g.resetCanvasSizeAndUpdateScroll():(p=null,g==null||g.scrollToBarPos({x:0,y:0}),(T=g==null?void 0:g.getScrollBar())==null||T.dispose()):u>f?p==null?g&&new M.ScrollBar(g,{enableHorizontal:!1,barSize:8}):g==null||g.resetCanvasSizeAndUpdateScroll():(p=null,g==null||g.scrollToBarPos({x:0,y:0}),(E=g==null?void 0:g.getScrollBar())==null||E.dispose())}_initialSetValue(){this.disposeWithMe(this._editorService.setValue$.subscribe(t=>{t.editorUnitId===this._context.unitId&&this._commandService.executeCommand(Kn.id,{unitId:t.editorUnitId,body:t.body,segmentId:null})}))}_initialBlur(){this.disposeWithMe(this._editorService.blur$.subscribe(()=>{this._docSelectionRenderService.blur()})),this.disposeWithMe(this._docSelectionRenderService.onBlur$.subscribe(()=>{const{unitId:t}=this._context,e=this._editorService.getEditor(t),n=this._editorService.getFocusEditor();e==null||e.isSheetEditor()||n&&n.getEditorId()===t||t.includes("range_selector")||t.includes("embedding_formula_editor")||this._editorService.blur()}))}_initialFocus(){this.disposeWithMe(this._editorService.focus$.subscribe(n=>{var o;((o=this._editorService.getFocusEditor())==null?void 0:o.getEditorId())===this._context.unitId&&(this._docSelectionRenderService.removeAllRanges(),this._docSelectionRenderService.addDocRanges([n]))}));const t=["univer-formula-search","univer-formula-help","formula-help-decorator","univer-formula-help-param"];this.disposeWithMe(N.fromEvent(window,"mousedown").subscribe(n=>{const a=n.target.classList[0]||"";if(s.checkForSubstrings(a,t)){this._editorService.changeSpreadsheetFocusState(!0),n.stopPropagation();return}this._editorService.changeSpreadsheetFocusState(!1)})),this._univerInstanceService.getAllUnitsForType(s.UniverInstanceType.UNIVER_SHEET).forEach(n=>{const o=n.getUnitId(),a=this._renderManagerService.getRenderById(o),r=a==null?void 0:a.engine.getCanvas().getCanvasEle();r!=null&&N.fromEvent(r,"mousedown").subscribe(c=>{this._editorService.changeSpreadsheetFocusState(!0),c.stopPropagation()})})}_initialValueChange(){this.disposeWithMe(this._docSelectionRenderService.onCompositionupdate$.subscribe(this._valueChange.bind(this))),this.disposeWithMe(this._docSelectionRenderService.onInput$.subscribe(this._valueChange.bind(this))),this.disposeWithMe(this._docSelectionRenderService.onKeydown$.subscribe(this._valueChange.bind(this))),this.disposeWithMe(this._docSelectionRenderService.onPaste$.subscribe(this._valueChange.bind(this)))}_valueChange(){const{unitId:t}=this._context,e=this._editorService.getEditor(t);e==null||e.isSheetEditor()||this._editorService.refreshValueChange(t)}_commandExecutedListener(){const t=[D.RichTextEditingMutation.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)){const n=e.params,{unitId:o}=n;if(this._editorService.isSheetEditor(o)||o!==this._context.unitId)return;const a=this._editorService.getEditor(o);a&&!a.params.scrollBar&&(this._resize(o),this._valueChange())}}))}};Fn=pA([Ct(1,s.IUniverInstanceService),Ct(2,fe),Ct(3,s.ICommandService),Ct(4,s.Inject(C.DocSelectionRenderService)),Ct(5,s.Inject(D.DocSkeletonManagerService)),Ct(6,M.IRenderManagerService)],Fn);var SA=Object.defineProperty,IA=Object.getOwnPropertyDescriptor,EA=(i,t,e,n)=>{for(var o=n>1?void 0:n?IA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&SA(t,e,o),o},Hn=(i,t)=>(e,n)=>t(e,n,i);let Ji=class extends s.Disposable{constructor(t,e,n,o,a){super();R(this,"_previousIMEContent","");R(this,"_isCompositionStart",!0);R(this,"_onStartSubscription");R(this,"_onUpdateSubscription");R(this,"_onEndSubscription");this._context=t,this._docSelectionRenderService=e,this._docImeInputManagerService=n,this._docSkeletonManagerService=o,this._commandService=a,this._initialize()}dispose(){var t,e,n;(t=this._onStartSubscription)==null||t.unsubscribe(),(e=this._onUpdateSubscription)==null||e.unsubscribe(),(n=this._onEndSubscription)==null||n.unsubscribe()}_initialize(){this._initialOnCompositionstart(),this._initialOnCompositionUpdate(),this._initialOnCompositionend()}_initialOnCompositionstart(){this._onStartSubscription=this._docSelectionRenderService.onCompositionstart$.subscribe(t=>{if(t==null)return;this._resetIME();const{activeRange:e}=t;e!=null&&this._docImeInputManagerService.setActiveRange(s.Tools.deepClone(e))})}_initialOnCompositionUpdate(){this._onUpdateSubscription=this._docSelectionRenderService.onCompositionupdate$.subscribe(t=>{this._updateContent(t,!0)})}_initialOnCompositionend(){this._onEndSubscription=this._docSelectionRenderService.onCompositionend$.subscribe(t=>{this._updateContent(t,!1)})}async _updateContent(t,e){if(t==null)return;const n=this._context.unitId,o=this._docSkeletonManagerService.getSkeleton(),{event:a,activeRange:r}=t;if(o==null||r==null)return;const l=a.data;l===this._previousIMEContent&&e||(await this._commandService.executeCommand(ji.id,{unitId:n,newText:l,oldTextLen:this._previousIMEContent.length,isCompositionStart:this._isCompositionStart,isCompositionEnd:!e}),e?(this._isCompositionStart&&(this._isCompositionStart=!1),this._previousIMEContent=l):this._resetIME())}_resetIME(){this._previousIMEContent="",this._isCompositionStart=!0,this._docImeInputManagerService.clearUndoRedoMutationParamsCache(),this._docImeInputManagerService.setActiveRange(null)}};Ji=EA([Hn(1,s.Inject(C.DocSelectionRenderService)),Hn(2,s.Inject(Vt)),Hn(3,s.Inject(D.DocSkeletonManagerService)),Hn(4,s.ICommandService)],Ji);var vA=Object.defineProperty,CA=Object.getOwnPropertyDescriptor,TA=(i,t,e,n)=>{for(var o=n>1?void 0:n?CA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&vA(t,e,o),o},kn=(i,t)=>(e,n)=>t(e,n,i);let Zi=class extends s.Disposable{constructor(t,e,n,o,a){super();R(this,"_onInputSubscription");this._context=t,this._docSelectionRenderService=e,this._docSkeletonManagerService=n,this._commandService=o,this._docMenuStyleService=a,this._init()}dispose(){var t;super.dispose(),(t=this._onInputSubscription)==null||t.unsubscribe()}_init(){this._initialNormalInput()}_initialNormalInput(){this._onInputSubscription=this._docSelectionRenderService.onInput$.subscribe(async t=>{var p,S,I;if(t==null)return;const{unitId:e}=this._context,{event:n,content:o="",activeRange:a}=t,r=n,c=this._docSkeletonManagerService.getSkeleton();if(r.data==null||c==null||a==null)return;const{segmentId:l}=a,d=this._context.unit.getSelfOrHeaderFooterModel(l).getBody(),u=this._docMenuStyleService.getDefaultStyle(),m=this._docMenuStyleService.getStyleCache(),h=zn((p=d==null?void 0:d.customRanges)!=null?p:[],a.endOffset,s.SHEET_EDITOR_UNITS.includes(e)),f=Xt((S=d==null?void 0:d.textRuns)!=null?S:[],a.endOffset,u,m),g=Gn((I=d==null?void 0:d.customDecorations)!=null?I:[],a.endOffset);await this._commandService.executeCommand(hn.id,{unitId:e,body:{dataStream:o,textRuns:f?[{...f,st:0,ed:o.length}]:[],customRanges:h?[{...h,startIndex:0,endIndex:o.length-1}]:[],customDecorations:g.map(E=>({...E,startIndex:0,endIndex:o.length-1}))},range:a,segmentId:l}),o===" "&&await this._commandService.executeCommand(xt.id)})}};Zi=TA([kn(1,s.Inject(C.DocSelectionRenderService)),kn(2,s.Inject(D.DocSkeletonManagerService)),kn(3,s.ICommandService),kn(4,s.Inject(_e))],Zi);class qi extends s.Disposable{constructor(t){super(),this._context=t}calculatePagePosition(){var T,O;const t=Be(this._context),n=(O=(T=this._context.unit.getSettings())==null?void 0:T.zoomRatio)!=null?O:1,{document:o,scene:a,docBackground:r}=t,c=a==null?void 0:a.getParent(),{width:l,height:A,pageMarginLeft:d,pageMarginTop:u}=o;if(c==null||l===Number.POSITIVE_INFINITY||A===Number.POSITIVE_INFINITY)return;const{width:m,height:h}=c;let f=0,g=u,p=0,S=0,I=Number.POSITIVE_INFINITY;m>(l+d*2)*n?(f=m/2-l*n/2,f/=n,p=(m-d*2)/n,I=0):(f=d,p=l+d*2,I=(p-m/n)/2),h>A?S=(h-u*2)/n:S=A+u*2,a.resize(p,S),m<=1&&(f=-1e4,g=-1e4),o.translate(f,g),r.translate(f,g);const E=a.getViewport(be.VIEW_MAIN);return I!==Number.POSITIVE_INFINITY&&E!=null&&E.scrollToViewportPos({viewportScrollX:I}),this}}var bA=Object.defineProperty,yA=Object.getOwnPropertyDescriptor,RA=(i,t,e,n)=>{for(var o=n>1?void 0:n?yA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&bA(t,e,o),o},js=(i,t)=>(e,n)=>t(e,n,i);let $i=class extends s.Disposable{constructor(i,t,e){super(),this._context=i,this._docPageLayoutService=t,this._textSelectionManagerService=e;const n=this._context.unitId;if(s.isInternalEditorID(n)&&n!==s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)return this;this._initResize()}_initResize(){this.disposeWithMe(s.fromEventSubject(this._context.engine.onTransformChange$).pipe(N.filter(i=>i.type===M.TRANSFORM_CHANGE_OBSERVABLE_TYPE.resize),N.throttleTime(0,N.animationFrameScheduler)).subscribe(()=>{this._docPageLayoutService.calculatePagePosition(),this._textSelectionManagerService.refreshSelection()}))}};$i=RA([js(1,s.Inject(qi)),js(2,s.Inject(D.DocSelectionManagerService))],$i);var OA=Object.defineProperty,xA=Object.getOwnPropertyDescriptor,MA=(i,t,e,n)=>{for(var o=n>1?void 0:n?xA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&OA(t,e,o),o},Tt=(i,t)=>(e,n)=>t(e,n,i);let eo=class extends s.Disposable{constructor(t,e,n,o,a,r,c){super();R(this,"_loadedMap",new WeakSet);this._context=t,this._commandService=e,this._editorService=n,this._instanceSrv=o,this._docSelectionRenderService=a,this._docSkeletonManagerService=r,this._docSelectionManagerService=c,this._initialize()}_initialize(){this._init(),this._skeletonListener(),this._commandExecutedListener(),this._refreshListener(),this._syncSelection()}_init(){const{unitId:t}=this._context,e=Be(this._context);e==null||e.document==null||this._loadedMap.has(e.document)||(this._initialMain(t),this._loadedMap.add(e.document))}_refreshListener(){this.disposeWithMe(this._docSelectionManagerService.refreshSelection$.subscribe(t=>{if(t==null)return;const{unitId:e,docRanges:n,isEditing:o,options:a}=t;e===this._context.unitId&&(this._docSelectionRenderService.removeAllRanges(),this._docSelectionRenderService.addDocRanges(n,o,a))}))}_syncSelection(){this.disposeWithMe(this._docSelectionRenderService.textSelectionInner$.subscribe(t=>{t!=null&&this._docSelectionManagerService.__replaceTextRangesWithNoRefresh(t,{unitId:this._context.unitId,subUnitId:this._context.unitId})}))}_initialMain(t){const e=Be(this._context),{document:n,scene:o}=e;this.disposeWithMe(n.onPointerEnter$.subscribeEvent(()=>{this._isEditorReadOnly(t)||(n.cursor=M.CURSOR_TYPE.TEXT)})),this.disposeWithMe(n.onPointerLeave$.subscribeEvent(()=>{n.cursor=M.CURSOR_TYPE.DEFAULT,o.resetCursor()})),this.disposeWithMe(n.onPointerDown$.subscribeEvent((a,r)=>{if(this._isEditorReadOnly(t))return;const c=this._instanceSrv.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);(c==null?void 0:c.getUnitId())!==t&&this._instanceSrv.setCurrentUnitForType(t);const l=this._docSkeletonManagerService.getSkeleton(),{offsetX:A,offsetY:d}=a,u=this._getTransformCoordForDocumentOffset(A,d);if(u!=null){const{pageLayoutType:m=M.PageLayoutType.VERTICAL,pageMarginLeft:h,pageMarginTop:f}=n.getOffsetConfig(),{editArea:g}=l.findEditAreaByCoord(u,m,h,f),p=this._docSkeletonManagerService.getViewModel(),S=p.getEditArea();S!==M.DocumentEditArea.BODY&&g!==M.DocumentEditArea.BODY&&g!==S&&p.setEditArea(g)}if(this._docSelectionRenderService.__onPointDown(a),this._editorService.getEditor(t)){this._setEditorFocus(t);const{offsetX:m,offsetY:h}=a;setTimeout(()=>{t!==this._editorService.getFocusId()&&(this._setEditorFocus(t),this._docSelectionRenderService.setCursorManually(m,h))},0)}a.button!==2&&r.stopPropagation()})),this.disposeWithMe(n.onDblclick$.subscribeEvent(a=>{this._isEditorReadOnly(t)||this._docSelectionRenderService.__handleDblClick(a)})),this.disposeWithMe(n.onTripleClick$.subscribeEvent(a=>{this._isEditorReadOnly(t)||this._docSelectionRenderService.__handleTripleClick(a)}))}_getTransformCoordForDocumentOffset(t,e){const n=Be(this._context),{document:o,scene:a}=n,{documentTransform:r}=o.getOffsetConfig(),c=a.getViewports()[0];if(c==null)return;const l=c.transformVector2SceneCoord(M.Vector2.FromArray([t,e]));return r.clone().invert().applyPoint(l)}_isEditorReadOnly(t){const e=this._editorService.getEditor(t);return e?e.isReadOnly():!1}_setEditorFocus(t){this._editorService.focusStyle(t)}_commandExecutedListener(){const t=[ve.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{var n;if(t.includes(e.id)){const o=e.params,{unitId:a}=o,r=(n=this._docSelectionManagerService.__getCurrentSelection())==null?void 0:n.unitId;if(a!==r)return;this._docSelectionManagerService.refreshSelection()}}))}_skeletonListener(){this.disposeWithMe(this._docSkeletonManagerService.currentSkeleton$.subscribe(t=>{if(!t)return;const{unitId:e}=this._context;if(!s.isInternalEditorID(e)){this._docSelectionRenderService.focus();const a=this._context.unit.getSnapshot(),r=Uo(a);this._docSelectionManagerService.replaceDocRanges([{startOffset:r,endOffset:r}],{unitId:e,subUnitId:e},!1)}}))}};eo=MA([Tt(1,s.ICommandService),Tt(2,fe),Tt(3,s.IUniverInstanceService),Tt(4,s.Inject(C.DocSelectionRenderService)),Tt(5,s.Inject(D.DocSkeletonManagerService)),Tt(6,s.Inject(D.DocSelectionManagerService))],eo);var BA=Object.defineProperty,DA=Object.getOwnPropertyDescriptor,_A=(i,t,e,n)=>{for(var o=n>1?void 0:n?DA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&BA(t,e,o),o},ot=(i,t)=>(e,n)=>t(e,n,i);let to=class extends s.Disposable{constructor(i,t,e,n,o,a,r,c){super(),this._context=i,this._contextService=t,this._docSkeletonManagerService=e,this._univerInstanceService=n,this._commandService=o,this._textSelectionManagerService=a,this._editorService=r,this._docPageLayoutService=c,this._initSkeletonListener(),this._initCommandExecutedListener(),this._initRenderRefresher(),setTimeout(()=>this.updateViewZoom(1,!0),20)}_initRenderRefresher(){this._docSkeletonManagerService.currentSkeleton$.subscribe(i=>{if(i==null)return;const{unitId:t,scene:e}=this._context;this._editorService.isEditor(t)||this.disposeWithMe(e.onMouseWheel$.subscribeEvent(n=>{if(!n.ctrlKey||!this._contextService.getContextValue(s.FOCUSING_DOC))return;const o=this._univerInstanceService.getCurrentUniverDocInstance();if(!o)return;const{documentFlavor:a}=o.getSnapshot().documentStyle;if(a===s.DocumentFlavor.MODERN)return;const r=Math.abs(n.deltaX);let c=r<40?.2:r<80?.4:.2;c*=n.deltaY>0?-1:1,e.scaleX<1&&(c/=2);const l=o.zoomRatio;let A=+Number.parseFloat(`${l+c}`).toFixed(1);A=A>=4?4:A<=.1?.1:A,this._commandService.executeCommand(Mn.id,{zoomRatio:A,unitId:o.getUnitId()}),n.preventDefault()}))})}_initSkeletonListener(){this.disposeWithMe(this._docSkeletonManagerService.currentSkeleton$.subscribe(i=>{if(i==null)return;const t=this._univerInstanceService.getCurrentUniverDocInstance();if(!t)return;const e=t.zoomRatio||1;this.updateViewZoom(e,!1)}))}_initCommandExecutedListener(){const i=[ve.id];this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(i.includes(t.id)&&t.params.unitId===this._context.unitId){const n=this._context.unit.zoomRatio||1;this.updateViewZoom(n)}})),this.disposeWithMe(this._commandService.beforeCommandExecuted(t=>{t.id===En.id&&this._commandService.executeCommand(Mn.id,{zoomRatio:1,unitId:this._context.unitId})}))}updateViewZoom(i,t=!0){var n;const e=Be(this._context);e.scene.scale(i,i),this._editorService.isEditor(this._context.unitId)||this._docPageLayoutService.calculatePagePosition(),t&&!this._editorService.isEditor(this._context.unitId)&&this._textSelectionManagerService.refreshSelection(),(n=e.scene.getTransformer())==null||n.clearSelectedObjects()}};to=_A([ot(1,s.IContextService),ot(2,s.Inject(D.DocSkeletonManagerService)),ot(3,s.IUniverInstanceService),ot(4,s.ICommandService),ot(5,s.Inject(D.DocSelectionManagerService)),ot(6,fe),ot(7,s.Inject(qi))],to);var NA=Object.defineProperty,PA=Object.getOwnPropertyDescriptor,UA=(i,t,e,n)=>{for(var o=n>1?void 0:n?PA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&NA(t,e,o),o},Wt=(i,t)=>(e,n)=>t(e,n,i);const Ws=300;C.DocStateChangeManagerService=class extends s.RxDisposable{constructor(e,n,o,a,r){super();R(this,"_docStateChange$",new N.BehaviorSubject(null));R(this,"docStateChange$",this._docStateChange$.asObservable());R(this,"_historyStateCache",new Map);R(this,"_changeStateCache",new Map);R(this,"_historyTimer",null);R(this,"_changeStateCacheTimer",null);this._undoRedoService=e,this._commandService=n,this._univerInstanceService=o,this._docStateEmitService=a,this._renderManagerService=r,this._initialize(),this._listenDocStateChange()}getStateCache(e){var n,o;return{history:(n=this._historyStateCache.get(e))!=null?n:[],collaboration:(o=this._changeStateCache.get(e))!=null?o:[]}}setStateCache(e,n){this._historyStateCache.set(e,n.history),this._changeStateCache.set(e,n.collaboration)}_setChangeState(e){this._cacheChangeState(e,"history"),this._cacheChangeState(e,"collaboration")}_initialize(){this.disposeWithMe(this._commandService.beforeCommandExecuted(e=>{if(e.id===s.UndoCommandId||e.id===s.RedoCommandId){const n=this._univerInstanceService.getCurrentUniverDocInstance();if(n==null)return;const o=n.getUnitId();this._pushHistory(o),this._emitChangeState(o)}}))}_listenDocStateChange(){this._docStateEmitService.docStateChangeParams$.pipe(N.takeUntil(this.dispose$)).subscribe(e=>{var l;if(e==null)return;const{isCompositionEnd:n,isSync:o,syncer:a,...r}=e,c=(l=this._renderManagerService.getRenderById(o?a:e.unitId))==null?void 0:l.with(Vt);if(c!=null){if(n){const A=c.fetchComposedUndoRedoMutationParams();if(A==null)throw new Error("historyParams is null in RichTextEditingMutation");const{undoMutationParams:d,redoMutationParams:u,previousActiveRange:m}=A;r.redoState.actions=u.actions,r.undoState.actions=d.actions,r.undoState.textRanges=[m]}this._setChangeState(r)}})}_cacheChangeState(e,n="history"){const{trigger:o,unitId:a,noHistory:r,debounce:c=!1}=e;if(r||o==null||n==="history"&&(o===s.RedoCommandId||o===s.UndoCommandId))return;const l=n==="history"?this._historyStateCache:this._changeStateCache,A=n==="history"?this._pushHistory.bind(this):this._emitChangeState.bind(this);if(l.has(a)){const d=l.get(a);d==null||d.push(e)}else l.set(a,[e]);c?n==="history"?(this._historyTimer&&clearTimeout(this._historyTimer),this._historyTimer=setTimeout(()=>{A(a)},Ws)):(this._changeStateCacheTimer&&clearTimeout(this._changeStateCacheTimer),this._changeStateCacheTimer=setTimeout(()=>{A(a)},Ws)):A(a)}_pushHistory(e){const n=this._undoRedoService,o=this._historyStateCache.get(e);if(!Array.isArray(o)||o.length===0)return;const a=o.length,r=o[0].commandId,c=o[0],l=o[a-1],A={unitId:e,actions:o.reduce((u,m)=>s.JSONX.compose(u,m.redoState.actions),null),textRanges:l.redoState.textRanges},d={unitId:e,actions:o.reverse().reduce((u,m)=>s.JSONX.compose(u,m.undoState.actions),null),textRanges:c.undoState.textRanges};n.pushUndoRedo({unitID:e,undoMutations:[{id:r,params:d}],redoMutations:[{id:r,params:A}]}),o.length=0}_emitChangeState(e){const n=this._changeStateCache.get(e);if(!Array.isArray(n)||n.length===0)return;const o=n.length,{commandId:a,trigger:r,segmentId:c,noHistory:l,debounce:A}=n[0],d=n[0],u=n[o-1],m={unitId:e,actions:n.reduce((g,p)=>s.JSONX.compose(g,p.redoState.actions),null),textRanges:u.redoState.textRanges},h={unitId:e,actions:n.reverse().reduce((g,p)=>s.JSONX.compose(g,p.undoState.actions),null),textRanges:d.undoState.textRanges},f={commandId:a,unitId:e,trigger:r,redoState:m,undoState:h,segmentId:c,noHistory:l,debounce:A};n.length=0,this._docStateChange$.next(f)}},C.DocStateChangeManagerService=UA([Wt(0,s.Inject(s.IUndoRedoService)),Wt(1,s.ICommandService),Wt(2,s.IUniverInstanceService),Wt(3,s.Inject(D.DocStateEmitService)),Wt(4,M.IRenderManagerService)],C.DocStateChangeManagerService);var wA=Object.defineProperty,LA=Object.getOwnPropertyDescriptor,QA=(i,t,e,n)=>{for(var o=n>1?void 0:n?LA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&wA(t,e,o),o},zs=(i,t)=>(e,n)=>t(e,n,i);const Gs="univer-doc-main-canvas";C.DocsRenderService=class extends s.RxDisposable{constructor(t,e){super(),this._instanceSrv=t,this._renderManagerService=e,this._init()}_init(){this._renderManagerService.createRender$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>this._createRenderWithId(t)),this._instanceSrv.getAllUnitsForType(s.UniverInstanceType.UNIVER_DOC).forEach(t=>this._createRenderer(t)),this._instanceSrv.getTypeOfUnitAdded$(s.UniverInstanceType.UNIVER_DOC).pipe(N.takeUntil(this.dispose$)).subscribe(t=>this._createRenderer(t)),this._instanceSrv.getTypeOfUnitDisposed$(s.UniverInstanceType.UNIVER_DOC).pipe(N.takeUntil(this.dispose$)).subscribe(t=>this._disposeRenderer(t))}_createRenderer(t){var o;const e=t.getUnitId(),n=(o=this._instanceSrv.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC))==null?void 0:o.getUnitId();this._renderManagerService.created$.subscribe(a=>{a.unitId===n&&(a.engine.getCanvas().setId(Gs),a.engine.getCanvas().getContext().setId(Gs))}),this._renderManagerService.has(e)||(this._createRenderWithId(e),this._renderManagerService.setCurrent(e))}_createRenderWithId(t){this._renderManagerService.createRender(t)}_disposeRenderer(t){const e=t.getUnitId();this._renderManagerService.removeRender(e)}},C.DocsRenderService=QA([zs(0,s.IUniverInstanceService),zs(1,M.IRenderManagerService)],C.DocsRenderService);const FA={id:dt.id,preconditions:sr,binding:y.KeyCode.ENTER},HA={id:Qt.id,preconditions:ne,binding:y.KeyCode.BACKSPACE},kA={id:yi.id,preconditions:ne,binding:y.KeyCode.DELETE},VA={id:ke.id,binding:y.KeyCode.ARROW_UP,preconditions:ne,staticParameters:{direction:s.Direction.UP}},jA={id:ke.id,binding:y.KeyCode.ARROW_DOWN,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},WA={id:ke.id,binding:y.KeyCode.ARROW_LEFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},zA={id:ke.id,binding:y.KeyCode.ARROW_RIGHT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},GA={id:Ve.id,binding:y.KeyCode.ARROW_UP|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.UP}},YA={id:Ve.id,binding:y.KeyCode.ARROW_DOWN|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},XA={id:Ve.id,binding:y.KeyCode.ARROW_LEFT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},KA={id:Ve.id,binding:y.KeyCode.ARROW_RIGHT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},JA={id:Vi.id,binding:y.KeyCode.A|y.MetaKeys.CTRL_COMMAND,preconditions:i=>i.getContextValue(s.FOCUSING_UNIVER_EDITOR)&&(i.getContextValue(s.FOCUSING_DOC)||i.getContextValue(s.EDITOR_ACTIVATED))};var Ys=Object.defineProperty,ZA=Object.getOwnPropertyDescriptor,qA=(i,t,e)=>t in i?Ys(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,$A=(i,t,e,n)=>{for(var o=n>1?void 0:n?ZA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Ys(t,e,o),o},zt=(i,t)=>(e,n)=>t(e,n,i),ed=(i,t,e)=>qA(i,t+"",e);C.UniverDocsUIPlugin=class extends s.Plugin{constructor(t=wr,e,n,o,a,r){super(),this._config=t,this._injector=e,this._renderManagerSrv=n,this._commandService=o,this._logService=a,this._configService=r;const{menu:c,...l}=this._config;c&&this._configService.setConfig("menu",c,{merge:!0}),this._configService.setConfig(Ii,l),this._initDependencies(e),this._initializeShortcut(),this._initCommand()}onReady(){this._initRenderBasics(),this._markDocAsFocused(),s.touchDependencies(this._injector,[[C.DocStateChangeManagerService],[C.DocsRenderService]])}onRendered(){this._initUI(),this._initRenderModules(),s.touchDependencies(this._injector,[[Dn],[Nn],[Et],[Pn],[C.DocUIController]])}_initCommand(){[Qt,yi,Ge,Ye,Xe,Ke,Fe,Je,Ze,qe,$e,ut,et,Ne,Ui,hn,mt,gn,bi,mn,ve,_t,Dt,ht,Nt,Pt,Ut,Re,wt,wi,Ni,Tn,bn,Ts,yn,Rn,vn,Cn,It,hi,Wi,ze,xt,dt,sn,Mt,an,rn,Si,ji,En,Oe,Ti,tt,ho,Xn,Kn,Mn,Vi,Fi,ke,Ve].forEach(t=>{this._commandService.registerCommand(t)}),[Ht,Sn,In].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_initializeShortcut(){[VA,jA,zA,WA,GA,YA,XA,KA,JA,HA,kA,FA,rr].forEach(t=>{this._injector.get(y.IShortcutService).registerShortcut(t)})}_initDependencies(t){s.mergeOverrideWithDependencies([[Qn],[Fn],[C.DocUIController],[Dn],[Pn],[Nn],[Bn],[Et],[fe,{useClass:C.EditorService}],[ri,{useClass:Po}],[St,{useClass:Mi}],[C.DocCanvasPopManagerService],[C.DocsRenderService],[C.DocStateChangeManagerService],[C.DocAutoFormatService],[_e]],this._config.override).forEach(n=>t.add(n))}_markDocAsFocused(){const t=this._injector.get(s.IUniverInstanceService),e=this._injector.get(fe);try{const n=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(!n)return;const o=n.getUnitId();e.isEditor(o)||t.focusUnit(n.getUnitId())}catch(n){this._logService.warn(n)}}_initUI(){this._injector.get(Bn)}_initRenderBasics(){[[D.DocSkeletonManagerService],[C.DocSelectionRenderService],[D.DocInterceptorService],[qi],[Vt],[C.DocRenderController],[to]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}_initRenderModules(){[[C.DocEventManagerService],[C.DocBackScrollRenderController],[eo],[li],[$i],[Ki],[Xi],[Qn],[Zi],[Ji],[Fn]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}},ed(C.UniverDocsUIPlugin,"pluginName",so),C.UniverDocsUIPlugin=$A([s.DependentOn(M.UniverRenderEnginePlugin),zt(1,s.Inject(s.Injector)),zt(2,M.IRenderManagerService),zt(3,s.ICommandService),zt(4,s.ILogService),zt(5,s.IConfigService)],C.UniverDocsUIPlugin),C.AfterSpaceCommand=xt,C.AlignCenterCommand=Pt,C.AlignJustifyCommand=wt,C.AlignLeftCommand=Nt,C.AlignOperationCommand=Re,C.AlignRightCommand=Ut,C.BreakLineCommand=Ui,C.BulletListCommand=Dt,C.ChangeListNestingLevelCommand=sn,C.ChangeListNestingLevelType=Bt,C.ChangeListTypeCommand=Mt,C.CheckListCommand=an,C.CoverContentCommand=Kn,C.CreateDocTableCommand=wi,C.CutContentCommand=tt,C.DOCS_COMPONENT_BACKGROUND_LAYER_INDEX=ao,C.DOCS_COMPONENT_DEFAULT_Z_INDEX=Wn,C.DOCS_COMPONENT_HEADER_LAYER_INDEX=ro,C.DOCS_COMPONENT_MAIN_LAYER_INDEX=Yt,C.DOCS_VIEW_KEY=Ie,C.DOC_UI_PLUGIN_NAME=so,C.DOC_VERTICAL_PADDING=Yi,C.DefaultDocContainerConfig=oo,C.DefaultToolbarConfig=io,C.DeleteCommand=mt,C.DeleteCustomBlockCommand=gn,C.DeleteLeftCommand=Qt,C.DeleteRightCommand=yi,C.DocCopyCommand=Ht,C.DocCreateTableOperation=On,C.DocCutCommand=Sn,C.DocIMEInputManagerService=Vt,C.DocPasteCommand=In,C.DocRangeSelector=za,C.DocSelectAllCommand=Vi,C.DocTableDeleteColumnsCommand=Cn,C.DocTableDeleteRowsCommand=vn,C.DocTableDeleteTableCommand=It,C.DocTableInsertColumnCommand=Ts,C.DocTableInsertColumnLeftCommand=yn,C.DocTableInsertColumnRightCommand=Rn,C.DocTableInsertRowAboveCommand=Tn,C.DocTableInsertRowBellowCommand=bn,C.DocTableInsertRowCommand=Ni,C.DocTableTabCommand=Wi,C.DocsUIMenuSchema=Bs,C.Editor=vo,C.EditorInsertTextCommandId=hs,C.EnterCommand=dt,C.IDocClipboardService=St,C.IEditorService=fe,C.IMEInputCommand=ji,C.IRangeSelectorService=ri,C.InnerPasteCommand=Ti,C.InsertCommand=hn,C.ListOperationCommand=ht,C.MergeTwoParagraphCommand=mn,C.MoveCursorOperation=ke,C.MoveSelectionOperation=Ve,C.NORMAL_TEXT_SELECTION_PLUGIN_NAME=ta,C.NodePositionConvertToCursor=De,C.NodePositionConvertToRectRange=ni,C.OrderListCommand=_t,C.PastePluginLark=ps,C.PastePluginUniver=Is,C.PastePluginWord=Es,C.QuickListCommand=Si,C.RangeSelectorService=Po,C.RectRange=oi,C.ReplaceContentCommand=ho,C.ReplaceSnapshotCommand=Xn,C.ResetInlineFormatTextBackgroundColorCommand=ut,C.SetDocZoomRatioCommand=Mn,C.SetDocZoomRatioOperation=ve,C.SetInlineFormatBoldCommand=Ge,C.SetInlineFormatCommand=Ne,C.SetInlineFormatFontFamilyCommand=qe,C.SetInlineFormatFontSizeCommand=Ze,C.SetInlineFormatItalicCommand=Ye,C.SetInlineFormatStrikethroughCommand=Ke,C.SetInlineFormatSubscriptCommand=Fe,C.SetInlineFormatSuperscriptCommand=Je,C.SetInlineFormatTextBackgroundColorCommand=et,C.SetInlineFormatTextColorCommand=$e,C.SetInlineFormatUnderlineCommand=Xe,C.TEXT_RANGE_LAYER_INDEX=Jt,C.TabCommand=ze,C.TextEditor=Co,C.TextRange=je,C.ToggleCheckListCommand=rn,C.UpdateCommand=bi,C.VIEWPORT_KEY=be,C.addCustomDecorationBySelectionFactory=ia,C.addCustomDecorationFactory=lo,C.calcDocRangePositions=wn,C.convertPositionsToRectRanges=qt,C.deleteCustomDecorationFactory=oa,C.docDrawingPositionToTransform=aa,C.genTableSource=vi,C.generateParagraphs=Pi,C.getAnchorBounding=Ot,C.getCanvasOffsetByEngine=Io,C.getCommandSkeleton=me,C.getCursorWhenDelete=fn,C.getCustomBlockIdsInSelections=ds,C.getCutActionsFromDocRanges=us,C.getDocObject=co,C.getDocObjectById=na,C.getEmptyTableCell=An,C.getEmptyTableRow=dn,C.getLineBounding=Zt,C.getOneTextSelectionRange=qn,C.getParagraphsInRange=cn,C.getParagraphsInRanges=gt,C.getRichTextEditPath=te,C.getTableColumn=un,C.hasParagraphInTable=sa,C.isInSameTableCell=ei,C.isValidRectRange=mo,C.neoGetDocObject=Be,C.transformToDocDrawingPosition=ra,C.whenDocAndEditorFocused=ne,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
136
|
+
`,style:{width:162},children:[P.jsx(se.Select,{value:`${E}`,options:[{label:i.t("doc.paragraphSetting.multiSpace"),value:`${s.SpacingRule.AUTO}`},{label:i.t("doc.paragraphSetting.fixedValue"),value:`${s.SpacingRule.AT_LEAST}`}],onChange:v=>T(Number(v))}),P.jsx(nt,{...O,value:S,onChange:v=>I(v!=null?v:0)})]})]})]})]})}const bc=(i,t)=>t.length===i.length&&i.some(e=>t.some(n=>n.startOffset===e.startOffset&&n.endOffset===e.endOffset));function yc(){const i=s.useDependency(s.ICommandService),t=s.useDependency(s.LocaleService),e=s.useObservable(t.currentLocale$),[n,o]=Q.useState(""),a=Q.useMemo(()=>s.debounce(()=>o(s.generateRandomId(4)),300),[]),r=Q.useRef([]);return Q.useEffect(()=>{const c=i.onCommandExecuted(l=>{if(D.SetTextSelectionsOperation.id===l.id){const A=l.params.ranges;bc(A,r.current)||o(s.generateRandomId(4)),r.current=A}D.RichTextEditingMutation.id===l.id&&l.params.trigger!==Oe.id&&a()});return()=>c.dispose()},[a]),Q.useEffect(()=>{o(s.generateRandomId(4))},[e]),Q.useEffect(()=>()=>a.cancel(),[a]),P.jsx(Tc,{},n)}var Rc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,xc=(i,t,e,n)=>{for(var o=n>1?void 0:n?Oc(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Rc(t,e,o),o},Qi=(i,t)=>(e,n)=>t(e,n,i);const Rs="doc_ui_paragraph-setting-panel";let Et=class extends s.Disposable{constructor(t,e,n){super();R(this,"_id");this._commandService=t,this._componentManager=e,this._sidebarService=n,this._init()}_init(){this.disposeWithMe(this._componentManager.register(Rs,yc))}openPanel(){const t={header:{title:"doc.slider.paragraphSetting"},id:this._id,children:{label:Rs},width:300};this._sidebarService.open(t)}closePanel(){this._sidebarService.close(this._id)}};Et=xc([Qi(0,s.ICommandService),Qi(1,s.Inject(y.ComponentManager)),Qi(2,s.Inject(y.ISidebarService))],Et);const Fi={id:"sidebar.operation.doc-paragraph-setting-panel",type:s.CommandType.OPERATION,handler:i=>(i.get(Et).openPanel(),!0)},Hi=i=>{const t=i.get(D.DocSelectionManagerService);return new N.Observable(e=>{const n=t.textSelection$.subscribe(()=>{const o=t.getActiveTextRange();o&&!o.collapsed?e.next(!1):e.next(!0)});return()=>n.unsubscribe()})};function Mc(i){if(i.length<2)return!0;const t=i.map(e=>e.tableId);return t.every(e=>e===t[0])}function Os(i,t,e){var a;const n=t.getRectRanges(),o=t.getActiveTextRange();if(n&&n.length&&Mc(n)&&o==null){i.next(!1);return}if(o&&(n==null||n.length===0)){const{segmentId:r,startOffset:c,endOffset:l}=o,A=e.getCurrentUniverDocInstance(),d=(a=A==null?void 0:A.getSelfOrHeaderFooterModel(r).getBody())==null?void 0:a.tables;if(d&&d.length&&d.some(u=>{const{startIndex:m,endIndex:h}=u;return c>m&&c<h||l>m&&l<h})){i.next(!1);return}}i.next(!0)}const Pe=i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService);return new N.Observable(n=>{const o=t.textSelection$.subscribe(()=>{Os(n,t,e)});return Os(n,t,e),()=>o.unsubscribe()})},Bc=i=>({id:Ht.name,commandId:Ht.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.copy",disabled$:Hi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Dc=i=>({id:Fi.id,type:y.MenuItemType.BUTTON,icon:"MenuSingle24",title:"doc.menu.paragraphSetting",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),_c=i=>({id:Sn.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.cut",disabled$:Hi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Nc=i=>({id:In.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.paste",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Pc=i=>({id:Qt.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.delete",disabled$:Hi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),xs="doc.menu.table-insert";function Uc(i){return{id:xs,type:y.MenuItemType.SUBITEMS,title:"table.insert",icon:"Insert",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Pe(i),(t,e)=>t||e)}}function wc(i){return{id:Tn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowAbove",icon:"InsertRowAbove",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Lc(i){return{id:bn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowBelow",icon:"InsertRowBelow",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Qc(i){return{id:yn.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnLeft",icon:"LeftInsertColumn",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Fc(i){return{id:Rn.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnRight",icon:"RightInsertColumn",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}const Ms="doc.menu.table-delete";function Hc(i){return{id:Ms,type:y.MenuItemType.SUBITEMS,title:"table.delete",icon:"Reduce",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Pe(i),(t,e)=>t||e)}}function kc(i){return{id:vn.id,type:y.MenuItemType.BUTTON,title:"table.deleteRows",icon:"DeleteRow",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Vc(i){return{id:Cn.id,type:y.MenuItemType.BUTTON,title:"table.deleteColumns",icon:"DeleteColumn",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function jc(i){return{id:It.id,type:y.MenuItemType.BUTTON,title:"table.deleteTable",icon:"GridSingle",disabled$:Pe(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Wc(i){const t=i.get(s.IUniverInstanceService),e=i.get(M.IRenderManagerService);return new N.Observable(n=>{const o=t.focused$.subscribe(c=>{if(c==null||t.getUnitType(c)!==s.UniverInstanceType.UNIVER_DOC)return n.next(!0);const A=e.getRenderById(c);if(A==null)return n.next(!0);A.with(D.DocSkeletonManagerService).getViewModel().editAreaChange$.subscribe(u=>{n.next(u===M.DocumentEditArea.HEADER||u===M.DocumentEditArea.FOOTER)})}),a=e.getCurrentTypeOfRenderer(s.UniverInstanceType.UNIVER_DOC);if(a==null)return n.next(!0);const r=a.with(D.DocSkeletonManagerService).getViewModel();return n.next(r.getEditArea()!==M.DocumentEditArea.BODY),()=>o.unsubscribe()})}function zc(i){const t=i.get(s.IUniverInstanceService),e=i.get(s.ICommandService);return new N.Observable(n=>{const o=e.onCommandExecuted(l=>{if(l.id===D.RichTextEditingMutation.id){const{unitId:A}=l.params,d=t.getUnit(A);if(d==null){n.next(!0);return}const{documentStyle:u}=d.getSnapshot();n.next((u==null?void 0:u.documentFlavor)!==s.DocumentFlavor.TRADITIONAL)}}),a=t.focused$.subscribe(l=>{if(l==null)return n.next(!0);const A=t.getUniverDocInstance(l),d=A==null?void 0:A.getSnapshot().documentStyle.documentFlavor;n.next(d!==s.DocumentFlavor.TRADITIONAL)}),r=t.getCurrentUniverDocInstance();if(r==null)return n.next(!0);const c=r==null?void 0:r.getSnapshot().documentStyle.documentFlavor;return n.next(c!==s.DocumentFlavor.TRADITIONAL),()=>{o.dispose(),a.unsubscribe()}})}function Gc(i){const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService);return new N.Observable(n=>{const o=t.textSelection$.subscribe(a=>{if(a==null){n.next(!0);return}const{textRanges:r}=a;if(r.length!==1){n.next(!0);return}const c=r[0],{collapsed:l,startNodePosition:A,startOffset:d}=c;if(!l||d==null){n.next(!0);return}const u=e.getCurrentUniverDocInstance();if(u==null){n.next(!0);return}const m=me(i,u.getUnitId());if(m==null){n.next(!0);return}if(m.getViewModel().getCustomRangeRaw(d)){n.next(!0);return}if(A!=null){const{path:g}=A;if(g.indexOf("cells")!==-1){n.next(!0);return}}n.next(!1)});return()=>o.unsubscribe()})}function re(i){const t=i.get(D.DocSelectionManagerService);return new N.Observable(e=>{const n=t.textSelection$.subscribe(o=>{if(o==null){e.next(!0);return}const{textRanges:a,rectRanges:r}=o;if(a.length===0&&r.length===0){e.next(!0);return}e.next(!1)});return()=>n.unsubscribe()})}function Yc(i){const t=i.get(s.ICommandService);return{id:Ge.id,type:y.MenuItemType.BUTTON,icon:"BoldSingle",title:"Set bold",tooltip:"toolbar.bold",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.bl;e.next(l===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Xc(i){const t=i.get(s.ICommandService);return{id:Ye.id,type:y.MenuItemType.BUTTON,icon:"ItalicSingle",title:"Set italic",tooltip:"toolbar.italic",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.it;e.next(l===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Kc(i){const t=i.get(s.ICommandService);return{id:Xe.id,type:y.MenuItemType.BUTTON,icon:"UnderlineSingle",title:"Set underline",tooltip:"toolbar.underline",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.ul;e.next((l==null?void 0:l.s)===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Jc(i){const t=i.get(s.ICommandService);return{id:Ke.id,type:y.MenuItemType.BUTTON,icon:"StrikethroughSingle",title:"Set strike through",tooltip:"toolbar.strikethrough",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.st;e.next((l==null?void 0:l.s)===s.BooleanNumber.TRUE)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Zc(i){const t=i.get(s.ICommandService);return{id:Fe.id,type:y.MenuItemType.BUTTON,icon:"SubscriptSingle",tooltip:"toolbar.subscript",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.va;e.next(l===s.BaselineOffset.SUBSCRIPT)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function qc(i){const t=i.get(s.ICommandService);return{id:Je.id,type:y.MenuItemType.BUTTON,icon:"SuperscriptSingle",tooltip:"toolbar.superscript",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Ne.id){const c=He(i);if(c==null){e.next(!1);return}const l=(r=c.ts)==null?void 0:r.va;e.next(l===s.BaselineOffset.SUPERSCRIPT)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function $c(i){const t=i.get(s.ICommandService);return{id:qe.id,tooltip:"toolbar.font",type:y.MenuItemType.SELECTOR,label:jo,selections:y.FONT_FAMILY_LIST.map(e=>({label:{name:Wo,hoverable:!0},value:e.value})),value$:new N.Observable(e=>{const n=s.DEFAULT_STYLES.ff,o=t.onCommandExecuted(a=>{var c;const r=a.id;if(r===D.SetTextSelectionsOperation.id||r===qe.id){const l=He(i);if(l==null){e.next(n);return}const A=(c=l.ts)==null?void 0:c.ff;e.next(A!=null?A:n)}});return e.next(n),o.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function el(i){const t=i.get(s.ICommandService);return{id:Ze.id,type:y.MenuItemType.SELECTOR,tooltip:"toolbar.fontSize",label:{name:zo,props:{min:1,max:400}},selections:y.FONT_SIZE_LIST,value$:new N.Observable(e=>{const n=s.DEFAULT_STYLES.fs,o=t.onCommandExecuted(a=>{var c;const r=a.id;if(r===D.SetTextSelectionsOperation.id||r===Ze.id){const l=He(i);if(l==null){e.next(n);return}const A=(c=l.ts)==null?void 0:c.fs;e.next(A!=null?A:n)}});return e.next(n),o.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function tl(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:$e.id,icon:"FontColor",tooltip:"toolbar.textColor.main",type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:gi,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().textColor,a=t.onCommandExecuted(r=>{if(r.id===$e.id){const c=r.params.value;n.next(c!=null?c:o)}});return n.next(o),a.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function nl(i){return{id:ui.id,type:y.MenuItemType.BUTTON,icon:"HeaderFooterSingle",tooltip:"toolbar.headerFooter",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),zc(i),(t,e)=>t||e)}}const il="GridSingle",Bs="doc.menu.table";function ol(i){return{id:Bs,type:y.MenuItemType.SUBITEMS,icon:il,tooltip:"toolbar.table.main",disabled$:Gc(i),hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),Wc(i),(t,e)=>t||e)}}function sl(i){return{id:On.id,title:"toolbar.table.insert",type:y.MenuItemType.BUTTON,hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function al(i){const t=i.get(s.ICommandService);return{id:Nt.id,type:y.MenuItemType.BUTTON,icon:"LeftJustifyingSingle",tooltip:"toolbar.alignLeft",disabled$:re(i),activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.LEFT)}});return e.next(!1),n.dispose}),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function rl(i){const t=i.get(s.ICommandService);return{id:Pt.id,type:y.MenuItemType.BUTTON,icon:"HorizontallySingle",tooltip:"toolbar.alignCenter",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.CENTER)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function cl(i){const t=i.get(s.ICommandService);return{id:Ut.id,type:y.MenuItemType.BUTTON,icon:"RightJustifyingSingle",tooltip:"toolbar.alignRight",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.RIGHT)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function ll(i){const t=i.get(s.ICommandService);return{id:wt.id,type:y.MenuItemType.BUTTON,icon:"AlignTextBothSingle",tooltip:"toolbar.alignJustify",activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===D.SetTextSelectionsOperation.id||a===Re.id){const c=xn(i);if(c==null)return;const l=(r=c.paragraphStyle)==null?void 0:r.horizontalAlign;e.next(l===s.HorizontalAlign.JUSTIFIED)}});return e.next(!1),n.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}const kt=i=>new N.Observable(t=>{const e=i.get(s.IUniverInstanceService),n=i.get(D.DocSelectionManagerService);let o;const a=e.focused$.subscribe(r=>{if(o==null||o.unsubscribe(),r==null)return;const c=e.getUniverDocInstance(r);c!=null&&(o=n.textSelection$.subscribe(()=>{var d,u,m;const l=n.getDocRanges(),A=(d=l.find(h=>h.isActive))!=null?d:l[0];if(A){const h=c.getSelfOrHeaderFooterModel(A==null?void 0:A.segmentId),f=cn(A,(m=(u=h.getBody())==null?void 0:u.paragraphs)!=null?m:[]);let g;if(f.every(p=>{var S;return g||(g=(S=p.bullet)==null?void 0:S.listType),p.bullet&&p.bullet.listType===g})){t.next(g);return}}t.next(void 0)}))});return()=>{a.unsubscribe(),o==null||o.unsubscribe()}});function Al(i){return{id:_t.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:Yo,hoverable:!1},value$:kt(i)}],icon:"OrderSingle",tooltip:"toolbar.order",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),disabled$:re(i),activated$:kt(i).pipe(N.map(t=>t&&t.indexOf("ORDER_LIST")===0))}}function dl(i){return{id:Dt.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:Xo,hoverable:!1},value$:kt(i)}],icon:"UnorderSingle",tooltip:"toolbar.unorder",disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:kt(i).pipe(N.map(t=>t&&t.indexOf("BULLET_LIST")===0))}}function ul(i){return{id:an.id,type:y.MenuItemType.BUTTON,icon:"TodoList",tooltip:"toolbar.checklist",disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:kt(i).pipe(N.map(t=>t&&t.indexOf("CHECK_LIST")===0))}}function hl(i){const t=i.get(s.ICommandService),e=i.get(s.IUniverInstanceService);return{id:En.id,type:y.MenuItemType.BUTTON,icon:"KeyboardSingle",tooltip:"toolbar.documentFlavor",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),activated$:new N.Observable(n=>{var r;const o=t.onCommandExecuted(c=>{var l;if(c.id===D.RichTextEditingMutation.id){const A=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);n.next(((l=A==null?void 0:A.getSnapshot())==null?void 0:l.documentStyle.documentFlavor)===s.DocumentFlavor.MODERN)}}),a=e.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);return n.next(((r=a==null?void 0:a.getSnapshot())==null?void 0:r.documentStyle.documentFlavor)===s.DocumentFlavor.MODERN),()=>o.dispose()})}}function gl(i){return{id:ut.id,type:y.MenuItemType.BUTTON,title:"toolbar.resetColor",icon:"NoColor"}}function ml(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:et.id,tooltip:"toolbar.fillColor.main",type:y.MenuItemType.BUTTON_SELECTOR,icon:"PaintBucket",selections:[{label:{name:gi,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().primaryColor,a=t.onCommandExecuted(r=>{if(r.id===et.id){const c=r.params.value;n.next(c!=null?c:o)}});return n.next(o),a.dispose}),disabled$:re(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function He(i){var m,h;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=i.get(_e),o=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),a=e.getDocRanges(),r=(m=a.find(f=>f.isActive))!=null?m:a[0],c=n.getDefaultStyle(),l=(h=n.getStyleCache())!=null?h:{};if(o==null||r==null)return{ts:{...c,...l}};const{segmentId:A}=r,d=o.getSelfOrHeaderFooterModel(A).getBody();return d==null?{ts:{...c,...l}}:{ts:{...rs(d,r,c),...l}}}function xn(i){var d,u;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=t.getCurrentUniverDocInstance(),o=e.getDocRanges(),a=(d=o.find(m=>m.isActive))!=null?d:o[0];if(n==null||a==null)return;const{startOffset:r,segmentId:c}=a,l=(u=n.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:u.paragraphs;if(l==null)return;let A=-1;for(const m of l){const{startIndex:h}=m;if(r>A&&r<=h)return m;A=h}return null}const Ds={[y.RibbonStartGroup.FORMAT]:{[Ge.id]:{order:0,menuItemFactory:Yc},[Ye.id]:{order:1,menuItemFactory:Xc},[Xe.id]:{order:2,menuItemFactory:Kc},[Ke.id]:{order:3,menuItemFactory:Jc},[Fe.id]:{order:4,menuItemFactory:Zc},[Je.id]:{order:5,menuItemFactory:qc},[Ze.id]:{order:6,menuItemFactory:el},[qe.id]:{order:7,menuItemFactory:$c},[$e.id]:{order:8,menuItemFactory:tl},[et.id]:{order:9,menuItemFactory:ml,[ut.id]:{order:0,menuItemFactory:gl}}},[y.RibbonStartGroup.LAYOUT]:{[Bs]:{order:1,menuItemFactory:ol,[On.id]:{order:0,menuItemFactory:sl}},[Nt.id]:{order:2,menuItemFactory:al},[Pt.id]:{order:3,menuItemFactory:rl},[Ut.id]:{order:4,menuItemFactory:cl},[wt.id]:{order:5,menuItemFactory:ll},[_t.id]:{order:6,menuItemFactory:Al},[Dt.id]:{order:7,menuItemFactory:dl},[an.id]:{order:8,menuItemFactory:ul},[ui.id]:{order:9,menuItemFactory:nl},[En.id]:{order:10,menuItemFactory:hl}},[y.ContextMenuPosition.MAIN_AREA]:{[y.ContextMenuGroup.FORMAT]:{[Ht.name]:{order:0,menuItemFactory:Bc},[Sn.id]:{order:1,menuItemFactory:_c},[In.id]:{order:2,menuItemFactory:Nc},[Qt.id]:{order:3,menuItemFactory:Pc}},[y.ContextMenuGroup.LAYOUT]:{[Fi.id]:{order:0,menuItemFactory:Dc},[xs]:{order:1,menuItemFactory:Uc,[Tn.id]:{order:1,menuItemFactory:wc},[bn.id]:{order:2,menuItemFactory:Lc},[yn.id]:{order:3,menuItemFactory:Qc},[Rn.id]:{order:4,menuItemFactory:Fc}},[Ms]:{order:2,menuItemFactory:Hc,[vn.id]:{order:1,menuItemFactory:kc},[Cn.id]:{order:2,menuItemFactory:Vc},[It.id]:{order:3,menuItemFactory:jc}}}}};var fl=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,Sl=(i,t,e,n)=>{for(var o=n>1?void 0:n?pl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&fl(t,e,o),o},Ue=(i,t)=>(e,n)=>t(e,n,i);C.DocUIController=class extends s.Disposable{constructor(t,e,n,o,a,r,c,l,A){super(),this._injector=t,this._componentManager=e,this._commandService=n,this._layoutService=o,this._menuManagerService=a,this._uiPartsService=r,this._univerInstanceService=c,this._shortcutService=l,this._configService=A,this._init()}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(gi,se.ColorPicker)),this.disposeWithMe(t.register(jo,y.FontFamily)),this.disposeWithMe(t.register(Wo,y.FontFamilyItem)),this.disposeWithMe(t.register(zo,y.FontSize)),this.disposeWithMe(t.register(Xo,sr)),this.disposeWithMe(t.register(Yo,ir)),this.disposeWithMe(t.register("TodoList",_o))}_initUiParts(){var n,o;const t=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET),e=this._configService.getConfig(Ii);(o=(n=e==null?void 0:e.layout)==null?void 0:n.docContainerConfig)!=null&&o.footer&&!t&&this.disposeWithMe(this._uiPartsService.registerComponent(y.BuiltInUIPart.FOOTER,()=>s.connectInjector(wr,this._injector)))}_initMenus(){this._menuManagerService.mergeMenu(Ds)}_initShortCut(){[pr,Sr,Ir,Er,vr,Cr,yr,Rr,br,Tr,Or,xr,rr].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_init(){this._initCustomComponents(),this._initMenus(),this._initFocusHandler(),this._initCommands(),this._initUiParts(),this._initShortCut()}_initCommands(){[Vo,ui,Ai].forEach(t=>this.disposeWithMe(this._commandService.registerCommand(t)))}_initFocusHandler(){this.disposeWithMe(this._layoutService.registerFocusHandler(s.UniverInstanceType.UNIVER_DOC,t=>{this._injector.get(M.IRenderManagerService).getRenderById(t).with(C.DocSelectionRenderService).focus()}))}},C.DocUIController=Sl([Ue(0,s.Inject(s.Injector)),Ue(1,s.Inject(y.ComponentManager)),Ue(2,s.ICommandService),Ue(3,y.ILayoutService),Ue(4,y.IMenuManagerService),Ue(5,y.IUIPartsService),Ue(6,s.IUniverInstanceService),Ue(7,y.IShortcutService),Ue(8,s.IConfigService)],C.DocUIController);var Il=Object.defineProperty,El=Object.getOwnPropertyDescriptor,vl=(i,t,e,n)=>{for(var o=n>1?void 0:n?El(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Il(t,e,o),o},ki=(i,t)=>(e,n)=>t(e,n,i);const _s=1.5;C.DocBackScrollRenderController=class extends s.RxDisposable{constructor(t,e,n,o){super(),this._context=t,this._textSelectionManagerService=e,this._editorService=n,this._docSkeletonManagerService=o,this._init()}_init(){this._textSelectionManagerService.textSelection$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>{if(t==null)return;const{isEditing:e,unitId:n}=t;n!==this._context.unitId||!e||this._context.unitId!==s.DOCS_NORMAL_EDITOR_UNIT_ID_KEY&&this._scrollToSelection()})}scrollToRange(t){const e=this._docSkeletonManagerService.getSkeleton();if(!e)return;const{startOffset:n}=t,o=e.findNodePositionByCharIndex(n);o&&this.scrollToNode(o)}scrollToNode(t){var w;const{unitId:e,scene:n,mainComponent:o}=this._context,a=this._docSkeletonManagerService.getSkeleton();if(o==null||a==null)return;const r=o.getOffsetConfig(),{docsLeft:c,docsTop:l}=r,A=new De(r,a),{contentBoxPointGroup:d}=A.getRangePointData(t,t),{left:u,top:m,height:h}=Ot(d),f=u+c,g=m+l,p=n.getViewport(be.VIEW_MAIN),S=this._editorService.getEditor(e);if(p==null)return;const{left:I,top:E,right:T,bottom:O}=p.getBounding().viewBound;let v=0,b=0;const _=S?(w=S.params.backScrollOffset)!=null?w:0:100;g<E?v=g-E-_:g>O-h&&(v=g-O+h+_),f<I?b=f-I:f>T-_s&&(b=f-T+_s);const B=p.transViewportScroll2ScrollValue(b,v);p.scrollByBarDeltaValue(B)}_scrollToSelection(){const t=this._textSelectionManagerService.getActiveTextRange();if(t==null)return;const{collapsed:e,startNodePosition:n}=t;e&&this.scrollToNode(n)}},C.DocBackScrollRenderController=vl([ki(1,s.Inject(D.DocSelectionManagerService)),ki(2,fe),ki(3,s.Inject(D.DocSkeletonManagerService))],C.DocBackScrollRenderController);var Cl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,bl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Tl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Cl(t,e,o),o},vt=(i,t)=>(e,n)=>t(e,n,i);C.DocRenderController=class extends s.RxDisposable{constructor(t,e,n,o,a,r,c){super(),this._context=t,this._commandService=e,this._docSelectionRenderService=n,this._docSkeletonManagerService=o,this._editorService=a,this._renderManagerService=r,this._univerInstanceService=c,this._addNewRender(),this._initRenderRefresh(),this._initCommandListener()}reRender(t){var r,c;const e=(r=this._renderManagerService.getRenderById(t))==null?void 0:r.with(D.DocSkeletonManagerService),n=e==null?void 0:e.getSkeleton();if(!n||!!n.getViewModel().getDataModel().getSnapshot().disabled)return;n.calculate();const a=this._editorService.getEditor(t);if(this._editorService.isEditor(t)&&!(a!=null&&a.params.scrollBar)){(c=this._context.mainComponent)==null||c.makeDirty();return}this._recalculateSizeBySkeleton(n)}_addNewRender(){const{scene:t,engine:e}=this._context,n=new M.Viewport(be.VIEW_MAIN,t,{left:0,top:0,bottom:0,right:0,isWheelPreventDefaultX:!0});t.attachControl(),t.onMouseWheel$.subscribeEvent((o,a)=>{const r=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if((r==null?void 0:r.getUnitId())!==this._context.unitId)return;const c=o;if(c.ctrlKey){const l=Math.abs(c.deltaX);let A=l<40?.2:l<80?.4:.2;A*=c.deltaY>0?-1:1,t.scaleX<1&&(A/=2),t.scaleX+A>4?t.scale(4,4):t.scaleX+A<.1?t.scale(.1,.1):c.preventDefault()}else n.onMouseWheel(c,a)}),new M.ScrollBar(n),t.addLayer(new M.Layer(t,[],Yt),new M.Layer(t,[],ro)),this._addComponent(),e.runRenderLoop(()=>{t.render()}),this._docSelectionRenderService.__attachScrollEvent()}_addComponent(){const{scene:t,unit:e,components:n}=this._context,r={pageMarginLeft:20,pageMarginTop:20},c=new M.Documents(Ie.MAIN,void 0,r);c.zIndex=Wn;const l=new M.DocBackground(Ie.BACKGROUND,void 0,r);l.zIndex=Wn,this._context.mainComponent=c,n.set(Ie.MAIN,c),n.set(Ie.BACKGROUND,l),t.addObjects([c],Yt),t.addObjects([l],ao),this._editorService.getEditor(e.getUnitId())==null&&t.enableLayerCache(Yt)}_initRenderRefresh(){this._docSkeletonManagerService.currentSkeletonBefore$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>{this._create(t)})}_create(t){if(!t)return;const{mainComponent:e,components:n}=this._context,o=e,a=n.get(Ie.BACKGROUND);o.changeSkeleton(t),a.changeSkeleton(t),this._recalculateSizeBySkeleton(t)}_initCommandListener(){const t=[D.RichTextEditingMutation.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)){const n=e.params,{unitId:o}=n;this.reRender(o)}}))}_recalculateSizeBySkeleton(t){var f;const{mainComponent:e,scene:n,unitId:o,components:a}=this._context,r=e,c=a.get(Ie.BACKGROUND),l=(f=t.getSkeletonData())==null?void 0:f.pages;if(l==null)return;let A=0,d=0;const m=this._context.unit.getSnapshot().documentStyle.documentFlavor;for(let g=0,p=l.length;g<p;g++){const S=l[g];let{pageWidth:I,pageHeight:E}=S;if(m===s.DocumentFlavor.MODERN){const T=yl(S);I=T.pageWidth,E=T.pageHeight}r.pageLayoutType===M.PageLayoutType.VERTICAL?(d+=E,d+=r.pageMarginTop,g===p-1&&(d+=r.pageMarginTop),A=Math.max(A,I)):r.pageLayoutType===M.PageLayoutType.HORIZONTAL&&(A+=I,g!==p-1&&(A+=r.pageMarginLeft),d=Math.max(d,E))}r.resize(A,d),c.resize(A,d);const h=this._editorService.getEditor(o);(!this._editorService.isEditor(o)||h!=null&&h.params.scrollBar)&&n.resize(A,d)}},C.DocRenderController=bl([vt(1,s.ICommandService),vt(2,s.Inject(C.DocSelectionRenderService)),vt(3,s.Inject(D.DocSkeletonManagerService)),vt(4,fe),vt(5,M.IRenderManagerService),vt(6,s.IUniverInstanceService)],C.DocRenderController);function yl(i){let{pageWidth:t,pageHeight:e}=i;const{marginLeft:n,marginRight:o,marginTop:a,marginBottom:r,skeDrawings:c,skeTables:l}=i;t===Number.POSITIVE_INFINITY&&(t=i.width+n+o),e===Number.POSITIVE_INFINITY&&(e=i.height+a+r);for(const A of c.values())t=Math.max(t,A.aLeft+A.width+n+o),e=Math.max(e,A.aTop+A.height+a+r);for(const A of l.values())t=Math.max(t,A.left+A.width+n+o),e=Math.max(e,A.top+A.height+a+r);return{pageWidth:t,pageHeight:e}}const Vi={id:"doc.command.select-all",type:s.CommandType.COMMAND,handler:async i=>{var m;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),o=e.getDocRanges(),a=(m=o.find(h=>h.isActive))!=null?m:o[0];if(n==null||a==null)return!1;const{segmentId:r}=a,c=n.getUnitId(),l=n.getSelfOrHeaderFooterModel(r).getSnapshot().body;if(l==null)return!1;const{tables:A=[]}=l,d=[];let u=0;for(const h of A){const{startIndex:f,endIndex:g}=h;u!==f&&d.push({startOffset:u,endOffset:f-1,rangeType:s.DOC_RANGE_TYPE.TEXT}),d.push({startOffset:f+3,endOffset:g-5,rangeType:s.DOC_RANGE_TYPE.RECT}),u=g}return u!==l.dataStream.length-2&&d.push({startOffset:u,endOffset:l.dataStream.length-2,rangeType:s.DOC_RANGE_TYPE.TEXT}),e.replaceDocRanges(d,{unitId:c,subUnitId:c},!1),!0}};class Vt extends s.RxDisposable{constructor(e){super();R(this,"_previousActiveRange",null);R(this,"_undoMutationParamsCache",[]);R(this,"_redoMutationParamsCache",[]);this._context=e}clearUndoRedoMutationParamsCache(){this._undoMutationParamsCache=[],this._redoMutationParamsCache=[]}getUndoRedoMutationParamsCache(){return{undoCache:this._undoMutationParamsCache,redoCache:this._redoMutationParamsCache}}setUndoRedoMutationParamsCache({undoCache:e=[],redoCache:n=[]}){this._undoMutationParamsCache=e,this._redoMutationParamsCache=n}getActiveRange(){return this._previousActiveRange}setActiveRange(e){this._previousActiveRange=e}pushUndoRedoMutationParams(e,n){this._undoMutationParamsCache.push(e),this._redoMutationParamsCache.push(n)}fetchComposedUndoRedoMutationParams(){if(this._undoMutationParamsCache.length===0||this._previousActiveRange==null||this._redoMutationParamsCache.length===0)return null;const{unitId:e}=this._undoMutationParamsCache[0],n={unitId:e,actions:this._undoMutationParamsCache.reverse().reduce((a,r)=>s.JSONX.compose(a,r.actions),null),textRanges:[]};return{redoMutationParams:{unitId:e,actions:this._redoMutationParamsCache.reduce((a,r)=>s.JSONX.compose(a,r.actions),null),textRanges:[]},undoMutationParams:n,previousActiveRange:this._previousActiveRange}}dispose(){this._undoMutationParamsCache=[],this._redoMutationParamsCache=[],this._previousActiveRange=null}}const Rl=s.SHEET_EDITOR_UNITS,ji={id:"doc.command.ime-input",type:s.CommandType.COMMAND,handler:async(i,t)=>{var k,X,G,W;const{unitId:e,newText:n,oldTextLen:o,isCompositionEnd:a,isCompositionStart:r}=t,c=i.get(s.ICommandService),l=i.get(M.IRenderManagerService),A=i.get(s.IUniverInstanceService),d=i.get(_e),u=(k=l.getRenderById(e))==null?void 0:k.with(Vt),m=A.getUnit(e,s.UniverInstanceType.UNIVER_DOC);if(m==null||u==null)return!1;const h=u.getActiveRange();if(h==null)return!1;const{style:f,segmentId:g}=h,p=m.getSelfOrHeaderFooterModel(g).getBody();if(p==null)return!1;Object.assign(h,h);const{startOffset:I,endOffset:E}=h,T=n.length,O=[{startOffset:I+T,endOffset:I+T,collapsed:!0,style:f}],v={id:D.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:O}},b=d.getDefaultStyle(),_=d.getStyleCache(),B=zn((X=p.customRanges)!=null?X:[],I+o,Rl.includes(e)),w=Xt((G=p.textRuns)!=null?G:[],r?E:I+o,b,_),x=Gn((W=p.customDecorations)!=null?W:[],I+o),U=new s.TextX,L=s.JSONX.getInstance();if(!h.collapsed&&r){const V=s.BuildTextUtils.selection.delete([h],p,0,null,!1);U.push(...V),v.params.textRanges=[{startOffset:I+T,endOffset:I+T,collapsed:!0}]}else U.push({t:s.TextXActionType.RETAIN,len:I});o>0&&U.push({t:s.TextXActionType.DELETE,len:o}),U.push({t:s.TextXActionType.INSERT,body:{dataStream:n,textRuns:w?[{...w,st:0,ed:n.length}]:[],customRanges:B?[{...B,startIndex:0,endIndex:n.length-1}]:[],customDecorations:x.map(V=>({...V,startIndex:0,endIndex:n.length-1}))},len:n.length});const F=te(m,g);v.params.actions=L.editOp(U.serialize(),F),v.params.noHistory=!a,v.params.isCompositionEnd=a;const H=c.syncExecuteCommand(v.id,v.params);return u.pushUndoRedoMutationParams(H,v.params),!!H}},Mn={type:s.CommandType.COMMAND,id:"doc.command.set-zoom-ratio",handler:async(i,t)=>{var u,m,h;const e=i.get(s.ICommandService),n=i.get(s.IUndoRedoService),o=i.get(s.IUniverInstanceService);let a=(u=o.getCurrentUniverDocInstance())==null?void 0:u.getUnitId();if(!a)return!1;let r=1;if(t&&(a=(m=t.documentId)!=null?m:a,r=(h=t.zoomRatio)!=null?h:r),!o.getUniverDocInstance(a))return!1;const l={zoomRatio:r,unitId:a},A=Br(i,l);return e.syncExecuteCommand(ve.id,l)?(n.pushUndoRedo({unitID:a,undoMutations:[{id:ve.id,params:A}],redoMutations:[{id:ve.id,params:l}]}),!0):!1}},Wi={id:"doc.table.tab-in-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{var f;const{shift:e}=t,n=i.get(D.DocSelectionManagerService),o=n.getDocRanges(),a=i.get(s.ICommandService),c=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(!c)return!1;const l=(f=o.find(g=>g.isActive))!=null?f:o[0],A=c.getUnitId(),d=me(i,A),u=d==null?void 0:d.getSkeleton(),m=u==null?void 0:u.getViewModel().getSelfOrHeaderFooterViewModel(l==null?void 0:l.segmentId);if(m==null||l==null)return!1;let h=null;if(e?h=ds(m,l,Ci.PREV):h=ds(m,l,Ci.NEXT),h){const{startOffset:g,endOffset:p}=h,S=[{startOffset:g,endOffset:p}];return n.replaceDocRanges(S),!0}return e===!1?await a.executeCommand(Ni.id,{position:ln.BELLOW}):!0}},ke={id:"doc.operation.move-cursor",type:s.CommandType.OPERATION,handler:(i,t)=>!!t},Ve={id:"doc.operation.move-selection",type:s.CommandType.OPERATION,handler:(i,t)=>!!t};var Ol=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,Ml=(i,t,e,n)=>{for(var o=n>1?void 0:n?xl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Ol(t,e,o),o},zi=(i,t)=>(e,n)=>t(e,n,i);let Gi=class{constructor(i,t,e){R(this,"_docContainer");R(this,"getComponent",i=>{if(this._docContainer=i,!i.getContentRef().current)throw new Error("container is not ready")});R(this,"changeLocale",i=>{this._localeService.setLocale(i)});this._localeService=i,this._injector=t,this._configService=e}getUIConfig(){return{injector:this._injector,config:this._configService.getConfig(Ii),changeLocale:this.changeLocale,getComponent:this.getComponent}}getContentRef(){return this._docContainer.getContentRef()}UIDidMount(i){if(this._docContainer)return i(this._docContainer)}getDocContainer(){return this._docContainer}};Gi=Ml([zi(0,s.Inject(s.LocaleService)),zi(1,s.Inject(s.Injector)),zi(2,s.IConfigService)],Gi);var Bl=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,_l=(i,t,e,n)=>{for(var o=n>1?void 0:n?Dl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Bl(t,e,o),o},Nl=(i,t)=>(e,n)=>t(e,n,i);let Bn=class extends s.RxDisposable{constructor(t){super();R(this,"_docContainerController");this._injector=t,this._docContainerController=this._injector.createInstance(Gi)}};Bn=_l([Nl(0,s.Inject(s.Injector))],Bn);var Pl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,wl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ul(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Pl(t,e,o),o},Ns=(i,t)=>(e,n)=>t(e,n,i);let Dn=class extends s.Disposable{constructor(i,t){super(),this._docAutoFormatService=i,this._renderManagerService=t,this._initListTabAutoFormat(),this._initListSpaceAutoFormat(),this._initDefaultEnterFormat(),this._initExitListAutoFormat()}_initListTabAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:ze.id,match:i=>{var o;const{selection:t,paragraphs:e,unit:n}=i;if(e.length===1&&t.startOffset===e[0].paragraphStart&&e[0].bullet){const a=(o=n.getBody())==null?void 0:o.paragraphs,r=a==null?void 0:a.filter(c=>{var l;return((l=c.bullet)==null?void 0:l.listId)===e[0].bullet.listId});return(r==null?void 0:r.findIndex(c=>c.startIndex===e[0].startIndex))!==0}else if(e.length>1&&e.some(a=>a.bullet))return!0;return!1},getMutations(i){const t=i.commandParams;return[{id:sn.id,params:{type:t!=null&&t.shift?Bt.decrease:Bt.increase}}]},priority:100})),this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:ze.id,match:i=>{const{selection:t,unit:e}=i,{startNodePosition:n,endNodePosition:o}=t,a=this._renderManagerService.getRenderById(e.getUnitId()),r=a==null?void 0:a.with(D.DocSkeletonManagerService).getSkeleton();return r==null?!1:!!(n&&o&&fo(r,n,o)||n&&!o&&n.path.indexOf("cells")>-1)},getMutations(i){const t=i.commandParams;return[{id:Wi.id,params:{shift:!!(t!=null&&t.shift)}}]},priority:99}))}_initListSpaceAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:xt.id,match:i=>{var a;const{selection:t,paragraphs:e,unit:n}=i;if(!t.collapsed||e.length!==1)return!1;const o=(a=n.getBody())==null?void 0:a.dataStream.slice(e[0].paragraphStart,e[0].paragraphEnd-1);return!!(o&&Object.keys(s.QuickListTypeMap).includes(o))},getMutations(i){var o;const{paragraphs:t,unit:e}=i,n=(o=e.getBody())==null?void 0:o.dataStream.slice(t[0].paragraphStart,t[0].paragraphEnd-1);if(n&&Object.keys(s.QuickListTypeMap).includes(n)){const a=s.QuickListTypeMap[n];return[{id:Si.id,params:{listType:a,paragraph:t[0]}}]}return[]}}))}_initExitListAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:dt.id,match:i=>{const{paragraphs:t}=i;return!!(t.length===1&&t[0].bullet&&t[0].paragraphStart===t[0].paragraphEnd)},getMutations:i=>{const t=i.paragraphs[0].bullet;return t?t.nestingLevel>0?[{id:sn.id,params:{type:Bt.decrease}}]:[{id:ht.id,params:{listType:i.paragraphs[0].bullet.listType}}]:[]}}))}_initDefaultEnterFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:dt.id,match:()=>!0,getMutations(){return[{id:Ui.id}]},priority:-9999}))}};Dn=wl([Ns(0,s.Inject(C.DocAutoFormatService)),Ns(1,M.IRenderManagerService)],Dn);function Ll(i){return i.rows[0].cells[0].sections[0].columns[0].lines[0]}function Ql(i){const t=i.rows[i.rows.length-1],e=t.cells[t.cells.length-1];return M.getLastLine(e)}function Fl(i,t){const{ed:e}=i,{skeTables:n}=t;let o=null;for(const a of n.values())if(a.st===e+1){o=a;break}return o}function Ps(i){const t=i==null?void 0:i.parent;let e=null,n=null;if(i==null||t==null)return{lineBeforeTable:e,lineAfterTable:n};const{st:o,ed:a}=i,r=t.type===M.DocumentSkeletonPageType.CELL?[t]:t.parent.pages;return M.lineIterator(r,c=>{c.st===a+1?n=c:c.ed===o-1&&(e=c)}),{lineBeforeTable:e,lineAfterTable:n}}function Us(i){return i.sections[0].columns[0].lines.length===0}function ws(i){var r,c;const t=i.parent,e=t==null?void 0:t.parent,n=e==null?void 0:e.tableId;if(t==null||e==null)return;const o=t.cells.indexOf(i);let a=e.rows[e.rows.indexOf(t)+1];if(a==null&&n.indexOf("#-#")){const[l,A]=n.split("#-#"),d=(c=(r=e.parent)==null?void 0:r.parent)==null?void 0:c.pages,u=`${l}#-#${Number.parseInt(A)+1}`;if(d)for(const m of d){const{skeTables:h}=m;if(h.has(u)){const f=h.get(u);if(f!=null&&f.rows.length){a=f.rows.find(g=>!g.isRepeatRow);break}}}}if(a!=null){const l=a.cells[o];return Us(l)?ws(l):l}}function Ls(i){var a,r;const t=i.parent,e=t==null?void 0:t.parent;if(t==null||e==null)return;let n=e.rows[e.rows.indexOf(t)-1];const o=t.cells.indexOf(i);if((n==null||n.isRepeatRow)&&e.tableId.indexOf("#-#")){const[c,l]=e.tableId.split("#-#"),A=(r=(a=e.parent)==null?void 0:a.parent)==null?void 0:r.pages,d=`${c}#-#${Number.parseInt(l)-1}`;if(A)for(const u of A){const{skeTables:m}=u;if(m.has(d)){const h=m.get(d);if(h!=null&&h.rows.length){n=h.rows[h.rows.length-1];break}}}}if(n!=null){const c=n.cells[o];return Us(c)?Ls(c):c}}function Hl(i,t){const{st:e}=i,{skeTables:n}=t;let o=null;for(const a of n.values())if(a.ed===e-1){o=a;break}return o}function kl(i){return i.sections[0].columns[0].lines[0]}function Vl(i){const t=M.getLastColumn(i);return t.lines[t.lines.length-1]}var jl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,zl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Wl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&jl(t,e,o),o},_n=(i,t)=>(e,n)=>t(e,n,i);let Nn=class extends s.Disposable{constructor(t,e,n,o){super();R(this,"_onInputSubscription");this._univerInstanceService=t,this._renderManagerService=e,this._textSelectionManagerService=n,this._commandService=o,this._commandExecutedListener()}dispose(){var t;super.dispose(),(t=this._onInputSubscription)==null||t.unsubscribe()}_commandExecutedListener(){const t=[ke.id,Ve.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(!t.includes(e.id))return;const n=e.params;switch(e.id){case ke.id:return this._handleMoveCursor(n.direction);case Ve.id:return this._handleShiftMoveSelection(n.direction);default:throw new Error("Unknown command")}}))}_handleShiftMoveSelection(t){var E,T,O;const e=this._textSelectionManagerService.getActiveTextRange(),n=this._textSelectionManagerService.getTextRanges(),o=this._univerInstanceService.getCurrentUniverDocInstance();if(o==null)return;const a=(E=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:E.with(D.DocSkeletonManagerService).getSkeleton(),r=this._getDocObject();if(e==null||a==null||r==null)return;const{startOffset:c,endOffset:l,style:A,collapsed:d,direction:u,segmentId:m,startNodePosition:h,endNodePosition:f,segmentPage:g}=e;if(n.length>1){let v=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY;for(const _ of n)v=Math.min(v,_.startOffset),b=Math.max(b,_.endOffset);this._textSelectionManagerService.replaceTextRanges([{startOffset:t===s.Direction.LEFT||t===s.Direction.UP?b:v,endOffset:t===s.Direction.LEFT||t===s.Direction.UP?v:b,style:A}],!1);return}const p=d||u===s.RANGE_DIRECTION.FORWARD?c:l;let S=d||u===s.RANGE_DIRECTION.FORWARD?l:c;const I=(T=o.getSelfOrHeaderFooterModel(m).getBody().dataStream.length)!=null?T:Number.POSITIVE_INFINITY;if(t===s.Direction.LEFT||t===s.Direction.RIGHT){const v=a.findNodeByCharIndex(S-1,m,g),b=a.findNodeByCharIndex(S,m,g);S=t===s.Direction.RIGHT?S+b.count:S-((O=v==null?void 0:v.count)!=null?O:0),S=Math.min(I-2,Math.max(0,S)),this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:S,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),S)}else{const v=a.findNodeByCharIndex(S,m,g),b=r.document.getOffsetConfig(),_=d?h:u===s.RANGE_DIRECTION.FORWARD?f:h,B=this._getTopOrBottomPosition(a,v,_,t===s.Direction.DOWN,!0);if(B==null){const x=t===s.Direction.UP?0:I-2;if(x===S)return;this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:x,style:A}],!1);return}const w=new De(b,a).getRangePointData(B,B).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:w.endOffset,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),w.endOffset)}}_handleMoveCursor(t){var I,E,T,O;const e=this._textSelectionManagerService.getActiveTextRange(),n=this._textSelectionManagerService.getTextRanges(),o=this._univerInstanceService.getCurrentUniverDocInstance();if(o==null)return!1;const a=(I=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:I.with(D.DocSkeletonManagerService).getSkeleton(),r=this._getDocObject();if(e==null||a==null||r==null||n==null)return;const{startOffset:c,endOffset:l,style:A,collapsed:d,segmentId:u,startNodePosition:m,endNodePosition:h,segmentPage:f}=e,g=o.getSelfOrHeaderFooterModel(u).getBody();if(g==null)return;const p=(E=g.dataStream.length)!=null?E:Number.POSITIVE_INFINITY,S=(T=o.getCustomRanges())!=null?T:[];if(t===s.Direction.LEFT||t===s.Direction.RIGHT){let v;if(!e.collapsed||n.length>1){let B=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY;for(const x of n)B=Math.min(B,x.startOffset),w=Math.max(w,x.endOffset);v=t===s.Direction.LEFT?B:w}else{const B=a.findNodeByCharIndex(c-1,u,f),w=a.findNodeByCharIndex(c,u,f),x=a.findNodeByCharIndex(c+1,u,f);t===s.Direction.LEFT?v=Math.max(0,c-((O=B==null?void 0:B.count)!=null?O:1)):v=Math.min(p-2,l+w.count+((x==null?void 0:x.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK?1:0))}const b=[s.DataStreamTreeTokenType.TABLE_START,s.DataStreamTreeTokenType.TABLE_END,s.DataStreamTreeTokenType.TABLE_ROW_START,s.DataStreamTreeTokenType.TABLE_ROW_END,s.DataStreamTreeTokenType.TABLE_CELL_START,s.DataStreamTreeTokenType.TABLE_CELL_END,s.DataStreamTreeTokenType.SECTION_BREAK];if(t===s.Direction.LEFT)for(;b.includes(g.dataStream[v]);)v--;else for(;b.includes(g.dataStream[v]);)v++;S.filter(B=>B.wholeEntity&&B.startIndex<v&&B.endIndex>=v).forEach(B=>{t===s.Direction.LEFT?v=Math.min(B.startIndex,v):v=Math.max(B.endIndex+1,v)}),this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,v),endOffset:Math.max(0,v),style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),v)}else{const v=a.findNodeByCharIndex(c,u,f),b=a.findNodeByCharIndex(l,u,f),_=r.document.getOffsetConfig(),B=this._getTopOrBottomPosition(a,t===s.Direction.UP||d?v:b,t===s.Direction.UP||d?m:h,t===s.Direction.DOWN);if(B==null){let x;d?x=t===s.Direction.UP?0:p-2:x=t===s.Direction.UP?c:l,this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,x),endOffset:Math.max(0,x),style:A}],!1);return}const w=new De(_,a).getRangePointData(B,B).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{...w,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),w.endOffset)}}_getTopOrBottomPosition(t,e,n,o,a=!1){if(e==null||n==null)return;const r=this._getGlyphLeftOffsetInLine(e),c=this._getNextOrPrevLine(e,o,a);if(c==null)return;const l=this._matchPositionByLeftOffset(t,c,r,n);if(l!=null)return{...l,isBack:!0}}_getGlyphLeftOffsetInLine(t){const e=t.parent;if(e==null)return Number.NEGATIVE_INFINITY;const n=e.left,{left:o}=t;return n+o}_matchPositionByLeftOffset(t,e,n,o){const a={distance:Number.POSITIVE_INFINITY};for(const c of e.divides){const l=c.left;for(const A of c.glyphGroup){if(A.streamType===s.DataStreamTreeTokenType.SECTION_BREAK)continue;const{left:d}=A,u=l+d,m=Math.abs(n-u);m<a.distance&&(a.glyph=A,a.distance=m)}}if(a.glyph==null)return;const{segmentPage:r}=o;return t.findPositionByGlyph(a.glyph,r)}_getNextOrPrevLine(t,e,n=!1){var g,p,S,I,E,T,O,v,b,_,B,w;const o=t.parent,a=o==null?void 0:o.parent,r=a==null?void 0:a.parent,c=r==null?void 0:r.parent,l=c==null?void 0:c.parent;if(o==null||a==null||r==null||c==null||l==null)return;const A=r.lines.indexOf(a);if(A===-1)return;let d;if(l.type===M.DocumentSkeletonPageType.CELL&&n){const x=Qs(l,e);if(x)return x}if(e===!0){d=r.lines[A+1];const x=Fl(a,l);if(x){const U=Ll(x);U&&(d=U)}}else{d=r.lines[A-1];const x=Hl(a,l);if(x){const U=Ql(x);U&&(d=U)}}if(d!=null)return d;const u=c.columns.indexOf(r);if(u===-1)return;if(e===!0)d=(g=c.columns[u+1])==null?void 0:g.lines[0];else{const x=(S=(p=c.columns)==null?void 0:p[u-1])==null?void 0:S.lines;d=x==null?void 0:x[x.length-1]}if(d!=null)return d;const m=l.sections.indexOf(c);if(m===-1)return;if(e===!0)d=(E=(I=l.sections[m-1])==null?void 0:I.columns[0])==null?void 0:E.lines[0];else{const x=(O=(T=l.sections)==null?void 0:T[m-1])==null?void 0:O.columns,U=x==null?void 0:x[x.length-1],L=U==null?void 0:U.lines;d=L==null?void 0:L[L.length-1]}if(d!=null)return d;if(l.type===M.DocumentSkeletonPageType.CELL)return Qs(l,e);const h=l.parent;if(h==null)return;const f=h.pages.indexOf(l);if(f!==-1){if(e===!0)d=(_=(b=(v=h.pages[f+1])==null?void 0:v.sections[0])==null?void 0:b.columns[0])==null?void 0:_.lines[0];else{const x=(B=h.pages[f-1])==null?void 0:B.sections;if(x==null)return;const U=(w=x[x.length-1])==null?void 0:w.columns,L=U[U.length-1],F=L==null?void 0:L.lines;d=F[F.length-1]}if(d!=null)return d}}_scrollToFocusNodePosition(t,e){var o;const n=(o=this._renderManagerService.getRenderById(t))==null?void 0:o.with(C.DocBackScrollRenderController);n!=null&&n.scrollToRange({startOffset:e,endOffset:e,collapsed:!0})}_getDocObject(){return co(this._univerInstanceService,this._renderManagerService)}};Nn=zl([_n(0,s.IUniverInstanceService),_n(1,M.IRenderManagerService),_n(2,s.Inject(D.DocSelectionManagerService)),_n(3,s.ICommandService)],Nn);function Qs(i,t){var n,o;let e=null;if(t===!0){const a=ws(i);if(a)e=kl(a);else{const r=(n=i.parent)==null?void 0:n.parent,{lineAfterTable:c}=Ps(r);c&&(e=c)}}else{const a=Ls(i);if(a)e=Vl(a);else{const r=(o=i.parent)==null?void 0:o.parent,{lineBeforeTable:c}=Ps(r);c&&(e=c)}}return e}const it={create:"univer-create",createItem:"univer-create-item",createLabel:"univer-create-label",createInput:"univer-create-input"},Gl=({handleRowColChange:i,tableCreateParams:t})=>{const e=s.useDependency(s.LocaleService),[n,o]=Q.useState(3),[a,r]=Q.useState(5);function c(l,A){o(l),r(A),i(l,A)}return Q.useEffect(()=>{o(t.rowCount),r(t.colCount)},[t]),P.jsxs("div",{className:it.create,children:[P.jsxs("div",{className:it.createItem,children:[P.jsx("span",{className:it.createLabel,children:e.t("toolbar.table.rowCount")}),P.jsx(se.InputNumber,{min:1,max:20,precision:0,value:n,onChange:l=>{c(l,a)},className:it.createInput})]}),P.jsxs("div",{className:it.createItem,children:[P.jsx("span",{className:it.createLabel,children:e.t("toolbar.table.colCount")}),P.jsx(se.InputNumber,{min:1,max:20,precision:0,value:a,onChange:l=>{c(n,l)},className:it.createInput})]})]})};var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Kl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Xl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Yl(t,e,o),o},Fs=(i,t)=>(e,n)=>t(e,n,i);let Pn=class extends s.Disposable{constructor(i,t){super(),this._commandService=i,this._componentManager=t,this._initialize()}_initialize(){this._init(),this._registerCommands(),this._initCustomComponents()}_registerCommands(){[On].forEach(i=>this.disposeWithMe(this._commandService.registerCommand(i)))}_initCustomComponents(){const i=this._componentManager;this.disposeWithMe(i.register(ys,Gl))}_init(){}};Pn=Kl([Fs(0,s.ICommandService),Fs(1,s.Inject(y.ComponentManager))],Pn);const Yi=4;var Jl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,ql=(i,t,e,n)=>{for(var o=n>1?void 0:n?Zl(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Jl(t,e,o),o},Un=(i,t)=>(e,n)=>t(e,n,i);function Hs(i,t){const e=ks(i.left,i.top,t),n=ks(i.right,i.bottom,t);return{left:e.x,top:e.y,right:n.x,bottom:n.y}}function ks(i,t,e){const{scaleX:n,scaleY:o}=e.getAncestorScale(),a=e.getViewport(be.VIEW_MAIN);if(!a)return{x:i,y:t};const{viewportScrollX:r,viewportScrollY:c}=a,l=(i-r)*n,A=(t-c)*o;return{x:l,y:A}}function Vs(i,t,e){const{scaleX:n,scaleY:o}=e.getAncestorScale(),a=e.getViewport(be.VIEW_MAIN);if(!a)return{x:i,y:t};const{viewportScrollX:r,viewportScrollY:c}=a,l=i/n+r,A=t/o+c;return{x:l,y:A}}const wn=(i,t)=>{const{scene:e,mainComponent:n,engine:o}=t,a=t.with(D.DocSkeletonManagerService).getSkeleton(),r=a.findNodePositionByCharIndex(i.startOffset,!0,i.segmentId,i.segmentPage),c=a.findNodePositionByCharIndex(i.endOffset,!0,i.segmentId,i.segmentPage),l=n;if(!c||!r)return;const A=l.getOffsetConfig(),{docsLeft:d,docsTop:u}=A,m=o.getCanvasElement(),h=m.getBoundingClientRect(),f=M.pxToNum(m.style.width),{top:g,left:p,width:S}=h,I=S/f,{scaleX:E,scaleY:T}=e.getAncestorScale(),O=new De(A,a),{borderBoxPointGroup:v}=O.getRangePointData(r,c);return Zt(v).map(B=>Hs(B,e)).map(B=>({left:(B.left+d*E)*I+p,right:(B.right+d*E)*I+p,top:(B.top+u*T)*I+g,bottom:(B.bottom+u*T)*I+g}))};C.DocCanvasPopManagerService=class extends s.Disposable{constructor(t,e,n,o){super(),this._globalPopupManagerService=t,this._renderManagerService=e,this._univerInstanceService=n,this._commandService=o}_createObjectPositionObserver(t,e){const n=()=>{const{scene:l,engine:A}=e,{left:d,top:u,width:m,height:h}=t,f={left:d,right:d+m,top:u,bottom:u+h},g=A.getCanvasElement(),p=g.getBoundingClientRect(),S=M.pxToNum(g.style.width),I=Hs(f,l),{top:E,left:T,width:O}=p,v=O/S;return{left:I.left*v+T,right:I.right*v+T,top:I.top*v+E,bottom:I.bottom*v+E}},o=n(),a=new N.BehaviorSubject(o),r=new s.DisposableCollection;r.add(this._commandService.onCommandExecuted(l=>{if(l.id===ve.id||l.id===D.RichTextEditingMutation.id){const A=n();A&&a.next(A)}}));const c=e.scene.getViewport(be.VIEW_MAIN);return c&&r.add(c.onScrollAfter$.subscribeEvent(()=>{a.next(n())})),{position:o,position$:a,disposable:r}}_createRangePositionObserver(t,e){var c;const n=(c=wn(t,e))!=null?c:[],o=new N.BehaviorSubject(n),a=new s.DisposableCollection;a.add(this._commandService.onCommandExecuted(l=>{if((l.id===ve.id||l.id===D.RichTextEditingMutation.id)&&l.params.unitId===e.unitId){const d=wn(t,e);d&&o.next(d)}}));const r=e.scene.getViewport(be.VIEW_MAIN);return r&&a.add(r.onScrollAfter$.subscribeEvent(()=>{const l=wn(t,e);l&&o.next(l)})),{positions:n,positions$:o,disposable:a}}attachPopupToObject(t,e,n){const o=this._renderManagerService.getRenderById(n);if(!o)throw new Error(`Current render not found, unitId: ${n}`);const{position:a,position$:r,disposable:c}=this._createObjectPositionObserver(t,o),l=this._globalPopupManagerService.addPopup({...e,unitId:n,subUnitId:"default",anchorRect:a,anchorRect$:r,canvasElement:o.engine.getCanvasElement()});return{dispose:()=>{this._globalPopupManagerService.removePopup(l),r.complete(),c.dispose()}}}attachPopupToRange(t,e,n){if(!this._univerInstanceService.getUnit(n))throw new Error(`Document not found, unitId: ${n}`);const{direction:a="top",multipleDirection:r}=e,c=this._renderManagerService.getRenderById(n);if(!c)throw new Error(`Current render not found, unitId: ${n}`);const{positions:l,positions$:A,disposable:d}=this._createRangePositionObserver(t,c),u=A.pipe(N.map(h=>a.includes("top")?h[0]:h[h.length-1])),m=this._globalPopupManagerService.addPopup({...e,unitId:n,subUnitId:"default",anchorRect:a.includes("top")?l[0]:l[l.length-1],anchorRect$:u,excludeRects:l,excludeRects$:A,direction:a.includes("top")||a.includes("bottom")?l.length>1?r:a:"bottom",canvasElement:c.engine.getCanvasElement()});return{dispose:()=>{this._globalPopupManagerService.removePopup(m),A.complete(),d.dispose()},canDispose:()=>this._globalPopupManagerService.activePopupId!==m}}},C.DocCanvasPopManagerService=ql([Un(0,s.Inject(y.ICanvasPopupService)),Un(1,M.IRenderManagerService),Un(2,s.IUniverInstanceService),Un(3,s.ICommandService)],C.DocCanvasPopManagerService);var $l=Object.defineProperty,eA=Object.getOwnPropertyDescriptor,tA=(i,t,e,n)=>{for(var o=n>1?void 0:n?eA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&$l(t,e,o),o},nA=(i,t)=>(e,n)=>t(e,n,i);const iA=(i,t,e,n)=>{var m,h,f,g,p;const o=e.findNodePositionByCharIndex(i.startOffset,!0,i.segmentId,n),a=e.getSkeletonData();let r=i.endOffset;if(i.segmentId){const S=(p=Array.from((h=(m=a==null?void 0:a.skeFooters.get(i.segmentId))==null?void 0:m.values())!=null?h:[])[0])!=null?p:Array.from((g=(f=a==null?void 0:a.skeHeaders.get(i.segmentId))==null?void 0:f.values())!=null?g:[])[0];S&&(r=Math.min(S.ed,r))}const c=e.findNodePositionByCharIndex(r,!0,i.segmentId,n);if(!c||!o)return;const l=t.getOffsetConfig(),A=new De(l,e),{borderBoxPointGroup:d}=A.getRangePointData(o,c);return Zt(d).map(S=>({top:S.top+l.docsTop-Yi,bottom:S.bottom+l.docsTop+Yi,left:S.left+l.docsLeft,right:S.right+l.docsLeft}))},oA=(i,t,e,n=-1)=>{const o=e.findPositionByGlyph(i,n);if(!o)return;const a=t.getOffsetConfig(),r={...o,isBack:!0},c=new De(a,e),{borderBoxPointGroup:l}=c.getRangePointData(r,r),d=Zt(l)[0];return{top:d.top+a.docsTop,bottom:d.bottom+a.docsTop,left:d.left+a.docsLeft,right:d.left+a.docsLeft+i.width}};C.DocEventManagerService=class extends s.Disposable{constructor(e,n){super();R(this,"_hoverCustomRanges$",new N.BehaviorSubject([]));R(this,"hoverCustomRanges$",this._hoverCustomRanges$.pipe(N.distinctUntilChanged((e,n)=>e.length===n.length&&e.every((o,a)=>n[a].range.rangeId===o.range.rangeId&&n[a].segmentId===o.segmentId&&n[a].segmentPageIndex===o.segmentPageIndex&&n[a].range.startIndex===o.range.startIndex))));R(this,"_clickCustomRanges$",new N.Subject);R(this,"clickCustomRanges$",this._clickCustomRanges$.asObservable());R(this,"_hoverBullet$",new N.Subject);R(this,"hoverBullet$",this._hoverBullet$.pipe(N.distinctUntilChanged((e,n)=>(e==null?void 0:e.paragraph.startIndex)===(n==null?void 0:n.paragraph.startIndex)&&(e==null?void 0:e.segmentId)===(n==null?void 0:n.segmentId)&&(e==null?void 0:e.segmentPageIndex)===(n==null?void 0:n.segmentPageIndex))));R(this,"_clickBullet$",new N.Subject);R(this,"clickBullets$",this._clickBullet$.asObservable());R(this,"_customRangeDirty",!0);R(this,"_bulletDirty",!0);R(this,"_customRangeBounds",[]);R(this,"_bulletBounds",[]);this._context=e,this._docSkeletonManagerService=n,this._initResetDirty(),this._initEvents(),this._initPointer()}get _skeleton(){return this._docSkeletonManagerService.getSkeleton()}get _documents(){return this._context.mainComponent}dispose(){this._hoverCustomRanges$.complete(),this._clickCustomRanges$.complete(),super.dispose()}_initPointer(){let e=M.CURSOR_TYPE.TEXT;this.disposeWithMe(this.hoverCustomRanges$.subscribe(n=>{n.length?(e=this._context.scene.getCursor(),this._context.scene.setCursor(M.CURSOR_TYPE.POINTER)):this._context.scene.setCursor(e)}))}_initResetDirty(){this.disposeWithMe(this._skeleton.dirty$.subscribe(()=>{this._customRangeDirty=!0,this._bulletDirty=!0})),this.disposeWithMe(s.fromEventSubject(this._context.engine.onTransformChange$).pipe(N.filter(e=>e.type===M.TRANSFORM_CHANGE_OBSERVABLE_TYPE.resize)).subscribe(()=>{this._customRangeDirty=!0,this._bulletDirty=!0}))}_initEvents(){this.disposeWithMe(s.fromEventSubject(this._context.scene.onPointerMove$).pipe(N.throttleTime(30)).subscribe(o=>{this._hoverCustomRanges$.next(this._calcActiveRanges(o)),this._hoverBullet$.next(this._calcActiveBullet(o))})),this.disposeWithMe(this._context.scene.onPointerEnter$.subscribeEvent(()=>{this._hoverBullet$.next(null),this._hoverCustomRanges$.next([])}));const e=s.fromEventSubject(this._context.mainComponent.onPointerDown$),n=s.fromEventSubject(this._context.scene.onPointerUp$);this.disposeWithMe(e.pipe(N.switchMap(o=>n.pipe(N.take(1),N.map(a=>({down:o,up:a})))),N.filter(({down:o,up:a})=>o.target===a.target&&a.timeStamp-o.timeStamp<300)).subscribe(({down:o})=>{if(o.button===2)return;const a=this._calcActiveRanges(o);a.length&&this._clickCustomRanges$.next(a.pop());const r=this._calcActiveBullet(o);r&&this._clickBullet$.next(r)}))}_buildCustomRangeBoundsBySegment(e,n=-1){var r,c,l;const o=(l=(c=(r=this._context.unit.getSelfOrHeaderFooterModel(e))==null?void 0:r.getBody())==null?void 0:c.customRanges)!=null?l:[],a=[];return o.forEach(A=>{const d={startOffset:A.startIndex,endOffset:A.endIndex+1,collapsed:!1,segmentId:e},u=iA(d,this._documents,this._skeleton,n);if(!u)return null;a.push({customRange:A,rects:u,segmentId:e,segmentPageIndex:n})}),a}_buildCustomRangeBounds(){var n;if(!this._customRangeDirty)return;this._customRangeDirty=!1;const e=[];e.push(...this._buildCustomRangeBoundsBySegment()),(n=this._skeleton.getSkeletonData())==null||n.pages.forEach((o,a)=>{o.headerId&&e.push(...this._buildCustomRangeBoundsBySegment(o.headerId,a)),o.footerId&&e.push(...this._buildCustomRangeBoundsBySegment(o.footerId,a))}),this._customRangeBounds=e}_calcActiveRanges(e){this._buildCustomRangeBounds();const{offsetX:n,offsetY:o}=e,{x:a,y:r}=Vs(n,o,this._context.scene);return this._customRangeBounds.filter(l=>l.rects.some(A=>{const{left:d,right:u,top:m,bottom:h}=A;return a>=d&&a<=u&&r>=m&&r<=h})).map(l=>({segmentId:l.segmentId,range:l.customRange,segmentPageIndex:l.segmentPageIndex,rects:l.rects}))}_buildBulletBoundsBySegment(e,n=-1){var A,d,u,m,h;const o=(A=this._context.unit.getSelfOrHeaderFooterModel(e))==null?void 0:A.getBody(),a=((d=o==null?void 0:o.paragraphs)!=null?d:[]).filter(f=>f.bullet&&f.bullet.listType.indexOf("CHECK_LIST")===0),r=[],c=this._skeleton.getSkeletonData();if(!c)return r;const l=f=>{var g,p,S;for(const I of f){const E=[...I.sections];if(I.skeTables){const T=Array.from(I.skeTables.values());E.push(...T.map(O=>O.rows.map(v=>v.cells.map(b=>b.sections))).flat(4))}for(const T of E)for(const O of T.columns)for(const v of O.lines)if(v.paragraphStart){const b=a.find(_=>_.startIndex===v.paragraphIndex);if(b){const _=v,B=(S=(p=(g=_==null?void 0:_.divides)==null?void 0:g[0])==null?void 0:p.glyphGroup)==null?void 0:S[0];if(!B)continue;const w=oA(B,this._documents,this._skeleton,n);if(!w)continue;r.push({rect:w,segmentId:e,segmentPageIndex:n,paragraph:b})}}}return r};if(e){const f=(h=(u=c.skeFooters.get(e))==null?void 0:u.values())!=null?h:(m=c.skeHeaders.get(e))==null?void 0:m.values();return f?l(Array.from(f)):r}return l(c.pages)}_buildBulletBounds(){var e;this._bulletDirty&&(this._bulletDirty=!1,this._bulletBounds=[],this._bulletBounds.push(...this._buildBulletBoundsBySegment()),(e=this._skeleton.getSkeletonData())==null||e.pages.forEach((n,o)=>{n.headerId&&this._bulletBounds.push(...this._buildBulletBoundsBySegment(n.headerId,o)),n.footerId&&this._bulletBounds.push(...this._buildBulletBoundsBySegment(n.footerId,o))}))}_calcActiveBullet(e){this._buildBulletBounds();const{offsetX:n,offsetY:o}=e,{x:a,y:r}=Vs(n,o,this._context.scene);return this._bulletBounds.find(l=>{const{left:A,right:d,top:u,bottom:m}=l.rect;return a>=A&&a<=d&&r>=u&&r<=m})}},C.DocEventManagerService=tA([nA(1,s.Inject(D.DocSkeletonManagerService))],C.DocEventManagerService);var sA=Object.defineProperty,aA=Object.getOwnPropertyDescriptor,rA=(i,t,e,n)=>{for(var o=n>1?void 0:n?aA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&sA(t,e,o),o},Ln=(i,t)=>(e,n)=>t(e,n,i);let Xi=class extends s.Disposable{constructor(i,t,e,n,o){super(),this._context=i,this._docSkeletonManagerService=t,this._commandService=e,this._docEventManagerService=n,this._textSelectionManagerService=o,this._initPointerDownObserver(),this._initHoverCursor()}_initPointerDownObserver(){this._docEventManagerService.clickBullets$.subscribe(i=>{const t=this._textSelectionManagerService.getTextRanges();this._commandService.executeCommand(rn.id,{index:i.paragraph.startIndex,segmentId:i.segmentId,textRanges:t})})}_initHoverCursor(){this.disposeWithMe(this._docEventManagerService.hoverBullet$.subscribe(i=>{i?this._context.mainComponent.setCursor(M.CURSOR_TYPE.POINTER):this._context.mainComponent.setCursor(M.CURSOR_TYPE.TEXT)}))}_getTransformCoordForDocumentOffset(i,t,e,n){const{documentTransform:o}=i.getOffsetConfig(),a=t.transformVector2SceneCoord(M.Vector2.FromArray([e,n]));if(a)return o.clone().invert().applyPoint(a)}};Xi=rA([Ln(1,s.Inject(D.DocSkeletonManagerService)),Ln(2,s.ICommandService),Ln(3,s.Inject(C.DocEventManagerService)),Ln(4,s.Inject(D.DocSelectionManagerService))],Xi);var cA=Object.defineProperty,lA=Object.getOwnPropertyDescriptor,AA=(i,t,e,n)=>{for(var o=n>1?void 0:n?lA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&cA(t,e,o),o},jt=(i,t)=>(e,n)=>t(e,n,i);let Qn=class extends s.RxDisposable{constructor(i,t,e,n,o,a){super(),this._context=i,this._commandService=t,this._docClipboardService=e,this._docSelectionRenderService=n,this._contextService=o,this._editorService=a,this._init()}_init(){this._initLegacyPasteCommand()}_initLegacyPasteCommand(){var i;(i=this._docSelectionRenderService)==null||i.onPaste$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>{var l,A,d;if(!pn(this._contextService))return;t.event.preventDefault();const e=t.event;let n=(l=e.clipboardData)==null?void 0:l.getData(y.HTML_CLIPBOARD_MIME_TYPE);const o=(A=e.clipboardData)==null?void 0:A.getData(y.PLAIN_TEXT_CLIPBOARD_MIME_TYPE),a=[y.FILE__BMP_CLIPBOARD_MIME_TYPE,y.FILE__JPEG_CLIPBOARD_MIME_TYPE,y.FILE__WEBP_CLIPBOARD_MIME_TYPE,y.FILE_PNG_CLIPBOARD_MIME_TYPE],r=[...((d=e.clipboardData)==null?void 0:d.items)||[]].filter(u=>a.includes(u.type)).map(u=>u.getAsFile()).filter(u=>!!u);this._editorService.getEditor(this._context.unitId)&&(n!=null?n:"").indexOf("</table>")>-1&&(n=""),this._docClipboardService.legacyPaste({html:n,text:o,files:r})})}};Qn=AA([jt(1,s.ICommandService),jt(2,St),jt(3,s.Inject(C.DocSelectionRenderService)),jt(4,s.IContextService),jt(5,fe)],Qn);var dA=Object.defineProperty,uA=Object.getOwnPropertyDescriptor,hA=(i,t,e,n)=>{for(var o=n>1?void 0:n?uA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&dA(t,e,o),o},js=(i,t)=>(e,n)=>t(e,n,i);const gA=[s.DEFAULT_EMPTY_DOCUMENT_VALUE,s.DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,s.DOCS_NORMAL_EDITOR_UNIT_ID_KEY,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY];let Ki=class extends s.Disposable{constructor(i,t,e){super(),this._context=i,this._contextMenuService=t,this._commandService=e,gA.includes(this._context.unitId)||(this._initPointerDown(),this._initEditChange())}_initPointerDown(){var e,n;const t=((n=(e=this._context)==null?void 0:e.mainComponent)==null?void 0:n.onPointerDown$).subscribeEvent(o=>{o.button===2&&this._contextMenuService.triggerContextMenu(o,y.ContextMenuPosition.MAIN_AREA)});this.disposeWithMe(t)}_initEditChange(){this.disposeWithMe(this._commandService.onCommandExecuted(i=>{i.id===D.RichTextEditingMutation.id&&this._contextMenuService.visible&&this._contextMenuService.hideContextMenu()}))}};Ki=hA([js(1,y.IContextMenuService),js(2,s.ICommandService)],Ki);var mA=Object.defineProperty,fA=Object.getOwnPropertyDescriptor,pA=(i,t,e,n)=>{for(var o=n>1?void 0:n?fA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&mA(t,e,o),o},Ct=(i,t)=>(e,n)=>t(e,n,i);let Fn=class extends s.Disposable{constructor(t,e,n,o,a,r,c){super();R(this,"_initialEditors",new Set);this._context=t,this._univerInstanceService=e,this._editorService=n,this._commandService=o,this._docSelectionRenderService=a,this._docSkeletonManagerService=r,this._renderManagerService=c,this._initialize()}_initialize(){this.disposeWithMe(this._editorService.resize$.subscribe(t=>{t===this._context.unitId&&this._resize(t)})),this._editorService.getAllEditor().forEach(t=>{const e=t.getEditorId();e===this._context.unitId&&(this._initialEditors.has(e)||(this._initialEditors.add(e),this._resize(e)))}),this._commandExecutedListener(),this._initialSetValue(),this._initialBlur(),this._initialFocus(),this._initialValueChange()}_resize(t){var E,T;if(t==null)return;const e=this._editorService.getEditor(t);if((e==null?void 0:e.cancelDefaultResizeListener)===!0)return;const n=this._univerInstanceService.getUniverDocInstance(t);if(!n)return;const o=this._docSkeletonManagerService.getSkeleton();if(e==null||e.render==null||o==null||n==null)return;o.calculate();const{marginTop:a=0,marginBottom:r=0,marginLeft:c=0,marginRight:l=0}=n.getSnapshot().documentStyle,{scene:A,mainComponent:d}=e.render;let{actualHeight:u,actualWidth:m}=o.getActualSize();u+=a+r,m+=c+l;const{width:h,height:f}=e.getBoundingClientRect(),g=A.getViewport(be.VIEW_MAIN);let p=g==null?void 0:g.getScrollBar();const S=Math.max(m,h),I=Math.max(u,f);A.transformByState({width:S,height:I}),d==null||d.resize(S,I),e.isSingle()?m>h?p==null?g&&new M.ScrollBar(g,{barSize:8,enableVertical:!1}):g==null||g.resetCanvasSizeAndUpdateScroll():(p=null,g==null||g.scrollToBarPos({x:0,y:0}),(T=g==null?void 0:g.getScrollBar())==null||T.dispose()):u>f?p==null?g&&new M.ScrollBar(g,{enableHorizontal:!1,barSize:8}):g==null||g.resetCanvasSizeAndUpdateScroll():(p=null,g==null||g.scrollToBarPos({x:0,y:0}),(E=g==null?void 0:g.getScrollBar())==null||E.dispose())}_initialSetValue(){this.disposeWithMe(this._editorService.setValue$.subscribe(t=>{t.editorUnitId===this._context.unitId&&this._commandService.executeCommand(Kn.id,{unitId:t.editorUnitId,body:t.body,segmentId:null})}))}_initialBlur(){this.disposeWithMe(this._editorService.blur$.subscribe(()=>{this._docSelectionRenderService.blur()})),this.disposeWithMe(this._docSelectionRenderService.onBlur$.subscribe(()=>{const{unitId:t}=this._context,e=this._editorService.getEditor(t),n=this._editorService.getFocusEditor();e==null||e.isSheetEditor()||n&&n.getEditorId()===t||t.includes("range_selector")||t.includes("embedding_formula_editor")||this._editorService.blur()}))}_initialFocus(){this.disposeWithMe(this._editorService.focus$.subscribe(n=>{var o;((o=this._editorService.getFocusEditor())==null?void 0:o.getEditorId())===this._context.unitId&&(this._docSelectionRenderService.removeAllRanges(),this._docSelectionRenderService.addDocRanges([n]))}));const t=["univer-formula-search","univer-formula-help","formula-help-decorator","univer-formula-help-param"];this.disposeWithMe(N.fromEvent(window,"mousedown").subscribe(n=>{const a=n.target.classList[0]||"";if(s.checkForSubstrings(a,t)){this._editorService.changeSpreadsheetFocusState(!0),n.stopPropagation();return}this._editorService.changeSpreadsheetFocusState(!1)})),this._univerInstanceService.getAllUnitsForType(s.UniverInstanceType.UNIVER_SHEET).forEach(n=>{const o=n.getUnitId(),a=this._renderManagerService.getRenderById(o),r=a==null?void 0:a.engine.getCanvas().getCanvasEle();r!=null&&N.fromEvent(r,"mousedown").subscribe(c=>{this._editorService.changeSpreadsheetFocusState(!0),c.stopPropagation()})})}_initialValueChange(){this.disposeWithMe(this._docSelectionRenderService.onCompositionupdate$.subscribe(this._valueChange.bind(this))),this.disposeWithMe(this._docSelectionRenderService.onInput$.subscribe(this._valueChange.bind(this))),this.disposeWithMe(this._docSelectionRenderService.onKeydown$.subscribe(this._valueChange.bind(this))),this.disposeWithMe(this._docSelectionRenderService.onPaste$.subscribe(this._valueChange.bind(this)))}_valueChange(){const{unitId:t}=this._context,e=this._editorService.getEditor(t);e==null||e.isSheetEditor()||this._editorService.refreshValueChange(t)}_commandExecutedListener(){const t=[D.RichTextEditingMutation.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(t.includes(e.id)){const n=e.params,{unitId:o}=n;if(this._editorService.isSheetEditor(o)||o!==this._context.unitId)return;const a=this._editorService.getEditor(o);a&&!a.params.scrollBar&&(this._resize(o),this._valueChange())}}))}};Fn=pA([Ct(1,s.IUniverInstanceService),Ct(2,fe),Ct(3,s.ICommandService),Ct(4,s.Inject(C.DocSelectionRenderService)),Ct(5,s.Inject(D.DocSkeletonManagerService)),Ct(6,M.IRenderManagerService)],Fn);var SA=Object.defineProperty,IA=Object.getOwnPropertyDescriptor,EA=(i,t,e,n)=>{for(var o=n>1?void 0:n?IA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&SA(t,e,o),o},Hn=(i,t)=>(e,n)=>t(e,n,i);let Ji=class extends s.Disposable{constructor(t,e,n,o,a){super();R(this,"_previousIMEContent","");R(this,"_isCompositionStart",!0);R(this,"_onStartSubscription");R(this,"_onUpdateSubscription");R(this,"_onEndSubscription");this._context=t,this._docSelectionRenderService=e,this._docImeInputManagerService=n,this._docSkeletonManagerService=o,this._commandService=a,this._initialize()}dispose(){var t,e,n;(t=this._onStartSubscription)==null||t.unsubscribe(),(e=this._onUpdateSubscription)==null||e.unsubscribe(),(n=this._onEndSubscription)==null||n.unsubscribe()}_initialize(){this._initialOnCompositionstart(),this._initialOnCompositionUpdate(),this._initialOnCompositionend()}_initialOnCompositionstart(){this._onStartSubscription=this._docSelectionRenderService.onCompositionstart$.subscribe(t=>{if(t==null)return;this._resetIME();const{activeRange:e}=t;e!=null&&this._docImeInputManagerService.setActiveRange(s.Tools.deepClone(e))})}_initialOnCompositionUpdate(){this._onUpdateSubscription=this._docSelectionRenderService.onCompositionupdate$.subscribe(t=>{this._updateContent(t,!0)})}_initialOnCompositionend(){this._onEndSubscription=this._docSelectionRenderService.onCompositionend$.subscribe(t=>{this._updateContent(t,!1)})}async _updateContent(t,e){if(t==null)return;const n=this._context.unitId,o=this._docSkeletonManagerService.getSkeleton(),{event:a,activeRange:r}=t;if(o==null||r==null)return;const l=a.data;l===this._previousIMEContent&&e||(await this._commandService.executeCommand(ji.id,{unitId:n,newText:l,oldTextLen:this._previousIMEContent.length,isCompositionStart:this._isCompositionStart,isCompositionEnd:!e}),e?(this._isCompositionStart&&(this._isCompositionStart=!1),this._previousIMEContent=l):this._resetIME())}_resetIME(){this._previousIMEContent="",this._isCompositionStart=!0,this._docImeInputManagerService.clearUndoRedoMutationParamsCache(),this._docImeInputManagerService.setActiveRange(null)}};Ji=EA([Hn(1,s.Inject(C.DocSelectionRenderService)),Hn(2,s.Inject(Vt)),Hn(3,s.Inject(D.DocSkeletonManagerService)),Hn(4,s.ICommandService)],Ji);var vA=Object.defineProperty,CA=Object.getOwnPropertyDescriptor,TA=(i,t,e,n)=>{for(var o=n>1?void 0:n?CA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&vA(t,e,o),o},kn=(i,t)=>(e,n)=>t(e,n,i);let Zi=class extends s.Disposable{constructor(t,e,n,o,a){super();R(this,"_onInputSubscription");this._context=t,this._docSelectionRenderService=e,this._docSkeletonManagerService=n,this._commandService=o,this._docMenuStyleService=a,this._init()}dispose(){var t;super.dispose(),(t=this._onInputSubscription)==null||t.unsubscribe()}_init(){this._initialNormalInput()}_initialNormalInput(){this._onInputSubscription=this._docSelectionRenderService.onInput$.subscribe(async t=>{var p,S,I;if(t==null)return;const{unitId:e}=this._context,{event:n,content:o="",activeRange:a}=t,r=n,c=this._docSkeletonManagerService.getSkeleton();if(r.data==null||c==null||a==null)return;const{segmentId:l}=a,d=this._context.unit.getSelfOrHeaderFooterModel(l).getBody(),u=this._docMenuStyleService.getDefaultStyle(),m=this._docMenuStyleService.getStyleCache(),h=zn((p=d==null?void 0:d.customRanges)!=null?p:[],a.endOffset,s.SHEET_EDITOR_UNITS.includes(e)),f=Xt((S=d==null?void 0:d.textRuns)!=null?S:[],a.endOffset,u,m),g=Gn((I=d==null?void 0:d.customDecorations)!=null?I:[],a.endOffset);await this._commandService.executeCommand(hn.id,{unitId:e,body:{dataStream:o,textRuns:f?[{...f,st:0,ed:o.length}]:[],customRanges:h?[{...h,startIndex:0,endIndex:o.length-1}]:[],customDecorations:g.map(E=>({...E,startIndex:0,endIndex:o.length-1}))},range:a,segmentId:l}),o===" "&&await this._commandService.executeCommand(xt.id)})}};Zi=TA([kn(1,s.Inject(C.DocSelectionRenderService)),kn(2,s.Inject(D.DocSkeletonManagerService)),kn(3,s.ICommandService),kn(4,s.Inject(_e))],Zi);class qi extends s.Disposable{constructor(t){super(),this._context=t}calculatePagePosition(){var T,O;const t=Be(this._context),n=(O=(T=this._context.unit.getSettings())==null?void 0:T.zoomRatio)!=null?O:1,{document:o,scene:a,docBackground:r}=t,c=a==null?void 0:a.getParent(),{width:l,height:A,pageMarginLeft:d,pageMarginTop:u}=o;if(c==null||l===Number.POSITIVE_INFINITY||A===Number.POSITIVE_INFINITY)return;const{width:m,height:h}=c;let f=0,g=u,p=0,S=0,I=Number.POSITIVE_INFINITY;m>(l+d*2)*n?(f=m/2-l*n/2,f/=n,p=(m-d*2)/n,I=0):(f=d,p=l+d*2,I=(p-m/n)/2),h>A?S=(h-u*2)/n:S=A+u*2,a.resize(p,S),m<=1&&(f=-1e4,g=-1e4),o.translate(f,g),r.translate(f,g);const E=a.getViewport(be.VIEW_MAIN);return I!==Number.POSITIVE_INFINITY&&E!=null&&E.scrollToViewportPos({viewportScrollX:I}),this}}var bA=Object.defineProperty,yA=Object.getOwnPropertyDescriptor,RA=(i,t,e,n)=>{for(var o=n>1?void 0:n?yA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&bA(t,e,o),o},Ws=(i,t)=>(e,n)=>t(e,n,i);let $i=class extends s.Disposable{constructor(i,t,e){super(),this._context=i,this._docPageLayoutService=t,this._textSelectionManagerService=e;const n=this._context.unitId;if(s.isInternalEditorID(n)&&n!==s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)return this;this._initResize()}_initResize(){this.disposeWithMe(s.fromEventSubject(this._context.engine.onTransformChange$).pipe(N.filter(i=>i.type===M.TRANSFORM_CHANGE_OBSERVABLE_TYPE.resize),N.throttleTime(0,N.animationFrameScheduler)).subscribe(()=>{this._docPageLayoutService.calculatePagePosition(),this._textSelectionManagerService.refreshSelection()}))}};$i=RA([Ws(1,s.Inject(qi)),Ws(2,s.Inject(D.DocSelectionManagerService))],$i);var OA=Object.defineProperty,xA=Object.getOwnPropertyDescriptor,MA=(i,t,e,n)=>{for(var o=n>1?void 0:n?xA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&OA(t,e,o),o},Tt=(i,t)=>(e,n)=>t(e,n,i);let eo=class extends s.Disposable{constructor(t,e,n,o,a,r,c){super();R(this,"_loadedMap",new WeakSet);this._context=t,this._commandService=e,this._editorService=n,this._instanceSrv=o,this._docSelectionRenderService=a,this._docSkeletonManagerService=r,this._docSelectionManagerService=c,this._initialize()}_initialize(){this._init(),this._skeletonListener(),this._commandExecutedListener(),this._refreshListener(),this._syncSelection()}_init(){const{unitId:t}=this._context,e=Be(this._context);e==null||e.document==null||this._loadedMap.has(e.document)||(this._initialMain(t),this._loadedMap.add(e.document))}_refreshListener(){this.disposeWithMe(this._docSelectionManagerService.refreshSelection$.subscribe(t=>{if(t==null)return;const{unitId:e,docRanges:n,isEditing:o,options:a}=t;e===this._context.unitId&&(this._docSelectionRenderService.removeAllRanges(),this._docSelectionRenderService.addDocRanges(n,o,a))}))}_syncSelection(){this.disposeWithMe(this._docSelectionRenderService.textSelectionInner$.subscribe(t=>{t!=null&&this._docSelectionManagerService.__replaceTextRangesWithNoRefresh(t,{unitId:this._context.unitId,subUnitId:this._context.unitId})}))}_initialMain(t){const e=Be(this._context),{document:n,scene:o}=e;this.disposeWithMe(n.onPointerEnter$.subscribeEvent(()=>{this._isEditorReadOnly(t)||(n.cursor=M.CURSOR_TYPE.TEXT)})),this.disposeWithMe(n.onPointerLeave$.subscribeEvent(()=>{n.cursor=M.CURSOR_TYPE.DEFAULT,o.resetCursor()})),this.disposeWithMe(n.onPointerDown$.subscribeEvent((a,r)=>{if(this._isEditorReadOnly(t))return;const c=this._instanceSrv.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);(c==null?void 0:c.getUnitId())!==t&&this._instanceSrv.setCurrentUnitForType(t);const l=this._docSkeletonManagerService.getSkeleton(),{offsetX:A,offsetY:d}=a,u=this._getTransformCoordForDocumentOffset(A,d);if(u!=null){const{pageLayoutType:m=M.PageLayoutType.VERTICAL,pageMarginLeft:h,pageMarginTop:f}=n.getOffsetConfig(),{editArea:g}=l.findEditAreaByCoord(u,m,h,f),p=this._docSkeletonManagerService.getViewModel(),S=p.getEditArea();S!==M.DocumentEditArea.BODY&&g!==M.DocumentEditArea.BODY&&g!==S&&p.setEditArea(g)}if(this._docSelectionRenderService.__onPointDown(a),this._editorService.getEditor(t)){this._setEditorFocus(t);const{offsetX:m,offsetY:h}=a;setTimeout(()=>{t!==this._editorService.getFocusId()&&(this._setEditorFocus(t),this._docSelectionRenderService.setCursorManually(m,h))},0)}a.button!==2&&r.stopPropagation()})),this.disposeWithMe(n.onDblclick$.subscribeEvent(a=>{this._isEditorReadOnly(t)||this._docSelectionRenderService.__handleDblClick(a)})),this.disposeWithMe(n.onTripleClick$.subscribeEvent(a=>{this._isEditorReadOnly(t)||this._docSelectionRenderService.__handleTripleClick(a)}))}_getTransformCoordForDocumentOffset(t,e){const n=Be(this._context),{document:o,scene:a}=n,{documentTransform:r}=o.getOffsetConfig(),c=a.getViewports()[0];if(c==null)return;const l=c.transformVector2SceneCoord(M.Vector2.FromArray([t,e]));return r.clone().invert().applyPoint(l)}_isEditorReadOnly(t){const e=this._editorService.getEditor(t);return e?e.isReadOnly():!1}_setEditorFocus(t){this._editorService.focusStyle(t)}_commandExecutedListener(){const t=[ve.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{var n;if(t.includes(e.id)){const o=e.params,{unitId:a}=o,r=(n=this._docSelectionManagerService.__getCurrentSelection())==null?void 0:n.unitId;if(a!==r)return;this._docSelectionManagerService.refreshSelection()}}))}_skeletonListener(){this.disposeWithMe(this._docSkeletonManagerService.currentSkeleton$.subscribe(t=>{if(!t)return;const{unitId:e}=this._context;if(!s.isInternalEditorID(e)){this._docSelectionRenderService.focus();const a=this._context.unit.getSnapshot(),r=Uo(a);this._docSelectionManagerService.replaceDocRanges([{startOffset:r,endOffset:r}],{unitId:e,subUnitId:e},!1)}}))}};eo=MA([Tt(1,s.ICommandService),Tt(2,fe),Tt(3,s.IUniverInstanceService),Tt(4,s.Inject(C.DocSelectionRenderService)),Tt(5,s.Inject(D.DocSkeletonManagerService)),Tt(6,s.Inject(D.DocSelectionManagerService))],eo);var BA=Object.defineProperty,DA=Object.getOwnPropertyDescriptor,_A=(i,t,e,n)=>{for(var o=n>1?void 0:n?DA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&BA(t,e,o),o},ot=(i,t)=>(e,n)=>t(e,n,i);let to=class extends s.Disposable{constructor(i,t,e,n,o,a,r,c){super(),this._context=i,this._contextService=t,this._docSkeletonManagerService=e,this._univerInstanceService=n,this._commandService=o,this._textSelectionManagerService=a,this._editorService=r,this._docPageLayoutService=c,this._initSkeletonListener(),this._initCommandExecutedListener(),this._initRenderRefresher(),setTimeout(()=>this.updateViewZoom(1,!0),20)}_initRenderRefresher(){this._docSkeletonManagerService.currentSkeleton$.subscribe(i=>{if(i==null)return;const{unitId:t,scene:e}=this._context;this._editorService.isEditor(t)||this.disposeWithMe(e.onMouseWheel$.subscribeEvent(n=>{if(!n.ctrlKey||!this._contextService.getContextValue(s.FOCUSING_DOC))return;const o=this._univerInstanceService.getCurrentUniverDocInstance();if(!o)return;const{documentFlavor:a}=o.getSnapshot().documentStyle;if(a===s.DocumentFlavor.MODERN)return;const r=Math.abs(n.deltaX);let c=r<40?.2:r<80?.4:.2;c*=n.deltaY>0?-1:1,e.scaleX<1&&(c/=2);const l=o.zoomRatio;let A=+Number.parseFloat(`${l+c}`).toFixed(1);A=A>=4?4:A<=.1?.1:A,this._commandService.executeCommand(Mn.id,{zoomRatio:A,unitId:o.getUnitId()}),n.preventDefault()}))})}_initSkeletonListener(){this.disposeWithMe(this._docSkeletonManagerService.currentSkeleton$.subscribe(i=>{if(i==null)return;const t=this._univerInstanceService.getCurrentUniverDocInstance();if(!t)return;const e=t.zoomRatio||1;this.updateViewZoom(e,!1)}))}_initCommandExecutedListener(){const i=[ve.id];this.disposeWithMe(this._commandService.onCommandExecuted(t=>{if(i.includes(t.id)&&t.params.unitId===this._context.unitId){const n=this._context.unit.zoomRatio||1;this.updateViewZoom(n)}})),this.disposeWithMe(this._commandService.beforeCommandExecuted(t=>{t.id===En.id&&this._commandService.executeCommand(Mn.id,{zoomRatio:1,unitId:this._context.unitId})}))}updateViewZoom(i,t=!0){var n;const e=Be(this._context);e.scene.scale(i,i),this._editorService.isEditor(this._context.unitId)||this._docPageLayoutService.calculatePagePosition(),t&&!this._editorService.isEditor(this._context.unitId)&&this._textSelectionManagerService.refreshSelection(),(n=e.scene.getTransformer())==null||n.clearSelectedObjects()}};to=_A([ot(1,s.IContextService),ot(2,s.Inject(D.DocSkeletonManagerService)),ot(3,s.IUniverInstanceService),ot(4,s.ICommandService),ot(5,s.Inject(D.DocSelectionManagerService)),ot(6,fe),ot(7,s.Inject(qi))],to);var NA=Object.defineProperty,PA=Object.getOwnPropertyDescriptor,UA=(i,t,e,n)=>{for(var o=n>1?void 0:n?PA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&NA(t,e,o),o},Wt=(i,t)=>(e,n)=>t(e,n,i);const zs=300;C.DocStateChangeManagerService=class extends s.RxDisposable{constructor(e,n,o,a,r){super();R(this,"_docStateChange$",new N.BehaviorSubject(null));R(this,"docStateChange$",this._docStateChange$.asObservable());R(this,"_historyStateCache",new Map);R(this,"_changeStateCache",new Map);R(this,"_historyTimer",null);R(this,"_changeStateCacheTimer",null);this._undoRedoService=e,this._commandService=n,this._univerInstanceService=o,this._docStateEmitService=a,this._renderManagerService=r,this._initialize(),this._listenDocStateChange()}getStateCache(e){var n,o;return{history:(n=this._historyStateCache.get(e))!=null?n:[],collaboration:(o=this._changeStateCache.get(e))!=null?o:[]}}setStateCache(e,n){this._historyStateCache.set(e,n.history),this._changeStateCache.set(e,n.collaboration)}_setChangeState(e){this._cacheChangeState(e,"history"),this._cacheChangeState(e,"collaboration")}_initialize(){this.disposeWithMe(this._commandService.beforeCommandExecuted(e=>{if(e.id===s.UndoCommandId||e.id===s.RedoCommandId){const n=this._univerInstanceService.getCurrentUniverDocInstance();if(n==null)return;const o=n.getUnitId();this._pushHistory(o),this._emitChangeState(o)}}))}_listenDocStateChange(){this._docStateEmitService.docStateChangeParams$.pipe(N.takeUntil(this.dispose$)).subscribe(e=>{var l;if(e==null)return;const{isCompositionEnd:n,isSync:o,syncer:a,...r}=e,c=(l=this._renderManagerService.getRenderById(o?a:e.unitId))==null?void 0:l.with(Vt);if(c!=null){if(n){const A=c.fetchComposedUndoRedoMutationParams();if(A==null)throw new Error("historyParams is null in RichTextEditingMutation");const{undoMutationParams:d,redoMutationParams:u,previousActiveRange:m}=A;r.redoState.actions=u.actions,r.undoState.actions=d.actions,r.undoState.textRanges=[m]}this._setChangeState(r)}})}_cacheChangeState(e,n="history"){const{trigger:o,unitId:a,noHistory:r,debounce:c=!1}=e;if(r||o==null||n==="history"&&(o===s.RedoCommandId||o===s.UndoCommandId))return;const l=n==="history"?this._historyStateCache:this._changeStateCache,A=n==="history"?this._pushHistory.bind(this):this._emitChangeState.bind(this);if(l.has(a)){const d=l.get(a);d==null||d.push(e)}else l.set(a,[e]);c?n==="history"?(this._historyTimer&&clearTimeout(this._historyTimer),this._historyTimer=setTimeout(()=>{A(a)},zs)):(this._changeStateCacheTimer&&clearTimeout(this._changeStateCacheTimer),this._changeStateCacheTimer=setTimeout(()=>{A(a)},zs)):A(a)}_pushHistory(e){const n=this._undoRedoService,o=this._historyStateCache.get(e);if(!Array.isArray(o)||o.length===0)return;const a=o.length,r=o[0].commandId,c=o[0],l=o[a-1],A={unitId:e,actions:o.reduce((u,m)=>s.JSONX.compose(u,m.redoState.actions),null),textRanges:l.redoState.textRanges},d={unitId:e,actions:o.reverse().reduce((u,m)=>s.JSONX.compose(u,m.undoState.actions),null),textRanges:c.undoState.textRanges};n.pushUndoRedo({unitID:e,undoMutations:[{id:r,params:d}],redoMutations:[{id:r,params:A}]}),o.length=0}_emitChangeState(e){const n=this._changeStateCache.get(e);if(!Array.isArray(n)||n.length===0)return;const o=n.length,{commandId:a,trigger:r,segmentId:c,noHistory:l,debounce:A}=n[0],d=n[0],u=n[o-1],m={unitId:e,actions:n.reduce((g,p)=>s.JSONX.compose(g,p.redoState.actions),null),textRanges:u.redoState.textRanges},h={unitId:e,actions:n.reverse().reduce((g,p)=>s.JSONX.compose(g,p.undoState.actions),null),textRanges:d.undoState.textRanges},f={commandId:a,unitId:e,trigger:r,redoState:m,undoState:h,segmentId:c,noHistory:l,debounce:A};n.length=0,this._docStateChange$.next(f)}},C.DocStateChangeManagerService=UA([Wt(0,s.Inject(s.IUndoRedoService)),Wt(1,s.ICommandService),Wt(2,s.IUniverInstanceService),Wt(3,s.Inject(D.DocStateEmitService)),Wt(4,M.IRenderManagerService)],C.DocStateChangeManagerService);var wA=Object.defineProperty,LA=Object.getOwnPropertyDescriptor,QA=(i,t,e,n)=>{for(var o=n>1?void 0:n?LA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&wA(t,e,o),o},Gs=(i,t)=>(e,n)=>t(e,n,i);const Ys="univer-doc-main-canvas";C.DocsRenderService=class extends s.RxDisposable{constructor(t,e){super(),this._instanceSrv=t,this._renderManagerService=e,this._init()}_init(){this._renderManagerService.createRender$.pipe(N.takeUntil(this.dispose$)).subscribe(t=>this._createRenderWithId(t)),this._instanceSrv.getAllUnitsForType(s.UniverInstanceType.UNIVER_DOC).forEach(t=>this._createRenderer(t)),this._instanceSrv.getTypeOfUnitAdded$(s.UniverInstanceType.UNIVER_DOC).pipe(N.takeUntil(this.dispose$)).subscribe(t=>this._createRenderer(t)),this._instanceSrv.getTypeOfUnitDisposed$(s.UniverInstanceType.UNIVER_DOC).pipe(N.takeUntil(this.dispose$)).subscribe(t=>this._disposeRenderer(t))}_createRenderer(t){var o;const e=t.getUnitId(),n=(o=this._instanceSrv.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC))==null?void 0:o.getUnitId();this._renderManagerService.created$.subscribe(a=>{a.unitId===n&&(a.engine.getCanvas().setId(Ys),a.engine.getCanvas().getContext().setId(Ys))}),this._renderManagerService.has(e)||(this._createRenderWithId(e),this._renderManagerService.setCurrent(e))}_createRenderWithId(t){this._renderManagerService.createRender(t)}_disposeRenderer(t){const e=t.getUnitId();this._renderManagerService.removeRender(e)}},C.DocsRenderService=QA([Gs(0,s.IUniverInstanceService),Gs(1,M.IRenderManagerService)],C.DocsRenderService);const FA={id:dt.id,preconditions:ar,binding:y.KeyCode.ENTER},HA={id:Qt.id,preconditions:ne,binding:y.KeyCode.BACKSPACE},kA={id:yi.id,preconditions:ne,binding:y.KeyCode.DELETE},VA={id:ke.id,binding:y.KeyCode.ARROW_UP,preconditions:ne,staticParameters:{direction:s.Direction.UP}},jA={id:ke.id,binding:y.KeyCode.ARROW_DOWN,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},WA={id:ke.id,binding:y.KeyCode.ARROW_LEFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},zA={id:ke.id,binding:y.KeyCode.ARROW_RIGHT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},GA={id:Ve.id,binding:y.KeyCode.ARROW_UP|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.UP}},YA={id:Ve.id,binding:y.KeyCode.ARROW_DOWN|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},XA={id:Ve.id,binding:y.KeyCode.ARROW_LEFT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},KA={id:Ve.id,binding:y.KeyCode.ARROW_RIGHT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},JA={id:Vi.id,binding:y.KeyCode.A|y.MetaKeys.CTRL_COMMAND,preconditions:i=>i.getContextValue(s.FOCUSING_UNIVER_EDITOR)&&(i.getContextValue(s.FOCUSING_DOC)||i.getContextValue(s.EDITOR_ACTIVATED))};var Xs=Object.defineProperty,ZA=Object.getOwnPropertyDescriptor,qA=(i,t,e)=>t in i?Xs(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,$A=(i,t,e,n)=>{for(var o=n>1?void 0:n?ZA(t,e):t,a=i.length-1,r;a>=0;a--)(r=i[a])&&(o=(n?r(t,e,o):r(o))||o);return n&&o&&Xs(t,e,o),o},zt=(i,t)=>(e,n)=>t(e,n,i),ed=(i,t,e)=>qA(i,t+"",e);C.UniverDocsUIPlugin=class extends s.Plugin{constructor(t=cs,e,n,o,a,r){super(),this._config=t,this._injector=e,this._renderManagerSrv=n,this._commandService=o,this._logService=a,this._configService=r;const{menu:c,...l}=s.merge({},cs,this._config);c&&this._configService.setConfig("menu",c,{merge:!0}),this._configService.setConfig(Ii,l),this._initDependencies(e),this._initializeShortcut(),this._initCommand()}onReady(){this._initRenderBasics(),this._markDocAsFocused(),s.touchDependencies(this._injector,[[C.DocStateChangeManagerService],[C.DocsRenderService]])}onRendered(){this._initUI(),this._initRenderModules(),s.touchDependencies(this._injector,[[Dn],[Nn],[Et],[Pn],[C.DocUIController]])}_initCommand(){[Qt,yi,Ge,Ye,Xe,Ke,Fe,Je,Ze,qe,$e,ut,et,Ne,Ui,hn,mt,gn,bi,mn,ve,_t,Dt,ht,Nt,Pt,Ut,Re,wt,wi,Ni,Tn,bn,bs,yn,Rn,vn,Cn,It,hi,Wi,ze,xt,dt,sn,Mt,an,rn,Si,ji,En,Oe,Ti,tt,ho,Xn,Kn,Mn,Vi,Fi,ke,Ve].forEach(t=>{this._commandService.registerCommand(t)}),[Ht,Sn,In].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_initializeShortcut(){[VA,jA,zA,WA,GA,YA,XA,KA,JA,HA,kA,FA,cr].forEach(t=>{this._injector.get(y.IShortcutService).registerShortcut(t)})}_initDependencies(t){s.mergeOverrideWithDependencies([[Qn],[Fn],[C.DocUIController],[Dn],[Pn],[Nn],[Bn],[Et],[fe,{useClass:C.EditorService}],[ri,{useClass:Po}],[St,{useClass:Mi}],[C.DocCanvasPopManagerService],[C.DocsRenderService],[C.DocStateChangeManagerService],[C.DocAutoFormatService],[_e]],this._config.override).forEach(n=>t.add(n))}_markDocAsFocused(){const t=this._injector.get(s.IUniverInstanceService),e=this._injector.get(fe);try{const n=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(!n)return;const o=n.getUnitId();e.isEditor(o)||t.focusUnit(n.getUnitId())}catch(n){this._logService.warn(n)}}_initUI(){this._injector.get(Bn)}_initRenderBasics(){[[D.DocSkeletonManagerService],[C.DocSelectionRenderService],[D.DocInterceptorService],[qi],[Vt],[C.DocRenderController],[to]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}_initRenderModules(){[[C.DocEventManagerService],[C.DocBackScrollRenderController],[eo],[li],[$i],[Ki],[Xi],[Qn],[Zi],[Ji],[Fn]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}},ed(C.UniverDocsUIPlugin,"pluginName",so),C.UniverDocsUIPlugin=$A([s.DependentOn(M.UniverRenderEnginePlugin),zt(1,s.Inject(s.Injector)),zt(2,M.IRenderManagerService),zt(3,s.ICommandService),zt(4,s.ILogService),zt(5,s.IConfigService)],C.UniverDocsUIPlugin),C.AfterSpaceCommand=xt,C.AlignCenterCommand=Pt,C.AlignJustifyCommand=wt,C.AlignLeftCommand=Nt,C.AlignOperationCommand=Re,C.AlignRightCommand=Ut,C.BreakLineCommand=Ui,C.BulletListCommand=Dt,C.ChangeListNestingLevelCommand=sn,C.ChangeListNestingLevelType=Bt,C.ChangeListTypeCommand=Mt,C.CheckListCommand=an,C.CoverContentCommand=Kn,C.CreateDocTableCommand=wi,C.CutContentCommand=tt,C.DOCS_COMPONENT_BACKGROUND_LAYER_INDEX=ao,C.DOCS_COMPONENT_DEFAULT_Z_INDEX=Wn,C.DOCS_COMPONENT_HEADER_LAYER_INDEX=ro,C.DOCS_COMPONENT_MAIN_LAYER_INDEX=Yt,C.DOCS_VIEW_KEY=Ie,C.DOC_UI_PLUGIN_NAME=so,C.DOC_VERTICAL_PADDING=Yi,C.DefaultDocContainerConfig=oo,C.DefaultToolbarConfig=io,C.DeleteCommand=mt,C.DeleteCustomBlockCommand=gn,C.DeleteLeftCommand=Qt,C.DeleteRightCommand=yi,C.DocCopyCommand=Ht,C.DocCreateTableOperation=On,C.DocCutCommand=Sn,C.DocIMEInputManagerService=Vt,C.DocPasteCommand=In,C.DocRangeSelector=Ga,C.DocSelectAllCommand=Vi,C.DocTableDeleteColumnsCommand=Cn,C.DocTableDeleteRowsCommand=vn,C.DocTableDeleteTableCommand=It,C.DocTableInsertColumnCommand=bs,C.DocTableInsertColumnLeftCommand=yn,C.DocTableInsertColumnRightCommand=Rn,C.DocTableInsertRowAboveCommand=Tn,C.DocTableInsertRowBellowCommand=bn,C.DocTableInsertRowCommand=Ni,C.DocTableTabCommand=Wi,C.DocsUIMenuSchema=Ds,C.Editor=vo,C.EditorInsertTextCommandId=gs,C.EnterCommand=dt,C.IDocClipboardService=St,C.IEditorService=fe,C.IMEInputCommand=ji,C.IRangeSelectorService=ri,C.InnerPasteCommand=Ti,C.InsertCommand=hn,C.ListOperationCommand=ht,C.MergeTwoParagraphCommand=mn,C.MoveCursorOperation=ke,C.MoveSelectionOperation=Ve,C.NORMAL_TEXT_SELECTION_PLUGIN_NAME=na,C.NodePositionConvertToCursor=De,C.NodePositionConvertToRectRange=ni,C.OrderListCommand=_t,C.PastePluginLark=Ss,C.PastePluginUniver=Es,C.PastePluginWord=vs,C.QuickListCommand=Si,C.RangeSelectorService=Po,C.RectRange=oi,C.ReplaceContentCommand=ho,C.ReplaceSnapshotCommand=Xn,C.ResetInlineFormatTextBackgroundColorCommand=ut,C.SetDocZoomRatioCommand=Mn,C.SetDocZoomRatioOperation=ve,C.SetInlineFormatBoldCommand=Ge,C.SetInlineFormatCommand=Ne,C.SetInlineFormatFontFamilyCommand=qe,C.SetInlineFormatFontSizeCommand=Ze,C.SetInlineFormatItalicCommand=Ye,C.SetInlineFormatStrikethroughCommand=Ke,C.SetInlineFormatSubscriptCommand=Fe,C.SetInlineFormatSuperscriptCommand=Je,C.SetInlineFormatTextBackgroundColorCommand=et,C.SetInlineFormatTextColorCommand=$e,C.SetInlineFormatUnderlineCommand=Xe,C.TEXT_RANGE_LAYER_INDEX=Jt,C.TabCommand=ze,C.TextEditor=Co,C.TextRange=je,C.ToggleCheckListCommand=rn,C.UpdateCommand=bi,C.VIEWPORT_KEY=be,C.addCustomDecorationBySelectionFactory=oa,C.addCustomDecorationFactory=lo,C.calcDocRangePositions=wn,C.convertPositionsToRectRanges=qt,C.deleteCustomDecorationFactory=sa,C.docDrawingPositionToTransform=ra,C.genTableSource=vi,C.generateParagraphs=Pi,C.getAnchorBounding=Ot,C.getCanvasOffsetByEngine=Io,C.getCommandSkeleton=me,C.getCursorWhenDelete=fn,C.getCustomBlockIdsInSelections=us,C.getCutActionsFromDocRanges=hs,C.getDocObject=co,C.getDocObjectById=ia,C.getEmptyTableCell=An,C.getEmptyTableRow=dn,C.getLineBounding=Zt,C.getOneTextSelectionRange=qn,C.getParagraphsInRange=cn,C.getParagraphsInRanges=gt,C.getRichTextEditPath=te,C.getTableColumn=un,C.hasParagraphInTable=aa,C.isInSameTableCell=ei,C.isValidRectRange=mo,C.neoGetDocObject=Be,C.transformToDocDrawingPosition=ca,C.whenDocAndEditorFocused=ne,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
109
137
|
|
|
110
138
|
|
|
111
139
|
// @univerjs/docs-ui/facade
|
|
@@ -113,4 +141,4 @@ ${s.DataStreamTreeTokenType.TABLE_CELL_END}`;break}}}_processBeforeLink(t,e){ret
|
|
|
113
141
|
|
|
114
142
|
|
|
115
143
|
// index
|
|
116
|
-
(function(
|
|
144
|
+
(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("@univerjs/docs"),require("@univerjs/docs-ui"),require("@univerjs/engine-formula"),require("@univerjs/engine-render"),require("@univerjs/ui"),require("@univerjs/docs-ui/facade")):typeof define=="function"&&define.amd?define(["exports","@univerjs/docs","@univerjs/docs-ui","@univerjs/engine-formula","@univerjs/engine-render","@univerjs/ui","@univerjs/docs-ui/facade"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.UniverPresetDocsCore={},e.UniverDocs,e.UniverDocsUi,e.UniverEngineFormula,e.UniverEngineRender,e.UniverUi))})(this,function(e,n,i,r,u,s){"use strict";function o(t={}){const{container:v="app",header:d,footer:c,toolbar:f,menu:U,contextMenu:j,disableAutoFocus:g}=t;return{plugins:[n.UniverDocsPlugin,u.UniverRenderEnginePlugin,r.UniverFormulaEnginePlugin,[s.UniverUIPlugin,{container:v,header:d,footer:c,toolbar:f,menu:U,contextMenu:j,disableAutoFocus:g}],i.UniverDocsUIPlugin]}}e.UniverDocsCorePreset=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|