@univerjs/preset-docs-core 0.5.0-beta.1 → 0.5.0-nightly.202411230627

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/umd/index.js CHANGED
@@ -1,6 +1,5 @@
1
- // /home/runner/work/univer-presets/univer-presets/packages/preset-docs-core/node_modules/@univerjs/ui
2
-
3
- (function(g,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):(g=typeof globalThis<"u"?globalThis:g||self,d(g.UniverUi={},g.UniverCore,g.React,g.rxjs,g.UniverDesign,g.rxjs.operators,g.UniverEngineRender,g.ReactDOM))})(this,function(g,d,s,re,he,Gn,I1,T1){"use strict";var J5=Object.defineProperty;var K5=g=>{throw TypeError(g)};var es=(g,d,s)=>d in g?J5(g,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):g[d]=s;var ee=(g,d,s)=>es(g,typeof d!="symbol"?d+"":d,s);var Wn=(g,d,s)=>d.has(g)?K5("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(g):d.set(g,s);var jn,kn;function hi(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 Q=hi(s);var ke=function(){return ke=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},ke.apply(this,arguments)},vi=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=vi(e,["icon","id","className","extend"]),l="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),h=s.useRef("_".concat(Ci()));return Yn(n,"".concat(r),{defIds:n.defIds,idSuffix:h.current},ke({ref:t,className:l},a),o)});function Yn(e,t,n,r,i){return s.createElement(e.tag,ke(ke({key:t},mi(e,n,i)),r),(pi(e,n).children||[]).map(function(o,a){return Yn(o,"".concat(t,"-").concat(e.tag,"-").concat(a),n,void 0,i)}))}function mi(e,t,n){var r=ke({},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 pi(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)?ke(ke({},e),{children:e.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?ke(ke({},i),{attrs:ke(ke({},i.attrs),{id:i.attrs.id+t.idSuffix})}):i})}):e}function Ci(){return Math.random().toString(36).substring(2,8)}N.displayName="UniverIcon";var gi={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"}}]},qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"add-digits-single",ref:t,icon:gi}))});qn.displayName="AddDigitsSingle";var bi={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"}}]}]},Xn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-height",ref:t,icon:bi}))});Xn.displayName="AdjustHeight";var yi={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"}}]}]},Qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-width",ref:t,icon:yi}))});Qn.displayName="AdjustWidth";var Si={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"}}]},Jn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-bottom-single",ref:t,icon:Si}))});Jn.displayName="AlignBottomSingle";var Li={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"}}]},Kn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-text-both-single",ref:t,icon:Li}))});Kn.displayName="AlignTextBothSingle";var _i={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"}}]},e3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-top-single",ref:t,icon:_i}))});e3.displayName="AlignTopSingle";var wi={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"}}]},t3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"all-border-single",ref:t,icon:wi}))});t3.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"}}]},n3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"amplify-single",ref:t,icon:Mi}))});n3.displayName="AmplifySingle";var Ei={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"}}]}]},r3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-height",ref:t,icon:Ei}))});r3.displayName="AutoHeight";var Hi={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"}}]}]},i3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-width",ref:t,icon:Hi}))});i3.displayName="AutoWidth";var Oi={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"}}]},o3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"autowrap-single",ref:t,icon:Oi}))});o3.displayName="AutowrapSingle";var Ii={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"}}]},a3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"avg-single",ref:t,icon:Ii}))});a3.displayName="AvgSingle";var Ti={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"}}]}]},s3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"back-slash-single",ref:t,icon:Ti}))});s3.displayName="BackSlashSingle";var Di={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"}}]},l3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"bold-single",ref:t,icon:Di}))});l3.displayName="BoldSingle";var xi={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"}}]},c3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"brush-single",ref:t,icon:xi}))});c3.displayName="BrushSingle";var Ni={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"}}]},u3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-freeze-single",ref:t,icon:Ni}))});u3.displayName="CancelFreezeSingle";var Vi={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"}}]},f3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-merge-single",ref:t,icon:Vi}))});f3.displayName="CancelMergeSingle";var Ai={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"}}]},d3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"check-mark-single",ref:t,icon:Ai}))});d3.displayName="CheckMarkSingle";var Pi={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"}}]}]},h3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"clear-format",ref:t,icon:Pi}))});h3.displayName="ClearFormat";var Ri={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:Ri}))});G1.displayName="CloseSingle";var ji={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"}}]},v3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cnt-single",ref:t,icon:ji}))});v3.displayName="CntSingle";var ki={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"}}]},m3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"code-single",ref:t,icon:ki}))});m3.displayName="CodeSingle";var $i={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"}}]},p3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"conditions",ref:t,icon:$i}))});p3.displayName="Conditions";var Bi={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"}}]}]},C3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"content-single-16",ref:t,icon:Bi}))});C3.displayName="ContentSingle16";var Ui={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"}}]}]},g3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"copy",ref:t,icon:Ui}))});g3.displayName="Copy";var Fi={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"}}]}]},b3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-move-down",ref:t,icon:Fi}))});b3.displayName="DeleteCellMoveDown";var zi={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"}}]}]},y3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-left",ref:t,icon:zi}))});y3.displayName="DeleteCellShiftLeft";var Zi={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"}}]}]},S3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-right",ref:t,icon:Zi}))});S3.displayName="DeleteCellShiftRight";var Wi={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"}}]}]},L3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-up",ref:t,icon:Wi}))});L3.displayName="DeleteCellShiftUp";var Gi={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"}}]}]},_3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-column",ref:t,icon:Gi}))});_3.displayName="DeleteColumn";var Yi={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"}}]}]},w3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-row",ref:t,icon:Yi}))});w3.displayName="DeleteRow";var qi={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"}}]}]},M3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"direct-export-single",ref:t,icon:qi}))});M3.displayName="DirectExportSingle";var Xi={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"}}]},E3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"dollar-single",ref:t,icon:Xi}))});E3.displayName="DollarSingle";var Qi={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"}}]}]},H3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"down-border",ref:t,icon:Qi}))});H3.displayName="DownBorder";var Ji={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"}}]},O3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"error-single",ref:t,icon:Ji}))});O3.displayName="ErrorSingle";var Ki={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"}}]},I3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"euro-single",ref:t,icon:Ki}))});I3.displayName="EuroSingle";var eo={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"}}]},T3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"export-single",ref:t,icon:eo}))});T3.displayName="ExportSingle";var to={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"}}]},D3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"folder-single",ref:t,icon:to}))});D3.displayName="FolderSingle";var no={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}}]}]},x3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-color",ref:t,icon:no}))});x3.displayName="FontColor";var ro={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"}}]},N3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-increase-single",ref:t,icon:ro}))});N3.displayName="FontSizeIncreaseSingle";var io={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"}}]}]},V3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-reduce-single-single",ref:t,icon:io}))});V3.displayName="FontSizeReduceSingleSingle";var oo={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"}}]},A3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-column-single",ref:t,icon:oo}))});A3.displayName="FreezeColumnSingle";var ao={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"}}]},P3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-row-single",ref:t,icon:ao}))});P3.displayName="FreezeRowSingle";var so={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"}}]},R3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-to-selected-single",ref:t,icon:so}))});R3.displayName="FreezeToSelectedSingle";var lo={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"}}]},j3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"function-single",ref:t,icon:lo}))});j3.displayName="FunctionSingle";var co={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"}}]}]},k3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"grid-single",ref:t,icon:co}))});k3.displayName="GridSingle";var uo={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"}}]},$3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"header-footer-single",ref:t,icon:uo}))});$3.displayName="HeaderFooterSingle";var fo={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"}}]}]},B3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"hide",ref:t,icon:fo}))});B3.displayName="Hide";var ho={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"}}]}]},U3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-border",ref:t,icon:ho}))});U3.displayName="HorizontalBorder";var vo={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"}}]},F3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-merge-single",ref:t,icon:vo}))});F3.displayName="HorizontalMergeSingle";var mo={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"}}]},z3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontally-single",ref:t,icon:mo}))});z3.displayName="HorizontallySingle";var po={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"}}]}]},Z3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"inner-border",ref:t,icon:po}))});Z3.displayName="InnerBorder";var Co={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"}}]}]},W3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-down",ref:t,icon:Co}))});W3.displayName="InsertCellDown";var go={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"}}]}]},G3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-shift-right",ref:t,icon:go}))});G3.displayName="InsertCellShiftRight";var bo={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"}}]}]},Y3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-above",ref:t,icon:bo}))});Y3.displayName="InsertRowAbove";var yo={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"}}]}]},q3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-below",ref:t,icon:yo}))});q3.displayName="InsertRowBelow";var So={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"}}]}]},X3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert",ref:t,icon:So}))});X3.displayName="Insert";var Lo={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"}}]},Q3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"italic-single",ref:t,icon:Lo}))});Q3.displayName="ItalicSingle";var _o={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"}}]},J3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"keyboard-single",ref:t,icon:_o}))});J3.displayName="KeyboardSingle";var wo={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"}}]}]},K3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-border",ref:t,icon:wo}))});K3.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"}}]}]},er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-double-diagonal-single",ref:t,icon:Mo}))});er.displayName="LeftDoubleDiagonalSingle";var Eo={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"}}]}]},tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-insert-column",ref:t,icon:Eo}))});tr.displayName="LeftInsertColumn";var Ho={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"}}]},nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-justifying-single",ref:t,icon:Ho}))});nr.displayName="LeftJustifyingSingle";var Oo={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"}}]},rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-forty-five-degrees-single",ref:t,icon:Oo}))});rr.displayName="LeftRotationFortyFiveDegreesSingle";var Io={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"}}]},ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-ninety-degrees-single",ref:t,icon:Io}))});ir.displayName="LeftRotationNinetyDegreesSingle";var To={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"}}]}]},or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-tridiagonal-single",ref:t,icon:To}))});or.displayName="LeftTridiagonalSingle";var Do={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"}}]},ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"max-single",ref:t,icon:Do}))});ar.displayName="MaxSingle";var xo={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}}]},sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"menu-single-24",ref:t,icon:xo}))});sr.displayName="MenuSingle24";var No={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"}}]},lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"merge-all-single",ref:t,icon:No}))});lr.displayName="MergeAllSingle";var Vo={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"}}]},cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"min-single",ref:t,icon:Vo}))});cr.displayName="MinSingle";var Ao={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:Ao}))});Y1.displayName="MoreDownSingle";var Po={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"}}]},ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-function-single",ref:t,icon:Po}))});ur.displayName="MoreFunctionSingle";var Ro={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"}}]},jt=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-single",ref:t,icon:Ro}))});jt.displayName="MoreSingle";var jo={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"}}]},fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-border-single",ref:t,icon:jo}))});fr.displayName="NoBorderSingle";var ko={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"}}]},dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-color",ref:t,icon:ko}))});dr.displayName="NoColor";var $o={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"}}]},hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-rotation-single",ref:t,icon:$o}))});hr.displayName="NoRotationSingle";var Bo={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"}}]},vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"order-single",ref:t,icon:Bo}))});vr.displayName="OrderSingle";var Uo={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"}}]}]},mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"outer-border",ref:t,icon:Uo}))});mr.displayName="OuterBorder";var Fo={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"}}]},pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"overflow-single",ref:t,icon:Fo}))});pr.displayName="OverflowSingle";var zo={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"}}]}]},Cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paint-bucket",ref:t,icon:zo}))});Cr.displayName="PaintBucket";var Zo={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"}}]}]},gr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paste-special",ref:t,icon:Zo}))});gr.displayName="PasteSpecial";var Wo={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"}}]}]},br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"percent-single",ref:t,icon:Wo}))});br.displayName="PercentSingle";var Go={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"}}]},yr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"piping-single",ref:t,icon:Go}))});yr.displayName="PipingSingle";var Yo={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"}}]},Sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"redo-single",ref:t,icon:Yo}))});Sr.displayName="RedoSingle";var qo={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"}}]},Lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce-digits-single",ref:t,icon:qo}))});Lr.displayName="ReduceDigitsSingle";var Xo={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"}}]}]},_r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce",ref:t,icon:Xo}))});_r.displayName="Reduce";var Qo={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"}}]}]},wr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-border",ref:t,icon:Qo}))});wr.displayName="RightBorder";var Jo={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"}}]}]},Mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-double-diagonal-single",ref:t,icon:Jo}))});Mr.displayName="RightDoubleDiagonalSingle";var Ko={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"}}]}]},Er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-insert-column",ref:t,icon:Ko}))});Er.displayName="RightInsertColumn";var e2={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"}}]},Hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-justifying-single",ref:t,icon:e2}))});Hr.displayName="RightJustifyingSingle";var t2={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"}}]},Or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-forty-five-degrees-single",ref:t,icon:t2}))});Or.displayName="RightRotationFortyFiveDegreesSingle";var n2={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"]},Ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-ninety-degrees-single",ref:t,icon:n2}))});Ir.displayName="RightRotationNinetyDegreesSingle";var r2={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"}}]},Tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rmb-single",ref:t,icon:r2}))});Tr.displayName="RmbSingle";var i2={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"}}]},Dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rouble-single",ref:t,icon:i2}))});Dr.displayName="RoubleSingle";var o2={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"}}]}]},xr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"slash-single",ref:t,icon:o2}))});xr.displayName="SlashSingle";var a2={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"}}]},Nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"strikethrough-single",ref:t,icon:a2}))});Nr.displayName="StrikethroughSingle";var s2={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}}]},Vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"subscript-single",ref:t,icon:s2}))});Vr.displayName="SubscriptSingle";var l2={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"}}]},Ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"success-single",ref:t,icon:l2}))});Ar.displayName="SuccessSingle";var c2={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"}}]},Pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"sum-single",ref:t,icon:c2}))});Pr.displayName="SumSingle";var u2={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}}]},Rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"superscript-single",ref:t,icon:u2}))});Rr.displayName="SuperscriptSingle";var f2={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"}}]},jr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"truncation-single",ref:t,icon:f2}))});jr.displayName="TruncationSingle";var d2={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"}}]},kr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"underline-single",ref:t,icon:d2}))});kr.displayName="UnderlineSingle";var h2={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"}}]},$r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"undo-single",ref:t,icon:h2}))});$r.displayName="UndoSingle";var v2={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"}}]},Br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"unorder-single",ref:t,icon:v2}))});Br.displayName="UnorderSingle";var m2={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"}}]}]},Ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"up-border",ref:t,icon:m2}))});Ur.displayName="UpBorder";var p2={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"}}]}]},Fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-border",ref:t,icon:p2}))});Fr.displayName="VerticalBorder";var C2={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"}}]},zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-center-single",ref:t,icon:C2}))});zr.displayName="VerticalCenterSingle";var g2={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"}}]}]},Zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-integration-single",ref:t,icon:g2}))});Zr.displayName="VerticalIntegrationSingle";var b2={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"}}]},Wr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-text-single",ref:t,icon:b2}))});Wr.displayName="VerticalTextSingle";var y2={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"}}]},kt=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"warning-single",ref:t,icon:y2}))});kt.displayName="WarningSingle";class $e{constructor(){ee(this,"_components",new Map);ee(this,"_componentsReverse",new Map);const t={AlignBottomSingle:Jn,AlignTopSingle:e3,AllBorderSingle:t3,AmplifySingle:n3,AutowrapSingle:o3,BoldSingle:l3,BrushSingle:c3,Copy:g3,ClearFormat:h3,DownBorder:H3,FontColor:x3,FunctionSingle:j3,HorizontallySingle:z3,InnerBorder:Z3,ItalicSingle:Q3,KeyboardSingle:J3,ContentSingle16:C3,LeftBorder:K3,LeftJustifyingSingle:nr,LeftRotationFortyFiveDegreesSingle:rr,LeftRotationNinetyDegreesSingle:ir,MergeAllSingle:lr,HorizontalMergeSingle:F3,VerticalIntegrationSingle:Zr,PipingSingle:yr,CancelMergeSingle:f3,NoBorderSingle:fr,NoColor:dr,NoRotationSingle:hr,OuterBorder:mr,OverflowSingle:pr,PaintBucket:Cr,PasteSpecial:gr,MenuSingle24:sr,RedoSingle:Sr,RightBorder:wr,RightJustifyingSingle:Hr,AlignTextBothSingle:Kn,RightRotationFortyFiveDegreesSingle:Or,RightRotationNinetyDegreesSingle:Ir,StrikethroughSingle:Nr,OrderSingle:vr,UnorderSingle:Br,SuperscriptSingle:Rr,SubscriptSingle:Vr,TruncationSingle:jr,UnderlineSingle:kr,UndoSingle:$r,UpBorder:Ur,VerticalBorder:Fr,VerticalCenterSingle:zr,VerticalTextSingle:Wr,Insert:X3,InsertCellDown:W3,InsertCellShiftRight:G3,InsertRowAbove:Y3,InsertRowBelow:q3,LeftInsertColumn:tr,RightInsertColumn:Er,DeleteColumn:_3,DeleteRow:w3,DeleteCellShiftUp:L3,DeleteCellShiftRight:S3,DeleteCellShiftLeft:y3,DeleteCellMoveDown:b3,Reduce:_r,Hide:B3,HorizontalBorder:U3,AutoHeight:r3,AutoWidth:i3,AdjustHeight:Xn,AdjustWidth:Qn,AvgSingle:a3,CntSingle:v3,MaxSingle:ar,MinSingle:cr,SumSingle:Pr,CancelFreezeSingle:u3,FreezeColumnSingle:A3,FreezeRowSingle:P3,GridSingle:k3,HeaderFooterSingle:$3,FreezeToSelectedSingle:R3,CodeSingle:m3,FontSizeIncreaseSingle:N3,FontSizeReduceSingleSingle:V3,BackSlashSingle:s3,LeftDoubleDiagonalSingle:er,LeftTridiagonalSingle:or,SlashSingle:xr,RightDoubleDiagonalSingle:Mr,DirectExportSingle:M3,FolderSingle:D3,ExportSingle:T3,Conditions:p3,RmbSingle:Tr,MoreDownSingle:Y1,AddDigitsSingle:qn,ReduceDigitsSingle:Lr,PercentSingle:br,EuroSingle:I3,RoubleSingle:Dr,DollarSingle:E3};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(Gr,{component:n.component,props:{...r}}))}delete(t){this._components.delete(t)}}async function S2(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 Gr(e){const t=s.useRef(null),{component:n,props:r}=e;return s.useEffect(()=>{if(!t.current)return;const i=S2(n,t.current,r);return()=>{i.then(o=>o==null?void 0:o())}},[r]),s.createElement("div",{ref:t})}class D1{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}}jn=new WeakMap,kn=new WeakMap,Wn(D1,jn,2147483647),Wn(D1,kn,-2147483647);function Yr(e,t,n,r){const i=e.get(d.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 L2(e){const t=e.get(d.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!==d.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!==d.DocumentFlavor.TRADITIONAL),()=>r.unsubscribe()})}function qr(e,t){return!t||!e||(["type","icon","title","tooltip"].forEach(i=>{t[i]!==void 0&&(e[i]=t[i])}),["hidden","disabled","activated"].forEach(i=>{_2(e,`${i}$`,t[i])})),e}function _2(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 Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qr={exports:{}},X1={};/**
1
+ // @univerjs/ui/index
2
+ (function(p,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):(p=typeof globalThis<"u"?globalThis:p||self,d(p.UniverUi={},p.UniverCore,p.React,p.rxjs,p.UniverDesign,p.rxjs.operators,p.UniverEngineRender,p.ReactDOM))})(this,function(p,d,s,re,he,Wn,O1,I1){"use strict";var Z5=Object.defineProperty;var W5=p=>{throw TypeError(p)};var G5=(p,d,s)=>d in p?Z5(p,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):p[d]=s;var ee=(p,d,s)=>G5(p,typeof d!="symbol"?d+"":d,s);var Zn=(p,d,s)=>d.has(p)?W5("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(p):d.set(p,s);var Rn,kn;function ci(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 Q=ci(s);var $e=function(){return $e=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},$e.apply(this,arguments)},ui=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=ui(e,["icon","id","className","extend"]),c="univerjs-icon univerjs-icon-".concat(r," ").concat(i||"").trim(),h=s.useRef("_".concat(hi()));return Gn(n,"".concat(r),{defIds:n.defIds,idSuffix:h.current},$e({ref:t,className:c},a),o)});function Gn(e,t,n,r,i){return s.createElement(e.tag,$e($e({key:t},fi(e,n,i)),r),(di(e,n).children||[]).map(function(o,a){return Gn(o,"".concat(t,"-").concat(e.tag,"-").concat(a),n,void 0,i)}))}function fi(e,t,n){var r=$e({},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],c=o[1];typeof c=="string"&&(r[a]=c.replace(/url\(#(.*)\)/,"url(#$1".concat(t.idSuffix,")")))})),r}function di(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)?$e($e({},e),{children:e.children.map(function(i){return typeof i.attrs.id=="string"&&r&&r.indexOf(i.attrs.id)>-1?$e($e({},i),{attrs:$e($e({},i.attrs),{id:i.attrs.id+t.idSuffix})}):i})}):e}function hi(){return Math.random().toString(36).substring(2,8)}N.displayName="UniverIcon";var vi={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"}}]},Yn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"add-digits-single",ref:t,icon:vi}))});Yn.displayName="AddDigitsSingle";var mi={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"}}]}]},qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-height",ref:t,icon:mi}))});qn.displayName="AdjustHeight";var pi={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"}}]}]},Xn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"adjust-width",ref:t,icon:pi}))});Xn.displayName="AdjustWidth";var Ci={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"}}]},Qn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-bottom-single",ref:t,icon:Ci}))});Qn.displayName="AlignBottomSingle";var gi={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"}}]},Jn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-text-both-single",ref:t,icon:gi}))});Jn.displayName="AlignTextBothSingle";var bi={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"}}]},Kn=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"align-top-single",ref:t,icon:bi}))});Kn.displayName="AlignTopSingle";var yi={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"}}]},e3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"all-border-single",ref:t,icon:yi}))});e3.displayName="AllBorderSingle";var Li={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"}}]},t3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"amplify-single",ref:t,icon:Li}))});t3.displayName="AmplifySingle";var Si={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"}}]}]},n3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-height",ref:t,icon:Si}))});n3.displayName="AutoHeight";var _i={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"}}]}]},r3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"auto-width",ref:t,icon:_i}))});r3.displayName="AutoWidth";var Mi={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"}}]},i3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"autowrap-single",ref:t,icon:Mi}))});i3.displayName="AutowrapSingle";var wi={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"}}]},o3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"avg-single",ref:t,icon:wi}))});o3.displayName="AvgSingle";var Ei={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"}}]}]},a3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"back-slash-single",ref:t,icon:Ei}))});a3.displayName="BackSlashSingle";var Hi={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"}}]},s3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"bold-single",ref:t,icon:Hi}))});s3.displayName="BoldSingle";var Oi={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"}}]},l3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"brush-single",ref:t,icon:Oi}))});l3.displayName="BrushSingle";var Ii={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"}}]},c3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-freeze-single",ref:t,icon:Ii}))});c3.displayName="CancelFreezeSingle";var Ti={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"}}]},u3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cancel-merge-single",ref:t,icon:Ti}))});u3.displayName="CancelMergeSingle";var Di={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"}}]},f3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"check-mark-single",ref:t,icon:Di}))});f3.displayName="CheckMarkSingle";var xi={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"}}]}]},d3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"clear-format",ref:t,icon:xi}))});d3.displayName="ClearFormat";var Ni={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"}}]},W1=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"close-single",ref:t,icon:Ni}))});W1.displayName="CloseSingle";var Vi={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"}}]},h3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"cnt-single",ref:t,icon:Vi}))});h3.displayName="CntSingle";var Ai={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"}}]},v3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"code-single",ref:t,icon:Ai}))});v3.displayName="CodeSingle";var Pi={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"}}]},m3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"conditions",ref:t,icon:Pi}))});m3.displayName="Conditions";var Ri={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"}}]}]},p3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"content-single-16",ref:t,icon:Ri}))});p3.displayName="ContentSingle16";var ki={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"}}]}]},C3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"copy",ref:t,icon:ki}))});C3.displayName="Copy";var ji={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"}}]}]},g3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-move-down",ref:t,icon:ji}))});g3.displayName="DeleteCellMoveDown";var $i={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"}}]}]},b3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-left",ref:t,icon:$i}))});b3.displayName="DeleteCellShiftLeft";var Bi={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"}}]}]},y3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-right",ref:t,icon:Bi}))});y3.displayName="DeleteCellShiftRight";var Fi={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"}}]}]},L3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-cell-shift-up",ref:t,icon:Fi}))});L3.displayName="DeleteCellShiftUp";var Ui={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"}}]}]},S3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-column",ref:t,icon:Ui}))});S3.displayName="DeleteColumn";var zi={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"}}]}]},_3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"delete-row",ref:t,icon:zi}))});_3.displayName="DeleteRow";var Zi={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"}}]}]},M3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"direct-export-single",ref:t,icon:Zi}))});M3.displayName="DirectExportSingle";var Wi={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"}}]},w3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"dollar-single",ref:t,icon:Wi}))});w3.displayName="DollarSingle";var Gi={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"}}]}]},E3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"down-border",ref:t,icon:Gi}))});E3.displayName="DownBorder";var Yi={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"}}]},H3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"error-single",ref:t,icon:Yi}))});H3.displayName="ErrorSingle";var qi={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"}}]},O3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"euro-single",ref:t,icon:qi}))});O3.displayName="EuroSingle";var Xi={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"}}]},I3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"export-single",ref:t,icon:Xi}))});I3.displayName="ExportSingle";var Qi={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"}}]},T3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"folder-single",ref:t,icon:Qi}))});T3.displayName="FolderSingle";var Ji={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}}]}]},D3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-color",ref:t,icon:Ji}))});D3.displayName="FontColor";var Ki={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"}}]},x3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-increase-single",ref:t,icon:Ki}))});x3.displayName="FontSizeIncreaseSingle";var eo={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"}}]}]},N3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"font-size-reduce-single-single",ref:t,icon:eo}))});N3.displayName="FontSizeReduceSingleSingle";var to={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"}}]},V3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-column-single",ref:t,icon:to}))});V3.displayName="FreezeColumnSingle";var no={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"}}]},A3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-row-single",ref:t,icon:no}))});A3.displayName="FreezeRowSingle";var ro={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"}}]},P3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"freeze-to-selected-single",ref:t,icon:ro}))});P3.displayName="FreezeToSelectedSingle";var io={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"}}]},R3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"function-single",ref:t,icon:io}))});R3.displayName="FunctionSingle";var oo={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"}}]}]},k3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"grid-single",ref:t,icon:oo}))});k3.displayName="GridSingle";var ao={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"}}]},j3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"header-footer-single",ref:t,icon:ao}))});j3.displayName="HeaderFooterSingle";var so={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"}}]}]},$3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"hide",ref:t,icon:so}))});$3.displayName="Hide";var lo={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"}}]}]},B3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-border",ref:t,icon:lo}))});B3.displayName="HorizontalBorder";var co={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"}}]},F3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontal-merge-single",ref:t,icon:co}))});F3.displayName="HorizontalMergeSingle";var uo={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"}}]},U3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"horizontally-single",ref:t,icon:uo}))});U3.displayName="HorizontallySingle";var fo={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"}}]}]},z3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"inner-border",ref:t,icon:fo}))});z3.displayName="InnerBorder";var ho={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"}}]}]},Z3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-down",ref:t,icon:ho}))});Z3.displayName="InsertCellDown";var vo={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"}}]}]},W3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-cell-shift-right",ref:t,icon:vo}))});W3.displayName="InsertCellShiftRight";var mo={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"}}]}]},G3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-above",ref:t,icon:mo}))});G3.displayName="InsertRowAbove";var po={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"}}]}]},Y3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert-row-below",ref:t,icon:po}))});Y3.displayName="InsertRowBelow";var Co={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"}}]}]},q3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"insert",ref:t,icon:Co}))});q3.displayName="Insert";var go={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"}}]},X3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"italic-single",ref:t,icon:go}))});X3.displayName="ItalicSingle";var bo={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"}}]},Q3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"keyboard-single",ref:t,icon:bo}))});Q3.displayName="KeyboardSingle";var yo={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"}}]}]},J3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-border",ref:t,icon:yo}))});J3.displayName="LeftBorder";var Lo={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"}}]}]},K3=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-double-diagonal-single",ref:t,icon:Lo}))});K3.displayName="LeftDoubleDiagonalSingle";var So={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"}}]}]},er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-insert-column",ref:t,icon:So}))});er.displayName="LeftInsertColumn";var _o={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"}}]},tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-justifying-single",ref:t,icon:_o}))});tr.displayName="LeftJustifyingSingle";var Mo={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"}}]},nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-forty-five-degrees-single",ref:t,icon:Mo}))});nr.displayName="LeftRotationFortyFiveDegreesSingle";var wo={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"}}]},rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-rotation-ninety-degrees-single",ref:t,icon:wo}))});rr.displayName="LeftRotationNinetyDegreesSingle";var Eo={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"}}]}]},ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"left-tridiagonal-single",ref:t,icon:Eo}))});ir.displayName="LeftTridiagonalSingle";var Ho={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"}}]},or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"max-single",ref:t,icon:Ho}))});or.displayName="MaxSingle";var Oo={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}}]},ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"menu-single-24",ref:t,icon:Oo}))});ar.displayName="MenuSingle24";var Io={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"}}]},sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"merge-all-single",ref:t,icon:Io}))});sr.displayName="MergeAllSingle";var To={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"}}]},lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"min-single",ref:t,icon:To}))});lr.displayName="MinSingle";var Do={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"}}]},G1=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-down-single",ref:t,icon:Do}))});G1.displayName="MoreDownSingle";var xo={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"}}]},cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-function-single",ref:t,icon:xo}))});cr.displayName="MoreFunctionSingle";var No={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"}}]},Rt=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"more-single",ref:t,icon:No}))});Rt.displayName="MoreSingle";var Vo={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"}}]},ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-border-single",ref:t,icon:Vo}))});ur.displayName="NoBorderSingle";var Ao={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"}}]},fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-color",ref:t,icon:Ao}))});fr.displayName="NoColor";var Po={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"}}]},dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"no-rotation-single",ref:t,icon:Po}))});dr.displayName="NoRotationSingle";var Ro={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"}}]},hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"order-single",ref:t,icon:Ro}))});hr.displayName="OrderSingle";var ko={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"}}]}]},vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"outer-border",ref:t,icon:ko}))});vr.displayName="OuterBorder";var jo={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"}}]},mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"overflow-single",ref:t,icon:jo}))});mr.displayName="OverflowSingle";var $o={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"}}]}]},pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paint-bucket",ref:t,icon:$o}))});pr.displayName="PaintBucket";var Bo={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"}}]}]},Cr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"paste-special",ref:t,icon:Bo}))});Cr.displayName="PasteSpecial";var Fo={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"}}]}]},gr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"percent-single",ref:t,icon:Fo}))});gr.displayName="PercentSingle";var Uo={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"}}]},br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"piping-single",ref:t,icon:Uo}))});br.displayName="PipingSingle";var zo={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"}}]},yr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"redo-single",ref:t,icon:zo}))});yr.displayName="RedoSingle";var Zo={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"}}]},Lr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce-digits-single",ref:t,icon:Zo}))});Lr.displayName="ReduceDigitsSingle";var Wo={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"}}]}]},Sr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"reduce",ref:t,icon:Wo}))});Sr.displayName="Reduce";var Go={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"}}]}]},_r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-border",ref:t,icon:Go}))});_r.displayName="RightBorder";var Yo={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"}}]}]},Mr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-double-diagonal-single",ref:t,icon:Yo}))});Mr.displayName="RightDoubleDiagonalSingle";var qo={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"}}]}]},wr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-insert-column",ref:t,icon:qo}))});wr.displayName="RightInsertColumn";var Xo={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"}}]},Er=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-justifying-single",ref:t,icon:Xo}))});Er.displayName="RightJustifyingSingle";var Qo={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"}}]},Hr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-forty-five-degrees-single",ref:t,icon:Qo}))});Hr.displayName="RightRotationFortyFiveDegreesSingle";var Jo={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"]},Or=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"right-rotation-ninety-degrees-single",ref:t,icon:Jo}))});Or.displayName="RightRotationNinetyDegreesSingle";var Ko={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"}}]},Ir=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rmb-single",ref:t,icon:Ko}))});Ir.displayName="RmbSingle";var e2={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"}}]},Tr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"rouble-single",ref:t,icon:e2}))});Tr.displayName="RoubleSingle";var t2={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"}}]}]},Dr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"slash-single",ref:t,icon:t2}))});Dr.displayName="SlashSingle";var n2={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"}}]},xr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"strikethrough-single",ref:t,icon:n2}))});xr.displayName="StrikethroughSingle";var r2={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}}]},Nr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"subscript-single",ref:t,icon:r2}))});Nr.displayName="SubscriptSingle";var i2={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"}}]},Vr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"success-single",ref:t,icon:i2}))});Vr.displayName="SuccessSingle";var o2={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"}}]},Ar=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"sum-single",ref:t,icon:o2}))});Ar.displayName="SumSingle";var a2={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}}]},Pr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"superscript-single",ref:t,icon:a2}))});Pr.displayName="SuperscriptSingle";var s2={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"}}]},Rr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"truncation-single",ref:t,icon:s2}))});Rr.displayName="TruncationSingle";var l2={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"}}]},kr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"underline-single",ref:t,icon:l2}))});kr.displayName="UnderlineSingle";var c2={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"}}]},jr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"undo-single",ref:t,icon:c2}))});jr.displayName="UndoSingle";var u2={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"}}]},$r=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"unorder-single",ref:t,icon:u2}))});$r.displayName="UnorderSingle";var f2={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"}}]}]},Br=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"up-border",ref:t,icon:f2}))});Br.displayName="UpBorder";var d2={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"}}]}]},Fr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-border",ref:t,icon:d2}))});Fr.displayName="VerticalBorder";var h2={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"}}]},Ur=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-center-single",ref:t,icon:h2}))});Ur.displayName="VerticalCenterSingle";var v2={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"}}]}]},zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-integration-single",ref:t,icon:v2}))});zr.displayName="VerticalIntegrationSingle";var m2={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"}}]},Zr=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"vertical-text-single",ref:t,icon:m2}))});Zr.displayName="VerticalTextSingle";var p2={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"}}]},kt=s.forwardRef(function(e,t){return s.createElement(N,Object.assign({},e,{id:"warning-single",ref:t,icon:p2}))});kt.displayName="WarningSingle";class Be{constructor(){ee(this,"_components",new Map);ee(this,"_componentsReverse",new Map);const t={AlignBottomSingle:Qn,AlignTopSingle:Kn,AllBorderSingle:e3,AmplifySingle:t3,AutowrapSingle:i3,BoldSingle:s3,BrushSingle:l3,Copy:C3,ClearFormat:d3,DownBorder:E3,FontColor:D3,FunctionSingle:R3,HorizontallySingle:U3,InnerBorder:z3,ItalicSingle:X3,KeyboardSingle:Q3,ContentSingle16:p3,LeftBorder:J3,LeftJustifyingSingle:tr,LeftRotationFortyFiveDegreesSingle:nr,LeftRotationNinetyDegreesSingle:rr,MergeAllSingle:sr,HorizontalMergeSingle:F3,VerticalIntegrationSingle:zr,PipingSingle:br,CancelMergeSingle:u3,NoBorderSingle:ur,NoColor:fr,NoRotationSingle:dr,OuterBorder:vr,OverflowSingle:mr,PaintBucket:pr,PasteSpecial:Cr,MenuSingle24:ar,RedoSingle:yr,RightBorder:_r,RightJustifyingSingle:Er,AlignTextBothSingle:Jn,RightRotationFortyFiveDegreesSingle:Hr,RightRotationNinetyDegreesSingle:Or,StrikethroughSingle:xr,OrderSingle:hr,UnorderSingle:$r,SuperscriptSingle:Pr,SubscriptSingle:Nr,TruncationSingle:Rr,UnderlineSingle:kr,UndoSingle:jr,UpBorder:Br,VerticalBorder:Fr,VerticalCenterSingle:Ur,VerticalTextSingle:Zr,Insert:q3,InsertCellDown:Z3,InsertCellShiftRight:W3,InsertRowAbove:G3,InsertRowBelow:Y3,LeftInsertColumn:er,RightInsertColumn:wr,DeleteColumn:S3,DeleteRow:_3,DeleteCellShiftUp:L3,DeleteCellShiftRight:y3,DeleteCellShiftLeft:b3,DeleteCellMoveDown:g3,Reduce:Sr,Hide:$3,HorizontalBorder:B3,AutoHeight:n3,AutoWidth:r3,AdjustHeight:qn,AdjustWidth:Xn,AvgSingle:o3,CntSingle:h3,MaxSingle:or,MinSingle:lr,SumSingle:Ar,CancelFreezeSingle:c3,FreezeColumnSingle:V3,FreezeRowSingle:A3,GridSingle:k3,HeaderFooterSingle:j3,FreezeToSelectedSingle:P3,CodeSingle:v3,FontSizeIncreaseSingle:x3,FontSizeReduceSingleSingle:N3,BackSlashSingle:a3,LeftDoubleDiagonalSingle:K3,LeftTridiagonalSingle:ir,SlashSingle:Dr,RightDoubleDiagonalSingle:Mr,DirectExportSingle:M3,FolderSingle:T3,ExportSingle:I3,Conditions:m3,RmbSingle:Ir,MoreDownSingle:G1,AddDigitsSingle:Yn,ReduceDigitsSingle:Lr,PercentSingle:gr,EuroSingle:O3,RoubleSingle:Tr,DollarSingle:w3};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(Wr,{component:n.component,props:{...r}}))}delete(t){this._components.delete(t)}}async function C2(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 Wr(e){const t=s.useRef(null),{component:n,props:r}=e;return s.useEffect(()=>{if(!t.current)return;const i=C2(n,t.current,r);return()=>{i.then(o=>o==null?void 0:o())}},[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}}Rn=new WeakMap,kn=new WeakMap,Zn(T1,Rn,2147483647),Zn(T1,kn,-2147483647);function Gr(e,t,n,r){const i=e.get(d.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)}),c=i.getFocusedUnit();if(c==null)return o.next(!0);const h=i.getUnitType(c.getUnitId());return o.next(h!==t),()=>a.unsubscribe()})}function g2(e){const t=e.get(d.IUniverInstanceService);return new re.Observable(n=>{const r=t.focused$.subscribe(a=>{if(a==null)return n.next(!0);const c=t.getUniverDocInstance(a),h=c==null?void 0:c.getSnapshot().documentStyle.documentFlavor;n.next(h!==d.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!==d.DocumentFlavor.TRADITIONAL),()=>r.unsubscribe()})}function Yr(e,t){return!t||!e||(["type","icon","title","tooltip"].forEach(i=>{t[i]!==void 0&&(e[i]=t[i])}),["hidden","disabled","activated"].forEach(i=>{b2(e,`${i}$`,t[i])})),e}function b2(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 Y1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xr={exports:{}},q1={};/**
4
3
  * @license React
5
4
  * react-jsx-runtime.production.min.js
6
5
  *
@@ -8,8 +7,8 @@
8
7
  *
9
8
  * This source code is licensed under the MIT license found in the
10
9
  * LICENSE file in the root directory of this source tree.
11
- */var w2=s,M2=Symbol.for("react.element"),E2=Symbol.for("react.fragment"),H2=Object.prototype.hasOwnProperty,O2=w2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I2={key:!0,ref:!0,__self:!0,__source:!0};function Jr(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)H2.call(t,r)&&!I2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:M2,type:e,key:o,ref:a,props:i,_owner:O2.current}}X1.Fragment=E2,X1.jsx=Jr,X1.jsxs=Jr,Qr.exports=X1;var b=Qr.exports;function Ae(e){const{title:t,icon:n,label:r,value:i,value$:o}=e,a=d.useDependency(d.LocaleService),l=d.useDependency($e),[h,v]=s.useState(i),[m,u]=s.useState(""),C=[];let L=0;s.useEffect(()=>{if(o){const w=o.subscribe(H=>{v(H)});return()=>{w.unsubscribe()}}},[o]);const M=s.useMemo(()=>i!=null?i:h,[h,i]);s.useEffect(()=>{let w=null;return re.isObservable(n)?w=n.subscribe(H=>{u(H)}):u(n!=null?n:""),()=>{w==null||w.unsubscribe()}},[n]);const E=s.useMemo(()=>M&&typeof M=="string"?new d.ColorKit(M).isValid:!1,[M]);if(n){const w=l.get(m!=null?m:"");w&&C.push(b.jsx(w,{extend:{colorChannel1:E?M:"rgb(var(--primary-color))"}},L++))}if(r){const w=typeof r=="string",H=w?{...e}:{...r==null?void 0:r.props,...e},x=w?r:r==null?void 0:r.name,T=l.get(x);T?C.push(b.jsx(T,{...H,value:M},L++)):C.push(b.jsx("span",{children:a.t(x)},L++))}return t&&C.push(b.jsx("span",{children:typeof t=="string"?a.t(t):t},L++)),b.jsx(b.Fragment,{children:C})}const Kr={uiPluginSheetsFontFamily:"univer-ui-plugin-sheets-font-family",uiPluginSheetsFontFamilyItem:"univer-ui-plugin-sheets-font-family-item"},T2=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 b.jsx("div",{className:Kr.uiPluginSheetsFontFamily,style:{fontFamily:t},children:r})},D2=e=>{const{value:t}=e,n=d.useDependency(d.LocaleService);return b.jsx("span",{className:Kr.uiPluginSheetsFontFamilyItem,style:{fontFamily:t},children:n.t(`fontFamily.${`${t!=null?t:""}`.replace(/\s/g,"")}`)})},x2=[{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 $t(e){return typeof e=="function"?e():e}function Oe(e,t,n,r){if(typeof e=="function"&&!r)throw new Error("[useObservable]: expect deps when observable is a function! Otherwise it would cause an infinite loop.");const i=s.useRef(null),o=s.useRef(!1),a=s.useMemo(()=>e,[...typeof r<"u"?r:[e]]),[l,h]=s.useState(0),v=s.useRef((()=>{let m;return a&&$t(a).subscribe(C=>{o.current=!0,m=C}).unsubscribe(),m!=null?m:t})());if(s.useEffect(()=>{let m=null;return a&&(i.current=$t(a),m=i.current.subscribe(u=>{v.current=u,h(C=>C+1)})),()=>m==null?void 0:m.unsubscribe()},[a]),n&&!o.current)throw new Error("[useObservable]: expect shouldHaveSyncValue but not getting a sync value!");return v.current}function e6(e,t){const n=s.useRef(t);return s.useEffect(()=>{if(e){const r=$t(e).subscribe(i=>{n.current=i});return()=>r.unsubscribe()}},[e]),n}const t6={uiPluginSheetsFontSize:"univer-ui-plugin-sheets-font-size",uiPluginSheetsFontSizeInput:"univer-ui-plugin-sheets-font-size-input"},N2=e=>{const{value:t,min:n,max:r,onChange:i,disabled$:o}=e,a=Oe(o),[l,h]=s.useState(Number(t!=null?t:0)),v=s.useMemo(()=>Number(t!=null?t:l),[t]);function m(C){C!==null&&h(C)}function u(C){C.stopPropagation(),C.code==="Enter"&&i(l.toString())}return b.jsx("div",{className:t6.uiPluginSheetsFontSize,children:b.jsx(he.InputNumber,{className:t6.uiPluginSheetsFontSizeInput,value:v,controls:!1,min:n,max:r,onKeyDown:u,onChange:m,disabled:a})})},V2=[{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 n6={};Object.defineProperty(n6,"__esModule",{value:!0});var r6=n6.default=A2;function A2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bt(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 i6(e,t){const n=Bt(()=>{if(!e||!t)return;const r=e.style,i=e.getBoundingClientRect(),{y:o}=i,a=t.getBoundingClientRect(),l=e.scrollHeight>i.height,h=o<0||o+i.height>a.height;if(!h&&!l){r.overflowY="",r.maxHeight="";return}h&&(r.overflowY="scroll",r.maxHeight=o<0?`${e.scrollHeight+o}px`:`${a.height-o}px`)});s.useEffect(()=>{if(!r6()||!e||!t)return;n();const r=he.resizeObserverCtor(n);return r.observe(e),()=>{r.unobserve(e)}},[e,t])}function P2(e,t,...n){return e.t(t)}function x1(e){var t=Q.useRef();t.current=e;var n=Q.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function R2(e){if(Array.isArray(e))return e}function j2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],h=!0,v=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(h=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);h=!0);}catch(m){v=!0,i=m}finally{try{if(!h&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(v)throw i}}return l}}function o6(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 k2(e,t){if(e){if(typeof e=="string")return o6(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)?o6(e,t):void 0}}function $2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a6(e,t){return R2(e)||j2(e,t)||k2(e,t)||$2()}function Ut(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ft(e){var t=Q.useRef(!1),n=Q.useState(e),r=a6(n,2),i=r[0],o=r[1];Q.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,h){h&&t.current||o(l)}return[i,a]}function h1(e){"@babel/helpers - typeof";return h1=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},h1(e)}var s6={exports:{}},ce={};/**
10
+ */var y2=s,L2=Symbol.for("react.element"),S2=Symbol.for("react.fragment"),_2=Object.prototype.hasOwnProperty,M2=y2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w2={key:!0,ref:!0,__self:!0,__source:!0};function Qr(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)_2.call(t,r)&&!w2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:L2,type:e,key:o,ref:a,props:i,_owner:M2.current}}q1.Fragment=S2,q1.jsx=Qr,q1.jsxs=Qr,Xr.exports=q1;var b=Xr.exports;function Ae(e){const{title:t,icon:n,label:r,value:i,value$:o}=e,a=d.useDependency(d.LocaleService),c=d.useDependency(Be),[h,v]=s.useState(i),[m,u]=s.useState(""),g=[];let S=0;s.useEffect(()=>{if(o){const M=o.subscribe(I=>{v(I)});return()=>{M.unsubscribe()}}},[o]);const w=s.useMemo(()=>i!=null?i:h,[h,i]);s.useEffect(()=>{let M=null;return re.isObservable(n)?M=n.subscribe(I=>{u(I)}):u(n!=null?n:""),()=>{M==null||M.unsubscribe()}},[n]);const E=s.useMemo(()=>w&&typeof w=="string"?new d.ColorKit(w).isValid:!1,[w]);if(n){const M=c.get(m!=null?m:"");M&&g.push(b.jsx(M,{extend:{colorChannel1:E?w:"rgb(var(--primary-color))"}},S++))}if(r){const M=typeof r=="string",I=M?{...e}:{...r==null?void 0:r.props,...e},x=M?r:r==null?void 0:r.name,T=c.get(x);T?g.push(b.jsx(T,{...I,value:w},S++)):g.push(b.jsx("span",{children:a.t(x)},S++))}return t&&g.push(b.jsx("span",{children:typeof t=="string"?a.t(t):t},S++)),b.jsx(b.Fragment,{children:g})}const Jr={uiPluginSheetsFontFamily:"univer-ui-plugin-sheets-font-family",uiPluginSheetsFontFamilyItem:"univer-ui-plugin-sheets-font-family-item"},E2=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 b.jsx("div",{className:Jr.uiPluginSheetsFontFamily,style:{fontFamily:t},children:r})},H2=e=>{const{value:t}=e,n=d.useDependency(d.LocaleService);return b.jsx("span",{className:Jr.uiPluginSheetsFontFamilyItem,style:{fontFamily:t},children:n.t(`fontFamily.${`${t!=null?t:""}`.replace(/\s/g,"")}`)})},O2=[{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 jt(e){return typeof e=="function"?e():e}function Oe(e,t,n,r){if(typeof e=="function"&&!r)throw new Error("[useObservable]: expect deps when observable is a function! Otherwise it would cause an infinite loop.");const i=s.useRef(null),o=s.useRef(!1),a=s.useMemo(()=>e,[...typeof r<"u"?r:[e]]),[c,h]=s.useState(0),v=s.useRef((()=>{let m;return a&&jt(a).subscribe(g=>{o.current=!0,m=g}).unsubscribe(),m!=null?m:t})());if(s.useEffect(()=>{let m=null;return a&&(i.current=jt(a),m=i.current.subscribe(u=>{v.current=u,h(g=>g+1)})),()=>m==null?void 0:m.unsubscribe()},[a]),n&&!o.current)throw new Error("[useObservable]: expect shouldHaveSyncValue but not getting a sync value!");return v.current}function Kr(e,t){const n=s.useRef(t);return s.useEffect(()=>{if(e){const r=jt(e).subscribe(i=>{n.current=i});return()=>r.unsubscribe()}},[e]),n}const e6={uiPluginSheetsFontSize:"univer-ui-plugin-sheets-font-size",uiPluginSheetsFontSizeInput:"univer-ui-plugin-sheets-font-size-input"},I2=e=>{const{value:t,min:n,max:r,onChange:i,disabled$:o}=e,a=Oe(o),[c,h]=s.useState(Number(t!=null?t:0)),v=s.useMemo(()=>Number(t!=null?t:c),[t]);function m(g){g!==null&&h(g)}function u(g){g.stopPropagation(),g.code==="Enter"&&i(c.toString())}return b.jsx("div",{className:e6.uiPluginSheetsFontSize,children:b.jsx(he.InputNumber,{className:e6.uiPluginSheetsFontSizeInput,value:v,controls:!1,min:n,max:r,onKeyDown:u,onChange:m,disabled:a})})},T2=[{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 t6={};Object.defineProperty(t6,"__esModule",{value:!0});var n6=t6.default=D2;function D2(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $t(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 r6(e,t){const n=$t(()=>{if(!e||!t)return;const r=e.style,i=e.getBoundingClientRect(),{y:o}=i,a=t.getBoundingClientRect(),c=e.scrollHeight>i.height,h=o<0||o+i.height>a.height;if(!h&&!c){r.overflowY="",r.maxHeight="";return}h&&(r.overflowY="scroll",r.maxHeight=o<0?`${e.scrollHeight+o}px`:`${a.height-o}px`)});s.useEffect(()=>{if(!n6()||!e||!t)return;n();const r=he.resizeObserverCtor(n);return r.observe(e),()=>{r.unobserve(e)}},[e,t])}function x2(e,t,...n){return e.t(t)}function D1(e){var t=Q.useRef();t.current=e;var n=Q.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function N2(e){if(Array.isArray(e))return e}function V2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,c=[],h=!0,v=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);h=!0);}catch(m){v=!0,i=m}finally{try{if(!h&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(v)throw i}}return c}}function Bt(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 i6(e,t){if(e){if(typeof e=="string")return Bt(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)?Bt(e,t):void 0}}function A2(){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 Se(e,t){return N2(e)||V2(e,t)||i6(e,t)||A2()}function Ft(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ut(e){var t=Q.useRef(!1),n=Q.useState(e),r=Se(n,2),i=r[0],o=r[1];Q.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(c,h){h&&t.current||o(c)}return[i,a]}function Re(e){"@babel/helpers - typeof";return Re=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},Re(e)}var o6={exports:{}},ue={};/**
13
12
  * @license React
14
13
  * react-is.production.min.js
15
14
  *
@@ -17,19 +16,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
17
16
  *
18
17
  * This source code is licensed under the MIT license found in the
19
18
  * LICENSE file in the root directory of this source tree.
20
- */var zt=Symbol.for("react.element"),Zt=Symbol.for("react.portal"),Q1=Symbol.for("react.fragment"),J1=Symbol.for("react.strict_mode"),K1=Symbol.for("react.profiler"),et=Symbol.for("react.provider"),tt=Symbol.for("react.context"),B2=Symbol.for("react.server_context"),nt=Symbol.for("react.forward_ref"),rt=Symbol.for("react.suspense"),it=Symbol.for("react.suspense_list"),ot=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),U2=Symbol.for("react.offscreen"),l6;l6=Symbol.for("react.module.reference");function Be(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zt:switch(e=e.type,e){case Q1:case K1:case J1:case rt:case it:return e;default:switch(e=e&&e.$$typeof,e){case B2:case tt:case nt:case at:case ot:case et:return e;default:return t}}case Zt:return t}}}ce.ContextConsumer=tt,ce.ContextProvider=et,ce.Element=zt,ce.ForwardRef=nt,ce.Fragment=Q1,ce.Lazy=at,ce.Memo=ot,ce.Portal=Zt,ce.Profiler=K1,ce.StrictMode=J1,ce.Suspense=rt,ce.SuspenseList=it,ce.isAsyncMode=function(){return!1},ce.isConcurrentMode=function(){return!1},ce.isContextConsumer=function(e){return Be(e)===tt},ce.isContextProvider=function(e){return Be(e)===et},ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zt},ce.isForwardRef=function(e){return Be(e)===nt},ce.isFragment=function(e){return Be(e)===Q1},ce.isLazy=function(e){return Be(e)===at},ce.isMemo=function(e){return Be(e)===ot},ce.isPortal=function(e){return Be(e)===Zt},ce.isProfiler=function(e){return Be(e)===K1},ce.isStrictMode=function(e){return Be(e)===J1},ce.isSuspense=function(e){return Be(e)===rt},ce.isSuspenseList=function(e){return Be(e)===it},ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Q1||e===K1||e===J1||e===rt||e===it||e===U2||typeof e=="object"&&e!==null&&(e.$$typeof===at||e.$$typeof===ot||e.$$typeof===et||e.$$typeof===tt||e.$$typeof===nt||e.$$typeof===l6||e.getModuleId!==void 0)},ce.typeOf=Be,s6.exports=ce;var st=s6.exports,F2=function(t,n){typeof t=="function"?t(n):h1(t)==="object"&&t&&"current"in t&&(t.current=n)},z2=function(t){var n,r,i=st.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==st.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==st.ForwardRef)};function c6(e){return s.isValidElement(e)&&!st.isFragment(e)}Number(s.version.split(".")[0])>=19;function Z2(e,t){if(h1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(h1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W2(e){var t=Z2(e,"string");return h1(t)=="symbol"?t:t+""}function G2(e,t,n){return(t=W2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u6(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 Y2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u6(Object(n),!0).forEach(function(r){G2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const q2={popupFixed:"univer-popup-fixed"},f6=s.createContext({current:void 0}),s1=8;function d6(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:M,right:E,bottom:w}=t,H=a.indexOf("top")>-1?{top:Math.max(M-r,s1)}:{top:Math.min(w,i-r-s1)};let x;if(a.includes("center")){const k=(E-L-n)/2;x={left:L+k}}else x=L+n>o?{left:Math.max(E-n,s1)}:{left:Math.min(L,o-n-s1)};return{...H,...x}}const{left:l,top:h,right:v,bottom:m}=t,u=a==="left"?{left:Math.max(l-n,s1)}:{left:Math.min(v,o-n-s1)};return{...h+r>i?{top:Math.max(m-r,s1)}:{top:Math.min(h,i-r-s1)},...u}}function lt(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,C=s.useRef(null),L=x1(i!=null?i:()=>{}),M=x1(u!=null?u:()=>{}),E=s.useRef({top:-9999,left:-9999}),w=a,H=s.useRef();return s.useEffect(()=>{const x=n.subscribe(T=>{H.current=T,requestAnimationFrame(()=>{if(!C.current)return;const{clientWidth:k,clientHeight:O}=C.current,I=window.innerWidth,P=window.innerHeight;E.current=d6({position:T,width:k,height:O,containerWidth:I,containerHeight:P,direction:r}),C.current.style.top=`${E.current.top}px`,C.current.style.left=`${E.current.left}px`})});return()=>x.unsubscribe()},[n,r]),s.useEffect(()=>{const x=T=>{var P;if(o&&(o.indexOf(T.target)>-1||o.some(R=>R.contains(T.target))))return;const k=T.clientX,O=T.clientY,I=[...(P=w==null?void 0:w.current)!=null?P:[]];H.current&&I.push(H.current);for(const R of I)if(k<=R.right&&k>=R.left&&O<=R.bottom&&O>=R.top)return;L(T)};return window.addEventListener("pointerdown",x),()=>{window.removeEventListener("pointerdown",x)}},[L,o,w]),s.useEffect(()=>{const x=T=>{T.ctrlKey&&T.button===0||M()};return window.addEventListener("contextmenu",x),()=>{window.removeEventListener("contextmenu",x)}},[M]),b.jsx("section",{onPointerEnter:l,onPointerLeave:h,ref:C,style:{...E.current,...m?{display:"none"}:null},className:q2.popupFixed,onPointerDown:x=>x.stopPropagation(),onClick:v,children:b.jsx(f6.Provider,{value:H,children:t})})}lt.calcPopupPosition=d6,lt.useContext=()=>s.useContext(f6);const h6=e=>typeof e=="number";function X2(e){const t=s.useRef(e);return t.current=e,t}const Q2=(e,t)=>{const{containerTarget:n,itemHeight:r,overscan:i=5}=t,o=X2(r),[a,l]=s.useState(null),h=s.useRef(!1),[v,m]=s.useState([]),[u,C]=s.useState({height:void 0,marginTop:void 0}),L=(T,k)=>{if(typeof o.current=="number")return Math.ceil(T/o.current);let O=0,I=0;for(let P=k;P<e.length;P++){const R=o.current(P,e[P]);if(O+=R,I=P,O>=T)break}return I-k},M=T=>{if(h6(o.current))return Math.floor(T/o.current);let k=0,O=0;for(let I=0;I<e.length;I++){const P=o.current(I,e[I]);if(k+=P,k>=T){O=I;break}}return O+1},E=T=>typeof o.current=="number"?T*o.current:e.slice(0,T).reduce((O,I,P)=>O+o.current(P,e[P]),0),w=s.useMemo(()=>h6(o.current)?e.length*o.current:e.reduce((T,k,O)=>T+o.current(O,e[O]),0),[e]),H=()=>{const T=n.current;if(T){const{scrollTop:k,clientHeight:O}=T,I=M(k),P=L(O,I),R=Math.max(0,I-i),z=Math.min(e.length,I+P+i),W=E(R);C({height:`${w-W}px`,marginTop:`${W}px`}),m(e.slice(R,z).map((q,K)=>({data:q,index:K+R})))}};return s.useEffect(()=>{if(n.current){const T=()=>{const O=n.current.clientWidth,I=n.current.clientHeight;(O!==(a==null?void 0:a.width)||I!==(a==null?void 0:a.height))&&l({width:O,height:I})};T();const k=new ResizeObserver(T);return k.observe(n.current),()=>{k.disconnect()}}},[]),s.useEffect(()=>{!(a!=null&&a.width)||!(a!=null&&a.height)||H()},[a==null?void 0:a.width,a==null?void 0:a.height,e]),[v,{wrapperStyle:u,scrollTo:Bt(T=>{const k=n.current;k&&(h.current=!0,k.scrollTop=E(T),H())}),containerProps:{onScroll:T=>{if(h.current){h.current=!1;return}T.preventDefault(),H()}}}]};function v6(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=v6(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=v6(e))&&(r&&(r+=" "),r+=t);return r}var J2=Object.defineProperty,K2=Object.getOwnPropertyDescriptor,e4=(e,t,n,r)=>{for(var i=r>1?void 0:r?K2(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&&J2(t,n,i),i},m6=(e,t)=>(n,r)=>t(n,r,e);const t4="FOCUSING_UNIVER",n4=["univer-app-layout","univer-toolbar-btn","univer-menu-item","univer-button","univer-sheet-bar-btn","univer-render-canvas","univer-workbench-layout"],i1=d.createIdentifier("ui.layout-service");g.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(re.fromEvent(window,"focusin").subscribe(n=>{const r=n.target;if(n4.some(i=>r.classList.contains(i))){queueMicrotask(()=>this.focus());return}r&&this.checkElementInCurrentContainers(r)?this._isFocused=!0:this._isFocused=!1,this._contextService.setContextValue(t4,this._isFocused),this._contextService.setContextValue(d.FOCUSING_UNIVER_EDITOR,p6())}))}_initEditorStatus(){this._contextService.setContextValue(d.FOCUSING_UNIVER_EDITOR,p6())}},g.DesktopLayoutService=e4([m6(0,d.IContextService),m6(1,d.IUniverInstanceService)],g.DesktopLayoutService);function p6(){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||{}),o1=(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))(o1||{}),Ze=(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))(Ze||{}),Wt=(e=>(e.OTHERS="ribbon.insert.others",e))(Wt||{}),Gt=(e=>(e.OTHERS="ribbon.formulas.others",e))(Gt||{}),Yt=(e=>(e.OTHERS="ribbon.data.others",e))(Yt||{}),qt=(e=>(e.OTHERS="ribbon.view.others",e))(qt||{}),Xt=(e=>(e.OTHERS="ribbon.others.others",e))(Xt||{}),v1=(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))(v1||{}),_e=(e=>(e.FORMAT="contextMenu.format",e.LAYOUT="contextMenu.layout",e.DATA="contextMenu.data",e.OTHERS="contextMenu.others",e))(_e||{}),r4=Object.defineProperty,i4=Object.getOwnPropertyDescriptor,o4=(e,t,n,r)=>{for(var i=r>1?void 0:r?i4(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&&r4(t,n,i),i},C6=(e,t)=>(n,r)=>t(n,r,e);const Qe=d.createIdentifier("univer.menu-manager-service");g.MenuManagerService=class extends d.Disposable{constructor(n,r){super();ee(this,"menuChanged$",new re.Subject);ee(this,"_menu",{[N1.RIBBON]:{[o1.START]:{order:0,[Ze.HISTORY]:{order:0},[Ze.FORMAT]:{order:1},[Ze.LAYOUT]:{order:2},[Ze.FORMULAS_INSERT]:{order:3},[Ze.FORMULAS_VIEW]:{order:4},[Ze.FILE]:{order:5},[Ze.OTHERS]:{order:6}},[o1.INSERT]:{order:1,[Wt.OTHERS]:{order:0}},[o1.FORMULAS]:{order:2,[Gt.OTHERS]:{order:0}},[o1.DATA]:{order:3,[Yt.OTHERS]:{order:0}},[o1.VIEW]:{order:4,[qt.OTHERS]:{order:0}},[o1.OTHERS]:{order:5,[Xt.OTHERS]:{order:0}}},[N1.CONTEXT_MENU]:{[v1.MAIN_AREA]:{order:0,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[v1.COL_HEADER]:{order:1,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[v1.ROW_HEADER]:{order:2,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[v1.FOOTER_TABS]:{order:3,[_e.FORMAT]:{order:0},[_e.LAYOUT]:{order:1},[_e.DATA]:{order:2},[_e.OTHERS]:{order:3}},[v1.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;d.Tools.deepMerge(i[l],n[l]),this.menuChanged$.next()}else this.mergeMenu(n,a)}appendRootMenu(n){d.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=qr(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)}},g.MenuManagerService=o4([C6(0,d.Inject(d.Injector)),C6(1,d.IConfigService)],g.MenuManagerService);const We={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 g6(e){const{menuType:t,onOptionSelect:n}=e,r=d.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,C;return(C=(u=m.item)==null?void 0:u.hidden$)!=null?C: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?b.jsx(y6,{menuItem:a.item,onClick:h=>{n==null||n({value:"",label:a.key,...h})}},a.key):(l=a.children)!=null&&l.length?b.jsx(he.MenuItemGroup,{eventKey:a.key,children:a.children.map(h=>h.item&&b.jsx(y6,{menuItem:h.item,onClick:v=>{n==null||n({value:"",label:h.key,...v})}},h.key))},a.key):null})}function b6(e){var o;const{options:t,value:n,onOptionSelect:r,parentKey:i}=e;return(o=t==null?void 0:t.map((a,l)=>{var C,L,M;const h=`${i}-${(C=a.label)!=null?C:a.id}-${l}`,v=E=>{r==null||r({value:E,label:a==null?void 0:a.label,commandId:a==null?void 0:a.commandId})},m=()=>{typeof a.value>"u"||r==null||r({...a})},u=Te({[We.menuItemNoHover]:typeof a.label!="string"&&!((L=a.label)!=null&&L.hoverable)});return b.jsx(he.MenuItem,{disabled:a.disabled,eventKey:h,className:u,onClick:m,children:b.jsxs("span",{className:Te(We.menuItemContent,{[We.menuItemSelectable]:!(typeof a.label!="string"&&!((M=a.label)!=null&&M.hoverable))}),children:[typeof n<"u"&&String(n)===String(a.value)&&b.jsx("span",{className:We.menuItemSelectableIcon,children:b.jsx(d3,{style:{color:"rgb(var(--success-color))"}})}),b.jsx(Ae,{value$:a.value$,value:a.value,label:a.label,icon:a.icon,onChange:v})]})},h)}))!=null?o:null}const ct=e=>{const{overViewport:t,...n}=e,[r,i]=s.useState(),o=d.useDependency(i1);return i6(t==="scroll"?r:null,o.rootContainerElement),b.jsxs(he.Menu,{ref:a=>(a==null?void 0:a.list)&&i(a.list),selectable:!1,children:[b.jsx(b6,{...n}),b.jsx(g6,{...n})]})};function y6({menuItem:e,onClick:t}){const n=d.useDependency(Qe),r=Oe(e.disabled$,!1),i=Oe(e.activated$,!1),o=Oe(e.hidden$,!1),a=Oe(e.value$),l=e,h=Oe(re.isObservable(l.selections)?l.selections:void 0),[v,m]=s.useState(a);if(o)return null;const u=w=>{const H=d.isRealNum(w)&&typeof w=="string"?Number.parseInt(w):w;m(H)},C=()=>{const w=e,{title:H,label:x}=w;return b.jsx(he.MenuItem,{eventKey:w.id,disabled:r,className:Te({[We.menuItemActivated]:i}),onClick:()=>{t({commandId:w.commandId,value:v,id:w.id})},children:b.jsx("span",{className:We.menuItemContent,children:b.jsx(Ae,{value:a,title:H,label:x,icon:w.icon,onChange:u})})},w.id)},L=()=>{var H;const w=(H=h!=null?h:l.selections)!=null?H:[];return w.length>0?b.jsx(he.SubMenu,{eventKey:l.id,popupOffset:[18,0],title:b.jsxs("span",{className:We.menuItemContent,children:[b.jsx(Ae,{title:l.title,value:v,onChange:u,icon:l.icon,label:l.label}),l.shortcut&&` (${l.shortcut})`]}),expandIcon:b.jsx(jt,{className:We.menuItemMoreIcon}),children:w.length>0&&b.jsx(b6,{parentKey:l.id,menuType:l.id,options:w,onOptionSelect:x=>{t({value:x.value,id:l.id,commandId:x.commandId})}})},l.id):b.jsx(he.MenuItem,{eventKey:l.id,children:b.jsxs("span",{className:We.menuItemContent,children:[b.jsx(Ae,{title:l.title,value:v,icon:l.icon,label:l.label,onChange:u}),l.shortcut&&` (${l.shortcut})`]})},l.id)},M=e.id?n.getMenuByPositionKey(e.id):[],E=()=>{const w=e;return b.jsx(he.SubMenu,{eventKey:w.id,popupOffset:[18,0],title:b.jsx("span",{className:We.menuItemContent,children:b.jsx(Ae,{title:w.title,icon:w.icon,label:w.label,onChange:u})}),expandIcon:b.jsx(jt,{className:We.menuItemMoreIcon}),children:M.length&&b.jsx(g6,{menuType:w.id,parentKey:w.id,onOptionSelect:t})},w.id)};return b.jsxs(b.Fragment,{children:[e.type===De.SELECTOR&&L(),e.type===De.SUBITEMS&&E(),e.type===De.BUTTON&&C()]})}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 a4(e){const{barColor:t,progress:n,onTerminate:r,onClearProgress:i}=e,{count:o,done:a,label:l=""}=n,h=d.useDependency(d.ThemeService),v=t!=null?t:h.getCurrentTheme().primaryColor,m=s.useRef(null),[u,C]=s.useState(o>0);return s.useEffect(()=>{if(!m.current)return;const L=m.current;o===0&&a===0?(C(!1),L.style.width="0%"):o>0&&(C(!0),a===o?requestAnimationFrame(()=>{L.style.width=`${Math.floor(a/o*100)}%`}):L.style.width=`${Math.floor(a/o*100)}%`);const M=()=>{a===o&&(C(!1),i&&i())};return L.addEventListener("transitionend",M),()=>{L.removeEventListener("transitionend",M)}},[o,a]),b.jsxs("div",{className:V1.progressBarContainer,style:{display:u?"flex":"none"},children:[b.jsx(he.Tooltip,{showIfEllipsis:!0,title:l,children:b.jsx("span",{className:V1.progressBarLabel,children:l})}),b.jsx("div",{className:V1.progressBar,children:b.jsx("div",{ref:m,className:V1.progressBarInner,style:{backgroundColor:v}})}),b.jsxs("div",{className:V1.progressBarCloseButton,onClick:r,children:[" ",b.jsx(G1,{})]})]})}const s4="UNI_DISABLE_CHANGING_FOCUS",S6="ui.config",l4={},y1=d.createIdentifier("ui.message.service");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},L6=(e,t)=>(n,r)=>t(n,r,e);g.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:he.MessageType.Error})}))}},g.ErrorController=f4([L6(0,d.Inject(d.ErrorService)),L6(1,y1)],g.ErrorController);class ut extends d.Disposable{constructor(){super(...arguments);ee(this,"_open$",new re.BehaviorSubject(!1));ee(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 d4=d.createIdentifier("ui.left-sidebar.service"),S1=d.createIdentifier("ui.sidebar.service"),_6="ShortcutPanel",A1={id:"base-ui.operation.toggle-shortcut-panel",type:d.CommandType.OPERATION,handler:e=>{const t=e.get(ut),n=e.get(S1);return t.isOpen?(t.close(),n.close()):(t.open(),n.open({header:{title:"shortcut-panel.title"},children:{label:_6}})),!0}};function h4(e){return{id:A1.id,title:"toggle-shortcut-panel",tooltip:"toggle-shortcut-panel",icon:"KeyboardSingle",type:De.BUTTON,hidden$:Yr(e,d.UniverInstanceType.UNIVER_SHEET)}}function v4(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(Gn.map(n=>n.undos<=0))}}function m4(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(Gn.map(n=>n.redos<=0))}}const Qt={[Ze.HISTORY]:{[d.UndoCommand.id]:{order:0,menuItemFactory:v4},[d.RedoCommand.id]:{order:1,menuItemFactory:m4}},[Ze.OTHERS]:{[A1.id]:{order:99,menuItemFactory:h4}}},w6="univer.command.copy",Jt={id:w6,name:w6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},M6="univer.command.cut",Kt={id:M6,name:M6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},E6="univer.command.paste",en={id:E6,name:E6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0};var l1=(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))(l1||{});const p4={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 Ie=(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))(Ie||{});function C4(e,t,n){return window.addEventListener(e,t,n),d.toDisposable(()=>window.removeEventListener(e,t,n))}const ft=d.createIdentifier("ui.platform.service");class tn{get isMac(){return/Mac/.test(navigator.appVersion)}get isWindows(){return/Windows/.test(navigator.appVersion)}get isLinux(){return/Linux/.test(navigator.appVersion)}}var g4=Object.defineProperty,b4=Object.getOwnPropertyDescriptor,y4=(e,t,n,r)=>{for(var i=r>1?void 0:r?b4(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&&g4(t,n,i),i},dt=(e,t)=>(n,r)=>t(n,r,e);const L1=d.createIdentifier("ui.shortcut.service");g.ShortcutService=class extends d.Disposable{constructor(n,r,i,o){super();ee(this,"_shortCutMapping",new Map);ee(this,"_commandIDMapping",new Map);ee(this,"_shortcutChanged$",new re.Subject);ee(this,"shortcutChanged$",this._shortcutChanged$.asObservable());ee(this,"_forceEscaped",!1);this._commandService=n,this._platformService=r,this._contextService=i,this._layoutService=o,this.disposeWithMe(C4("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(),d.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&Ie.CTRL_COMMAND,o=r&Ie.SHIFT,a=r&Ie.ALT,l=r&Ie.MAC_CTRL,h=(v=p4[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,d.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|=Ie.SHIFT),o&&(l|=Ie.ALT),(this._platformService.isMac?i:n.ctrlKey)&&(l|=Ie.CTRL_COMMAND),this._platformService.isMac&&n.ctrlKey&&(l|=Ie.MAC_CTRL),l}},g.ShortcutService=y4([dt(0,d.ICommandService),dt(1,ft),dt(2,d.IContextService),dt(3,d.Optional(i1))],g.ShortcutService);var S4=Object.defineProperty,L4=Object.getOwnPropertyDescriptor,_4=(e,t,n,r)=>{for(var i=r>1?void 0:r?L4(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&&S4(t,n,i),i},H6=(e,t)=>(n,r)=>t(n,r,e);function ht(e){return e.getContextValue(d.FOCUSING_UNIVER_EDITOR)}const O6={id:Jt.id,description:"shortcut.copy",group:"1_common-edit",binding:l1.C|Ie.CTRL_COMMAND,preconditions:ht},I6={id:Kt.id,description:"shortcut.cut",group:"1_common-edit",binding:l1.X|Ie.CTRL_COMMAND,preconditions:ht},w4={id:en.id,description:"shortcut.paste",group:"1_common-edit",binding:l1.V|Ie.CTRL_COMMAND,preconditions:()=>!1},T6={id:d.UndoCommand.id,description:"shortcut.undo",group:"1_common-edit",binding:l1.Z|Ie.CTRL_COMMAND,preconditions:ht},D6={id:d.RedoCommand.id,description:"shortcut.redo",group:"1_common-edit",binding:l1.Y|Ie.CTRL_COMMAND,preconditions:ht};g.SharedController=class extends d.Disposable{constructor(t,n){super(),this._shortcutService=t,this._commandService=n,this.initialize()}initialize(){this._registerCommands(),this._registerShortcuts()}_registerCommands(){[Kt,Jt,en].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_registerShortcuts(){const t=[T6,D6];t.push(I6,O6,w4),t.forEach(n=>this.disposeWithMe(this._shortcutService.registerShortcut(n)))}},g.SharedController=_4([H6(0,L1),H6(1,d.ICommandService)],g.SharedController);const _1={shortcutPanelGroupTitle:"univer-shortcut-panel-group-title",shortcutPanelItem:"univer-shortcut-panel-item",shortcutPanelItemTitle:"univer-shortcut-panel-item-title",shortcutPanelItemShortcut:"univer-shortcut-panel-item-shortcut"};function M4(){const e=d.useDependency(L1),t=d.useDependency(d.LocaleService),n=Oe(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,C={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(C)}const h=Array.from(a.entries()).map(([m,u])=>{const C=m.split("_")[0],L=m.slice(C.length+1);return{sequence:+C,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]),b.jsx("div",{className:_1.shortcutPanel,children:r.map(a=>b.jsxs("div",{className:_1.shortcutPanelGroup,children:[b.jsx("div",{className:_1.shortcutPanelGroupTitle,children:a.name}),a.items.map((l,h)=>b.jsxs("div",{className:_1.shortcutPanelItem,children:[b.jsx("span",{className:_1.shortcutPanelItemTitle,children:l.title}),b.jsx("span",{className:_1.shortcutPanelItemShortcut,children:l.shortcut})]},`${l.title}-${l.shortcut}`))]},a.name))})}var E4=Object.defineProperty,H4=Object.getOwnPropertyDescriptor,O4=(e,t,n,r)=>{for(var i=r>1?void 0:r?H4(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&&E4(t,n,i),i},P1=(e,t)=>(n,r)=>t(n,r,e);const I4={id:A1.id,binding:Ie.CTRL_COMMAND|l1.BACK_SLASH,description:"shortcut.shortcut-panel",group:"10_global-shortcut"};g.ShortcutPanelController=class extends d.Disposable{constructor(t,n,r,i,o){super(),this._menuManagerService=i,this.disposeWithMe(n.register(_6,M4)),this.disposeWithMe(o.registerCommand(A1)),this.disposeWithMe(r.registerShortcut(I4))}},g.ShortcutPanelController=O4([P1(0,d.Inject(d.Injector)),P1(1,d.Inject($e)),P1(2,L1),P1(3,Qe),P1(4,d.ICommandService)],g.ShortcutPanelController);const R1=d.createIdentifier("univer.ui.ui-controller");var j1={},x6={exports:{}},N6={exports:{}};(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})(N6);var k1=N6.exports;(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})(x6);var T4=x6.exports,V6={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(V6);var D4=V6.exports,A6={exports:{}};(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(U,V,A){U[V]=A.value},h=typeof Symbol=="function"?Symbol:{},v=h.iterator||"@@iterator",m=h.asyncIterator||"@@asyncIterator",u=h.toStringTag||"@@toStringTag";function C(U,V,A){return Object.defineProperty(U,V,{value:A,enumerable:!0,configurable:!0,writable:!0}),U[V]}try{C({},"")}catch{C=function(A,G,X){return A[G]=X}}function L(U,V,A,G){var X=V&&V.prototype instanceof k?V:k,Z=Object.create(X.prototype),J=new fe(G||[]);return l(Z,"_invoke",{value:ne(U,A,J)}),Z}function M(U,V,A){try{return{type:"normal",arg:U.call(V,A)}}catch(G){return{type:"throw",arg:G}}}i.wrap=L;var E="suspendedStart",w="suspendedYield",H="executing",x="completed",T={};function k(){}function O(){}function I(){}var P={};C(P,v,function(){return this});var R=Object.getPrototypeOf,z=R&&R(R(be([])));z&&z!==o&&a.call(z,v)&&(P=z);var W=I.prototype=k.prototype=Object.create(P);function q(U){["next","throw","return"].forEach(function(V){C(U,V,function(A){return this._invoke(V,A)})})}function K(U,V){function A(X,Z,J,se){var Ce=M(U[X],U,Z);if(Ce.type!=="throw"){var Ne=Ce.arg,we=Ne.value;return we&&t(we)=="object"&&a.call(we,"__await")?V.resolve(we.__await).then(function(Me){A("next",Me,J,se)},function(Me){A("throw",Me,J,se)}):V.resolve(we).then(function(Me){Ne.value=Me,J(Ne)},function(Me){return A("throw",Me,J,se)})}se(Ce.arg)}var G;l(this,"_invoke",{value:function(Z,J){function se(){return new V(function(Ce,Ne){A(Z,J,Ce,Ne)})}return G=G?G.then(se,se):se()}})}function ne(U,V,A){var G=E;return function(X,Z){if(G===H)throw Error("Generator is already running");if(G===x){if(X==="throw")throw Z;return{value:r,done:!0}}for(A.method=X,A.arg=Z;;){var J=A.delegate;if(J){var se=oe(J,A);if(se){if(se===T)continue;return se}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(G===E)throw G=x,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);G=H;var Ce=M(U,V,A);if(Ce.type==="normal"){if(G=A.done?x:w,Ce.arg===T)continue;return{value:Ce.arg,done:A.done}}Ce.type==="throw"&&(G=x,A.method="throw",A.arg=Ce.arg)}}}function oe(U,V){var A=V.method,G=U.iterator[A];if(G===r)return V.delegate=null,A==="throw"&&U.iterator.return&&(V.method="return",V.arg=r,oe(U,V),V.method==="throw")||A!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+A+"' method")),T;var X=M(G,U.iterator,V.arg);if(X.type==="throw")return V.method="throw",V.arg=X.arg,V.delegate=null,T;var Z=X.arg;return Z?Z.done?(V[U.resultName]=Z.value,V.next=U.nextLoc,V.method!=="return"&&(V.method="next",V.arg=r),V.delegate=null,T):Z:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,T)}function ve(U){var V={tryLoc:U[0]};1 in U&&(V.catchLoc=U[1]),2 in U&&(V.finallyLoc=U[2],V.afterLoc=U[3]),this.tryEntries.push(V)}function ie(U){var V=U.completion||{};V.type="normal",delete V.arg,U.completion=V}function fe(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(ve,this),this.reset(!0)}function be(U){if(U||U===""){var V=U[v];if(V)return V.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var A=-1,G=function X(){for(;++A<U.length;)if(a.call(U,A))return X.value=U[A],X.done=!1,X;return X.value=r,X.done=!0,X};return G.next=G}}throw new TypeError(t(U)+" is not iterable")}return O.prototype=I,l(W,"constructor",{value:I,configurable:!0}),l(I,"constructor",{value:O,configurable:!0}),O.displayName=C(I,u,"GeneratorFunction"),i.isGeneratorFunction=function(U){var V=typeof U=="function"&&U.constructor;return!!V&&(V===O||(V.displayName||V.name)==="GeneratorFunction")},i.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,I):(U.__proto__=I,C(U,u,"GeneratorFunction")),U.prototype=Object.create(W),U},i.awrap=function(U){return{__await:U}},q(K.prototype),C(K.prototype,m,function(){return this}),i.AsyncIterator=K,i.async=function(U,V,A,G,X){X===void 0&&(X=Promise);var Z=new K(L(U,V,A,G),X);return i.isGeneratorFunction(V)?Z:Z.next().then(function(J){return J.done?J.value:Z.next()})},q(W),C(W,u,"Generator"),C(W,v,function(){return this}),C(W,"toString",function(){return"[object Generator]"}),i.keys=function(U){var V=Object(U),A=[];for(var G in V)A.push(G);return A.reverse(),function X(){for(;A.length;){var Z=A.pop();if(Z in V)return X.value=Z,X.done=!1,X}return X.done=!0,X}},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 A in this)A.charAt(0)==="t"&&a.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=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 A=this;function G(Ne,we){return J.type="throw",J.arg=V,A.next=Ne,we&&(A.method="next",A.arg=r),!!we}for(var X=this.tryEntries.length-1;X>=0;--X){var Z=this.tryEntries[X],J=Z.completion;if(Z.tryLoc==="root")return G("end");if(Z.tryLoc<=this.prev){var se=a.call(Z,"catchLoc"),Ce=a.call(Z,"finallyLoc");if(se&&Ce){if(this.prev<Z.catchLoc)return G(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return G(Z.finallyLoc)}else if(se){if(this.prev<Z.catchLoc)return G(Z.catchLoc,!0)}else{if(!Ce)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return G(Z.finallyLoc)}}}},abrupt:function(V,A){for(var G=this.tryEntries.length-1;G>=0;--G){var X=this.tryEntries[G];if(X.tryLoc<=this.prev&&a.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var Z=X;break}}Z&&(V==="break"||V==="continue")&&Z.tryLoc<=A&&A<=Z.finallyLoc&&(Z=null);var J=Z?Z.completion:{};return J.type=V,J.arg=A,Z?(this.method="next",this.next=Z.finallyLoc,T):this.complete(J)},complete:function(V,A){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"&&A&&(this.next=A),T},finish:function(V){for(var A=this.tryEntries.length-1;A>=0;--A){var G=this.tryEntries[A];if(G.finallyLoc===V)return this.complete(G.completion,G.afterLoc),ie(G),T}},catch:function(V){for(var A=this.tryEntries.length-1;A>=0;--A){var G=this.tryEntries[A];if(G.tryLoc===V){var X=G.completion;if(X.type==="throw"){var Z=X.arg;ie(G)}return Z}}throw Error("illegal catch attempt")},delegateYield:function(V,A,G){return this.delegate={iterator:be(V),resultName:A,nextLoc:G},this.method==="next"&&(this.arg=r),T}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(A6);var x4=A6.exports,P6={exports:{}};(function(e){function t(r,i,o,a,l,h,v){try{var m=r[h](v),u=m.value}catch(C){return void o(C)}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})(P6);var N4=P6.exports,R6={exports:{}},j6={exports:{}},k6={exports:{}},$6={exports:{}};(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})($6);var V4=$6.exports;(function(e){var t=k1.default,n=V4;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})(k6);var A4=k6.exports;(function(e){var t=A4;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})(j6);var P4=j6.exports;(function(e){var t=P4;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})(R6);var R4=R6.exports,j4=T4.default,vt=D4.default;Object.defineProperty(j1,"__esModule",{value:!0}),j1._r=Y4,j1._u=J4;var mt=j1.render=q4,B6=j1.unmount=K4,pt=vt(x4),U6=vt(N4),k4=vt(k1),$4=vt(R4),B4=j4(T1),$1=(0,$4.default)({},B4),U4=$1.version,F4=$1.render,z4=$1.unmountComponentAtNode,Ct;try{var Z4=Number((U4||"").split(".")[0]);Z4>=18&&(Ct=$1.createRoot)}catch{}function F6(e){var t=$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&(0,k4.default)(t)==="object"&&(t.usingClientEntryPoint=e)}var gt="__rc_react_root__";function W4(e,t){F6(!0);var n=t[gt]||Ct(t);F6(!1),n.render(e),t[gt]=n}function G4(e,t){F4(e,t)}function Y4(e,t){}function q4(e,t){if(Ct){W4(e,t);return}G4(e,t)}function X4(e){return nn.apply(this,arguments)}function nn(){return nn=(0,U6.default)((0,pt.default)().mark(function e(t){return(0,pt.default)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[gt])===null||i===void 0||i.unmount(),delete t[gt]}));case 1:case"end":return r.stop()}},e)})),nn.apply(this,arguments)}function Q4(e){z4(e)}function J4(e){}function K4(e){return rn.apply(this,arguments)}function rn(){return rn=(0,U6.default)((0,pt.default)().mark(function e(t){return(0,pt.default)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ct===void 0){r.next=2;break}return r.abrupt("return",X4(t));case 2:Q4(t);case 3:case"end":return r.stop()}},e)})),rn.apply(this,arguments)}var 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 Je=d.createIdentifier("ui.parts.service");class on extends d.Disposable{constructor(){super(...arguments);ee(this,"_componentsByPart",new Map);ee(this,"_componentRegistered$",new re.Subject);ee(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),d.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 bt{constructor(){ee(this,"_domLayerMap",new Map);ee(this,"_domLayers$",new re.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 z6={floatDomWrapper:"univer-float-dom-wrapper",floatDom:"univer-float-dom"},ea=s.memo(e=>{var E,w;const{layer:t,id:n}=e,r=d.useDependency($e),i=s.useMemo(()=>t.position$.pipe(re.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$]),o=Oe(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((E=o==null?void 0:o.startY)!=null?E:0),m=s.useRef((w=o==null?void 0:o.startX)!=null?w:0),u=s.useRef({}),C=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 H=t.position$.subscribe(T=>{h.current=`rotate(${T.rotate}deg)`,v.current=T.startY,m.current=T.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(T=>{if(a.current&&(a.current.style.width=`${Math.max(T.endX-T.startX-2,0)}px`,a.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,u.current=k}});return()=>{H.unsubscribe(),x.unsubscribe()}},[t.position$,i]);const M=s.useMemo(()=>C?b.jsx(C,{...L}):null,[C,L]);return o?b.jsx("div",{ref:a,className:z6.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:H=>{t.onPointerMove(H.nativeEvent)},onPointerDown:H=>{t.onPointerDown(H.nativeEvent)},onPointerUp:H=>{t.onPointerUp(H.nativeEvent)},onWheel:H=>{t.onWheel(H.nativeEvent)},children:b.jsx("div",{id:n,ref:l,className:z6.floatDom,style:{position:"absolute",...u.current},children:M})}):null}),an=({unitId:e})=>{var o,a;const t=d.useDependency(d.IUniverInstanceService),n=d.useDependency(bt),r=Oe(n.domLayers$),i=e||((o=t.getCurrentUnitForType(d.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=>b.jsx(ea,{id:l[0],layer:l[1]},l[0]))},yt=d.createIdentifier("ui.popup.service");class sn extends d.Disposable{constructor(){super(...arguments);ee(this,"_popupMap",new Map);ee(this,"_popups$",new re.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 ta=({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:C,left:L,right:M,top:E}=u,[w=0,H=0]=(x=e.offset)!=null?x:[];return{left:L-w,right:M+w,top:E-H,bottom:C+H}})),[e.anchorRect$,e.offset]),o=s.useMemo(()=>{var u,C;return(C=(u=e.hiddenRects$)==null?void 0:u.pipe(re.throttleTime(0,re.animationFrameScheduler)))!=null?C: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=e6(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(([C,L])=>{const M=h.getBoundingClientRect(),{top:E,left:w,bottom:H,right:x}=M,T=C.bottom-C.top,k=C.right-C.left,O=L.some(I=>C.top>=I.top-.5*T&&C.bottom<=I.bottom+.5*T&&C.left>=I.left-.5*k&&C.right<=I.right+.5*k);C.bottom<E||C.top>H||C.right<w||C.left>x||O?r(!0):r(!1)});return()=>u.unsubscribe()},[h,v,i,o]),n&&m==="destroy"?null:b.jsx(lt,{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 ln(){const e=d.useDependency(yt),t=d.useDependency($e);return Oe(e.popups$,void 0,!0).map(r=>{const[i,o]=r,a=t.get(o.componentKey);return b.jsx(ta,{popup:o,children:a?b.jsx(a,{popup:o}):null},i)})}function xe(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 Pe(e,t){var o;const n=(o=t==null?void 0:t.get(Je))!=null?o:d.useDependency(Je),r=s.useRef(0),i=Oe(()=>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=d.createIdentifier("ui.contextmenu.service");class cn 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 Z6(){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=d.useDependency(B1),v=d.useDependency(d.ICommandService),m=d.useInjector();l.current=t,s.useEffect(()=>{const L=h.registerContextMenuHandler({handleContextMenu:u,hideContextMenu(){n(!1)},get visible(){return l.current}});function M(E){e.current&&!e.current.contains(E.target)&&C()}return document.addEventListener("pointerdown",M),document.addEventListener("wheel",C),()=>{document.removeEventListener("pointerdown",M),document.removeEventListener("wheel",C),L.dispose()}},[h]);function u(L,M){n(!1),requestAnimationFrame(()=>{i(M),a([L.clientX,L.clientY]),n(!0)})}function C(){n(!1)}return b.jsx(he.Popup,{visible:t,offset:o,children:b.jsx("section",{ref:e,children:r&&b.jsx(ct,{menuType:r,onOptionSelect:L=>{const{label:M,commandId:E,value:w}=L;v&&v.executeCommand(E!=null?E:M,{value:w}),m.get(i1).focus(),n(!1)}})})})}const W6={toolbarBtn:"univer-toolbar-btn",toolbarBtnActive:"univer-toolbar-btn-active"};function un(e){const{children:t,className:n,style:r,disabled:i=!1,active:o=!1,onClick:a,onDoubleClick:l,...h}=e,v=C=>{if(i){C.preventDefault();return}a&&a(C)},m=C=>{if(i){C.preventDefault();return}l&&l(C)},u=Te(W6.toolbarBtn,{[`${W6.toolbarBtn}-active`]:o},n);return b.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 G6(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,C]=s.useState(!1);return s.useEffect(()=>{const L=[];return t&&L.push(t.subscribe(M=>h(M))),n&&L.push(n.subscribe(M=>C(M))),r&&L.push(r.subscribe(M=>m(M))),i&&L.push(i.subscribe(M=>a(M))),()=>L.forEach(M=>M.unsubscribe())},[r,t,n,i]),{disabled:l,value:o,activated:v,hidden:u}}const Y6=s.createContext({dropdownVisible:!1,setDropdownVisible:e=>{}}),q6=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 b.jsx(he.Tooltip,{ref:t,...r,visible:i,onVisibleChange:h,children:b.jsx("span",{children:b.jsx(Y6.Provider,{value:m,children:n})})})});function fn(e){const{children:t,...n}=e,{setDropdownVisible:r}=s.useContext(Y6);function i(o){r(o)}return b.jsx(he.Dropdown,{onVisibleChange:i,...n,children:b.jsx("div",{onClick:o=>o.stopPropagation(),children:t})})}const w1=s.forwardRef((e,t)=>{const{align:n}=e,r=d.useDependency(d.LocaleService),i=d.useDependency(d.ICommandService),o=d.useDependency(i1),a=d.useDependency($e),{value:l,hidden:h,disabled:v,activated:m}=G6(e),u=(K,ne)=>{o.focus(),i.executeCommand(K,ne)},{tooltip:C,shortcut:L,icon:M,title:E,label:w,id:H,commandId:x}=e,T=r.t(C!=null?C:"")+(L?` (${L})`:""),{selections:k}=e,O=s.useMemo(()=>re.isObservable(k)?k:new re.Observable(K=>{K.next(k)}),[k]),I=Oe(O),P=s.useMemo(()=>re.isObservable(M)?M:new re.Observable(K=>{var oe,ve;const ne=(ve=(oe=I==null?void 0:I.find(ie=>ie.value===l))==null?void 0:oe.icon)!=null?ve:M;K.next(ne)}),[M,I,l]),R=Oe(P,void 0,!0);function z(K){var U;const ne=e.selectionsCommandId,oe=x!=null?x:H,ve=(U=ne!=null?ne:x)!=null?U:H;function ie(V){if(v)return;let A=ve;V.id&&(A=V.id),u(A,{value:V.value})}function fe(V){v||u(ve,{value:V})}function be(){v||K===De.BUTTON_SELECTOR&&u(oe,{value:l})}return K===De.BUTTON_SELECTOR?b.jsxs("div",{className:Te(me.toolbarItemSelectButton,{[me.toolbarItemSelectButtonDisabled]:v,[me.toolbarItemSelectButtonActivated]:m}),"data-disabled":v,children:[b.jsx("div",{className:me.toolbarItemSelectButtonLabel,onClick:be,children:b.jsx(Ae,{icon:R,title:E,value:l,label:w,onChange:fe})}),b.jsx(fn,{disabled:v,align:n!=null?n:{targetOffset:[32,-12]},overlay:b.jsx(ct,{overViewport:"scroll",menuType:H,options:I,onOptionSelect:ie,value:l}),children:b.jsx("div",{className:Te(me.toolbarItemSelectButtonArrow,{[me.toolbarItemSelectButtonArrowDisabled]:v,[me.toolbarItemSelectButtonArrowActivated]:m}),"data-disabled":v,children:b.jsx(Y1,{style:{height:"100%"}})})})]}):b.jsx(fn,{disabled:v,overlay:b.jsx(ct,{overViewport:"scroll",menuType:H,options:I,onOptionSelect:ie,value:l}),children:b.jsxs("div",{className:Te(me.toolbarItemSelect,{[me.toolbarItemSelectDisabled]:v,[me.toolbarItemSelectActivated]:m}),children:[b.jsx(Ae,{icon:R,title:E,value:l,label:w,onChange:fe}),b.jsx("div",{className:Te(me.toolbarItemSelectArrow,{[me.toolbarItemSelectArrowDisabled]:v}),children:b.jsx(Y1,{})})]})})}function W(){var ne;const K=a.get(typeof w=="string"?w:(ne=w==null?void 0:w.name)!=null?ne:"");return b.jsx("span",{children:b.jsx(un,{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:K?b.jsx(Ae,{title:E,value:l,label:w}):b.jsx(Ae,{icon:M})})})}function q(){switch(e.type){case De.BUTTON_SELECTOR:case De.SELECTOR:case De.SUBITEMS:return z(e.type);case De.BUTTON:default:return W()}}return!h&&b.jsx(q6,{ref:t,title:T,placement:"bottom",children:q()})});function X6(e){const{headerMenuComponents:t}=e,n=d.useDependency(Qe),r=d.useDependency(d.LocaleService),i=s.useRef(null),o=s.useRef({}),[a,l]=s.useState([]),[h,v]=s.useState(o1.START),[m,u]=s.useState([]);s.useEffect(()=>{function E(){const H=n.getMenuByPositionKey(N1.RIBBON);l(H)}E();const w=n.menuChanged$.subscribe(E);return()=>{w.unsubscribe()}},[n]),s.useEffect(()=>{const E=new ResizeObserver(w=>{const x=w[0].target.clientWidth,T=Object.values(o.current),k=[];let O=90;for(const{el:I,key:P}of T)I&&(O+=I.clientWidth+8,O>x&&k.push(P));u(k)});return i.current&&E.observe(i.current),()=>{E.disconnect()}},[a]);const C=s.useMemo(()=>t&&t.size>0||a.length>1,[t,a]),L=s.useMemo(()=>{var x,T;const E=(T=(x=a.find(k=>k.key===h))==null?void 0:x.children)!=null?T:[],w=[],H=[];for(const k of E)if(k.children){const O=k.children.filter(I=>!m.includes(I.key));w.push({...k,children:O}),O.length<k.children.length&&H.push({...k,children:k.children.filter(I=>m.includes(I.key))})}return{allGroups:E,visibleGroups:w,hiddenGroups:H}},[a,h,m]),M=s.useMemo(()=>L.allGroups.map(E=>{var w;return b.jsx("div",{className:me.toolbarGroup,children:(w=E.children)==null?void 0:w.map(H=>H.item&&b.jsx(w1,{ref:x=>{o.current[H.key]={el:x==null?void 0:x.nativeElement,key:H.key}},...H.item},H.key))},E.key)}),[L.allGroups]);return b.jsxs(b.Fragment,{children:[C&&b.jsxs("header",{className:me.headerbar,children:[b.jsx("div",{className:me.menubar,children:a.length>1&&a.map(E=>b.jsx("a",{className:Te(me.menubarItem,{[me.menubarItemActive]:E.key===h}),onClick:()=>{v(E.key)},children:r.t(E.key)},E.key))}),b.jsx("div",{className:me.headerMenu,children:b.jsx(xe,{components:t})})]}),b.jsx("section",{role:"ribbon",className:me.toolbar,children:b.jsxs("div",{className:me.toolbarContainer,children:[L.visibleGroups.map(E=>{var w,H;return(((w=E.children)==null?void 0:w.length)||E.item)&&b.jsx("div",{className:me.toolbarGroup,children:E.children?(H=E.children)==null?void 0:H.map(x=>x.item&&b.jsx(w1,{...x.item},x.key)):E.item&&b.jsx(w1,{...E.item},E.key)},E.key)}),m.length>0&&b.jsx(q6,{title:r.t("ribbon.more"),placement:"bottom",children:b.jsx(fn,{forceRender:!0,overlay:b.jsx("div",{className:me.toolbarMoreContainer,children:L.hiddenGroups.map(E=>{var w;return b.jsx("div",{className:me.toolbarGroup,children:E.children?(w=E.children)==null?void 0:w.map(H=>H.item&&b.jsx(w1,{...H.item},H.key)):E.item&&b.jsx(w1,{...E.item},E.key)},E.key)})}),children:b.jsx(un,{className:me.toolbarItemTextButton,children:b.jsx(ur,{})})})})]})}),b.jsx("div",{ref:i,className:me.toolbarContainer,style:{position:"absolute",top:-9999,left:-9999,opacity:0},children:M})]})}const m1={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 dn(){const e=d.useDependency(S1),t=Oe(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]=b.jsx(Ae,{...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=Te(m1.sidebar,{[m1.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 b.jsx("section",{className:i,style:{width:o},children:b.jsxs("section",{className:m1.sidebarContainer,ref:n,children:[b.jsxs("header",{className:m1.sidebarHeader,children:[r==null?void 0:r.header,b.jsx("a",{className:m1.sidebarHeaderClose,onClick:a,children:b.jsx(G1,{})})]}),b.jsx("section",{className:m1.sidebarBody,style:r==null?void 0:r.bodyStyle,children:r==null?void 0:r.children}),(r==null?void 0:r.footer)&&b.jsx("footer",{className:m1.sidebarFooter,children:r.footer})]})})}const St=d.createIdentifier("univer.zen-zone-service"),hn={zenZone:"univer-zen-zone",zenZoneOpen:"univer-zen-zone-open",zenZoneClose:"univer-zen-zone-close"};function vn(){const e=d.useDependency(St),[t,n]=s.useState(!1),[r,i]=s.useState(),o=d.useObservable(e.temporaryHidden$),a=d.useDependency($e);s.useEffect(()=>{const v=[e.visible$.subscribe(m=>{n(m)}),e.componentKey$.subscribe(m=>{i(m)})];return()=>{v.forEach(m=>{m.unsubscribe()})}},[]);const l=Te(hn.zenZone,t?hn.zenZoneOpen:hn.zenZoneClose),h=s.useMemo(()=>{const v=a.get(r!=null?r:"");if(v)return v},[r]);return b.jsx("section",{style:o?{opacity:0,zIndex:-1}:void 0,className:l,children:h&&b.jsx(h,{})})}const Lt=d.createIdentifier("univer.global-zone-service"),Q6={globalZone:"univer-global-zone",globalZoneOpen:"univer-global-zone-open",globalZoneClose:"univer-global-zone-close"};function J6(){const e=d.useDependency(Lt),[t,n]=s.useState(!1),r=Oe(e.componentKey$,e.componentKey),i=d.useDependency($e),o=Te(Q6.globalZone,Q6.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?b.jsx("section",{className:o,children:a&&b.jsx(a,{})}):null}const mn=new Set([J6]),Ke={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 na(e){const{header:t=!0,toolbar:n=!0,footer:r=!0,contextMenu:i=!0,mountContainer:o,onRendered:a}=e,l=d.useDependency(d.LocaleService),h=d.useDependency(d.ThemeService),v=d.useDependency(y1),m=d.useDependency(d.IUniverInstanceService),u=s.useRef(null),C=Pe(ge.FOOTER),L=Pe(ge.HEADER),M=Pe(ge.HEADER_MENU),E=Pe(ge.CONTENT),w=Pe(ge.LEFT_SIDEBAR),H=Pe(ge.GLOBAL),[x,T]=s.useState(null);s.useEffect(()=>{const P=m.focused$.subscribe(R=>{if(R==null)return;const z=m.getUnitType(R),W=m.getUnit(R);z===d.UniverInstanceType.UNIVER_DOC&&W&&T(W.getSnapshot())});return()=>{P.unsubscribe()}},[]),s.useEffect(()=>{h.getCurrentTheme()||h.setTheme(he.defaultTheme)},[]),s.useEffect(()=>{u.current&&(a==null||a(u.current))},[a]);const[k,O]=s.useState(l.getLocales()),I=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(I),v.setContainer(I);const P=[l.localeChanged$.subscribe(()=>{O(l.getLocales())}),h.currentTheme$.subscribe(R=>{he.themeInstance.setTheme(o,R),I&&he.themeInstance.setTheme(I,R)})];return()=>{P.forEach(R=>R.unsubscribe()),document.body.removeChild(I)}},[l,v,o,I,h.currentTheme$]),b.jsxs(he.ConfigProvider,{locale:k==null?void 0:k.design,mountContainer:I,children:[b.jsxs("div",{className:Ke.workbenchLayout,tabIndex:-1,onBlur:P=>P.stopPropagation(),children:[t&&n&&b.jsx("header",{className:Ke.workbenchContainerHeader,children:b.jsx(X6,{headerMenuComponents:M})}),b.jsxs("section",{className:Ke.workbenchContainer,children:[b.jsxs("div",{className:Ke.workbenchContainerWrapper,children:[b.jsx("aside",{className:Ke.workbenchContainerLeftSidebar,children:b.jsx(xe,{components:w},"left-sidebar")}),b.jsxs("section",{className:Te(Ke.workbenchContainerContent,{[Ke.workbenchContainerDocContent]:(x==null?void 0:x.documentStyle.documentFlavor)===d.DocumentFlavor.TRADITIONAL}),children:[b.jsx("header",{children:t&&b.jsx(xe,{components:L},"header")}),b.jsx("section",{className:Ke.workbenchContainerCanvas,ref:u,"data-range-selector":!0,onContextMenu:P=>P.preventDefault(),children:b.jsx(xe,{components:E},"content")})]}),b.jsx("aside",{className:Ke.workbenchContainerSidebar,children:b.jsx(dn,{})})]}),r&&b.jsx("footer",{className:Ke.workbenchFooter,children:b.jsx(xe,{components:C,sharedProps:{contextMenu:i}},"footer")}),b.jsx(vn,{})]})]}),b.jsx(xe,{components:H},"global"),b.jsx(xe,{components:mn},"built-in-global"),i&&b.jsx(Z6,{}),b.jsx(ra,{})]})}function ra(){const{mountContainer:e}=s.useContext(he.ConfigContext),t=Pe(ge.FLOATING);return T1.createPortal(b.jsx(xe,{components:t},"floating"),e)}var ia=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,aa=(e,t,n,r)=>{for(var i=r>1?void 0:r?oa(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&&ia(t,n,i),i},p1=(e,t)=>(n,r)=>t(n,r,e);const sa=3e3;g.DesktopUIController=class extends d.Disposable{constructor(n,r,i,o,a,l,h,v){super();ee(this,"_steadyTimeout");ee(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(Qt)}_bootstrapWorkbench(){this.disposeWithMe(this._instanceSrv.unitDisposed$.subscribe(n=>{clearTimeout(this._steadyTimeout)})),this.disposeWithMe(la(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||d.isInternalEditorID(o.unitId))return;o.engine.setContainer(n)}}),this.disposeWithMe(this._lifecycleService.lifecycle$.pipe(re.filter(i=>i===d.LifecycleStages.Ready),re.take(1)).subscribe(()=>{this._renderTimeout=setTimeout(()=>{const i=this._renderManagerService.getRenderAll();for(const[o,a]of i)d.isInternalEditorID(o)||!a.isRenderUnit||a.engine.setContainer(n);this._lifecycleService.stage=d.LifecycleStages.Rendered,this._steadyTimeout=setTimeout(()=>{this._lifecycleService.stage=d.LifecycleStages.Steady},sa)},300)}))}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.FLOATING,()=>d.connectInjector(ln,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>d.connectInjector(an,this._injector)))}},g.DesktopUIController=aa([p1(1,I1.IRenderManagerService),p1(2,d.IUniverInstanceService),p1(3,d.Inject(d.Injector)),p1(4,d.Inject(d.LifecycleService)),p1(5,Je),p1(6,Qe),p1(7,d.Optional(i1))],g.DesktopUIController);function la(e,t,n){let r;const i=t.container;if(typeof i=="string"){const h=document.getElementById(i);h?r=h:r=K6(i)}else i instanceof HTMLElement?r=i:r=K6("univer");const o=d.connectInjector(na,e),a=h=>n(h,r);function l(){mt(b.jsx(o,{...t,mountContainer:r,onRendered:a}),r)}return l(),d.toDisposable(()=>{mt(b.jsx("div",{}),r),setTimeout(()=>mt(b.jsx("div",{}),r),200),setTimeout(()=>B6(r),500)})}function K6(e){const t=document.createElement("div");return t.id=e,t}const _t={mobileMenuContainer:"univer-mobile-menu-container",mobileMenuItem:"univer-mobile-menu-item"};function ca(e){const{menuType:t,onOptionSelect:n}=e,r=d.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 b.jsx("div",{className:_t.mobileMenuContainer,style:{gridTemplateColumns:`repeat(${Math.min(2,i.length)}, 48px)`},children:i.map(o=>o.item&&b.jsx(ua,{menuItem:o.item,onClick:a=>n==null?void 0:n({value:"",label:o.key,...a})},o.key))})}function ua(e){const{menuItem:t,onClick:n}=e,{id:r,type:i,title:o,label:a,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 h=d.useObservable(t.disabled$,!1),v=d.useObservable(t.activated$,!1),m=d.useObservable(t.hidden$,!1),u=d.useObservable(t.value$),C=Te(_t.mobileMenuItem,{[_t.mobileMenuItemActivated]:v,[_t.mobileMenuItemHidden]:m});return b.jsx("button",{type:"button",className:C,disabled:h,onClick:()=>n({id:r}),children:b.jsx(Ae,{value:u,title:o,label:a,icon:l})},r)}function e9(){const[e,t]=s.useState(!1),[n,r]=s.useState(""),[i,o]=s.useState([0,0]),a=s.useRef(e),l=d.useDependency(B1),h=d.useDependency(d.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,C){r(C),o([u.clientX,u.clientY]),t(!0)}function m(){t(!1)}return b.jsx(he.Popup,{visible:e,offset:i,children:b.jsx("section",{onPointerDown:u=>u.stopPropagation(),children:n&&b.jsx(ca,{menuType:n,onOptionSelect:u=>{const{label:C,value:L,commandId:M}=u;h&&h.executeCommand(M!=null?M:C,{value:L}),t(!1)}})})})}const e1={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 fa(e){const{header:t=!0,footer:n=!0,contextMenu:r=!0,mountContainer:i,onRendered:o}=e,a=d.useDependency(d.LocaleService),l=d.useDependency(d.ThemeService),h=d.useDependency(y1),v=s.useRef(null),m=Pe(ge.FOOTER),u=Pe(ge.HEADER);Pe(ge.HEADER_MENU);const C=Pe(ge.CONTENT),L=Pe(ge.LEFT_SIDEBAR),M=Pe(ge.GLOBAL);s.useEffect(()=>{l.getCurrentTheme()||l.setTheme(he.defaultTheme)},[]),s.useEffect(()=>{v.current&&(o==null||o(v.current))},[o]);const[E,w]=s.useState(a.getLocales()),H=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(H),h.setContainer(H);const x=[a.localeChanged$.subscribe(()=>{w(a.getLocales())}),l.currentTheme$.subscribe(T=>{he.themeInstance.setTheme(i,T),H&&he.themeInstance.setTheme(H,T)})];return()=>{x.forEach(T=>T.unsubscribe()),document.body.removeChild(H)}},[a,h,i,H,l.currentTheme$]),b.jsxs(he.ConfigProvider,{locale:E==null?void 0:E.design,mountContainer:H,children:[b.jsxs("div",{className:e1.appLayout,tabIndex:-1,onBlur:x=>x.stopPropagation(),children:[t&&b.jsx("header",{className:e1.appContainerHeader}),b.jsxs("section",{className:e1.appContainer,children:[b.jsxs("div",{className:e1.appContainerWrapper,children:[b.jsx("aside",{className:e1.appContainerLeftSidebar,children:b.jsx(xe,{components:L},"left-sidebar")}),b.jsxs("section",{className:e1.appContainerContent,children:[b.jsx("header",{className:e1.appHeader,children:t&&b.jsx(xe,{components:u},"header")}),b.jsx("section",{className:e1.appContainerCanvas,ref:v,"data-range-selector":!0,onContextMenu:x=>x.preventDefault(),children:b.jsx(xe,{components:C},"content")})]}),b.jsx("aside",{className:e1.appContainerSidebar,children:b.jsx(dn,{})})]}),n&&b.jsx("footer",{className:e1.appFooter,children:b.jsx(xe,{components:m},"footer")}),b.jsx(vn,{})]})]}),b.jsx(xe,{components:M},"global"),b.jsx(xe,{components:mn},"built-in-global"),r&&b.jsx(e9,{})]})}var da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,va=(e,t,n,r)=>{for(var i=r>1?void 0:r?ha(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&&da(t,n,i),i},C1=(e,t)=>(n,r)=>t(n,r,e);const ma=3e3;let pn=class extends d.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(Qt)}_bootstrapWorkbench(){this.disposeWithMe(pa(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,ma)},300)}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>d.connectInjector(ln,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>d.connectInjector(an,this._injector)))}};pn=va([C1(1,d.IUniverInstanceService),C1(2,I1.IRenderManagerService),C1(3,d.Inject(d.Injector)),C1(4,d.Inject(d.LifecycleService)),C1(5,Je),C1(6,Qe),C1(7,d.Optional(i1))],pn);function pa(e,t,n){let r;const i=t.container;if(typeof i=="string"){const h=document.getElementById(i);h?r=h:r=t9(i)}else i instanceof HTMLElement?r=i:r=t9("univer");const o=d.connectInjector(fa,e),a=h=>n(h,r);function l(){mt(b.jsx(o,{...t,mountContainer:r,onRendered:a}),r)}return l(),d.toDisposable(()=>{B6(r)})}function t9(e){const t=document.createElement("div");return t.id=e,t}const U1=d.createIdentifier("ui.notification.service");var Ca=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,ba=(e,t,n,r)=>{for(var i=r>1?void 0:r?ga(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&&Ca(t,n,i),i},ya=(e,t)=>(n,r)=>t(n,r,e);const Cn=d.createIdentifier("univer.ui.before-close-service");g.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(`
21
- `);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())})}},g.DesktopBeforeCloseService=ba([ya(0,U1)],g.DesktopBeforeCloseService);function Sa(){return typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText<"u"}var La=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,wa=(e,t,n,r)=>{for(var i=r>1?void 0:r?_a(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&&La(t,n,i),i},gn=(e,t)=>(n,r)=>t(n,r,e);const bn="text/plain",yn="text/html",Sn=d.createIdentifier("univer.clipboard-interface-service");g.BrowserClipboardService=class extends d.Disposable{constructor(t,n,r){super(),this._localeService=t,this._logService=n,this._notificationService=r}get supportClipboard(){return Sa()}async write(t,n){if(!this.supportClipboard)return this._legacyCopyHtml(n);try{return await navigator.clipboard.write([new ClipboardItem({[bn]:new Blob([t],{type:bn}),[yn]:new Blob([n],{type:yn})})])}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=Ea();document.body.appendChild(r),r.innerHTML=t;try{n9(r),document.execCommand("copy")}finally{n instanceof HTMLElement&&n.focus(),document.body.removeChild(r)}}_legacyCopyText(t){const n=document.activeElement,r=Ma();document.body.appendChild(r),r.value=t;try{n9(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")})}},g.BrowserClipboardService=wa([gn(0,d.Inject(d.LocaleService)),gn(1,d.ILogService),gn(2,d.Optional(U1))],g.BrowserClipboardService);function Ma(){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 Ea(){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 n9(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 wt=d.createIdentifier("univer.confirm-service");function Ha(){const e=d.useDependency(wt),[t,n]=s.useState([]);s.useEffect(()=>{const i=e.confirmOptions$.subscribe(o=>{n(o)});return()=>{i.unsubscribe()}},[]);const r=t.map(i=>{const{children:o,title:a,...l}=i,h=l;for(const v of["children","title"]){const m=v,u=i[m];u&&(h[m]=b.jsx(Ae,{...u}))}return h});return r==null?void 0:r.map((i,o)=>b.jsx(he.Confirm,{...i},o))}var Oa=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Ta=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ia(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&&Oa(t,n,i),i},r9=(e,t)=>(n,r)=>t(n,r,e);g.DesktopConfirmService=class extends d.Disposable{constructor(n,r){super();ee(this,"_confirmOptions",[]);ee(this,"confirmOptions$",new re.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(ge.GLOBAL,()=>d.connectInjector(Ha,this._injector)))}},g.DesktopConfirmService=Ta([r9(0,d.Inject(d.Injector)),r9(1,Je)],g.DesktopConfirmService);const Mt=d.createIdentifier("univer.ui.dialog-service");function Da(){const e=d.useDependency(Mt),[t,n]=s.useState([]);s.useEffect(()=>{const o=e.getDialogs$().subscribe(a=>{n(a)});return()=>o.unsubscribe()},[e]);const r=t.map(i=>{const{children:o,title:a,closeIcon:l,footer:h,...v}=i,m=v;for(const u of["children","title","closeIcon","footer"]){const C=u,L=i[C];L&&(m[C]=b.jsx(Ae,{...L}))}return m});return b.jsx(b.Fragment,{children:r==null?void 0:r.map(i=>b.jsx(he.Dialog,{...i},i.id))})}var xa=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Va=(e,t,n,r)=>{for(var i=r>1?void 0:r?Na(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&&xa(t,n,i),i},i9=(e,t)=>(n,r)=>t(n,r,e);g.DesktopDialogService=class extends d.Disposable{constructor(n,r){super();ee(this,"_dialogOptions",[]);ee(this,"_dialogOptions$",new re.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(ge.GLOBAL,()=>d.connectInjector(Da,this._injector)))}},g.DesktopDialogService=Va([i9(0,d.Inject(d.Injector)),i9(1,Je)],g.DesktopDialogService);var Aa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Ra=(e,t,n,r)=>{for(var i=r>1?void 0:r?Pa(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&&Aa(t,n,i),i},ja=(e,t)=>(n,r)=>t(n,r,e);g.DesktopGlobalZoneService=class{constructor(t){ee(this,"visible$",new re.Subject);ee(this,"componentKey$",new re.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)}},g.DesktopGlobalZoneService=Ra([ja(0,d.Inject($e))],g.DesktopGlobalZoneService);function Et(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 o9={exports:{}};/*!
19
+ */var zt=Symbol.for("react.element"),Zt=Symbol.for("react.portal"),X1=Symbol.for("react.fragment"),Q1=Symbol.for("react.strict_mode"),J1=Symbol.for("react.profiler"),K1=Symbol.for("react.provider"),et=Symbol.for("react.context"),P2=Symbol.for("react.server_context"),tt=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),rt=Symbol.for("react.suspense_list"),it=Symbol.for("react.memo"),ot=Symbol.for("react.lazy"),R2=Symbol.for("react.offscreen"),a6;a6=Symbol.for("react.module.reference");function Fe(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zt:switch(e=e.type,e){case X1:case J1:case Q1:case nt:case rt:return e;default:switch(e=e&&e.$$typeof,e){case P2:case et:case tt:case ot:case it:case K1:return e;default:return t}}case Zt:return t}}}ue.ContextConsumer=et,ue.ContextProvider=K1,ue.Element=zt,ue.ForwardRef=tt,ue.Fragment=X1,ue.Lazy=ot,ue.Memo=it,ue.Portal=Zt,ue.Profiler=J1,ue.StrictMode=Q1,ue.Suspense=nt,ue.SuspenseList=rt,ue.isAsyncMode=function(){return!1},ue.isConcurrentMode=function(){return!1},ue.isContextConsumer=function(e){return Fe(e)===et},ue.isContextProvider=function(e){return Fe(e)===K1},ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zt},ue.isForwardRef=function(e){return Fe(e)===tt},ue.isFragment=function(e){return Fe(e)===X1},ue.isLazy=function(e){return Fe(e)===ot},ue.isMemo=function(e){return Fe(e)===it},ue.isPortal=function(e){return Fe(e)===Zt},ue.isProfiler=function(e){return Fe(e)===J1},ue.isStrictMode=function(e){return Fe(e)===Q1},ue.isSuspense=function(e){return Fe(e)===nt},ue.isSuspenseList=function(e){return Fe(e)===rt},ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===X1||e===J1||e===Q1||e===nt||e===rt||e===R2||typeof e=="object"&&e!==null&&(e.$$typeof===ot||e.$$typeof===it||e.$$typeof===K1||e.$$typeof===et||e.$$typeof===tt||e.$$typeof===a6||e.getModuleId!==void 0)},ue.typeOf=Fe,o6.exports=ue;var at=o6.exports,k2=function(t,n){typeof t=="function"?t(n):Re(t)==="object"&&t&&"current"in t&&(t.current=n)},j2=function(t){var n,r,i=at.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==at.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==at.ForwardRef)};function s6(e){return s.isValidElement(e)&&!at.isFragment(e)}Number(s.version.split(".")[0])>=19;function $2(e,t){if(Re(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l6(e){var t=$2(e,"string");return Re(t)=="symbol"?t:t+""}function He(e,t,n){return(t=l6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c6(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 le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c6(Object(n),!0).forEach(function(r){He(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B2(e){if(Array.isArray(e))return Bt(e)}function F2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function U2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x1(e){return B2(e)||F2(e)||i6(e)||U2()}const z2={popupFixed:"univer-popup-fixed"},u6=s.createContext({current:void 0}),s1=8;function f6(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:S,top:w,right:E,bottom:M}=t,I=a.indexOf("top")>-1?{top:Math.max(w-r,s1)}:{top:Math.min(M,i-r-s1)};let x;if(a.includes("center")){const j=(E-S-n)/2;x={left:S+j}}else x=S+n>o?{left:Math.max(E-n,s1)}:{left:Math.min(S,o-n-s1)};return{...I,...x}}const{left:c,top:h,right:v,bottom:m}=t,u=a==="left"?{left:Math.max(c-n,s1)}:{left:Math.min(v,o-n-s1)};return{...h+r>i?{top:Math.max(m-r,s1)}:{top:Math.min(h,i-r-s1)},...u}}function st(e){const{children:t,anchorRect$:n,direction:r="vertical",onClickOutside:i,excludeOutside:o,excludeRects:a,onPointerEnter:c,onPointerLeave:h,onClick:v,hidden:m,onContextMenu:u}=e,g=s.useRef(null),S=D1(i!=null?i:()=>{}),w=D1(u!=null?u:()=>{}),E=s.useRef({top:-9999,left:-9999}),M=a,I=s.useRef();return s.useEffect(()=>{const x=n.subscribe(T=>{I.current=T,requestAnimationFrame(()=>{if(!g.current)return;const{clientWidth:j,clientHeight:H}=g.current,O=window.innerWidth,P=window.innerHeight;E.current=f6({position:T,width:j,height:H,containerWidth:O,containerHeight:P,direction:r}),g.current.style.top=`${E.current.top}px`,g.current.style.left=`${E.current.left}px`})});return()=>x.unsubscribe()},[n,r]),s.useEffect(()=>{const x=T=>{var P;if(o&&(o.indexOf(T.target)>-1||o.some(k=>k.contains(T.target))))return;const j=T.clientX,H=T.clientY,O=[...(P=M==null?void 0:M.current)!=null?P:[]];I.current&&O.push(I.current);for(const k of O)if(j<=k.right&&j>=k.left&&H<=k.bottom&&H>=k.top)return;S(T)};return window.addEventListener("pointerdown",x),()=>{window.removeEventListener("pointerdown",x)}},[S,o,M]),s.useEffect(()=>{const x=T=>{T.ctrlKey&&T.button===0||w()};return window.addEventListener("contextmenu",x),()=>{window.removeEventListener("contextmenu",x)}},[w]),b.jsx("section",{onPointerEnter:c,onPointerLeave:h,ref:g,style:{...E.current,...m?{display:"none"}:null},className:z2.popupFixed,onPointerDown:x=>x.stopPropagation(),onClick:v,children:b.jsx(u6.Provider,{value:I,children:t})})}st.calcPopupPosition=f6,st.useContext=()=>s.useContext(u6);const d6=e=>typeof e=="number";function Z2(e){const t=s.useRef(e);return t.current=e,t}const W2=(e,t)=>{const{containerTarget:n,itemHeight:r,overscan:i=5}=t,o=Z2(r),[a,c]=s.useState(null),h=s.useRef(!1),[v,m]=s.useState([]),[u,g]=s.useState({height:void 0,marginTop:void 0}),S=(T,j)=>{if(typeof o.current=="number")return Math.ceil(T/o.current);let H=0,O=0;for(let P=j;P<e.length;P++){const k=o.current(P,e[P]);if(H+=k,O=P,H>=T)break}return O-j},w=T=>{if(d6(o.current))return Math.floor(T/o.current);let j=0,H=0;for(let O=0;O<e.length;O++){const P=o.current(O,e[O]);if(j+=P,j>=T){H=O;break}}return H+1},E=T=>typeof o.current=="number"?T*o.current:e.slice(0,T).reduce((H,O,P)=>H+o.current(P,e[P]),0),M=s.useMemo(()=>d6(o.current)?e.length*o.current:e.reduce((T,j,H)=>T+o.current(H,e[H]),0),[e]),I=()=>{const T=n.current;if(T){const{scrollTop:j,clientHeight:H}=T,O=w(j),P=S(H,O),k=Math.max(0,O-i),z=Math.min(e.length,O+P+i),W=E(k);g({height:`${M-W}px`,marginTop:`${W}px`}),m(e.slice(k,z).map((q,K)=>({data:q,index:K+k})))}};return s.useEffect(()=>{if(n.current){const T=()=>{const H=n.current.clientWidth,O=n.current.clientHeight;(H!==(a==null?void 0:a.width)||O!==(a==null?void 0:a.height))&&c({width:H,height:O})};T();const j=new ResizeObserver(T);return j.observe(n.current),()=>{j.disconnect()}}},[]),s.useEffect(()=>{!(a!=null&&a.width)||!(a!=null&&a.height)||I()},[a==null?void 0:a.width,a==null?void 0:a.height,e]),[v,{wrapperStyle:u,scrollTo:$t(T=>{const j=n.current;j&&(h.current=!0,j.scrollTop=E(T),I())}),containerProps:{onScroll:T=>{if(h.current){h.current=!1;return}T.preventDefault(),I()}}}]};function h6(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=h6(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=h6(e))&&(r&&(r+=" "),r+=t);return r}var G2=Object.defineProperty,Y2=Object.getOwnPropertyDescriptor,q2=(e,t,n,r)=>{for(var i=r>1?void 0:r?Y2(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&&G2(t,n,i),i},v6=(e,t)=>(n,r)=>t(n,r,e);const X2="FOCUSING_UNIVER",Q2=["univer-app-layout","univer-toolbar-btn","univer-menu-item","univer-button","univer-sheet-bar-btn","univer-render-canvas","univer-workbench-layout"],i1=d.createIdentifier("ui.layout-service");p.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(re.fromEvent(window,"focusin").subscribe(n=>{const r=n.target;if(Q2.some(i=>r.classList.contains(i))){queueMicrotask(()=>this.focus());return}r&&this.checkElementInCurrentContainers(r)?this._isFocused=!0:this._isFocused=!1,this._contextService.setContextValue(X2,this._isFocused),this._contextService.setContextValue(d.FOCUSING_UNIVER_EDITOR,m6())}))}_initEditorStatus(){this._contextService.setContextValue(d.FOCUSING_UNIVER_EDITOR,m6())}},p.DesktopLayoutService=q2([v6(0,d.IContextService),v6(1,d.IUniverInstanceService)],p.DesktopLayoutService);function m6(){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||{}),o1=(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))(o1||{}),We=(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))(We||{}),Wt=(e=>(e.OTHERS="ribbon.insert.others",e))(Wt||{}),Gt=(e=>(e.OTHERS="ribbon.formulas.others",e))(Gt||{}),Yt=(e=>(e.OTHERS="ribbon.data.others",e))(Yt||{}),qt=(e=>(e.OTHERS="ribbon.view.others",e))(qt||{}),Xt=(e=>(e.OTHERS="ribbon.others.others",e))(Xt||{}),h1=(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))(h1||{}),Me=(e=>(e.FORMAT="contextMenu.format",e.LAYOUT="contextMenu.layout",e.DATA="contextMenu.data",e.OTHERS="contextMenu.others",e))(Me||{}),J2=Object.defineProperty,K2=Object.getOwnPropertyDescriptor,e4=(e,t,n,r)=>{for(var i=r>1?void 0:r?K2(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&&J2(t,n,i),i},p6=(e,t)=>(n,r)=>t(n,r,e);const Qe=d.createIdentifier("univer.menu-manager-service");p.MenuManagerService=class extends d.Disposable{constructor(n,r){super();ee(this,"menuChanged$",new re.Subject);ee(this,"_menu",{[N1.RIBBON]:{[o1.START]:{order:0,[We.HISTORY]:{order:0},[We.FORMAT]:{order:1},[We.LAYOUT]:{order:2},[We.FORMULAS_INSERT]:{order:3},[We.FORMULAS_VIEW]:{order:4},[We.FILE]:{order:5},[We.OTHERS]:{order:6}},[o1.INSERT]:{order:1,[Wt.OTHERS]:{order:0}},[o1.FORMULAS]:{order:2,[Gt.OTHERS]:{order:0}},[o1.DATA]:{order:3,[Yt.OTHERS]:{order:0}},[o1.VIEW]:{order:4,[qt.OTHERS]:{order:0}},[o1.OTHERS]:{order:5,[Xt.OTHERS]:{order:0}}},[N1.CONTEXT_MENU]:{[h1.MAIN_AREA]:{order:0,[Me.FORMAT]:{order:0},[Me.LAYOUT]:{order:1},[Me.DATA]:{order:2},[Me.OTHERS]:{order:3}},[h1.COL_HEADER]:{order:1,[Me.FORMAT]:{order:0},[Me.LAYOUT]:{order:1},[Me.DATA]:{order:2},[Me.OTHERS]:{order:3}},[h1.ROW_HEADER]:{order:2,[Me.FORMAT]:{order:0},[Me.LAYOUT]:{order:1},[Me.DATA]:{order:2},[Me.OTHERS]:{order:3}},[h1.FOOTER_TABS]:{order:3,[Me.FORMAT]:{order:0},[Me.LAYOUT]:{order:1},[Me.DATA]:{order:2},[Me.OTHERS]:{order:3}},[h1.FOOTER_MENU]:{order:4,[Me.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 c=o;d.Tools.deepMerge(i[c],n[c]),this.menuChanged$.next()}else this.mergeMenu(n,a)}appendRootMenu(n){d.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=Yr(h,v[m])}else a.item=h}}const c=this._buildMenuSchema(o);c.length>0&&(a.children=c.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)}},p.MenuManagerService=e4([p6(0,d.Inject(d.Injector)),p6(1,d.IConfigService)],p.MenuManagerService);const Ge={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),o=s.useMemo(()=>i.filter(a=>{var v;if(!a.children)return a;let c=!1;const h=(v=a.children)==null?void 0:v.map(m=>{var u,g;return(g=(u=m.item)==null?void 0:u.hidden$)!=null?g:new re.Observable(S=>(S.next(!1),S.unsubscribe()))});return re.combineLatest(h).subscribe(m=>{c=m.every(u=>u===!0),c||(c=!0)}).unsubscribe(),c}),[i]);return o&&o.map(a=>{var c;return a.item?b.jsx(b6,{menuItem:a.item,onClick:h=>{n==null||n({value:"",label:a.key,...h})}},a.key):(c=a.children)!=null&&c.length?b.jsx(he.MenuItemGroup,{eventKey:a.key,children:a.children.map(h=>h.item&&b.jsx(b6,{menuItem:h.item,onClick:v=>{n==null||n({value:"",label:h.key,...v})}},h.key))},a.key):null})}function g6(e){var o;const{options:t,value:n,onOptionSelect:r,parentKey:i}=e;return(o=t==null?void 0:t.map((a,c)=>{var g,S,w;const h=`${i}-${(g=a.label)!=null?g:a.id}-${c}`,v=E=>{r==null||r({value:E,label:a==null?void 0:a.label,commandId:a==null?void 0:a.commandId})},m=()=>{typeof a.value>"u"||r==null||r({...a})},u=Te({[Ge.menuItemNoHover]:typeof a.label!="string"&&!((S=a.label)!=null&&S.hoverable)});return b.jsx(he.MenuItem,{disabled:a.disabled,eventKey:h,className:u,onClick:m,children:b.jsxs("span",{className:Te(Ge.menuItemContent,{[Ge.menuItemSelectable]:!(typeof a.label!="string"&&!((w=a.label)!=null&&w.hoverable))}),children:[typeof n<"u"&&String(n)===String(a.value)&&b.jsx("span",{className:Ge.menuItemSelectableIcon,children:b.jsx(f3,{style:{color:"rgb(var(--success-color))"}})}),b.jsx(Ae,{value$:a.value$,value:a.value,label:a.label,icon:a.icon,onChange:v})]})},h)}))!=null?o:null}const lt=e=>{const{overViewport:t,...n}=e,[r,i]=s.useState(),o=d.useDependency(i1);return r6(t==="scroll"?r:null,o.rootContainerElement),b.jsxs(he.Menu,{ref:a=>(a==null?void 0:a.list)&&i(a.list),selectable:!1,children:[b.jsx(g6,{...n}),b.jsx(C6,{...n})]})};function b6({menuItem:e,onClick:t}){const n=d.useDependency(Qe),r=Oe(e.disabled$,!1),i=Oe(e.activated$,!1),o=Oe(e.hidden$,!1),a=Oe(e.value$),c=e,h=Oe(re.isObservable(c.selections)?c.selections:void 0),[v,m]=s.useState(a);if(o)return null;const u=M=>{const I=d.isRealNum(M)&&typeof M=="string"?Number.parseInt(M):M;m(I)},g=()=>{const M=e,{title:I,label:x}=M;return b.jsx(he.MenuItem,{eventKey:M.id,disabled:r,className:Te({[Ge.menuItemActivated]:i}),onClick:()=>{t({commandId:M.commandId,value:v,id:M.id})},children:b.jsx("span",{className:Ge.menuItemContent,children:b.jsx(Ae,{value:a,title:I,label:x,icon:M.icon,onChange:u})})},M.id)},S=()=>{var I;const M=(I=h!=null?h:c.selections)!=null?I:[];return M.length>0?b.jsx(he.SubMenu,{eventKey:c.id,popupOffset:[18,0],title:b.jsxs("span",{className:Ge.menuItemContent,children:[b.jsx(Ae,{title:c.title,value:v,onChange:u,icon:c.icon,label:c.label}),c.shortcut&&` (${c.shortcut})`]}),expandIcon:b.jsx(Rt,{className:Ge.menuItemMoreIcon}),children:M.length>0&&b.jsx(g6,{parentKey:c.id,menuType:c.id,options:M,onOptionSelect:x=>{t({value:x.value,id:c.id,commandId:x.commandId})}})},c.id):b.jsx(he.MenuItem,{eventKey:c.id,children:b.jsxs("span",{className:Ge.menuItemContent,children:[b.jsx(Ae,{title:c.title,value:v,icon:c.icon,label:c.label,onChange:u}),c.shortcut&&` (${c.shortcut})`]})},c.id)},w=e.id?n.getMenuByPositionKey(e.id):[],E=()=>{const M=e;return b.jsx(he.SubMenu,{eventKey:M.id,popupOffset:[18,0],title:b.jsx("span",{className:Ge.menuItemContent,children:b.jsx(Ae,{title:M.title,icon:M.icon,label:M.label,onChange:u})}),expandIcon:b.jsx(Rt,{className:Ge.menuItemMoreIcon}),children:w.length&&b.jsx(C6,{menuType:M.id,parentKey:M.id,onOptionSelect:t})},M.id)};return b.jsxs(b.Fragment,{children:[e.type===De.SELECTOR&&S(),e.type===De.SUBITEMS&&E(),e.type===De.BUTTON&&g()]})}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 t4(e){const{barColor:t,progress:n,onTerminate:r,onClearProgress:i}=e,{count:o,done:a,label:c=""}=n,h=d.useDependency(d.ThemeService),v=t!=null?t:h.getCurrentTheme().primaryColor,m=s.useRef(null),[u,g]=s.useState(o>0);return s.useEffect(()=>{if(!m.current)return;const S=m.current;o===0&&a===0?(g(!1),S.style.width="0%"):o>0&&(g(!0),a===o?requestAnimationFrame(()=>{S.style.width=`${Math.floor(a/o*100)}%`}):S.style.width=`${Math.floor(a/o*100)}%`);const w=()=>{a===o&&(g(!1),i&&i())};return S.addEventListener("transitionend",w),()=>{S.removeEventListener("transitionend",w)}},[o,a]),b.jsxs("div",{className:V1.progressBarContainer,style:{display:u?"flex":"none"},children:[b.jsx(he.Tooltip,{showIfEllipsis:!0,title:c,children:b.jsx("span",{className:V1.progressBarLabel,children:c})}),b.jsx("div",{className:V1.progressBar,children:b.jsx("div",{ref:m,className:V1.progressBarInner,style:{backgroundColor:v}})}),b.jsxs("div",{className:V1.progressBarCloseButton,onClick:r,children:[" ",b.jsx(W1,{})]})]})}const n4="UNI_DISABLE_CHANGING_FOCUS",y6="ui.config",r4={},b1=d.createIdentifier("ui.message.service");var i4=Object.defineProperty,o4=Object.getOwnPropertyDescriptor,a4=(e,t,n,r)=>{for(var i=r>1?void 0:r?o4(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&&i4(t,n,i),i},L6=(e,t)=>(n,r)=>t(n,r,e);p.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:he.MessageType.Error})}))}},p.ErrorController=a4([L6(0,d.Inject(d.ErrorService)),L6(1,b1)],p.ErrorController);class ct extends d.Disposable{constructor(){super(...arguments);ee(this,"_open$",new re.BehaviorSubject(!1));ee(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 s4=d.createIdentifier("ui.left-sidebar.service"),y1=d.createIdentifier("ui.sidebar.service"),S6="ShortcutPanel",A1={id:"base-ui.operation.toggle-shortcut-panel",type:d.CommandType.OPERATION,handler:e=>{const t=e.get(ct),n=e.get(y1);return t.isOpen?(t.close(),n.close()):(t.open(),n.open({header:{title:"shortcut-panel.title"},children:{label:S6}})),!0}};function l4(e){return{id:A1.id,title:"toggle-shortcut-panel",tooltip:"toggle-shortcut-panel",icon:"KeyboardSingle",type:De.BUTTON,hidden$:Gr(e,d.UniverInstanceType.UNIVER_SHEET)}}function c4(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(Wn.map(n=>n.undos<=0))}}function u4(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(Wn.map(n=>n.redos<=0))}}const Qt={[We.HISTORY]:{[d.UndoCommand.id]:{order:0,menuItemFactory:c4},[d.RedoCommand.id]:{order:1,menuItemFactory:u4}},[We.OTHERS]:{[A1.id]:{order:99,menuItemFactory:l4}}},_6="univer.command.copy",Jt={id:_6,name:_6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},M6="univer.command.cut",Kt={id:M6,name:M6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0},w6="univer.command.paste",en={id:w6,name:w6,multi:!0,priority:0,type:d.CommandType.COMMAND,preconditions:()=>!1,handler:async()=>!0};var l1=(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))(l1||{});const f4={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 Ie=(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))(Ie||{});function d4(e,t,n){return window.addEventListener(e,t,n),d.toDisposable(()=>window.removeEventListener(e,t,n))}const ut=d.createIdentifier("ui.platform.service");class tn{get isMac(){return/Mac/.test(navigator.appVersion)}get isWindows(){return/Windows/.test(navigator.appVersion)}get isLinux(){return/Linux/.test(navigator.appVersion)}}var h4=Object.defineProperty,v4=Object.getOwnPropertyDescriptor,m4=(e,t,n,r)=>{for(var i=r>1?void 0:r?v4(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&&h4(t,n,i),i},ft=(e,t)=>(n,r)=>t(n,r,e);const L1=d.createIdentifier("ui.shortcut.service");p.ShortcutService=class extends d.Disposable{constructor(n,r,i,o){super();ee(this,"_shortCutMapping",new Map);ee(this,"_commandIDMapping",new Map);ee(this,"_shortcutChanged$",new re.Subject);ee(this,"shortcutChanged$",this._shortcutChanged$.asObservable());ee(this,"_forceEscaped",!1);this._commandService=n,this._platformService=r,this._contextService=i,this._layoutService=o,this.disposeWithMe(d4("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(),d.toDisposable(()=>{var c,h,v,m;(c=this._shortCutMapping.get(r))==null||c.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&Ie.CTRL_COMMAND,o=r&Ie.SHIFT,a=r&Ie.ALT,c=r&Ie.MAC_CTRL,h=(v=f4[r&255])!=null?v:"<->";return this._platformService.isMac?`${i?"⌘":""}${o?"⇧":""}${a?"⌥":""}${c?"⌃":""}${h}`:`${i?"Ctrl+":""}${o?"Shift+":""}${a?"Alt+":""}${h}`}_emitShortcutChanged(){this._shortcutChanged$.next()}forceEscape(){return this._forceEscaped=!0,d.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,c)=>{var h,v;return((h=c.priority)!=null?h:0)-((v=a.priority)!=null?v:0)}).find(a=>{var c,h;return(h=(c=a.preconditions)==null?void 0:c.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 c=a;return r&&(c|=Ie.SHIFT),o&&(c|=Ie.ALT),(this._platformService.isMac?i:n.ctrlKey)&&(c|=Ie.CTRL_COMMAND),this._platformService.isMac&&n.ctrlKey&&(c|=Ie.MAC_CTRL),c}},p.ShortcutService=m4([ft(0,d.ICommandService),ft(1,ut),ft(2,d.IContextService),ft(3,d.Optional(i1))],p.ShortcutService);var p4=Object.defineProperty,C4=Object.getOwnPropertyDescriptor,g4=(e,t,n,r)=>{for(var i=r>1?void 0:r?C4(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&&p4(t,n,i),i},E6=(e,t)=>(n,r)=>t(n,r,e);function dt(e){return e.getContextValue(d.FOCUSING_UNIVER_EDITOR)}const H6={id:Jt.id,description:"shortcut.copy",group:"1_common-edit",binding:l1.C|Ie.CTRL_COMMAND,preconditions:dt},O6={id:Kt.id,description:"shortcut.cut",group:"1_common-edit",binding:l1.X|Ie.CTRL_COMMAND,preconditions:dt},b4={id:en.id,description:"shortcut.paste",group:"1_common-edit",binding:l1.V|Ie.CTRL_COMMAND,preconditions:()=>!1},I6={id:d.UndoCommand.id,description:"shortcut.undo",group:"1_common-edit",binding:l1.Z|Ie.CTRL_COMMAND,preconditions:dt},T6={id:d.RedoCommand.id,description:"shortcut.redo",group:"1_common-edit",binding:l1.Y|Ie.CTRL_COMMAND,preconditions:dt};p.SharedController=class extends d.Disposable{constructor(t,n){super(),this._shortcutService=t,this._commandService=n,this.initialize()}initialize(){this._registerCommands(),this._registerShortcuts()}_registerCommands(){[Kt,Jt,en].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_registerShortcuts(){const t=[I6,T6];t.push(O6,H6,b4),t.forEach(n=>this.disposeWithMe(this._shortcutService.registerShortcut(n)))}},p.SharedController=g4([E6(0,L1),E6(1,d.ICommandService)],p.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 y4(){const e=d.useDependency(L1),t=d.useDependency(d.LocaleService),n=Oe(t.currentLocale$),[r,i]=s.useState([]),o=s.useCallback(()=>{var v;const a=new Map,c=e.getAllShortcuts().filter(m=>!!m.group);for(const m of c){const u=m.group,g={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(g)}const h=Array.from(a.entries()).map(([m,u])=>{const g=m.split("_")[0],S=m.slice(g.length+1);return{sequence:+g,name:t.t(S),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]),b.jsx("div",{className:S1.shortcutPanel,children:r.map(a=>b.jsxs("div",{className:S1.shortcutPanelGroup,children:[b.jsx("div",{className:S1.shortcutPanelGroupTitle,children:a.name}),a.items.map((c,h)=>b.jsxs("div",{className:S1.shortcutPanelItem,children:[b.jsx("span",{className:S1.shortcutPanelItemTitle,children:c.title}),b.jsx("span",{className:S1.shortcutPanelItemShortcut,children:c.shortcut})]},`${c.title}-${c.shortcut}`))]},a.name))})}var L4=Object.defineProperty,S4=Object.getOwnPropertyDescriptor,_4=(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&&L4(t,n,i),i},P1=(e,t)=>(n,r)=>t(n,r,e);const M4={id:A1.id,binding:Ie.CTRL_COMMAND|l1.BACK_SLASH,description:"shortcut.shortcut-panel",group:"10_global-shortcut"};p.ShortcutPanelController=class extends d.Disposable{constructor(t,n,r,i,o){super(),this._menuManagerService=i,this.disposeWithMe(n.register(S6,y4)),this.disposeWithMe(o.registerCommand(A1)),this.disposeWithMe(r.registerShortcut(M4))}},p.ShortcutPanelController=_4([P1(0,d.Inject(d.Injector)),P1(1,d.Inject(Be)),P1(2,L1),P1(3,Qe),P1(4,d.ICommandService)],p.ShortcutPanelController);const R1=d.createIdentifier("univer.ui.ui-controller");var k1={},D6={exports:{}},x6={exports:{}};(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})(x6);var j1=x6.exports;(function(e){var t=j1.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 c={__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(c,v,m):c[v]=i[v]}return c.default=i,a&&a.set(i,c),c}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(D6);var w4=D6.exports,N6={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(N6);var E4=N6.exports,V6={exports:{}};(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={},o=Object.prototype,a=o.hasOwnProperty,c=Object.defineProperty||function(F,V,A){F[V]=A.value},h=typeof Symbol=="function"?Symbol:{},v=h.iterator||"@@iterator",m=h.asyncIterator||"@@asyncIterator",u=h.toStringTag||"@@toStringTag";function g(F,V,A){return Object.defineProperty(F,V,{value:A,enumerable:!0,configurable:!0,writable:!0}),F[V]}try{g({},"")}catch{g=function(A,G,X){return A[G]=X}}function S(F,V,A,G){var X=V&&V.prototype instanceof j?V:j,Z=Object.create(X.prototype),J=new fe(G||[]);return c(Z,"_invoke",{value:ne(F,A,J)}),Z}function w(F,V,A){try{return{type:"normal",arg:F.call(V,A)}}catch(G){return{type:"throw",arg:G}}}i.wrap=S;var E="suspendedStart",M="suspendedYield",I="executing",x="completed",T={};function j(){}function H(){}function O(){}var P={};g(P,v,function(){return this});var k=Object.getPrototypeOf,z=k&&k(k(be([])));z&&z!==o&&a.call(z,v)&&(P=z);var W=O.prototype=j.prototype=Object.create(P);function q(F){["next","throw","return"].forEach(function(V){g(F,V,function(A){return this._invoke(V,A)})})}function K(F,V){function A(X,Z,J,se){var Ce=w(F[X],F,Z);if(Ce.type!=="throw"){var Ne=Ce.arg,we=Ne.value;return we&&t(we)=="object"&&a.call(we,"__await")?V.resolve(we.__await).then(function(Ee){A("next",Ee,J,se)},function(Ee){A("throw",Ee,J,se)}):V.resolve(we).then(function(Ee){Ne.value=Ee,J(Ne)},function(Ee){return A("throw",Ee,J,se)})}se(Ce.arg)}var G;c(this,"_invoke",{value:function(Z,J){function se(){return new V(function(Ce,Ne){A(Z,J,Ce,Ne)})}return G=G?G.then(se,se):se()}})}function ne(F,V,A){var G=E;return function(X,Z){if(G===I)throw Error("Generator is already running");if(G===x){if(X==="throw")throw Z;return{value:r,done:!0}}for(A.method=X,A.arg=Z;;){var J=A.delegate;if(J){var se=oe(J,A);if(se){if(se===T)continue;return se}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(G===E)throw G=x,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);G=I;var Ce=w(F,V,A);if(Ce.type==="normal"){if(G=A.done?x:M,Ce.arg===T)continue;return{value:Ce.arg,done:A.done}}Ce.type==="throw"&&(G=x,A.method="throw",A.arg=Ce.arg)}}}function oe(F,V){var A=V.method,G=F.iterator[A];if(G===r)return V.delegate=null,A==="throw"&&F.iterator.return&&(V.method="return",V.arg=r,oe(F,V),V.method==="throw")||A!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+A+"' method")),T;var X=w(G,F.iterator,V.arg);if(X.type==="throw")return V.method="throw",V.arg=X.arg,V.delegate=null,T;var Z=X.arg;return Z?Z.done?(V[F.resultName]=Z.value,V.next=F.nextLoc,V.method!=="return"&&(V.method="next",V.arg=r),V.delegate=null,T):Z:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,T)}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 A=-1,G=function X(){for(;++A<F.length;)if(a.call(F,A))return X.value=F[A],X.done=!1,X;return X.value=r,X.done=!0,X};return G.next=G}}throw new TypeError(t(F)+" is not iterable")}return H.prototype=O,c(W,"constructor",{value:O,configurable:!0}),c(O,"constructor",{value:H,configurable:!0}),H.displayName=g(O,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,O):(F.__proto__=O,g(F,u,"GeneratorFunction")),F.prototype=Object.create(W),F},i.awrap=function(F){return{__await:F}},q(K.prototype),g(K.prototype,m,function(){return this}),i.AsyncIterator=K,i.async=function(F,V,A,G,X){X===void 0&&(X=Promise);var Z=new K(S(F,V,A,G),X);return i.isGeneratorFunction(V)?Z:Z.next().then(function(J){return J.done?J.value:Z.next()})},q(W),g(W,u,"Generator"),g(W,v,function(){return this}),g(W,"toString",function(){return"[object Generator]"}),i.keys=function(F){var V=Object(F),A=[];for(var G in V)A.push(G);return A.reverse(),function X(){for(;A.length;){var Z=A.pop();if(Z in V)return X.value=Z,X.done=!1,X}return X.done=!0,X}},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 A in this)A.charAt(0)==="t"&&a.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=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 A=this;function G(Ne,we){return J.type="throw",J.arg=V,A.next=Ne,we&&(A.method="next",A.arg=r),!!we}for(var X=this.tryEntries.length-1;X>=0;--X){var Z=this.tryEntries[X],J=Z.completion;if(Z.tryLoc==="root")return G("end");if(Z.tryLoc<=this.prev){var se=a.call(Z,"catchLoc"),Ce=a.call(Z,"finallyLoc");if(se&&Ce){if(this.prev<Z.catchLoc)return G(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return G(Z.finallyLoc)}else if(se){if(this.prev<Z.catchLoc)return G(Z.catchLoc,!0)}else{if(!Ce)throw Error("try statement without catch or finally");if(this.prev<Z.finallyLoc)return G(Z.finallyLoc)}}}},abrupt:function(V,A){for(var G=this.tryEntries.length-1;G>=0;--G){var X=this.tryEntries[G];if(X.tryLoc<=this.prev&&a.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var Z=X;break}}Z&&(V==="break"||V==="continue")&&Z.tryLoc<=A&&A<=Z.finallyLoc&&(Z=null);var J=Z?Z.completion:{};return J.type=V,J.arg=A,Z?(this.method="next",this.next=Z.finallyLoc,T):this.complete(J)},complete:function(V,A){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"&&A&&(this.next=A),T},finish:function(V){for(var A=this.tryEntries.length-1;A>=0;--A){var G=this.tryEntries[A];if(G.finallyLoc===V)return this.complete(G.completion,G.afterLoc),ie(G),T}},catch:function(V){for(var A=this.tryEntries.length-1;A>=0;--A){var G=this.tryEntries[A];if(G.tryLoc===V){var X=G.completion;if(X.type==="throw"){var Z=X.arg;ie(G)}return Z}}throw Error("illegal catch attempt")},delegateYield:function(V,A,G){return this.delegate={iterator:be(V),resultName:A,nextLoc:G},this.method==="next"&&(this.arg=r),T}},i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(V6);var H4=V6.exports,A6={exports:{}};(function(e){function t(r,i,o,a,c,h,v){try{var m=r[h](v),u=m.value}catch(g){return void o(g)}m.done?i(u):Promise.resolve(u).then(a,c)}function n(r){return function(){var i=this,o=arguments;return new Promise(function(a,c){var h=r.apply(i,o);function v(u){t(h,a,c,v,m,"next",u)}function m(u){t(h,a,c,v,m,"throw",u)}v(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(A6);var O4=A6.exports,P6={exports:{}},R6={exports:{}},k6={exports:{}},j6={exports:{}};(function(e){var t=j1.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})(j6);var I4=j6.exports;(function(e){var t=j1.default,n=I4;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})(k6);var T4=k6.exports;(function(e){var t=T4;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})(R6);var D4=R6.exports;(function(e){var t=D4;function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);o&&(c=c.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),a.push.apply(a,c)}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(c){t(i,c,a[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(a,c))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(P6);var x4=P6.exports,N4=w4.default,ht=E4.default;Object.defineProperty(k1,"__esModule",{value:!0}),k1._r=U4,k1._u=G4;var vt=k1.render=z4,$6=k1.unmount=Y4,mt=ht(H4),B6=ht(O4),V4=ht(j1),A4=ht(x4),P4=N4(I1),$1=(0,A4.default)({},P4),R4=$1.version,k4=$1.render,j4=$1.unmountComponentAtNode,pt;try{var $4=Number((R4||"").split(".")[0]);$4>=18&&(pt=$1.createRoot)}catch{}function F6(e){var t=$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&(0,V4.default)(t)==="object"&&(t.usingClientEntryPoint=e)}var Ct="__rc_react_root__";function B4(e,t){F6(!0);var n=t[Ct]||pt(t);F6(!1),n.render(e),t[Ct]=n}function F4(e,t){k4(e,t)}function U4(e,t){}function z4(e,t){if(pt){B4(e,t);return}F4(e,t)}function Z4(e){return nn.apply(this,arguments)}function nn(){return nn=(0,B6.default)((0,mt.default)().mark(function e(t){return(0,mt.default)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[Ct])===null||i===void 0||i.unmount(),delete t[Ct]}));case 1:case"end":return r.stop()}},e)})),nn.apply(this,arguments)}function W4(e){j4(e)}function G4(e){}function Y4(e){return rn.apply(this,arguments)}function rn(){return rn=(0,B6.default)((0,mt.default)().mark(function e(t){return(0,mt.default)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(pt===void 0){r.next=2;break}return r.abrupt("return",Z4(t));case 2:W4(t);case 3:case"end":return r.stop()}},e)})),rn.apply(this,arguments)}var 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 Je=d.createIdentifier("ui.parts.service");class on extends d.Disposable{constructor(){super(...arguments);ee(this,"_componentsByPart",new Map);ee(this,"_componentRegistered$",new re.Subject);ee(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),d.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 gt{constructor(){ee(this,"_domLayerMap",new Map);ee(this,"_domLayers$",new re.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 U6={floatDomWrapper:"univer-float-dom-wrapper",floatDom:"univer-float-dom"},q4=s.memo(e=>{var E,M;const{layer:t,id:n}=e,r=d.useDependency(Be),i=s.useMemo(()=>t.position$.pipe(re.distinctUntilChanged((I,x)=>I.absolute.left===x.absolute.left&&I.absolute.top===x.absolute.top&&I.endX-I.startX===x.endX-x.startX&&I.endY-I.startY===x.endY-x.startY)),[t.position$]),o=Oe(s.useMemo(()=>t.position$.pipe(re.first()),[t.position$])),a=s.useRef(null),c=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((E=o==null?void 0:o.startY)!=null?E:0),m=s.useRef((M=o==null?void 0:o.startX)!=null?M:0),u=s.useRef({}),g=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 I=t.position$.subscribe(T=>{h.current=`rotate(${T.rotate}deg)`,v.current=T.startY,m.current=T.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(T=>{if(a.current&&(a.current.style.width=`${Math.max(T.endX-T.startX-2,0)}px`,a.current.style.height=`${Math.max(T.endY-T.startY-2,0)}px`),c.current){const j={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}`};c.current.style.width=j.width,c.current.style.height=j.height,c.current.style.left=j.left,c.current.style.top=j.top,c.current.style.right=j.right,c.current.style.bottom=j.bottom,u.current=j}});return()=>{I.unsubscribe(),x.unsubscribe()}},[t.position$,i]);const w=s.useMemo(()=>g?b.jsx(g,{...S}):null,[g,S]);return o?b.jsx("div",{ref:a,className:U6.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:I=>{t.onPointerMove(I.nativeEvent)},onPointerDown:I=>{t.onPointerDown(I.nativeEvent)},onPointerUp:I=>{t.onPointerUp(I.nativeEvent)},onWheel:I=>{t.onWheel(I.nativeEvent)},children:b.jsx("div",{id:n,ref:c,className:U6.floatDom,style:{position:"absolute",...u.current},children:w})}):null}),an=({unitId:e})=>{var o,a;const t=d.useDependency(d.IUniverInstanceService),n=d.useDependency(gt),r=Oe(n.domLayers$),i=e||((o=t.getCurrentUnitForType(d.UniverInstanceType.UNIVER_SHEET))==null?void 0:o.getUnitId());return(a=r==null?void 0:r.filter(c=>c[1].unitId===i))==null?void 0:a.map(c=>b.jsx(q4,{id:c[0],layer:c[1]},c[0]))},bt=d.createIdentifier("ui.popup.service");class sn extends d.Disposable{constructor(){super(...arguments);ee(this,"_popupMap",new Map);ee(this,"_popups$",new re.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 X4=({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:g,left:S,right:w,top:E}=u,[M=0,I=0]=(x=e.offset)!=null?x:[];return{left:S-M,right:w+M,top:E-I,bottom:g+I}})),[e.anchorRect$,e.offset]),o=s.useMemo(()=>{var u,g;return(g=(u=e.hiddenRects$)==null?void 0:u.pipe(re.throttleTime(0,re.animationFrameScheduler)))!=null?g: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$]),c=Kr(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(([g,S])=>{const w=h.getBoundingClientRect(),{top:E,left:M,bottom:I,right:x}=w,T=g.bottom-g.top,j=g.right-g.left,H=S.some(O=>g.top>=O.top-.5*T&&g.bottom<=O.bottom+.5*T&&g.left>=O.left-.5*j&&g.right<=O.right+.5*j);g.bottom<E||g.top>I||g.right<M||g.left>x||H?r(!0):r(!1)});return()=>u.unsubscribe()},[h,v,i,o]),n&&m==="destroy"?null:b.jsx(st,{hidden:n,anchorRect$:i,direction:e.direction,onClickOutside:e.onClickOutside,excludeOutside:e.excludeOutside,excludeRects:c,onPointerEnter:e.onPointerEnter,onPointerLeave:e.onPointerLeave,onClick:e.onClick,onContextMenu:e.onContextMenu,children:t})};function ln(){const e=d.useDependency(bt),t=d.useDependency(Be);return Oe(e.popups$,void 0,!0).map(r=>{const[i,o]=r,a=t.get(o.componentKey);return b.jsx(X4,{popup:o,children:a?b.jsx(a,{popup:o}):null},i)})}function xe(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 Pe(e,t){var o;const n=(o=t==null?void 0:t.get(Je))!=null?o:d.useDependency(Je),r=s.useRef(0),i=Oe(()=>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=d.createIdentifier("ui.contextmenu.service");class cn 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 z6(){const e=s.useRef(null),[t,n]=s.useState(!1),[r,i]=s.useState(""),[o,a]=s.useState([0,0]),c=s.useRef(t),h=d.useDependency(B1),v=d.useDependency(d.ICommandService),m=d.useInjector();c.current=t,s.useEffect(()=>{const S=h.registerContextMenuHandler({handleContextMenu:u,hideContextMenu(){n(!1)},get visible(){return c.current}});function w(E){e.current&&!e.current.contains(E.target)&&g()}return document.addEventListener("pointerdown",w),document.addEventListener("wheel",g),()=>{document.removeEventListener("pointerdown",w),document.removeEventListener("wheel",g),S.dispose()}},[h]);function u(S,w){n(!1),requestAnimationFrame(()=>{i(w),a([S.clientX,S.clientY]),n(!0)})}function g(){n(!1)}return b.jsx(he.Popup,{visible:t,offset:o,children:b.jsx("section",{ref:e,children:r&&b.jsx(lt,{menuType:r,onOptionSelect:S=>{const{label:w,commandId:E,value:M}=S;v&&v.executeCommand(E!=null?E:w,{value:M}),m.get(i1).focus(),n(!1)}})})})}const Z6={toolbarBtn:"univer-toolbar-btn",toolbarBtnActive:"univer-toolbar-btn-active"};function un(e){const{children:t,className:n,style:r,disabled:i=!1,active:o=!1,onClick:a,onDoubleClick:c,...h}=e,v=g=>{if(i){g.preventDefault();return}a&&a(g)},m=g=>{if(i){g.preventDefault();return}c&&c(g)},u=Te(Z6.toolbarBtn,{[`${Z6.toolbarBtn}-active`]:o},n);return b.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 W6(e){const{disabled$:t,hidden$:n,activated$:r,value$:i}=e,[o,a]=s.useState(),[c,h]=s.useState(!1),[v,m]=s.useState(!1),[u,g]=s.useState(!1);return s.useEffect(()=>{const S=[];return t&&S.push(t.subscribe(w=>h(w))),n&&S.push(n.subscribe(w=>g(w))),r&&S.push(r.subscribe(w=>m(w))),i&&S.push(i.subscribe(w=>a(w))),()=>S.forEach(w=>w.unsubscribe())},[r,t,n,i]),{disabled:c,value:o,activated:v,hidden:u}}const G6=s.createContext({dropdownVisible:!1,setDropdownVisible:e=>{}}),Y6=s.forwardRef((e,t)=>{const{children:n,...r}=e,[i,o]=s.useState(!1),[a,c]=s.useState(!1);function h(u){o(a?!1:u)}function v(u){c(u),o(!1)}const m=s.useMemo(()=>({dropdownVisible:a,setDropdownVisible:v}),[a]);return b.jsx(he.Tooltip,{ref:t,...r,visible:i,onVisibleChange:h,children:b.jsx("span",{children:b.jsx(G6.Provider,{value:m,children:n})})})});function fn(e){const{children:t,...n}=e,{setDropdownVisible:r}=s.useContext(G6);function i(o){r(o)}return b.jsx(he.Dropdown,{onVisibleChange:i,...n,children:b.jsx("div",{onClick:o=>o.stopPropagation(),children:t})})}const _1=s.forwardRef((e,t)=>{const{align:n}=e,r=d.useDependency(d.LocaleService),i=d.useDependency(d.ICommandService),o=d.useDependency(i1),a=d.useDependency(Be),{value:c,hidden:h,disabled:v,activated:m}=W6(e),u=(K,ne)=>{o.focus(),i.executeCommand(K,ne)},{tooltip:g,shortcut:S,icon:w,title:E,label:M,id:I,commandId:x}=e,T=r.t(g!=null?g:"")+(S?` (${S})`:""),{selections:j}=e,H=s.useMemo(()=>re.isObservable(j)?j:new re.Observable(K=>{K.next(j)}),[j]),O=Oe(H),P=s.useMemo(()=>re.isObservable(w)?w:new re.Observable(K=>{var oe,ve;const ne=(ve=(oe=O==null?void 0:O.find(ie=>ie.value===c))==null?void 0:oe.icon)!=null?ve:w;K.next(ne)}),[w,O,c]),k=Oe(P,void 0,!0);function z(K){var F;const ne=e.selectionsCommandId,oe=x!=null?x:I,ve=(F=ne!=null?ne:x)!=null?F:I;function ie(V){if(v)return;let A=ve;V.id&&(A=V.id),u(A,{value:V.value})}function fe(V){v||u(ve,{value:V})}function be(){v||K===De.BUTTON_SELECTOR&&u(oe,{value:c})}return K===De.BUTTON_SELECTOR?b.jsxs("div",{className:Te(me.toolbarItemSelectButton,{[me.toolbarItemSelectButtonDisabled]:v,[me.toolbarItemSelectButtonActivated]:m}),"data-disabled":v,children:[b.jsx("div",{className:me.toolbarItemSelectButtonLabel,onClick:be,children:b.jsx(Ae,{icon:k,title:E,value:c,label:M,onChange:fe})}),b.jsx(fn,{disabled:v,align:n!=null?n:{targetOffset:[32,-12]},overlay:b.jsx(lt,{overViewport:"scroll",menuType:I,options:O,onOptionSelect:ie,value:c}),children:b.jsx("div",{className:Te(me.toolbarItemSelectButtonArrow,{[me.toolbarItemSelectButtonArrowDisabled]:v,[me.toolbarItemSelectButtonArrowActivated]:m}),"data-disabled":v,children:b.jsx(G1,{style:{height:"100%"}})})})]}):b.jsx(fn,{disabled:v,overlay:b.jsx(lt,{overViewport:"scroll",menuType:I,options:O,onOptionSelect:ie,value:c}),children:b.jsxs("div",{className:Te(me.toolbarItemSelect,{[me.toolbarItemSelectDisabled]:v,[me.toolbarItemSelectActivated]:m}),children:[b.jsx(Ae,{icon:k,title:E,value:c,label:M,onChange:fe}),b.jsx("div",{className:Te(me.toolbarItemSelectArrow,{[me.toolbarItemSelectArrowDisabled]:v}),children:b.jsx(G1,{})})]})})}function W(){var ne;const K=a.get(typeof M=="string"?M:(ne=M==null?void 0:M.name)!=null?ne:"");return b.jsx("span",{children:b.jsx(un,{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:K?b.jsx(Ae,{title:E,value:c,label:M}):b.jsx(Ae,{icon:w})})})}function q(){switch(e.type){case De.BUTTON_SELECTOR:case De.SELECTOR:case De.SUBITEMS:return z(e.type);case De.BUTTON:default:return W()}}return!h&&b.jsx(Y6,{ref:t,title:T,placement:"bottom",children:q()})});function q6(e){const{headerMenuComponents:t}=e,n=d.useDependency(Qe),r=d.useDependency(d.LocaleService),i=s.useRef(null),o=s.useRef({}),[a,c]=s.useState([]),[h,v]=s.useState(o1.START),[m,u]=s.useState([]);s.useEffect(()=>{function E(){const I=n.getMenuByPositionKey(N1.RIBBON);c(I)}E();const M=n.menuChanged$.subscribe(E);return()=>{M.unsubscribe()}},[n]),s.useEffect(()=>{const E=new ResizeObserver(M=>{const x=M[0].target.clientWidth,T=Object.values(o.current),j=[];let H=90;for(const{el:O,key:P}of T)O&&(H+=O.clientWidth+8,H>x&&j.push(P));u(j)});return i.current&&E.observe(i.current),()=>{E.disconnect()}},[a]);const g=s.useMemo(()=>t&&t.size>0||a.length>1,[t,a]),S=s.useMemo(()=>{var x,T;const E=(T=(x=a.find(j=>j.key===h))==null?void 0:x.children)!=null?T:[],M=[],I=[];for(const j of E)if(j.children){const H=j.children.filter(O=>!m.includes(O.key));M.push({...j,children:H}),H.length<j.children.length&&I.push({...j,children:j.children.filter(O=>m.includes(O.key))})}return{allGroups:E,visibleGroups:M,hiddenGroups:I}},[a,h,m]),w=s.useMemo(()=>S.allGroups.map(E=>{var M;return b.jsx("div",{className:me.toolbarGroup,children:(M=E.children)==null?void 0:M.map(I=>I.item&&b.jsx(_1,{ref:x=>{o.current[I.key]={el:x==null?void 0:x.nativeElement,key:I.key}},...I.item},I.key))},E.key)}),[S.allGroups]);return b.jsxs(b.Fragment,{children:[g&&b.jsxs("header",{className:me.headerbar,children:[b.jsx("div",{className:me.menubar,children:a.length>1&&a.map(E=>b.jsx("a",{className:Te(me.menubarItem,{[me.menubarItemActive]:E.key===h}),onClick:()=>{v(E.key)},children:r.t(E.key)},E.key))}),b.jsx("div",{className:me.headerMenu,children:b.jsx(xe,{components:t})})]}),b.jsx("section",{role:"ribbon",className:me.toolbar,children:b.jsxs("div",{className:me.toolbarContainer,children:[S.visibleGroups.map(E=>{var M,I;return(((M=E.children)==null?void 0:M.length)||E.item)&&b.jsx("div",{className:me.toolbarGroup,children:E.children?(I=E.children)==null?void 0:I.map(x=>x.item&&b.jsx(_1,{...x.item},x.key)):E.item&&b.jsx(_1,{...E.item},E.key)},E.key)}),m.length>0&&b.jsx(Y6,{title:r.t("ribbon.more"),placement:"bottom",children:b.jsx(fn,{forceRender:!0,overlay:b.jsx("div",{className:me.toolbarMoreContainer,children:S.hiddenGroups.map(E=>{var M;return b.jsx("div",{className:me.toolbarGroup,children:E.children?(M=E.children)==null?void 0:M.map(I=>I.item&&b.jsx(_1,{...I.item},I.key)):E.item&&b.jsx(_1,{...E.item},E.key)},E.key)})}),children:b.jsx(un,{className:me.toolbarItemTextButton,children:b.jsx(cr,{})})})})]})}),b.jsx("div",{ref:i,className:me.toolbarContainer,style:{position:"absolute",top:-9999,left:-9999,opacity:0},children:w})]})}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 dn(){const e=d.useDependency(y1),t=Oe(e.sidebarOptions$),n=s.useRef(null),r=s.useMemo(()=>{if(!t)return null;const c={...t};for(const h of["children","header","footer"]){const v=h;if(t[v]){const m=t[v];m&&(c[v]=b.jsx(Ae,{...m}))}}return c},[t]);s.useEffect(()=>(n.current&&e.setContainer(n.current),()=>{e.setContainer(void 0)}),[e]),s.useEffect(()=>{const c=v=>{e.scrollEvent$.next(v)},h=n.current;return h&&h.addEventListener("scroll",c),()=>{h==null||h.removeEventListener("scroll",c)}},[e]);const i=Te(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 c={...t,visible:!1};e.sidebarOptions$.next(c),(h=c==null?void 0:c.onClose)==null||h.call(c)}return b.jsx("section",{className:i,style:{width:o},children:b.jsxs("section",{className:v1.sidebarContainer,ref:n,children:[b.jsxs("header",{className:v1.sidebarHeader,children:[r==null?void 0:r.header,b.jsx("a",{className:v1.sidebarHeaderClose,onClick:a,children:b.jsx(W1,{})})]}),b.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)&&b.jsx("footer",{className:v1.sidebarFooter,children:r.footer})]})})}const yt=d.createIdentifier("univer.zen-zone-service"),hn={zenZone:"univer-zen-zone",zenZoneOpen:"univer-zen-zone-open",zenZoneClose:"univer-zen-zone-close"};function vn(){const e=d.useDependency(yt),[t,n]=s.useState(!1),[r,i]=s.useState(),o=d.useObservable(e.temporaryHidden$),a=d.useDependency(Be);s.useEffect(()=>{const v=[e.visible$.subscribe(m=>{n(m)}),e.componentKey$.subscribe(m=>{i(m)})];return()=>{v.forEach(m=>{m.unsubscribe()})}},[]);const c=Te(hn.zenZone,t?hn.zenZoneOpen:hn.zenZoneClose),h=s.useMemo(()=>{const v=a.get(r!=null?r:"");if(v)return v},[r]);return b.jsx("section",{style:o?{opacity:0,zIndex:-1}:void 0,className:c,children:h&&b.jsx(h,{})})}const Lt=d.createIdentifier("univer.global-zone-service"),X6={globalZone:"univer-global-zone",globalZoneOpen:"univer-global-zone-open",globalZoneClose:"univer-global-zone-close"};function Q6(){const e=d.useDependency(Lt),[t,n]=s.useState(!1),r=Oe(e.componentKey$,e.componentKey),i=d.useDependency(Be),o=Te(X6.globalZone,X6.globalZoneOpen),a=s.useMemo(()=>{const c=i.get(r!=null?r:"");if(c)return c},[r,i]);return s.useEffect(()=>{const c=e.visible$.subscribe(h=>{n(h)});return()=>{c.unsubscribe()}},[e.visible$]),t?b.jsx("section",{className:o,children:a&&b.jsx(a,{})}):null}const mn=new Set([Q6]),Ke={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 Q4(e){const{header:t=!0,toolbar:n=!0,footer:r=!0,contextMenu:i=!0,mountContainer:o,onRendered:a}=e,c=d.useDependency(d.LocaleService),h=d.useDependency(d.ThemeService),v=d.useDependency(b1),m=d.useDependency(d.IUniverInstanceService),u=s.useRef(null),g=Pe(ge.FOOTER),S=Pe(ge.HEADER),w=Pe(ge.HEADER_MENU),E=Pe(ge.CONTENT),M=Pe(ge.LEFT_SIDEBAR),I=Pe(ge.GLOBAL),[x,T]=s.useState(null);s.useEffect(()=>{const P=m.focused$.subscribe(k=>{if(k==null)return;const z=m.getUnitType(k),W=m.getUnit(k);z===d.UniverInstanceType.UNIVER_DOC&&W&&T(W.getSnapshot())});return()=>{P.unsubscribe()}},[]),s.useEffect(()=>{h.getCurrentTheme()||h.setTheme(he.defaultTheme)},[]),s.useEffect(()=>{u.current&&(a==null||a(u.current))},[a]);const[j,H]=s.useState(c.getLocales()),O=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(O),v.setContainer(O);const P=[c.localeChanged$.subscribe(()=>{H(c.getLocales())}),h.currentTheme$.subscribe(k=>{he.themeInstance.setTheme(o,k),O&&he.themeInstance.setTheme(O,k)})];return()=>{P.forEach(k=>k.unsubscribe()),document.body.removeChild(O)}},[c,v,o,O,h.currentTheme$]),b.jsxs(he.ConfigProvider,{locale:j==null?void 0:j.design,mountContainer:O,children:[b.jsxs("div",{className:Ke.workbenchLayout,tabIndex:-1,onBlur:P=>P.stopPropagation(),children:[t&&n&&b.jsx("header",{className:Ke.workbenchContainerHeader,children:b.jsx(q6,{headerMenuComponents:w})}),b.jsxs("section",{className:Ke.workbenchContainer,children:[b.jsxs("div",{className:Ke.workbenchContainerWrapper,children:[b.jsx("aside",{className:Ke.workbenchContainerLeftSidebar,children:b.jsx(xe,{components:M},"left-sidebar")}),b.jsxs("section",{className:Te(Ke.workbenchContainerContent,{[Ke.workbenchContainerDocContent]:(x==null?void 0:x.documentStyle.documentFlavor)===d.DocumentFlavor.TRADITIONAL}),children:[b.jsx("header",{children:t&&b.jsx(xe,{components:S},"header")}),b.jsx("section",{className:Ke.workbenchContainerCanvas,ref:u,"data-range-selector":!0,onContextMenu:P=>P.preventDefault(),children:b.jsx(xe,{components:E},"content")})]}),b.jsx("aside",{className:Ke.workbenchContainerSidebar,children:b.jsx(dn,{})})]}),r&&b.jsx("footer",{className:Ke.workbenchFooter,children:b.jsx(xe,{components:g,sharedProps:{contextMenu:i}},"footer")}),b.jsx(vn,{})]})]}),b.jsx(xe,{components:I},"global"),b.jsx(xe,{components:mn},"built-in-global"),i&&b.jsx(z6,{}),b.jsx(J4,{})]})}function J4(){const{mountContainer:e}=s.useContext(he.ConfigContext),t=Pe(ge.FLOATING);return I1.createPortal(b.jsx(xe,{components:t},"floating"),e)}var K4=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,ta=(e,t,n,r)=>{for(var i=r>1?void 0:r?ea(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},m1=(e,t)=>(n,r)=>t(n,r,e);const na=3e3;p.DesktopUIController=class extends d.Disposable{constructor(n,r,i,o,a,c,h,v){super();ee(this,"_steadyTimeout");ee(this,"_renderTimeout");this._config=n,this._renderManagerService=r,this._instanceSrv=i,this._injector=o,this._lifecycleService=a,this._uiPartsService=c,this._menuManagerService=h,this._layoutService=v,this._initBuiltinComponents(),this._initMenus(),this._bootstrapWorkbench()}_initMenus(){this._menuManagerService.mergeMenu(Qt)}_bootstrapWorkbench(){this.disposeWithMe(this._instanceSrv.unitDisposed$.subscribe(n=>{clearTimeout(this._steadyTimeout)})),this.disposeWithMe(ra(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||d.isInternalEditorID(o.unitId))return;o.engine.setContainer(n)}}),this.disposeWithMe(this._lifecycleService.lifecycle$.pipe(re.filter(i=>i===d.LifecycleStages.Ready),re.take(1)).subscribe(()=>{this._renderTimeout=setTimeout(()=>{const i=this._renderManagerService.getRenderAll();for(const[o,a]of i)d.isInternalEditorID(o)||!a.isRenderUnit||a.engine.setContainer(n);this._lifecycleService.stage=d.LifecycleStages.Rendered,this._steadyTimeout=setTimeout(()=>{this._lifecycleService.stage=d.LifecycleStages.Steady},na)},300)}))}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.FLOATING,()=>d.connectInjector(ln,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>d.connectInjector(an,this._injector)))}},p.DesktopUIController=ta([m1(1,O1.IRenderManagerService),m1(2,d.IUniverInstanceService),m1(3,d.Inject(d.Injector)),m1(4,d.Inject(d.LifecycleService)),m1(5,Je),m1(6,Qe),m1(7,d.Optional(i1))],p.DesktopUIController);function ra(e,t,n){let r;const i=t.container;if(typeof i=="string"){const h=document.getElementById(i);h?r=h:r=J6(i)}else i instanceof HTMLElement?r=i:r=J6("univer");const o=d.connectInjector(Q4,e),a=h=>n(h,r);function c(){vt(b.jsx(o,{...t,mountContainer:r,onRendered:a}),r)}return c(),d.toDisposable(()=>{vt(b.jsx("div",{}),r),setTimeout(()=>vt(b.jsx("div",{}),r),200),setTimeout(()=>$6(r),500)})}function J6(e){const t=document.createElement("div");return t.id=e,t}const St={mobileMenuContainer:"univer-mobile-menu-container",mobileMenuItem:"univer-mobile-menu-item"};function ia(e){const{menuType:t,onOptionSelect:n}=e,r=d.useDependency(Qe);if(!t)return null;const i=s.useMemo(()=>{const o=r.getMenuByPositionKey(t);function a(c){return c.reduce((h,v)=>v.children?[...h,...a(v.children)]:[...h,v],[])}return a(o)},[t]);return b.jsx("div",{className:St.mobileMenuContainer,style:{gridTemplateColumns:`repeat(${Math.min(2,i.length)}, 48px)`},children:i.map(o=>o.item&&b.jsx(oa,{menuItem:o.item,onClick:a=>n==null?void 0:n({value:"",label:o.key,...a})},o.key))})}function oa(e){const{menuItem:t,onClick:n}=e,{id:r,type:i,title:o,label:a,icon:c}=t;if(i!==De.BUTTON)throw new Error(`[MobileMenuItem]: on mobile devices only "BUTTON" type menu items are supported. Please check "${r}".`);const h=d.useObservable(t.disabled$,!1),v=d.useObservable(t.activated$,!1),m=d.useObservable(t.hidden$,!1),u=d.useObservable(t.value$),g=Te(St.mobileMenuItem,{[St.mobileMenuItemActivated]:v,[St.mobileMenuItemHidden]:m});return b.jsx("button",{type:"button",className:g,disabled:h,onClick:()=>n({id:r}),children:b.jsx(Ae,{value:u,title:o,label:a,icon:c})},r)}function K6(){const[e,t]=s.useState(!1),[n,r]=s.useState(""),[i,o]=s.useState([0,0]),a=s.useRef(e),c=d.useDependency(B1),h=d.useDependency(d.ICommandService);a.current=e,s.useEffect(()=>{const u=c.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()}},[c]);function v(u,g){r(g),o([u.clientX,u.clientY]),t(!0)}function m(){t(!1)}return b.jsx(he.Popup,{visible:e,offset:i,children:b.jsx("section",{onPointerDown:u=>u.stopPropagation(),children:n&&b.jsx(ia,{menuType:n,onOptionSelect:u=>{const{label:g,value:S,commandId:w}=u;h&&h.executeCommand(w!=null?w:g,{value:S}),t(!1)}})})})}const e1={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 aa(e){const{header:t=!0,footer:n=!0,contextMenu:r=!0,mountContainer:i,onRendered:o}=e,a=d.useDependency(d.LocaleService),c=d.useDependency(d.ThemeService),h=d.useDependency(b1),v=s.useRef(null),m=Pe(ge.FOOTER),u=Pe(ge.HEADER);Pe(ge.HEADER_MENU);const g=Pe(ge.CONTENT),S=Pe(ge.LEFT_SIDEBAR),w=Pe(ge.GLOBAL);s.useEffect(()=>{c.getCurrentTheme()||c.setTheme(he.defaultTheme)},[]),s.useEffect(()=>{v.current&&(o==null||o(v.current))},[o]);const[E,M]=s.useState(a.getLocales()),I=s.useMemo(()=>document.createElement("div"),[]);return s.useEffect(()=>{document.body.appendChild(I),h.setContainer(I);const x=[a.localeChanged$.subscribe(()=>{M(a.getLocales())}),c.currentTheme$.subscribe(T=>{he.themeInstance.setTheme(i,T),I&&he.themeInstance.setTheme(I,T)})];return()=>{x.forEach(T=>T.unsubscribe()),document.body.removeChild(I)}},[a,h,i,I,c.currentTheme$]),b.jsxs(he.ConfigProvider,{locale:E==null?void 0:E.design,mountContainer:I,children:[b.jsxs("div",{className:e1.appLayout,tabIndex:-1,onBlur:x=>x.stopPropagation(),children:[t&&b.jsx("header",{className:e1.appContainerHeader}),b.jsxs("section",{className:e1.appContainer,children:[b.jsxs("div",{className:e1.appContainerWrapper,children:[b.jsx("aside",{className:e1.appContainerLeftSidebar,children:b.jsx(xe,{components:S},"left-sidebar")}),b.jsxs("section",{className:e1.appContainerContent,children:[b.jsx("header",{className:e1.appHeader,children:t&&b.jsx(xe,{components:u},"header")}),b.jsx("section",{className:e1.appContainerCanvas,ref:v,"data-range-selector":!0,onContextMenu:x=>x.preventDefault(),children:b.jsx(xe,{components:g},"content")})]}),b.jsx("aside",{className:e1.appContainerSidebar,children:b.jsx(dn,{})})]}),n&&b.jsx("footer",{className:e1.appFooter,children:b.jsx(xe,{components:m},"footer")}),b.jsx(vn,{})]})]}),b.jsx(xe,{components:w},"global"),b.jsx(xe,{components:mn},"built-in-global"),r&&b.jsx(K6,{})]})}var sa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ca=(e,t,n,r)=>{for(var i=r>1?void 0:r?la(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&&sa(t,n,i),i},p1=(e,t)=>(n,r)=>t(n,r,e);const ua=3e3;let pn=class extends d.Disposable{constructor(e,t,n,r,i,o,a,c){super(),this._config=e,this._instanceService=t,this._renderManagerService=n,this._injector=r,this._lifecycleService=i,this._uiPartsService=o,this._menuManagerService=a,this._layoutService=c,this._initBuiltinComponents(),Promise.resolve().then(()=>this._bootstrapWorkbench())}_initMenus(){this._menuManagerService.mergeMenu(Qt)}_bootstrapWorkbench(){this.disposeWithMe(fa(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,ua)},300)}))}_initBuiltinComponents(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>d.connectInjector(ln,this._injector))),this.disposeWithMe(this._uiPartsService.registerComponent(ge.CONTENT,()=>d.connectInjector(an,this._injector)))}};pn=ca([p1(1,d.IUniverInstanceService),p1(2,O1.IRenderManagerService),p1(3,d.Inject(d.Injector)),p1(4,d.Inject(d.LifecycleService)),p1(5,Je),p1(6,Qe),p1(7,d.Optional(i1))],pn);function fa(e,t,n){let r;const i=t.container;if(typeof i=="string"){const h=document.getElementById(i);h?r=h:r=e9(i)}else i instanceof HTMLElement?r=i:r=e9("univer");const o=d.connectInjector(aa,e),a=h=>n(h,r);function c(){vt(b.jsx(o,{...t,mountContainer:r,onRendered:a}),r)}return c(),d.toDisposable(()=>{$6(r)})}function e9(e){const t=document.createElement("div");return t.id=e,t}const F1=d.createIdentifier("ui.notification.service");var da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,va=(e,t,n,r)=>{for(var i=r>1?void 0:r?ha(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&&da(t,n,i),i},ma=(e,t)=>(n,r)=>t(n,r,e);const Cn=d.createIdentifier("univer.ui.before-close-service");p.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(`
21
+ `);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())})}},p.DesktopBeforeCloseService=va([ma(0,F1)],p.DesktopBeforeCloseService);function pa(){return typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText<"u"}var Ca=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,ba=(e,t,n,r)=>{for(var i=r>1?void 0:r?ga(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&&Ca(t,n,i),i},gn=(e,t)=>(n,r)=>t(n,r,e);const bn="text/plain",yn="text/html",ya="image/png",La="image/jpeg",Sa="image/bmp",_a="image/webp",Ma="image/svg+xml",Ln=d.createIdentifier("univer.clipboard-interface-service");p.BrowserClipboardService=class extends d.Disposable{constructor(t,n,r){super(),this._localeService=t,this._logService=n,this._notificationService=r}get supportClipboard(){return pa()}async write(t,n){if(!this.supportClipboard)return this._legacyCopyHtml(n);try{return await navigator.clipboard.write([new ClipboardItem({[bn]:new Blob([t],{type:bn}),[yn]:new Blob([n],{type:yn})})])}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=Ea();document.body.appendChild(r),r.innerHTML=t;try{t9(r),document.execCommand("copy")}finally{n instanceof HTMLElement&&n.focus(),document.body.removeChild(r)}}_legacyCopyText(t){const n=document.activeElement,r=wa();document.body.appendChild(r),r.value=t;try{t9(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")})}},p.BrowserClipboardService=ba([gn(0,d.Inject(d.LocaleService)),gn(1,d.ILogService),gn(2,d.Optional(F1))],p.BrowserClipboardService);function wa(){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 Ea(){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 t9(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 _t=d.createIdentifier("univer.confirm-service");function Ha(){const e=d.useDependency(_t),[t,n]=s.useState([]);s.useEffect(()=>{const i=e.confirmOptions$.subscribe(o=>{n(o)});return()=>{i.unsubscribe()}},[]);const r=t.map(i=>{const{children:o,title:a,...c}=i,h=c;for(const v of["children","title"]){const m=v,u=i[m];u&&(h[m]=b.jsx(Ae,{...u}))}return h});return r==null?void 0:r.map((i,o)=>b.jsx(he.Confirm,{...i},o))}var Oa=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Ta=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ia(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&&Oa(t,n,i),i},n9=(e,t)=>(n,r)=>t(n,r,e);p.DesktopConfirmService=class extends d.Disposable{constructor(n,r){super();ee(this,"_confirmOptions",[]);ee(this,"confirmOptions$",new re.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(ge.GLOBAL,()=>d.connectInjector(Ha,this._injector)))}},p.DesktopConfirmService=Ta([n9(0,d.Inject(d.Injector)),n9(1,Je)],p.DesktopConfirmService);const Mt=d.createIdentifier("univer.ui.dialog-service");function Da(){const e=d.useDependency(Mt),[t,n]=s.useState([]);s.useEffect(()=>{const o=e.getDialogs$().subscribe(a=>{n(a)});return()=>o.unsubscribe()},[e]);const r=t.map(i=>{const{children:o,title:a,closeIcon:c,footer:h,...v}=i,m=v;for(const u of["children","title","closeIcon","footer"]){const g=u,S=i[g];S&&(m[g]=b.jsx(Ae,{...S}))}return m});return b.jsx(b.Fragment,{children:r==null?void 0:r.map(i=>b.jsx(he.Dialog,{...i},i.id))})}var xa=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Va=(e,t,n,r)=>{for(var i=r>1?void 0:r?Na(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&&xa(t,n,i),i},r9=(e,t)=>(n,r)=>t(n,r,e);p.DesktopDialogService=class extends d.Disposable{constructor(n,r){super();ee(this,"_dialogOptions",[]);ee(this,"_dialogOptions$",new re.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(ge.GLOBAL,()=>d.connectInjector(Da,this._injector)))}},p.DesktopDialogService=Va([r9(0,d.Inject(d.Injector)),r9(1,Je)],p.DesktopDialogService);var Aa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Ra=(e,t,n,r)=>{for(var i=r>1?void 0:r?Pa(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&&Aa(t,n,i),i},ka=(e,t)=>(n,r)=>t(n,r,e);p.DesktopGlobalZoneService=class{constructor(t){ee(this,"visible$",new re.Subject);ee(this,"componentKey$",new re.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)}},p.DesktopGlobalZoneService=Ra([ka(0,d.Inject(Be))],p.DesktopGlobalZoneService);function wt(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 i9={exports:{}};/*!
22
22
  localForage -- Offline Storage, Improved
23
23
  Version 1.10.0
24
24
  https://localforage.github.io/localForage
25
25
  (c) 2013-2017 Mozilla, Apache License 2.0
26
- */(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 Et=="function"&&Et;if(!m&&u)return u(v,!0);if(l)return l(v,!0);var C=new Error("Cannot find module '"+v+"'");throw C.code="MODULE_NOT_FOUND",C}var L=i[v]={exports:{}};r[v][0].call(L.exports,function(M){var E=r[v][1][M];return a(E||M)},L,L.exports,n,r,i,o)}return i[v].exports}for(var l=typeof Et=="function"&&Et,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(M),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=M,l=function(){u.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?l=function(){var w=o.document.createElement("script");w.onreadystatechange=function(){M(),w.onreadystatechange=null,w.parentNode.removeChild(w),w=null},o.document.documentElement.appendChild(w)}:l=function(){setTimeout(M,0)};var C,L=[];function M(){C=!0;for(var w,H,x=L.length;x;){for(H=L,L=[],w=-1;++w<x;)H[w]();x=L.length}C=!1}r.exports=E;function E(w){L.push(w)===1&&!C&&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(O){if(typeof O!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,O!==a&&E(this,O)}u.prototype.catch=function(O){return this.then(null,O)},u.prototype.then=function(O,I){if(typeof O!="function"&&this.state===v||typeof I!="function"&&this.state===h)return this;var P=new this.constructor(a);if(this.state!==m){var R=this.state===v?O:I;L(P,R,this.outcome)}else this.queue.push(new C(P,O,I));return P};function C(O,I,P){this.promise=O,typeof I=="function"&&(this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled),typeof P=="function"&&(this.onRejected=P,this.callRejected=this.otherCallRejected)}C.prototype.callFulfilled=function(O){l.resolve(this.promise,O)},C.prototype.otherCallFulfilled=function(O){L(this.promise,this.onFulfilled,O)},C.prototype.callRejected=function(O){l.reject(this.promise,O)},C.prototype.otherCallRejected=function(O){L(this.promise,this.onRejected,O)};function L(O,I,P){o(function(){var R;try{R=I(P)}catch(z){return l.reject(O,z)}R===O?l.reject(O,new TypeError("Cannot resolve promise with itself")):l.resolve(O,R)})}l.resolve=function(O,I){var P=w(M,I);if(P.status==="error")return l.reject(O,P.value);var R=P.value;if(R)E(O,R);else{O.state=v,O.outcome=I;for(var z=-1,W=O.queue.length;++z<W;)O.queue[z].callFulfilled(I)}return O},l.reject=function(O,I){O.state=h,O.outcome=I;for(var P=-1,R=O.queue.length;++P<R;)O.queue[P].callRejected(I);return O};function M(O){var I=O&&O.then;if(O&&(typeof O=="object"||typeof O=="function")&&typeof I=="function")return function(){I.apply(O,arguments)}}function E(O,I){var P=!1;function R(K){P||(P=!0,l.reject(O,K))}function z(K){P||(P=!0,l.resolve(O,K))}function W(){I(z,R)}var q=w(W);q.status==="error"&&R(q.value)}function w(O,I){var P={};try{P.value=O(I),P.status="success"}catch(R){P.status="error",P.value=R}return P}u.resolve=H;function H(O){return O instanceof this?O:l.resolve(new this(a),O)}u.reject=x;function x(O){var I=new this(a);return l.reject(I,O)}u.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 P=O.length,R=!1;if(!P)return this.resolve([]);for(var z=new Array(P),W=0,q=-1,K=new this(a);++q<P;)ne(O[q],q);return K;function ne(oe,ve){I.resolve(oe).then(ie,function(fe){R||(R=!0,l.reject(K,fe))});function ie(fe){z[ve]=fe,++W===P&&!R&&(R=!0,l.resolve(K,z))}}}u.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 P=O.length,R=!1;if(!P)return this.resolve([]);for(var z=-1,W=new this(a);++z<P;)q(O[z]);return W;function q(K){I.resolve(K).then(function(ne){R||(R=!0,l.resolve(W,ne))},function(ne){R||(R=!0,l.reject(W,ne))})}}},{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,p){if(!(c instanceof p))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),p=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||p)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function m(c,p){c=c||[],p=p||{};try{return new Blob(c,p)}catch(y){if(y.name!=="TypeError")throw y;for(var f=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,S=new f,_=0;_<c.length;_+=1)S.append(c[_]);return S.getBlob(p.type)}}typeof Promise>"u"&&n(3);var u=Promise;function C(c,p){p&&c.then(function(f){p(null,f)},function(f){p(f)})}function L(c,p,f){typeof p=="function"&&c.then(p),typeof f=="function"&&c.catch(f)}function M(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var w="local-forage-detect-blob-support",H=void 0,x={},T=Object.prototype.toString,k="readonly",O="readwrite";function I(c){for(var p=c.length,f=new ArrayBuffer(p),S=new Uint8Array(f),_=0;_<p;_++)S[_]=c.charCodeAt(_);return f}function P(c){return new u(function(p){var f=c.transaction(w,O),S=m([""]);f.objectStore(w).put(S,"key"),f.onabort=function(_){_.preventDefault(),_.stopPropagation(),p(!1)},f.oncomplete=function(){var _=navigator.userAgent.match(/Chrome\/(\d+)/),y=navigator.userAgent.match(/Edge\//);p(y||!_||parseInt(_[1],10)>=43)}}).catch(function(){return!1})}function R(c){return typeof H=="boolean"?u.resolve(H):P(c).then(function(p){return H=p,H})}function z(c){var p=x[c.name],f={};f.promise=new u(function(S,_){f.resolve=S,f.reject=_}),p.deferredOperations.push(f),p.dbReady?p.dbReady=p.dbReady.then(function(){return f.promise}):p.dbReady=f.promise}function W(c){var p=x[c.name],f=p.deferredOperations.pop();if(f)return f.resolve(),f.promise}function q(c,p){var f=x[c.name],S=f.deferredOperations.pop();if(S)return S.reject(p),S.promise}function K(c,p){return new u(function(f,S){if(x[c.name]=x[c.name]||G(),c.db)if(p)z(c),c.db.close();else return f(c.db);var _=[c.name];p&&_.push(c.version);var y=h.open.apply(h,_);p&&(y.onupgradeneeded=function(D){var j=y.result;try{j.createObjectStore(c.storeName),D.oldVersion<=1&&j.createObjectStore(w)}catch($){if($.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 $}}),y.onerror=function(D){D.preventDefault(),S(y.error)},y.onsuccess=function(){var D=y.result;D.onversionchange=function(j){j.target.close()},f(D),W(c)}})}function ne(c){return K(c,!1)}function oe(c){return K(c,!0)}function ve(c,p){if(!c.db)return!0;var f=!c.db.objectStoreNames.contains(c.storeName),S=c.version<c.db.version,_=c.version>c.db.version;if(S&&(c.version!==p&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),_||f){if(f){var y=c.db.version+1;y>c.version&&(c.version=y)}return!0}return!1}function ie(c){return new u(function(p,f){var S=new FileReader;S.onerror=f,S.onloadend=function(_){var y=btoa(_.target.result||"");p({__local_forage_encoded_blob:!0,data:y,type:c.type})},S.readAsBinaryString(c)})}function fe(c){var p=I(atob(c.data));return m([p],{type:c.type})}function be(c){return c&&c.__local_forage_encoded_blob}function U(c){var p=this,f=p._initReady().then(function(){var S=x[p._dbInfo.name];if(S&&S.dbReady)return S.dbReady});return L(f,c,c),f}function V(c){z(c);for(var p=x[c.name],f=p.forages,S=0;S<f.length;S++){var _=f[S];_._dbInfo.db&&(_._dbInfo.db.close(),_._dbInfo.db=null)}return c.db=null,ne(c).then(function(y){return c.db=y,ve(c)?oe(c):y}).then(function(y){c.db=p.db=y;for(var D=0;D<f.length;D++)f[D]._dbInfo.db=y}).catch(function(y){throw q(c,y),y})}function A(c,p,f,S){S===void 0&&(S=1);try{var _=c.db.transaction(c.storeName,p);f(null,_)}catch(y){if(S>0&&(!c.db||y.name==="InvalidStateError"||y.name==="NotFoundError"))return u.resolve().then(function(){if(!c.db||y.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(){A(c,p,f,S-1)})}).catch(f);f(y)}}function G(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function X(c){var p=this,f={db:null};if(c)for(var S in c)f[S]=c[S];var _=x[f.name];_||(_=G(),x[f.name]=_),_.forages.push(p),p._initReady||(p._initReady=p.ready,p.ready=U);var y=[];function D(){return u.resolve()}for(var j=0;j<_.forages.length;j++){var $=_.forages[j];$!==p&&y.push($._initReady().catch(D))}var B=_.forages.slice(0);return u.all(y).then(function(){return f.db=_.db,ne(f)}).then(function(F){return f.db=F,ve(f,p._defaultConfig.version)?oe(f):F}).then(function(F){f.db=_.db=F,p._dbInfo=f;for(var Y=0;Y<B.length;Y++){var ae=B[Y];ae!==p&&(ae._dbInfo.db=f.db,ae._dbInfo.version=f.version)}})}function Z(c,p){var f=this;c=M(c);var S=new u(function(_,y){f.ready().then(function(){A(f._dbInfo,k,function(D,j){if(D)return y(D);try{var $=j.objectStore(f._dbInfo.storeName),B=$.get(c);B.onsuccess=function(){var F=B.result;F===void 0&&(F=null),be(F)&&(F=fe(F)),_(F)},B.onerror=function(){y(B.error)}}catch(F){y(F)}})}).catch(y)});return C(S,p),S}function J(c,p){var f=this,S=new u(function(_,y){f.ready().then(function(){A(f._dbInfo,k,function(D,j){if(D)return y(D);try{var $=j.objectStore(f._dbInfo.storeName),B=$.openCursor(),F=1;B.onsuccess=function(){var Y=B.result;if(Y){var ae=Y.value;be(ae)&&(ae=fe(ae));var le=c(ae,Y.key,F++);le!==void 0?_(le):Y.continue()}else _()},B.onerror=function(){y(B.error)}}catch(Y){y(Y)}})}).catch(y)});return C(S,p),S}function se(c,p,f){var S=this;c=M(c);var _=new u(function(y,D){var j;S.ready().then(function(){return j=S._dbInfo,T.call(p)==="[object Blob]"?R(j.db).then(function($){return $?p:ie(p)}):p}).then(function($){A(S._dbInfo,O,function(B,F){if(B)return D(B);try{var Y=F.objectStore(S._dbInfo.storeName);$===null&&($=void 0);var ae=Y.put($,c);F.oncomplete=function(){$===void 0&&($=null),y($)},F.onabort=F.onerror=function(){var le=ae.error?ae.error:ae.transaction.error;D(le)}}catch(le){D(le)}})}).catch(D)});return C(_,f),_}function Ce(c,p){var f=this;c=M(c);var S=new u(function(_,y){f.ready().then(function(){A(f._dbInfo,O,function(D,j){if(D)return y(D);try{var $=j.objectStore(f._dbInfo.storeName),B=$.delete(c);j.oncomplete=function(){_()},j.onerror=function(){y(B.error)},j.onabort=function(){var F=B.error?B.error:B.transaction.error;y(F)}}catch(F){y(F)}})}).catch(y)});return C(S,p),S}function Ne(c){var p=this,f=new u(function(S,_){p.ready().then(function(){A(p._dbInfo,O,function(y,D){if(y)return _(y);try{var j=D.objectStore(p._dbInfo.storeName),$=j.clear();D.oncomplete=function(){S()},D.onabort=D.onerror=function(){var B=$.error?$.error:$.transaction.error;_(B)}}catch(B){_(B)}})}).catch(_)});return C(f,c),f}function we(c){var p=this,f=new u(function(S,_){p.ready().then(function(){A(p._dbInfo,k,function(y,D){if(y)return _(y);try{var j=D.objectStore(p._dbInfo.storeName),$=j.count();$.onsuccess=function(){S($.result)},$.onerror=function(){_($.error)}}catch(B){_(B)}})}).catch(_)});return C(f,c),f}function Me(c,p){var f=this,S=new u(function(_,y){if(c<0){_(null);return}f.ready().then(function(){A(f._dbInfo,k,function(D,j){if(D)return y(D);try{var $=j.objectStore(f._dbInfo.storeName),B=!1,F=$.openKeyCursor();F.onsuccess=function(){var Y=F.result;if(!Y){_(null);return}c===0||B?_(Y.key):(B=!0,Y.advance(c))},F.onerror=function(){y(F.error)}}catch(Y){y(Y)}})}).catch(y)});return C(S,p),S}function H1(c){var p=this,f=new u(function(S,_){p.ready().then(function(){A(p._dbInfo,k,function(y,D){if(y)return _(y);try{var j=D.objectStore(p._dbInfo.storeName),$=j.openKeyCursor(),B=[];$.onsuccess=function(){var F=$.result;if(!F){S(B);return}B.push(F.key),F.continue()},$.onerror=function(){_($.error)}}catch(F){_(F)}})}).catch(_)});return C(f,c),f}function Xe(c,p){p=E.apply(this,arguments);var f=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||f.name,c.storeName=c.storeName||f.storeName);var S=this,_;if(!c.name)_=u.reject("Invalid arguments");else{var y=c.name===f.name&&S._dbInfo.db,D=y?u.resolve(S._dbInfo.db):ne(c).then(function(j){var $=x[c.name],B=$.forages;$.db=j;for(var F=0;F<B.length;F++)B[F]._dbInfo.db=j;return j});c.storeName?_=D.then(function(j){if(j.objectStoreNames.contains(c.storeName)){var $=j.version+1;z(c);var B=x[c.name],F=B.forages;j.close();for(var Y=0;Y<F.length;Y++){var ae=F[Y];ae._dbInfo.db=null,ae._dbInfo.version=$}var le=new u(function(de,Le){var Se=h.open(c.name,$);Se.onerror=function(ze){var W1=Se.result;W1.close(),Le(ze)},Se.onupgradeneeded=function(){var ze=Se.result;ze.deleteObjectStore(c.storeName)},Se.onsuccess=function(){var ze=Se.result;ze.close(),de(ze)}});return le.then(function(de){B.db=de;for(var Le=0;Le<F.length;Le++){var Se=F[Le];Se._dbInfo.db=de,W(Se._dbInfo)}}).catch(function(de){throw(q(c,de)||u.resolve()).catch(function(){}),de})}}):_=D.then(function(j){z(c);var $=x[c.name],B=$.forages;j.close();for(var F=0;F<B.length;F++){var Y=B[F];Y._dbInfo.db=null}var ae=new u(function(le,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(),le(Se)}});return ae.then(function(le){$.db=le;for(var de=0;de<B.length;de++){var Le=B[de];W(Le._dbInfo)}}).catch(function(le){throw(q(c,le)||u.resolve()).catch(function(){}),le})})}return C(_,p),_}var u1={_driver:"asyncStorage",_initStorage:X,_support:v(),iterate:J,getItem:Z,setItem:se,removeItem:Ce,clear:Ne,length:we,key:Me,keys:H1,dropInstance:Xe};function t1(){return typeof openDatabase=="function"}var Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",je="~~local_forage_type~",f1=/^~~local_forage_type~([^~]+)~/,Ue="__lfsc__:",n1=Ue.length,ye="arbf",pe="blob",Ve="si08",a1="ui08",Fe="uic8",r1="si16",Pt="si32",ei="ur16",ti="ui32",ni="fl32",ri="fl64",ii=n1+ye.length,oi=Object.prototype.toString;function ai(c){var p=c.length*.75,f=c.length,S,_=0,y,D,j,$;c[c.length-1]==="="&&(p--,c[c.length-2]==="="&&p--);var B=new ArrayBuffer(p),F=new Uint8Array(B);for(S=0;S<f;S+=4)y=Re.indexOf(c[S]),D=Re.indexOf(c[S+1]),j=Re.indexOf(c[S+2]),$=Re.indexOf(c[S+3]),F[_++]=y<<2|D>>4,F[_++]=(D&15)<<4|j>>2,F[_++]=(j&3)<<6|$&63;return B}function $n(c){var p=new Uint8Array(c),f="",S;for(S=0;S<p.length;S+=3)f+=Re[p[S]>>2],f+=Re[(p[S]&3)<<4|p[S+1]>>4],f+=Re[(p[S+1]&15)<<2|p[S+2]>>6],f+=Re[p[S+2]&63];return p.length%3===2?f=f.substring(0,f.length-1)+"=":p.length%3===1&&(f=f.substring(0,f.length-2)+"=="),f}function v5(c,p){var f="";if(c&&(f=oi.call(c)),c&&(f==="[object ArrayBuffer]"||c.buffer&&oi.call(c.buffer)==="[object ArrayBuffer]")){var S,_=Ue;c instanceof ArrayBuffer?(S=c,_+=ye):(S=c.buffer,f==="[object Int8Array]"?_+=Ve:f==="[object Uint8Array]"?_+=a1:f==="[object Uint8ClampedArray]"?_+=Fe:f==="[object Int16Array]"?_+=r1:f==="[object Uint16Array]"?_+=ei:f==="[object Int32Array]"?_+=Pt:f==="[object Uint32Array]"?_+=ti:f==="[object Float32Array]"?_+=ni:f==="[object Float64Array]"?_+=ri:p(new Error("Failed to get type for BinaryArray"))),p(_+$n(S))}else if(f==="[object Blob]"){var y=new FileReader;y.onload=function(){var D=je+c.type+"~"+$n(this.result);p(Ue+pe+D)},y.readAsArrayBuffer(c)}else try{p(JSON.stringify(c))}catch(D){console.error("Couldn't convert value into a JSON string: ",c),p(null,D)}}function m5(c){if(c.substring(0,n1)!==Ue)return JSON.parse(c);var p=c.substring(ii),f=c.substring(n1,ii),S;if(f===pe&&f1.test(p)){var _=p.match(f1);S=_[1],p=p.substring(_[0].length)}var y=ai(p);switch(f){case ye:return y;case pe:return m([y],{type:S});case Ve:return new Int8Array(y);case a1:return new Uint8Array(y);case Fe:return new Uint8ClampedArray(y);case r1:return new Int16Array(y);case ei:return new Uint16Array(y);case Pt:return new Int32Array(y);case ti:return new Uint32Array(y);case ni:return new Float32Array(y);case ri:return new Float64Array(y);default:throw new Error("Unkown type: "+f)}}var Bn={serialize:v5,deserialize:m5,stringToBuffer:ai,bufferToString:$n};function si(c,p,f,S){c.executeSql("CREATE TABLE IF NOT EXISTS "+p.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],f,S)}function p5(c){var p=this,f={db:null};if(c)for(var S in c)f[S]=typeof c[S]!="string"?c[S].toString():c[S];var _=new u(function(y,D){try{f.db=openDatabase(f.name,String(f.version),f.description,f.size)}catch(j){return D(j)}f.db.transaction(function(j){si(j,f,function(){p._dbInfo=f,y()},function($,B){D(B)})},D)});return f.serializer=Bn,_}function d1(c,p,f,S,_,y){c.executeSql(f,S,_,function(D,j){j.code===j.SYNTAX_ERR?D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[p.storeName],function($,B){B.rows.length?y($,j):si($,p,function(){$.executeSql(f,S,_,y)},y)},y):y(D,j)},y)}function C5(c,p){var f=this;c=M(c);var S=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(j){d1(j,D,"SELECT * FROM "+D.storeName+" WHERE key = ? LIMIT 1",[c],function($,B){var F=B.rows.length?B.rows.item(0).value:null;F&&(F=D.serializer.deserialize(F)),_(F)},function($,B){y(B)})})}).catch(y)});return C(S,p),S}function g5(c,p){var f=this,S=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(j){d1(j,D,"SELECT * FROM "+D.storeName,[],function($,B){for(var F=B.rows,Y=F.length,ae=0;ae<Y;ae++){var le=F.item(ae),de=le.value;if(de&&(de=D.serializer.deserialize(de)),de=c(de,le.key,ae+1),de!==void 0){_(de);return}}_()},function($,B){y(B)})})}).catch(y)});return C(S,p),S}function li(c,p,f,S){var _=this;c=M(c);var y=new u(function(D,j){_.ready().then(function(){p===void 0&&(p=null);var $=p,B=_._dbInfo;B.serializer.serialize(p,function(F,Y){Y?j(Y):B.db.transaction(function(ae){d1(ae,B,"INSERT OR REPLACE INTO "+B.storeName+" (key, value) VALUES (?, ?)",[c,F],function(){D($)},function(le,de){j(de)})},function(ae){if(ae.code===ae.QUOTA_ERR){if(S>0){D(li.apply(_,[c,$,f,S-1]));return}j(ae)}})})}).catch(j)});return C(y,f),y}function b5(c,p,f){return li.apply(this,[c,p,f,1])}function y5(c,p){var f=this;c=M(c);var S=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(j){d1(j,D,"DELETE FROM "+D.storeName+" WHERE key = ?",[c],function(){_()},function($,B){y(B)})})}).catch(y)});return C(S,p),S}function S5(c){var p=this,f=new u(function(S,_){p.ready().then(function(){var y=p._dbInfo;y.db.transaction(function(D){d1(D,y,"DELETE FROM "+y.storeName,[],function(){S()},function(j,$){_($)})})}).catch(_)});return C(f,c),f}function L5(c){var p=this,f=new u(function(S,_){p.ready().then(function(){var y=p._dbInfo;y.db.transaction(function(D){d1(D,y,"SELECT COUNT(key) as c FROM "+y.storeName,[],function(j,$){var B=$.rows.item(0).c;S(B)},function(j,$){_($)})})}).catch(_)});return C(f,c),f}function _5(c,p){var f=this,S=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(j){d1(j,D,"SELECT key FROM "+D.storeName+" WHERE id = ? LIMIT 1",[c+1],function($,B){var F=B.rows.length?B.rows.item(0).key:null;_(F)},function($,B){y(B)})})}).catch(y)});return C(S,p),S}function w5(c){var p=this,f=new u(function(S,_){p.ready().then(function(){var y=p._dbInfo;y.db.transaction(function(D){d1(D,y,"SELECT key FROM "+y.storeName,[],function(j,$){for(var B=[],F=0;F<$.rows.length;F++)B.push($.rows.item(F).key);S(B)},function(j,$){_($)})})}).catch(_)});return C(f,c),f}function M5(c){return new u(function(p,f){c.transaction(function(S){S.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(_,y){for(var D=[],j=0;j<y.rows.length;j++)D.push(y.rows.item(j).name);p({db:c,storeNames:D})},function(_,y){f(y)})},function(S){f(S)})})}function E5(c,p){p=E.apply(this,arguments);var f=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||f.name,c.storeName=c.storeName||f.storeName);var S=this,_;return c.name?_=new u(function(y){var D;c.name===f.name?D=S._dbInfo.db:D=openDatabase(c.name,"","",0),c.storeName?y({db:D,storeNames:[c.storeName]}):y(M5(D))}).then(function(y){return new u(function(D,j){y.db.transaction(function($){function B(le){return new u(function(de,Le){$.executeSql("DROP TABLE IF EXISTS "+le,[],function(){de()},function(Se,ze){Le(ze)})})}for(var F=[],Y=0,ae=y.storeNames.length;Y<ae;Y++)F.push(B(y.storeNames[Y]));u.all(F).then(function(){D()}).catch(function(le){j(le)})},function($){j($)})})}):_=u.reject("Invalid arguments"),C(_,p),_}var H5={_driver:"webSQLStorage",_initStorage:p5,_support:t1(),iterate:g5,getItem:C5,setItem:b5,removeItem:y5,clear:S5,length:L5,key:_5,keys:w5,dropInstance:E5};function O5(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function ci(c,p){var f=c.name+"/";return c.storeName!==p.storeName&&(f+=c.storeName+"/"),f}function I5(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch{return!0}}function T5(){return!I5()||localStorage.length>0}function D5(c){var p=this,f={};if(c)for(var S in c)f[S]=c[S];return f.keyPrefix=ci(c,p._defaultConfig),T5()?(p._dbInfo=f,f.serializer=Bn,u.resolve()):u.reject()}function x5(c){var p=this,f=p.ready().then(function(){for(var S=p._dbInfo.keyPrefix,_=localStorage.length-1;_>=0;_--){var y=localStorage.key(_);y.indexOf(S)===0&&localStorage.removeItem(y)}});return C(f,c),f}function N5(c,p){var f=this;c=M(c);var S=f.ready().then(function(){var _=f._dbInfo,y=localStorage.getItem(_.keyPrefix+c);return y&&(y=_.serializer.deserialize(y)),y});return C(S,p),S}function V5(c,p){var f=this,S=f.ready().then(function(){for(var _=f._dbInfo,y=_.keyPrefix,D=y.length,j=localStorage.length,$=1,B=0;B<j;B++){var F=localStorage.key(B);if(F.indexOf(y)===0){var Y=localStorage.getItem(F);if(Y&&(Y=_.serializer.deserialize(Y)),Y=c(Y,F.substring(D),$++),Y!==void 0)return Y}}});return C(S,p),S}function A5(c,p){var f=this,S=f.ready().then(function(){var _=f._dbInfo,y;try{y=localStorage.key(c)}catch{y=null}return y&&(y=y.substring(_.keyPrefix.length)),y});return C(S,p),S}function P5(c){var p=this,f=p.ready().then(function(){for(var S=p._dbInfo,_=localStorage.length,y=[],D=0;D<_;D++){var j=localStorage.key(D);j.indexOf(S.keyPrefix)===0&&y.push(j.substring(S.keyPrefix.length))}return y});return C(f,c),f}function R5(c){var p=this,f=p.keys().then(function(S){return S.length});return C(f,c),f}function j5(c,p){var f=this;c=M(c);var S=f.ready().then(function(){var _=f._dbInfo;localStorage.removeItem(_.keyPrefix+c)});return C(S,p),S}function k5(c,p,f){var S=this;c=M(c);var _=S.ready().then(function(){p===void 0&&(p=null);var y=p;return new u(function(D,j){var $=S._dbInfo;$.serializer.serialize(p,function(B,F){if(F)j(F);else try{localStorage.setItem($.keyPrefix+c,B),D(y)}catch(Y){(Y.name==="QuotaExceededError"||Y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(Y),j(Y)}})})});return C(_,f),_}function $5(c,p){if(p=E.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var f=this.config();c.name=c.name||f.name,c.storeName=c.storeName||f.storeName}var S=this,_;return c.name?_=new u(function(y){c.storeName?y(ci(c,S._defaultConfig)):y(c.name+"/")}).then(function(y){for(var D=localStorage.length-1;D>=0;D--){var j=localStorage.key(D);j.indexOf(y)===0&&localStorage.removeItem(j)}}):_=u.reject("Invalid arguments"),C(_,p),_}var B5={_driver:"localStorageWrapper",_initStorage:D5,_support:O5(),iterate:V5,getItem:N5,setItem:k5,removeItem:j5,clear:x5,length:R5,key:A5,keys:P5,dropInstance:$5},U5=function(p,f){return p===f||typeof p=="number"&&typeof f=="number"&&isNaN(p)&&isNaN(f)},F5=function(p,f){for(var S=p.length,_=0;_<S;){if(U5(p[_],f))return!0;_++}return!1},ui=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},Z1={},fi={},O1={INDEXEDDB:u1,WEBSQL:H5,LOCALSTORAGE:B5},z5=[O1.INDEXEDDB._driver,O1.WEBSQL._driver,O1.LOCALSTORAGE._driver],Rt=["dropInstance"],Un=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Rt),Z5={description:"",driver:z5.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function W5(c,p){c[p]=function(){var f=arguments;return c.ready().then(function(){return c[p].apply(c,f)})}}function Fn(){for(var c=1;c<arguments.length;c++){var p=arguments[c];if(p)for(var f in p)p.hasOwnProperty(f)&&(ui(p[f])?arguments[0][f]=p[f].slice():arguments[0][f]=p[f])}return arguments[0]}var G5=function(){function c(p){a(this,c);for(var f in O1)if(O1.hasOwnProperty(f)){var S=O1[f],_=S._driver;this[f]=_,Z1[_]||this.defineDriver(S)}this._defaultConfig=Fn({},Z5),this._config=Fn({},this._defaultConfig,p),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(f){if((typeof f>"u"?"undefined":o(f))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var S in f){if(S==="storeName"&&(f[S]=f[S].replace(/\W/g,"_")),S==="version"&&typeof f[S]!="number")return new Error("Database version must be a number.");this._config[S]=f[S]}return"driver"in f&&f.driver?this.setDriver(this._config.driver):!0}else return typeof f=="string"?this._config[f]:this._config},c.prototype.defineDriver=function(f,S,_){var y=new u(function(D,j){try{var $=f._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!f._driver){j(B);return}for(var F=Un.concat("_initStorage"),Y=0,ae=F.length;Y<ae;Y++){var le=F[Y],de=!F5(Rt,le);if((de||f[le])&&typeof f[le]!="function"){j(B);return}}var Le=function(){for(var W1=function(X5){return function(){var Q5=new Error("Method "+X5+" is not implemented by the current driver"),di=u.reject(Q5);return C(di,arguments[arguments.length-1]),di}},zn=0,q5=Rt.length;zn<q5;zn++){var Zn=Rt[zn];f[Zn]||(f[Zn]=W1(Zn))}};Le();var Se=function(W1){Z1[$]&&console.info("Redefining LocalForage driver: "+$),Z1[$]=f,fi[$]=W1,D()};"_support"in f?f._support&&typeof f._support=="function"?f._support().then(Se,j):Se(!!f._support):Se(!0)}catch(ze){j(ze)}});return L(y,S,_),y},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(f,S,_){var y=Z1[f]?u.resolve(Z1[f]):u.reject(new Error("Driver not found."));return L(y,S,_),y},c.prototype.getSerializer=function(f){var S=u.resolve(Bn);return L(S,f),S},c.prototype.ready=function(f){var S=this,_=S._driverSet.then(function(){return S._ready===null&&(S._ready=S._initDriver()),S._ready});return L(_,f,f),_},c.prototype.setDriver=function(f,S,_){var y=this;ui(f)||(f=[f]);var D=this._getSupportedDrivers(f);function j(){y._config.driver=y.driver()}function $(Y){return y._extend(Y),j(),y._ready=y._initStorage(y._config),y._ready}function B(Y){return function(){var ae=0;function le(){for(;ae<Y.length;){var de=Y[ae];return ae++,y._dbInfo=null,y._ready=null,y.getDriver(de).then($).catch(le)}j();var Le=new Error("No available storage method found.");return y._driverSet=u.reject(Le),y._driverSet}return le()}}var F=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=F.then(function(){var Y=D[0];return y._dbInfo=null,y._ready=null,y.getDriver(Y).then(function(ae){y._driver=ae._driver,j(),y._wrapLibraryMethodsWithReady(),y._initDriver=B(D)})}).catch(function(){j();var Y=new Error("No available storage method found.");return y._driverSet=u.reject(Y),y._driverSet}),L(this._driverSet,S,_),this._driverSet},c.prototype.supports=function(f){return!!fi[f]},c.prototype._extend=function(f){Fn(this,f)},c.prototype._getSupportedDrivers=function(f){for(var S=[],_=0,y=f.length;_<y;_++){var D=f[_];this.supports(D)&&S.push(D)}return S},c.prototype._wrapLibraryMethodsWithReady=function(){for(var f=0,S=Un.length;f<S;f++)W5(this,Un[f])},c.prototype.createInstance=function(f){return new c(f)},c}(),Y5=new G5;r.exports=Y5},{3:3}]},{},[4])(4)})})(o9);var ka=o9.exports;const g1=Xr(ka);class Ln{getItem(t){return g1.getItem(t)}setItem(t,n){return g1.setItem(t,n)}removeItem(t){return g1.removeItem(t)}clear(){return g1.clear()}key(t){return g1.key(t)}keys(){return g1.keys()}iterate(t){return g1.iterate(t)}}class _n{constructor(){ee(this,"_portalContainer",r6()?document.body:void 0);ee(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 wn(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 wn(e)}function Ba(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a9(e,t){if(e){if(typeof e=="string")return wn(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)?wn(e,t):void 0}}function Ua(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F1(e){return $a(e)||Ba(e)||a9(e)||Ua()}function Fa(e){if(Array.isArray(e))return e}function za(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],h=!0,v=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);h=!0);}catch(m){v=!0,i=m}finally{try{if(!h&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(v)throw i}}return l}}function Za(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ee(e,t){return Fa(e)||za(e,t)||a9(e,t)||Za()}function Wa(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 Ht(e,t){if(e==null)return{};var n,r,i=Wa(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[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 Ga(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 s9(e){var t=Ga(e,"string");return Ge(t)=="symbol"?t:t+""}function He(e,t,n){return(t=s9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l9(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 ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l9(Object(n),!0).forEach(function(r){He(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b1(){return b1=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},b1.apply(null,arguments)}var c9={exports:{}};/*!
26
+ */(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 wt=="function"&&wt;if(!m&&u)return u(v,!0);if(c)return c(v,!0);var g=new Error("Cannot find module '"+v+"'");throw g.code="MODULE_NOT_FOUND",g}var S=i[v]={exports:{}};r[v][0].call(S.exports,function(w){var E=r[v][1][w];return a(E||w)},S,S.exports,n,r,i,o)}return i[v].exports}for(var c=typeof wt=="function"&&wt,h=0;h<o.length;h++)a(o[h]);return a}({1:[function(n,r,i){(function(o){var a=o.MutationObserver||o.WebKitMutationObserver,c;if(a){var h=0,v=new a(w),m=o.document.createTextNode("");v.observe(m,{characterData:!0}),c=function(){m.data=h=++h%2}}else if(!o.setImmediate&&typeof o.MessageChannel<"u"){var u=new o.MessageChannel;u.port1.onmessage=w,c=function(){u.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?c=function(){var M=o.document.createElement("script");M.onreadystatechange=function(){w(),M.onreadystatechange=null,M.parentNode.removeChild(M),M=null},o.document.documentElement.appendChild(M)}:c=function(){setTimeout(w,0)};var g,S=[];function w(){g=!0;for(var M,I,x=S.length;x;){for(I=S,S=[],M=-1;++M<x;)I[M]();x=S.length}g=!1}r.exports=E;function E(M){S.push(M)===1&&!g&&c()}}).call(this,typeof Y1<"u"?Y1:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,i){var o=n(1);function a(){}var c={},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&&E(this,H)}u.prototype.catch=function(H){return this.then(null,H)},u.prototype.then=function(H,O){if(typeof H!="function"&&this.state===v||typeof O!="function"&&this.state===h)return this;var P=new this.constructor(a);if(this.state!==m){var k=this.state===v?H:O;S(P,k,this.outcome)}else this.queue.push(new g(P,H,O));return P};function g(H,O,P){this.promise=H,typeof O=="function"&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),typeof P=="function"&&(this.onRejected=P,this.callRejected=this.otherCallRejected)}g.prototype.callFulfilled=function(H){c.resolve(this.promise,H)},g.prototype.otherCallFulfilled=function(H){S(this.promise,this.onFulfilled,H)},g.prototype.callRejected=function(H){c.reject(this.promise,H)},g.prototype.otherCallRejected=function(H){S(this.promise,this.onRejected,H)};function S(H,O,P){o(function(){var k;try{k=O(P)}catch(z){return c.reject(H,z)}k===H?c.reject(H,new TypeError("Cannot resolve promise with itself")):c.resolve(H,k)})}c.resolve=function(H,O){var P=M(w,O);if(P.status==="error")return c.reject(H,P.value);var k=P.value;if(k)E(H,k);else{H.state=v,H.outcome=O;for(var z=-1,W=H.queue.length;++z<W;)H.queue[z].callFulfilled(O)}return H},c.reject=function(H,O){H.state=h,H.outcome=O;for(var P=-1,k=H.queue.length;++P<k;)H.queue[P].callRejected(O);return H};function w(H){var O=H&&H.then;if(H&&(typeof H=="object"||typeof H=="function")&&typeof O=="function")return function(){O.apply(H,arguments)}}function E(H,O){var P=!1;function k(K){P||(P=!0,c.reject(H,K))}function z(K){P||(P=!0,c.resolve(H,K))}function W(){O(z,k)}var q=M(W);q.status==="error"&&k(q.value)}function M(H,O){var P={};try{P.value=H(O),P.status="success"}catch(k){P.status="error",P.value=k}return P}u.resolve=I;function I(H){return H instanceof this?H:c.resolve(new this(a),H)}u.reject=x;function x(H){var O=new this(a);return c.reject(O,H)}u.all=T;function T(H){var O=this;if(Object.prototype.toString.call(H)!=="[object Array]")return this.reject(new TypeError("must be an array"));var P=H.length,k=!1;if(!P)return this.resolve([]);for(var z=new Array(P),W=0,q=-1,K=new this(a);++q<P;)ne(H[q],q);return K;function ne(oe,ve){O.resolve(oe).then(ie,function(fe){k||(k=!0,c.reject(K,fe))});function ie(fe){z[ve]=fe,++W===P&&!k&&(k=!0,c.resolve(K,z))}}}u.race=j;function j(H){var O=this;if(Object.prototype.toString.call(H)!=="[object Array]")return this.reject(new TypeError("must be an array"));var P=H.length,k=!1;if(!P)return this.resolve([]);for(var z=-1,W=new this(a);++z<P;)q(H[z]);return W;function q(K){O.resolve(K).then(function(ne){k||(k=!0,c.resolve(W,ne))},function(ne){k||(k=!0,c.reject(W,ne))})}}},{1:1}],3:[function(n,r,i){(function(o){typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof Y1<"u"?Y1: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(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};function a(l,C){if(!(l instanceof C))throw new TypeError("Cannot call a class as a function")}function c(){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=c();function v(){try{if(!h||!h.open)return!1;var l=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),C=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!l||C)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function m(l,C){l=l||[],C=C||{};try{return new Blob(l,C)}catch(y){if(y.name!=="TypeError")throw y;for(var f=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,L=new f,_=0;_<l.length;_+=1)L.append(l[_]);return L.getBlob(C.type)}}typeof Promise>"u"&&n(3);var u=Promise;function g(l,C){C&&l.then(function(f){C(null,f)},function(f){C(f)})}function S(l,C,f){typeof C=="function"&&l.then(C),typeof f=="function"&&l.catch(f)}function w(l){return typeof l!="string"&&(console.warn(l+" used as a key, but it is not a string."),l=String(l)),l}function E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var M="local-forage-detect-blob-support",I=void 0,x={},T=Object.prototype.toString,j="readonly",H="readwrite";function O(l){for(var C=l.length,f=new ArrayBuffer(C),L=new Uint8Array(f),_=0;_<C;_++)L[_]=l.charCodeAt(_);return f}function P(l){return new u(function(C){var f=l.transaction(M,H),L=m([""]);f.objectStore(M).put(L,"key"),f.onabort=function(_){_.preventDefault(),_.stopPropagation(),C(!1)},f.oncomplete=function(){var _=navigator.userAgent.match(/Chrome\/(\d+)/),y=navigator.userAgent.match(/Edge\//);C(y||!_||parseInt(_[1],10)>=43)}}).catch(function(){return!1})}function k(l){return typeof I=="boolean"?u.resolve(I):P(l).then(function(C){return I=C,I})}function z(l){var C=x[l.name],f={};f.promise=new u(function(L,_){f.resolve=L,f.reject=_}),C.deferredOperations.push(f),C.dbReady?C.dbReady=C.dbReady.then(function(){return f.promise}):C.dbReady=f.promise}function W(l){var C=x[l.name],f=C.deferredOperations.pop();if(f)return f.resolve(),f.promise}function q(l,C){var f=x[l.name],L=f.deferredOperations.pop();if(L)return L.reject(C),L.promise}function K(l,C){return new u(function(f,L){if(x[l.name]=x[l.name]||G(),l.db)if(C)z(l),l.db.close();else return f(l.db);var _=[l.name];C&&_.push(l.version);var y=h.open.apply(h,_);C&&(y.onupgradeneeded=function(D){var R=y.result;try{R.createObjectStore(l.storeName),D.oldVersion<=1&&R.createObjectStore(M)}catch($){if($.name==="ConstraintError")console.warn('The database "'+l.name+'" has been upgraded from version '+D.oldVersion+" to version "+D.newVersion+', but the storage "'+l.storeName+'" already exists.');else throw $}}),y.onerror=function(D){D.preventDefault(),L(y.error)},y.onsuccess=function(){var D=y.result;D.onversionchange=function(R){R.target.close()},f(D),W(l)}})}function ne(l){return K(l,!1)}function oe(l){return K(l,!0)}function ve(l,C){if(!l.db)return!0;var f=!l.db.objectStoreNames.contains(l.storeName),L=l.version<l.db.version,_=l.version>l.db.version;if(L&&(l.version!==C&&console.warn('The database "'+l.name+`" can't be downgraded from version `+l.db.version+" to version "+l.version+"."),l.version=l.db.version),_||f){if(f){var y=l.db.version+1;y>l.version&&(l.version=y)}return!0}return!1}function ie(l){return new u(function(C,f){var L=new FileReader;L.onerror=f,L.onloadend=function(_){var y=btoa(_.target.result||"");C({__local_forage_encoded_blob:!0,data:y,type:l.type})},L.readAsBinaryString(l)})}function fe(l){var C=O(atob(l.data));return m([C],{type:l.type})}function be(l){return l&&l.__local_forage_encoded_blob}function F(l){var C=this,f=C._initReady().then(function(){var L=x[C._dbInfo.name];if(L&&L.dbReady)return L.dbReady});return S(f,l,l),f}function V(l){z(l);for(var C=x[l.name],f=C.forages,L=0;L<f.length;L++){var _=f[L];_._dbInfo.db&&(_._dbInfo.db.close(),_._dbInfo.db=null)}return l.db=null,ne(l).then(function(y){return l.db=y,ve(l)?oe(l):y}).then(function(y){l.db=C.db=y;for(var D=0;D<f.length;D++)f[D]._dbInfo.db=y}).catch(function(y){throw q(l,y),y})}function A(l,C,f,L){L===void 0&&(L=1);try{var _=l.db.transaction(l.storeName,C);f(null,_)}catch(y){if(L>0&&(!l.db||y.name==="InvalidStateError"||y.name==="NotFoundError"))return u.resolve().then(function(){if(!l.db||y.name==="NotFoundError"&&!l.db.objectStoreNames.contains(l.storeName)&&l.version<=l.db.version)return l.db&&(l.version=l.db.version+1),oe(l)}).then(function(){return V(l).then(function(){A(l,C,f,L-1)})}).catch(f);f(y)}}function G(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function X(l){var C=this,f={db:null};if(l)for(var L in l)f[L]=l[L];var _=x[f.name];_||(_=G(),x[f.name]=_),_.forages.push(C),C._initReady||(C._initReady=C.ready,C.ready=F);var y=[];function D(){return u.resolve()}for(var R=0;R<_.forages.length;R++){var $=_.forages[R];$!==C&&y.push($._initReady().catch(D))}var B=_.forages.slice(0);return u.all(y).then(function(){return f.db=_.db,ne(f)}).then(function(U){return f.db=U,ve(f,C._defaultConfig.version)?oe(f):U}).then(function(U){f.db=_.db=U,C._dbInfo=f;for(var Y=0;Y<B.length;Y++){var ae=B[Y];ae!==C&&(ae._dbInfo.db=f.db,ae._dbInfo.version=f.version)}})}function Z(l,C){var f=this;l=w(l);var L=new u(function(_,y){f.ready().then(function(){A(f._dbInfo,j,function(D,R){if(D)return y(D);try{var $=R.objectStore(f._dbInfo.storeName),B=$.get(l);B.onsuccess=function(){var U=B.result;U===void 0&&(U=null),be(U)&&(U=fe(U)),_(U)},B.onerror=function(){y(B.error)}}catch(U){y(U)}})}).catch(y)});return g(L,C),L}function J(l,C){var f=this,L=new u(function(_,y){f.ready().then(function(){A(f._dbInfo,j,function(D,R){if(D)return y(D);try{var $=R.objectStore(f._dbInfo.storeName),B=$.openCursor(),U=1;B.onsuccess=function(){var Y=B.result;if(Y){var ae=Y.value;be(ae)&&(ae=fe(ae));var ce=l(ae,Y.key,U++);ce!==void 0?_(ce):Y.continue()}else _()},B.onerror=function(){y(B.error)}}catch(Y){y(Y)}})}).catch(y)});return g(L,C),L}function se(l,C,f){var L=this;l=w(l);var _=new u(function(y,D){var R;L.ready().then(function(){return R=L._dbInfo,T.call(C)==="[object Blob]"?k(R.db).then(function($){return $?C:ie(C)}):C}).then(function($){A(L._dbInfo,H,function(B,U){if(B)return D(B);try{var Y=U.objectStore(L._dbInfo.storeName);$===null&&($=void 0);var ae=Y.put($,l);U.oncomplete=function(){$===void 0&&($=null),y($)},U.onabort=U.onerror=function(){var ce=ae.error?ae.error:ae.transaction.error;D(ce)}}catch(ce){D(ce)}})}).catch(D)});return g(_,f),_}function Ce(l,C){var f=this;l=w(l);var L=new u(function(_,y){f.ready().then(function(){A(f._dbInfo,H,function(D,R){if(D)return y(D);try{var $=R.objectStore(f._dbInfo.storeName),B=$.delete(l);R.oncomplete=function(){_()},R.onerror=function(){y(B.error)},R.onabort=function(){var U=B.error?B.error:B.transaction.error;y(U)}}catch(U){y(U)}})}).catch(y)});return g(L,C),L}function Ne(l){var C=this,f=new u(function(L,_){C.ready().then(function(){A(C._dbInfo,H,function(y,D){if(y)return _(y);try{var R=D.objectStore(C._dbInfo.storeName),$=R.clear();D.oncomplete=function(){L()},D.onabort=D.onerror=function(){var B=$.error?$.error:$.transaction.error;_(B)}}catch(B){_(B)}})}).catch(_)});return g(f,l),f}function we(l){var C=this,f=new u(function(L,_){C.ready().then(function(){A(C._dbInfo,j,function(y,D){if(y)return _(y);try{var R=D.objectStore(C._dbInfo.storeName),$=R.count();$.onsuccess=function(){L($.result)},$.onerror=function(){_($.error)}}catch(B){_(B)}})}).catch(_)});return g(f,l),f}function Ee(l,C){var f=this,L=new u(function(_,y){if(l<0){_(null);return}f.ready().then(function(){A(f._dbInfo,j,function(D,R){if(D)return y(D);try{var $=R.objectStore(f._dbInfo.storeName),B=!1,U=$.openKeyCursor();U.onsuccess=function(){var Y=U.result;if(!Y){_(null);return}l===0||B?_(Y.key):(B=!0,Y.advance(l))},U.onerror=function(){y(U.error)}}catch(Y){y(Y)}})}).catch(y)});return g(L,C),L}function E1(l){var C=this,f=new u(function(L,_){C.ready().then(function(){A(C._dbInfo,j,function(y,D){if(y)return _(y);try{var R=D.objectStore(C._dbInfo.storeName),$=R.openKeyCursor(),B=[];$.onsuccess=function(){var U=$.result;if(!U){L(B);return}B.push(U.key),U.continue()},$.onerror=function(){_($.error)}}catch(U){_(U)}})}).catch(_)});return g(f,l),f}function Xe(l,C){C=E.apply(this,arguments);var f=this.config();l=typeof l!="function"&&l||{},l.name||(l.name=l.name||f.name,l.storeName=l.storeName||f.storeName);var L=this,_;if(!l.name)_=u.reject("Invalid arguments");else{var y=l.name===f.name&&L._dbInfo.db,D=y?u.resolve(L._dbInfo.db):ne(l).then(function(R){var $=x[l.name],B=$.forages;$.db=R;for(var U=0;U<B.length;U++)B[U]._dbInfo.db=R;return R});l.storeName?_=D.then(function(R){if(R.objectStoreNames.contains(l.storeName)){var $=R.version+1;z(l);var B=x[l.name],U=B.forages;R.close();for(var Y=0;Y<U.length;Y++){var ae=U[Y];ae._dbInfo.db=null,ae._dbInfo.version=$}var ce=new u(function(de,_e){var Le=h.open(l.name,$);Le.onerror=function(Ze){var Z1=Le.result;Z1.close(),_e(Ze)},Le.onupgradeneeded=function(){var Ze=Le.result;Ze.deleteObjectStore(l.storeName)},Le.onsuccess=function(){var Ze=Le.result;Ze.close(),de(Ze)}});return ce.then(function(de){B.db=de;for(var _e=0;_e<U.length;_e++){var Le=U[_e];Le._dbInfo.db=de,W(Le._dbInfo)}}).catch(function(de){throw(q(l,de)||u.resolve()).catch(function(){}),de})}}):_=D.then(function(R){z(l);var $=x[l.name],B=$.forages;R.close();for(var U=0;U<B.length;U++){var Y=B[U];Y._dbInfo.db=null}var ae=new u(function(ce,de){var _e=h.deleteDatabase(l.name);_e.onerror=function(){var Le=_e.result;Le&&Le.close(),de(_e.error)},_e.onblocked=function(){console.warn('dropInstance blocked for database "'+l.name+'" until all open connections are closed')},_e.onsuccess=function(){var Le=_e.result;Le&&Le.close(),ce(Le)}});return ae.then(function(ce){$.db=ce;for(var de=0;de<B.length;de++){var _e=B[de];W(_e._dbInfo)}}).catch(function(ce){throw(q(l,ce)||u.resolve()).catch(function(){}),ce})})}return g(_,C),_}var u1={_driver:"asyncStorage",_initStorage:X,_support:v(),iterate:J,getItem:Z,setItem:se,removeItem:Ce,clear:Ne,length:we,key:Ee,keys:E1,dropInstance:Xe};function t1(){return typeof openDatabase=="function"}var ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",je="~~local_forage_type~",f1=/^~~local_forage_type~([^~]+)~/,Ue="__lfsc__:",n1=Ue.length,ye="arbf",pe="blob",Ve="si08",a1="ui08",ze="uic8",r1="si16",At="si32",X9="ur16",Q9="ui32",J9="fl32",K9="fl64",ei=n1+ye.length,ti=Object.prototype.toString;function ni(l){var C=l.length*.75,f=l.length,L,_=0,y,D,R,$;l[l.length-1]==="="&&(C--,l[l.length-2]==="="&&C--);var B=new ArrayBuffer(C),U=new Uint8Array(B);for(L=0;L<f;L+=4)y=ke.indexOf(l[L]),D=ke.indexOf(l[L+1]),R=ke.indexOf(l[L+2]),$=ke.indexOf(l[L+3]),U[_++]=y<<2|D>>4,U[_++]=(D&15)<<4|R>>2,U[_++]=(R&3)<<6|$&63;return B}function jn(l){var C=new Uint8Array(l),f="",L;for(L=0;L<C.length;L+=3)f+=ke[C[L]>>2],f+=ke[(C[L]&3)<<4|C[L+1]>>4],f+=ke[(C[L+1]&15)<<2|C[L+2]>>6],f+=ke[C[L+2]&63];return C.length%3===2?f=f.substring(0,f.length-1)+"=":C.length%3===1&&(f=f.substring(0,f.length-2)+"=="),f}function s5(l,C){var f="";if(l&&(f=ti.call(l)),l&&(f==="[object ArrayBuffer]"||l.buffer&&ti.call(l.buffer)==="[object ArrayBuffer]")){var L,_=Ue;l instanceof ArrayBuffer?(L=l,_+=ye):(L=l.buffer,f==="[object Int8Array]"?_+=Ve:f==="[object Uint8Array]"?_+=a1:f==="[object Uint8ClampedArray]"?_+=ze:f==="[object Int16Array]"?_+=r1:f==="[object Uint16Array]"?_+=X9:f==="[object Int32Array]"?_+=At:f==="[object Uint32Array]"?_+=Q9:f==="[object Float32Array]"?_+=J9:f==="[object Float64Array]"?_+=K9:C(new Error("Failed to get type for BinaryArray"))),C(_+jn(L))}else if(f==="[object Blob]"){var y=new FileReader;y.onload=function(){var D=je+l.type+"~"+jn(this.result);C(Ue+pe+D)},y.readAsArrayBuffer(l)}else try{C(JSON.stringify(l))}catch(D){console.error("Couldn't convert value into a JSON string: ",l),C(null,D)}}function l5(l){if(l.substring(0,n1)!==Ue)return JSON.parse(l);var C=l.substring(ei),f=l.substring(n1,ei),L;if(f===pe&&f1.test(C)){var _=C.match(f1);L=_[1],C=C.substring(_[0].length)}var y=ni(C);switch(f){case ye:return y;case pe:return m([y],{type:L});case Ve:return new Int8Array(y);case a1:return new Uint8Array(y);case ze:return new Uint8ClampedArray(y);case r1:return new Int16Array(y);case X9:return new Uint16Array(y);case At:return new Int32Array(y);case Q9:return new Uint32Array(y);case J9:return new Float32Array(y);case K9:return new Float64Array(y);default:throw new Error("Unkown type: "+f)}}var $n={serialize:s5,deserialize:l5,stringToBuffer:ni,bufferToString:jn};function ri(l,C,f,L){l.executeSql("CREATE TABLE IF NOT EXISTS "+C.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],f,L)}function c5(l){var C=this,f={db:null};if(l)for(var L in l)f[L]=typeof l[L]!="string"?l[L].toString():l[L];var _=new u(function(y,D){try{f.db=openDatabase(f.name,String(f.version),f.description,f.size)}catch(R){return D(R)}f.db.transaction(function(R){ri(R,f,function(){C._dbInfo=f,y()},function($,B){D(B)})},D)});return f.serializer=$n,_}function d1(l,C,f,L,_,y){l.executeSql(f,L,_,function(D,R){R.code===R.SYNTAX_ERR?D.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[C.storeName],function($,B){B.rows.length?y($,R):ri($,C,function(){$.executeSql(f,L,_,y)},y)},y):y(D,R)},y)}function u5(l,C){var f=this;l=w(l);var L=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(R){d1(R,D,"SELECT * FROM "+D.storeName+" WHERE key = ? LIMIT 1",[l],function($,B){var U=B.rows.length?B.rows.item(0).value:null;U&&(U=D.serializer.deserialize(U)),_(U)},function($,B){y(B)})})}).catch(y)});return g(L,C),L}function f5(l,C){var f=this,L=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(R){d1(R,D,"SELECT * FROM "+D.storeName,[],function($,B){for(var U=B.rows,Y=U.length,ae=0;ae<Y;ae++){var ce=U.item(ae),de=ce.value;if(de&&(de=D.serializer.deserialize(de)),de=l(de,ce.key,ae+1),de!==void 0){_(de);return}}_()},function($,B){y(B)})})}).catch(y)});return g(L,C),L}function ii(l,C,f,L){var _=this;l=w(l);var y=new u(function(D,R){_.ready().then(function(){C===void 0&&(C=null);var $=C,B=_._dbInfo;B.serializer.serialize(C,function(U,Y){Y?R(Y):B.db.transaction(function(ae){d1(ae,B,"INSERT OR REPLACE INTO "+B.storeName+" (key, value) VALUES (?, ?)",[l,U],function(){D($)},function(ce,de){R(de)})},function(ae){if(ae.code===ae.QUOTA_ERR){if(L>0){D(ii.apply(_,[l,$,f,L-1]));return}R(ae)}})})}).catch(R)});return g(y,f),y}function d5(l,C,f){return ii.apply(this,[l,C,f,1])}function h5(l,C){var f=this;l=w(l);var L=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(R){d1(R,D,"DELETE FROM "+D.storeName+" WHERE key = ?",[l],function(){_()},function($,B){y(B)})})}).catch(y)});return g(L,C),L}function v5(l){var C=this,f=new u(function(L,_){C.ready().then(function(){var y=C._dbInfo;y.db.transaction(function(D){d1(D,y,"DELETE FROM "+y.storeName,[],function(){L()},function(R,$){_($)})})}).catch(_)});return g(f,l),f}function m5(l){var C=this,f=new u(function(L,_){C.ready().then(function(){var y=C._dbInfo;y.db.transaction(function(D){d1(D,y,"SELECT COUNT(key) as c FROM "+y.storeName,[],function(R,$){var B=$.rows.item(0).c;L(B)},function(R,$){_($)})})}).catch(_)});return g(f,l),f}function p5(l,C){var f=this,L=new u(function(_,y){f.ready().then(function(){var D=f._dbInfo;D.db.transaction(function(R){d1(R,D,"SELECT key FROM "+D.storeName+" WHERE id = ? LIMIT 1",[l+1],function($,B){var U=B.rows.length?B.rows.item(0).key:null;_(U)},function($,B){y(B)})})}).catch(y)});return g(L,C),L}function C5(l){var C=this,f=new u(function(L,_){C.ready().then(function(){var y=C._dbInfo;y.db.transaction(function(D){d1(D,y,"SELECT key FROM "+y.storeName,[],function(R,$){for(var B=[],U=0;U<$.rows.length;U++)B.push($.rows.item(U).key);L(B)},function(R,$){_($)})})}).catch(_)});return g(f,l),f}function g5(l){return new u(function(C,f){l.transaction(function(L){L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(_,y){for(var D=[],R=0;R<y.rows.length;R++)D.push(y.rows.item(R).name);C({db:l,storeNames:D})},function(_,y){f(y)})},function(L){f(L)})})}function b5(l,C){C=E.apply(this,arguments);var f=this.config();l=typeof l!="function"&&l||{},l.name||(l.name=l.name||f.name,l.storeName=l.storeName||f.storeName);var L=this,_;return l.name?_=new u(function(y){var D;l.name===f.name?D=L._dbInfo.db:D=openDatabase(l.name,"","",0),l.storeName?y({db:D,storeNames:[l.storeName]}):y(g5(D))}).then(function(y){return new u(function(D,R){y.db.transaction(function($){function B(ce){return new u(function(de,_e){$.executeSql("DROP TABLE IF EXISTS "+ce,[],function(){de()},function(Le,Ze){_e(Ze)})})}for(var U=[],Y=0,ae=y.storeNames.length;Y<ae;Y++)U.push(B(y.storeNames[Y]));u.all(U).then(function(){D()}).catch(function(ce){R(ce)})},function($){R($)})})}):_=u.reject("Invalid arguments"),g(_,C),_}var y5={_driver:"webSQLStorage",_initStorage:c5,_support:t1(),iterate:f5,getItem:u5,setItem:d5,removeItem:h5,clear:v5,length:m5,key:p5,keys:C5,dropInstance:b5};function L5(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function oi(l,C){var f=l.name+"/";return l.storeName!==C.storeName&&(f+=l.storeName+"/"),f}function S5(){var l="_localforage_support_test";try{return localStorage.setItem(l,!0),localStorage.removeItem(l),!1}catch{return!0}}function _5(){return!S5()||localStorage.length>0}function M5(l){var C=this,f={};if(l)for(var L in l)f[L]=l[L];return f.keyPrefix=oi(l,C._defaultConfig),_5()?(C._dbInfo=f,f.serializer=$n,u.resolve()):u.reject()}function w5(l){var C=this,f=C.ready().then(function(){for(var L=C._dbInfo.keyPrefix,_=localStorage.length-1;_>=0;_--){var y=localStorage.key(_);y.indexOf(L)===0&&localStorage.removeItem(y)}});return g(f,l),f}function E5(l,C){var f=this;l=w(l);var L=f.ready().then(function(){var _=f._dbInfo,y=localStorage.getItem(_.keyPrefix+l);return y&&(y=_.serializer.deserialize(y)),y});return g(L,C),L}function H5(l,C){var f=this,L=f.ready().then(function(){for(var _=f._dbInfo,y=_.keyPrefix,D=y.length,R=localStorage.length,$=1,B=0;B<R;B++){var U=localStorage.key(B);if(U.indexOf(y)===0){var Y=localStorage.getItem(U);if(Y&&(Y=_.serializer.deserialize(Y)),Y=l(Y,U.substring(D),$++),Y!==void 0)return Y}}});return g(L,C),L}function O5(l,C){var f=this,L=f.ready().then(function(){var _=f._dbInfo,y;try{y=localStorage.key(l)}catch{y=null}return y&&(y=y.substring(_.keyPrefix.length)),y});return g(L,C),L}function I5(l){var C=this,f=C.ready().then(function(){for(var L=C._dbInfo,_=localStorage.length,y=[],D=0;D<_;D++){var R=localStorage.key(D);R.indexOf(L.keyPrefix)===0&&y.push(R.substring(L.keyPrefix.length))}return y});return g(f,l),f}function T5(l){var C=this,f=C.keys().then(function(L){return L.length});return g(f,l),f}function D5(l,C){var f=this;l=w(l);var L=f.ready().then(function(){var _=f._dbInfo;localStorage.removeItem(_.keyPrefix+l)});return g(L,C),L}function x5(l,C,f){var L=this;l=w(l);var _=L.ready().then(function(){C===void 0&&(C=null);var y=C;return new u(function(D,R){var $=L._dbInfo;$.serializer.serialize(C,function(B,U){if(U)R(U);else try{localStorage.setItem($.keyPrefix+l,B),D(y)}catch(Y){(Y.name==="QuotaExceededError"||Y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&R(Y),R(Y)}})})});return g(_,f),_}function N5(l,C){if(C=E.apply(this,arguments),l=typeof l!="function"&&l||{},!l.name){var f=this.config();l.name=l.name||f.name,l.storeName=l.storeName||f.storeName}var L=this,_;return l.name?_=new u(function(y){l.storeName?y(oi(l,L._defaultConfig)):y(l.name+"/")}).then(function(y){for(var D=localStorage.length-1;D>=0;D--){var R=localStorage.key(D);R.indexOf(y)===0&&localStorage.removeItem(R)}}):_=u.reject("Invalid arguments"),g(_,C),_}var V5={_driver:"localStorageWrapper",_initStorage:M5,_support:L5(),iterate:H5,getItem:E5,setItem:x5,removeItem:D5,clear:w5,length:T5,key:O5,keys:I5,dropInstance:N5},A5=function(C,f){return C===f||typeof C=="number"&&typeof f=="number"&&isNaN(C)&&isNaN(f)},P5=function(C,f){for(var L=C.length,_=0;_<L;){if(A5(C[_],f))return!0;_++}return!1},ai=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"},z1={},si={},H1={INDEXEDDB:u1,WEBSQL:y5,LOCALSTORAGE:V5},R5=[H1.INDEXEDDB._driver,H1.WEBSQL._driver,H1.LOCALSTORAGE._driver],Pt=["dropInstance"],Bn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Pt),k5={description:"",driver:R5.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function j5(l,C){l[C]=function(){var f=arguments;return l.ready().then(function(){return l[C].apply(l,f)})}}function Fn(){for(var l=1;l<arguments.length;l++){var C=arguments[l];if(C)for(var f in C)C.hasOwnProperty(f)&&(ai(C[f])?arguments[0][f]=C[f].slice():arguments[0][f]=C[f])}return arguments[0]}var $5=function(){function l(C){a(this,l);for(var f in H1)if(H1.hasOwnProperty(f)){var L=H1[f],_=L._driver;this[f]=_,z1[_]||this.defineDriver(L)}this._defaultConfig=Fn({},k5),this._config=Fn({},this._defaultConfig,C),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return l.prototype.config=function(f){if((typeof f>"u"?"undefined":o(f))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var L in f){if(L==="storeName"&&(f[L]=f[L].replace(/\W/g,"_")),L==="version"&&typeof f[L]!="number")return new Error("Database version must be a number.");this._config[L]=f[L]}return"driver"in f&&f.driver?this.setDriver(this._config.driver):!0}else return typeof f=="string"?this._config[f]:this._config},l.prototype.defineDriver=function(f,L,_){var y=new u(function(D,R){try{var $=f._driver,B=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!f._driver){R(B);return}for(var U=Bn.concat("_initStorage"),Y=0,ae=U.length;Y<ae;Y++){var ce=U[Y],de=!P5(Pt,ce);if((de||f[ce])&&typeof f[ce]!="function"){R(B);return}}var _e=function(){for(var Z1=function(U5){return function(){var z5=new Error("Method "+U5+" is not implemented by the current driver"),li=u.reject(z5);return g(li,arguments[arguments.length-1]),li}},Un=0,F5=Pt.length;Un<F5;Un++){var zn=Pt[Un];f[zn]||(f[zn]=Z1(zn))}};_e();var Le=function(Z1){z1[$]&&console.info("Redefining LocalForage driver: "+$),z1[$]=f,si[$]=Z1,D()};"_support"in f?f._support&&typeof f._support=="function"?f._support().then(Le,R):Le(!!f._support):Le(!0)}catch(Ze){R(Ze)}});return S(y,L,_),y},l.prototype.driver=function(){return this._driver||null},l.prototype.getDriver=function(f,L,_){var y=z1[f]?u.resolve(z1[f]):u.reject(new Error("Driver not found."));return S(y,L,_),y},l.prototype.getSerializer=function(f){var L=u.resolve($n);return S(L,f),L},l.prototype.ready=function(f){var L=this,_=L._driverSet.then(function(){return L._ready===null&&(L._ready=L._initDriver()),L._ready});return S(_,f,f),_},l.prototype.setDriver=function(f,L,_){var y=this;ai(f)||(f=[f]);var D=this._getSupportedDrivers(f);function R(){y._config.driver=y.driver()}function $(Y){return y._extend(Y),R(),y._ready=y._initStorage(y._config),y._ready}function B(Y){return function(){var ae=0;function ce(){for(;ae<Y.length;){var de=Y[ae];return ae++,y._dbInfo=null,y._ready=null,y.getDriver(de).then($).catch(ce)}R();var _e=new Error("No available storage method found.");return y._driverSet=u.reject(_e),y._driverSet}return ce()}}var U=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=U.then(function(){var Y=D[0];return y._dbInfo=null,y._ready=null,y.getDriver(Y).then(function(ae){y._driver=ae._driver,R(),y._wrapLibraryMethodsWithReady(),y._initDriver=B(D)})}).catch(function(){R();var Y=new Error("No available storage method found.");return y._driverSet=u.reject(Y),y._driverSet}),S(this._driverSet,L,_),this._driverSet},l.prototype.supports=function(f){return!!si[f]},l.prototype._extend=function(f){Fn(this,f)},l.prototype._getSupportedDrivers=function(f){for(var L=[],_=0,y=f.length;_<y;_++){var D=f[_];this.supports(D)&&L.push(D)}return L},l.prototype._wrapLibraryMethodsWithReady=function(){for(var f=0,L=Bn.length;f<L;f++)j5(this,Bn[f])},l.prototype.createInstance=function(f){return new l(f)},l}(),B5=new $5;r.exports=B5},{3:3}]},{},[4])(4)})})(i9);var ja=i9.exports;const C1=qr(ja);class Sn{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 _n{constructor(){ee(this,"_portalContainer",n6()?document.body:void 0);ee(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 $a(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 Et(e,t){if(e==null)return{};var n,r,i=$a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}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 o9={exports:{}};/*!
29
27
  Copyright (c) 2018 Jed Watson.
30
28
  Licensed under the MIT License (MIT), see
31
29
  http://jedwatson.github.io/classnames
32
- */(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})()})(c9);var Ya=c9.exports;const z1=Xr(Ya);function u9(e){return e instanceof HTMLElement||e instanceof SVGElement}function qa(e){return e&&h1(e)==="object"&&u9(e.nativeElement)?e.nativeElement:u9(e)?e:null}function Xa(e){var t=qa(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 Qa=Q.createContext({});function f9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d9(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,s9(r.key),r)}}function h9(e,t,n){return t&&d9(e.prototype,t),n&&d9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mn(e,t){return Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mn(e,t)}function v9(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&&Mn(e,t)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(e)}function m9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m9=function(){return!!e})()}function En(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ja(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 En(e)}function p9(e){var t=m9();return function(){var n,r=Ot(e);if(t){var i=Ot(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ja(this,n)}}var Ka=function(e){v9(n,e);var t=p9(n);function n(){return f9(this,n),t.apply(this,arguments)}return h9(n,[{key:"render",value:function(){return this.props.children}}]),n}(Q.Component);function e0(e){var t=Q.useReducer(function(l){return l+1},0),n=a6(t,2),r=n[1],i=Q.useRef(e),o=x1(function(){return i.current}),a=x1(function(l){i.current=typeof l=="function"?l(i.current):l,r()});return[o,a]}var c1="none",It="appear",Tt="enter",Dt="leave",C9="none",Ye="prepare",M1="start",E1="active",Hn="end",g9="prepared";function b9(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 t0(e,t){var n={animationend:b9("Animation","AnimationEnd"),transitionend:b9("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var n0=t0(Ut(),typeof window<"u"?window:{}),y9={};if(Ut()){var r0=document.createElement("div");y9=r0.style}var xt={};function S9(e){if(xt[e])return xt[e];var t=n0[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 y9)return xt[e]=t[o],xt[e]}return""}var L9=S9("animationend"),_9=S9("transitionend"),w9=!!(L9&&_9),M9=L9||"animationend",E9=_9||"transitionend";function H9(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 i0=function(e){var t=s.useRef();function n(i){i&&(i.removeEventListener(E9,e),i.removeEventListener(M9,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(E9,e),i.addEventListener(M9,e),t.current=i)}return Q.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var O9=Ut()?s.useLayoutEffect:s.useEffect,I9=function(t){return+setTimeout(t,16)},T9=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(I9=function(t){return window.requestAnimationFrame(t)},T9=function(t){return window.cancelAnimationFrame(t)});var D9=0,On=new Map;function x9(e){On.delete(e)}var In=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;D9+=1;var r=D9;function i(o){if(o===0)x9(r),t();else{var a=I9(function(){i(o-1)});On.set(r,a)}}return i(n),r};In.cancel=function(e){var t=On.get(e);return x9(e),T9(t)};const o0=function(){var e=Q.useRef(null);function t(){In.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=In(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return Q.useEffect(function(){return function(){t()}},[]),[n,t]};var a0=[Ye,M1,E1,Hn],s0=[Ye,g9],N9=!1,l0=!0;function V9(e){return e===E1||e===Hn}const c0=function(e,t,n){var r=Ft(C9),i=Ee(r,2),o=i[0],a=i[1],l=o0(),h=Ee(l,2),v=h[0],m=h[1];function u(){a(Ye,!0)}var C=t?s0:a0;return O9(function(){if(o!==C9&&o!==Hn){var L=C.indexOf(o),M=C[L+1],E=n(o);E===N9?a(M,!0):M&&v(function(w){function H(){w.isCanceled()||a(M,!0)}E===!0?H():Promise.resolve(E).then(H)})}},[e,o]),Q.useEffect(function(){return function(){m()}},[]),[u,o]};function u0(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,C=r.onAppearPrepare,L=r.onEnterPrepare,M=r.onLeavePrepare,E=r.onAppearStart,w=r.onEnterStart,H=r.onLeaveStart,x=r.onAppearActive,T=r.onEnterActive,k=r.onLeaveActive,O=r.onAppearEnd,I=r.onEnterEnd,P=r.onLeaveEnd,R=r.onVisibleChanged,z=Ft(),W=Ee(z,2),q=W[0],K=W[1],ne=e0(c1),oe=Ee(ne,2),ve=oe[0],ie=oe[1],fe=Ft(null),be=Ee(fe,2),U=be[0],V=be[1],A=ve(),G=s.useRef(!1),X=s.useRef(null);function Z(){return n()}var J=s.useRef(!1);function se(){ie(c1),V(null,!0)}var Ce=x1(function(ye){var pe=ve();if(pe!==c1){var Ve=Z();if(!(ye&&!ye.deadline&&ye.target!==Ve)){var a1=J.current,Fe;pe===It&&a1?Fe=O==null?void 0:O(Ve,ye):pe===Tt&&a1?Fe=I==null?void 0:I(Ve,ye):pe===Dt&&a1&&(Fe=P==null?void 0:P(Ve,ye)),a1&&Fe!==!1&&se()}}}),Ne=i0(Ce),we=Ee(Ne,1),Me=we[0],H1=function(pe){switch(pe){case It:return He(He(He({},Ye,C),M1,E),E1,x);case Tt:return He(He(He({},Ye,L),M1,w),E1,T);case Dt:return He(He(He({},Ye,M),M1,H),E1,k);default:return{}}},Xe=Q.useMemo(function(){return H1(A)},[A]),u1=c0(A,!e,function(ye){if(ye===Ye){var pe=Xe[Ye];return pe?pe(Z()):N9}if(je in Xe){var Ve;V(((Ve=Xe[je])===null||Ve===void 0?void 0:Ve.call(Xe,Z(),null))||null)}return je===E1&&A!==c1&&(Me(Z()),m>0&&(clearTimeout(X.current),X.current=setTimeout(function(){Ce({deadline:!0})},m))),je===g9&&se(),l0}),t1=Ee(u1,2),Re=t1[0],je=t1[1],f1=V9(je);J.current=f1,O9(function(){K(t);var ye=G.current;G.current=!0;var pe;!ye&&t&&l&&(pe=It),ye&&t&&o&&(pe=Tt),(ye&&!t&&v||!ye&&u&&!t&&v)&&(pe=Dt);var Ve=H1(pe);pe&&(e||Ve[Ye])?(ie(pe),Re()):ie(c1)},[t]),s.useEffect(function(){(A===It&&!l||A===Tt&&!o||A===Dt&&!v)&&ie(c1)},[l,o,v]),s.useEffect(function(){return function(){G.current=!1,clearTimeout(X.current)}},[]);var Ue=Q.useRef(!1);s.useEffect(function(){q&&(Ue.current=!0),q!==void 0&&A===c1&&((Ue.current||q)&&(R==null||R(q)),Ue.current=!0)},[q,A]);var n1=U;return Xe[Ye]&&je===M1&&(n1=ue({transition:"none"},n1)),[A,je,n1,q!=null?q:t]}function f0(e){var t=e;Ge(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=Q.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,C=i.motionName,L=i.leavedClassName,M=i.eventProps,E=Q.useContext(Qa),w=E.motion,H=n(i,w),x=s.useRef(),T=s.useRef();function k(){try{return x.current instanceof HTMLElement?x.current:Xa(T.current)}catch{return null}}var O=u0(H,l,k,i),I=Ee(O,4),P=I[0],R=I[1],z=I[2],W=I[3],q=Q.useRef(W);W&&(q.current=!0);var K=Q.useCallback(function(U){x.current=U,F2(o,U)},[o]),ne,oe=ue(ue({},M),{},{visible:l});if(!u)ne=null;else if(P===c1)W?ne=u(ue({},oe),K):!v&&q.current&&L?ne=u(ue(ue({},oe),{},{className:L}),K):m||!v&&!L?ne=u(ue(ue({},oe),{},{style:{display:"none"}}),K):ne=null;else{var ve;R===Ye?ve="prepare":V9(R)?ve="active":R===M1&&(ve="start");var ie=H9(C,"".concat(P,"-").concat(ve));ne=u(ue(ue({},oe),{},{className:z1(H9(C,P),He(He({},ie,ie&&ve),C,typeof C=="string")),style:z}),K)}if(Q.isValidElement(ne)&&z2(ne)){var fe=ne,be=fe.ref;be||(ne=Q.cloneElement(ne,{ref:K}))}return Q.createElement(Ka,{ref:T},ne)});return r.displayName="CSSMotion",r}const d0=f0(w9);var Tn="add",Dn="keep",xn="remove",Nn="removed";function h0(e){var t;return e&&Ge(e)==="object"&&"key"in e?t=e:t={key:e},ue(ue({},t),{},{key:String(t.key)})}function Vn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(h0)}function v0(){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=Vn(e),a=Vn(t);o.forEach(function(v){for(var m=!1,u=r;u<i;u+=1){var C=a[u];if(C.key===v.key){r<u&&(n=n.concat(a.slice(r,u).map(function(L){return ue(ue({},L),{},{status:Tn})})),r=u),n.push(ue(ue({},C),{},{status:Dn})),r+=1,m=!0;break}}m||n.push(ue(ue({},v),{},{status:xn}))}),r<i&&(n=n.concat(a.slice(r).map(function(v){return ue(ue({},v),{},{status:Tn})})));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,C=m.status;return u!==v||C!==xn}),n.forEach(function(m){m.key===v&&(m.status=Dn)})}),n}var m0=["component","children","onVisibleChanged","onAllRemoved"],p0=["status"],C0=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function g0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d0,n=function(r){v9(o,r);var i=p9(o);function o(){var a;f9(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)),He(En(a),"state",{keyEntities:[]}),He(En(a),"removeKey",function(m){var u=a.state.keyEntities,C=u.map(function(L){return L.key!==m?L:ue(ue({},L),{},{status:Nn})});return a.setState({keyEntities:C}),C.filter(function(L){var M=L.status;return M!==Nn}).length}),a}return h9(o,[{key:"render",value:function(){var l=this,h=this.state.keyEntities,v=this.props,m=v.component,u=v.children,C=v.onVisibleChanged,L=v.onAllRemoved,M=Ht(v,m0),E=m||Q.Fragment,w={};return C0.forEach(function(H){w[H]=M[H],delete M[H]}),delete M.keys,Q.createElement(E,M,h.map(function(H,x){var T=H.status,k=Ht(H,p0),O=T===Tn||T===Dn;return Q.createElement(t,b1({},w,{key:k.key,visible:O,eventProps:k,onVisibleChanged:function(P){if(C==null||C(P,{key:k.key}),!P){var R=l.removeKey(k.key);R===0&&L&&L()}}}),function(I,P){return u(ue(ue({},I),{},{index:x}),P)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,h){var v=l.keys,m=h.keyEntities,u=Vn(v),C=v0(m,u);return{keyEntities:C.filter(function(L){var M=m.find(function(E){var w=E.key;return L.key===w});return!(M&&M.status===Nn&&L.status===xn)})}}}]),o}(Q.Component);return He(n,"defaultProps",{component:"div"}),n}const b0=g0(w9);var te={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>=te.F1&&n<=te.F12)return!1;switch(n){case te.ALT:case te.CAPS_LOCK:case te.CONTEXT_MENU:case te.CTRL:case te.DOWN:case te.END:case te.ESC:case te.HOME:case te.INSERT:case te.LEFT:case te.MAC_FF_META:case te.META:case te.NUMLOCK:case te.NUM_CENTER:case te.PAGE_DOWN:case te.PAGE_UP:case te.PAUSE:case te.PRINT_SCREEN:case te.RIGHT:case te.SHIFT:case te.UP:case te.WIN_KEY:case te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=te.ZERO&&t<=te.NINE||t>=te.NUM_ZERO&&t<=te.NUM_MULTIPLY||t>=te.A&&t<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case te.SPACE:case te.QUESTION_MARK:case te.NUM_PLUS:case te.NUM_MINUS:case te.NUM_PERIOD:case te.NUM_DIVISION:case te.SEMICOLON:case te.DASH:case te.EQUALS:case te.COMMA:case te.PERIOD:case te.SLASH:case te.APOSTROPHE:case te.SINGLE_QUOTE:case te.OPEN_SQUARE_BRACKET:case te.BACKSLASH:case te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},y0=`accept acceptCharset accessKey action allowFullScreen allowTransparency
30
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var c=arguments[a];c&&(o=i(o,r(c)))}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 c in o)t.call(o,c)&&o[c]&&(a=i(a,c));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})()})(o9);var Ba=o9.exports;const U1=qr(Ba);function a9(e){return e instanceof HTMLElement||e instanceof SVGElement}function Fa(e){return e&&Re(e)==="object"&&a9(e.nativeElement)?e.nativeElement:a9(e)?e:null}function Ua(e){var t=Fa(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 za=Q.createContext({});function s9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l9(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,l6(r.key),r)}}function c9(e,t,n){return t&&l9(e.prototype,t),n&&l9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mn(e,t){return Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Mn(e,t)}function u9(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&&Mn(e,t)}function Ht(e){return Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ht(e)}function f9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f9=function(){return!!e})()}function wn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Za(e,t){if(t&&(Re(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wn(e)}function d9(e){var t=f9();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 Za(this,n)}}var Wa=function(e){u9(n,e);var t=d9(n);function n(){return s9(this,n),t.apply(this,arguments)}return c9(n,[{key:"render",value:function(){return this.props.children}}]),n}(Q.Component);function Ga(e){var t=Q.useReducer(function(c){return c+1},0),n=Se(t,2),r=n[1],i=Q.useRef(e),o=D1(function(){return i.current}),a=D1(function(c){i.current=typeof c=="function"?c(i.current):c,r()});return[o,a]}var c1="none",Ot="appear",It="enter",Tt="leave",h9="none",Ye="prepare",M1="start",w1="active",En="end",v9="prepared";function m9(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 Ya(e,t){var n={animationend:m9("Animation","AnimationEnd"),transitionend:m9("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var qa=Ya(Ft(),typeof window<"u"?window:{}),p9={};if(Ft()){var Xa=document.createElement("div");p9=Xa.style}var Dt={};function C9(e){if(Dt[e])return Dt[e];var t=qa[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 p9)return Dt[e]=t[o],Dt[e]}return""}var g9=C9("animationend"),b9=C9("transitionend"),y9=!!(g9&&b9),L9=g9||"animationend",S9=b9||"transitionend";function _9(e,t){if(!e)return null;if(Re(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Qa=function(e){var t=s.useRef();function n(i){i&&(i.removeEventListener(S9,e),i.removeEventListener(L9,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(S9,e),i.addEventListener(L9,e),t.current=i)}return Q.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var M9=Ft()?s.useLayoutEffect:s.useEffect,w9=function(t){return+setTimeout(t,16)},E9=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(w9=function(t){return window.requestAnimationFrame(t)},E9=function(t){return window.cancelAnimationFrame(t)});var H9=0,Hn=new Map;function O9(e){Hn.delete(e)}var On=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;H9+=1;var r=H9;function i(o){if(o===0)O9(r),t();else{var a=w9(function(){i(o-1)});Hn.set(r,a)}}return i(n),r};On.cancel=function(e){var t=Hn.get(e);return O9(e),E9(t)};const Ja=function(){var e=Q.useRef(null);function t(){On.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=On(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return Q.useEffect(function(){return function(){t()}},[]),[n,t]};var Ka=[Ye,M1,w1,En],e0=[Ye,v9],I9=!1,t0=!0;function T9(e){return e===w1||e===En}const n0=function(e,t,n){var r=Ut(h9),i=Se(r,2),o=i[0],a=i[1],c=Ja(),h=Se(c,2),v=h[0],m=h[1];function u(){a(Ye,!0)}var g=t?e0:Ka;return M9(function(){if(o!==h9&&o!==En){var S=g.indexOf(o),w=g[S+1],E=n(o);E===I9?a(w,!0):w&&v(function(M){function I(){M.isCanceled()||a(w,!0)}E===!0?I():Promise.resolve(E).then(I)})}},[e,o]),Q.useEffect(function(){return function(){m()}},[]),[u,o]};function r0(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,c=a===void 0?!0:a,h=r.motionLeave,v=h===void 0?!0:h,m=r.motionDeadline,u=r.motionLeaveImmediately,g=r.onAppearPrepare,S=r.onEnterPrepare,w=r.onLeavePrepare,E=r.onAppearStart,M=r.onEnterStart,I=r.onLeaveStart,x=r.onAppearActive,T=r.onEnterActive,j=r.onLeaveActive,H=r.onAppearEnd,O=r.onEnterEnd,P=r.onLeaveEnd,k=r.onVisibleChanged,z=Ut(),W=Se(z,2),q=W[0],K=W[1],ne=Ga(c1),oe=Se(ne,2),ve=oe[0],ie=oe[1],fe=Ut(null),be=Se(fe,2),F=be[0],V=be[1],A=ve(),G=s.useRef(!1),X=s.useRef(null);function Z(){return n()}var J=s.useRef(!1);function se(){ie(c1),V(null,!0)}var Ce=D1(function(ye){var pe=ve();if(pe!==c1){var Ve=Z();if(!(ye&&!ye.deadline&&ye.target!==Ve)){var a1=J.current,ze;pe===Ot&&a1?ze=H==null?void 0:H(Ve,ye):pe===It&&a1?ze=O==null?void 0:O(Ve,ye):pe===Tt&&a1&&(ze=P==null?void 0:P(Ve,ye)),a1&&ze!==!1&&se()}}}),Ne=Qa(Ce),we=Se(Ne,1),Ee=we[0],E1=function(pe){switch(pe){case Ot:return He(He(He({},Ye,g),M1,E),w1,x);case It:return He(He(He({},Ye,S),M1,M),w1,T);case Tt:return He(He(He({},Ye,w),M1,I),w1,j);default:return{}}},Xe=Q.useMemo(function(){return E1(A)},[A]),u1=n0(A,!e,function(ye){if(ye===Ye){var pe=Xe[Ye];return pe?pe(Z()):I9}if(je in Xe){var Ve;V(((Ve=Xe[je])===null||Ve===void 0?void 0:Ve.call(Xe,Z(),null))||null)}return je===w1&&A!==c1&&(Ee(Z()),m>0&&(clearTimeout(X.current),X.current=setTimeout(function(){Ce({deadline:!0})},m))),je===v9&&se(),t0}),t1=Se(u1,2),ke=t1[0],je=t1[1],f1=T9(je);J.current=f1,M9(function(){K(t);var ye=G.current;G.current=!0;var pe;!ye&&t&&c&&(pe=Ot),ye&&t&&o&&(pe=It),(ye&&!t&&v||!ye&&u&&!t&&v)&&(pe=Tt);var Ve=E1(pe);pe&&(e||Ve[Ye])?(ie(pe),ke()):ie(c1)},[t]),s.useEffect(function(){(A===Ot&&!c||A===It&&!o||A===Tt&&!v)&&ie(c1)},[c,o,v]),s.useEffect(function(){return function(){G.current=!1,clearTimeout(X.current)}},[]);var Ue=Q.useRef(!1);s.useEffect(function(){q&&(Ue.current=!0),q!==void 0&&A===c1&&((Ue.current||q)&&(k==null||k(q)),Ue.current=!0)},[q,A]);var n1=F;return Xe[Ye]&&je===M1&&(n1=le({transition:"none"},n1)),[A,je,n1,q!=null?q:t]}function i0(e){var t=e;Re(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=Q.forwardRef(function(i,o){var a=i.visible,c=a===void 0?!0:a,h=i.removeOnLeave,v=h===void 0?!0:h,m=i.forceRender,u=i.children,g=i.motionName,S=i.leavedClassName,w=i.eventProps,E=Q.useContext(za),M=E.motion,I=n(i,M),x=s.useRef(),T=s.useRef();function j(){try{return x.current instanceof HTMLElement?x.current:Ua(T.current)}catch{return null}}var H=r0(I,c,j,i),O=Se(H,4),P=O[0],k=O[1],z=O[2],W=O[3],q=Q.useRef(W);W&&(q.current=!0);var K=Q.useCallback(function(F){x.current=F,k2(o,F)},[o]),ne,oe=le(le({},w),{},{visible:c});if(!u)ne=null;else if(P===c1)W?ne=u(le({},oe),K):!v&&q.current&&S?ne=u(le(le({},oe),{},{className:S}),K):m||!v&&!S?ne=u(le(le({},oe),{},{style:{display:"none"}}),K):ne=null;else{var ve;k===Ye?ve="prepare":T9(k)?ve="active":k===M1&&(ve="start");var ie=_9(g,"".concat(P,"-").concat(ve));ne=u(le(le({},oe),{},{className:U1(_9(g,P),He(He({},ie,ie&&ve),g,typeof g=="string")),style:z}),K)}if(Q.isValidElement(ne)&&j2(ne)){var fe=ne,be=fe.ref;be||(ne=Q.cloneElement(ne,{ref:K}))}return Q.createElement(Wa,{ref:T},ne)});return r.displayName="CSSMotion",r}const o0=i0(y9);var In="add",Tn="keep",Dn="remove",xn="removed";function a0(e){var t;return e&&Re(e)==="object"&&"key"in e?t=e:t={key:e},le(le({},t),{},{key:String(t.key)})}function Nn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(a0)}function s0(){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=Nn(e),a=Nn(t);o.forEach(function(v){for(var m=!1,u=r;u<i;u+=1){var g=a[u];if(g.key===v.key){r<u&&(n=n.concat(a.slice(r,u).map(function(S){return le(le({},S),{},{status:In})})),r=u),n.push(le(le({},g),{},{status:Tn})),r+=1,m=!0;break}}m||n.push(le(le({},v),{},{status:Dn}))}),r<i&&(n=n.concat(a.slice(r).map(function(v){return le(le({},v),{},{status:In})})));var c={};n.forEach(function(v){var m=v.key;c[m]=(c[m]||0)+1});var h=Object.keys(c).filter(function(v){return c[v]>1});return h.forEach(function(v){n=n.filter(function(m){var u=m.key,g=m.status;return u!==v||g!==Dn}),n.forEach(function(m){m.key===v&&(m.status=Tn)})}),n}var l0=["component","children","onVisibleChanged","onAllRemoved"],c0=["status"],u0=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function f0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o0,n=function(r){u9(o,r);var i=d9(o);function o(){var a;s9(this,o);for(var c=arguments.length,h=new Array(c),v=0;v<c;v++)h[v]=arguments[v];return a=i.call.apply(i,[this].concat(h)),He(wn(a),"state",{keyEntities:[]}),He(wn(a),"removeKey",function(m){a.setState(function(u){var g=u.keyEntities.map(function(S){return S.key!==m?S:le(le({},S),{},{status:xn})});return{keyEntities:g}},function(){var u=a.state.keyEntities,g=u.filter(function(S){var w=S.status;return w!==xn}).length;g===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return c9(o,[{key:"render",value:function(){var c=this,h=this.state.keyEntities,v=this.props,m=v.component,u=v.children,g=v.onVisibleChanged;v.onAllRemoved;var S=Et(v,l0),w=m||Q.Fragment,E={};return u0.forEach(function(M){E[M]=S[M],delete S[M]}),delete S.keys,Q.createElement(w,S,h.map(function(M,I){var x=M.status,T=Et(M,c0),j=x===In||x===Tn;return Q.createElement(t,g1({},E,{key:T.key,visible:j,eventProps:T,onVisibleChanged:function(O){g==null||g(O,{key:T.key}),O||c.removeKey(T.key)}}),function(H,O){return u(le(le({},H),{},{index:I}),O)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,h){var v=c.keys,m=h.keyEntities,u=Nn(v),g=s0(m,u);return{keyEntities:g.filter(function(S){var w=m.find(function(E){var M=E.key;return S.key===M});return!(w&&w.status===xn&&S.status===Dn)})}}}]),o}(Q.Component);return He(n,"defaultProps",{component:"div"}),n}const d0=f0(y9);var te={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>=te.F1&&n<=te.F12)return!1;switch(n){case te.ALT:case te.CAPS_LOCK:case te.CONTEXT_MENU:case te.CTRL:case te.DOWN:case te.END:case te.ESC:case te.HOME:case te.INSERT:case te.LEFT:case te.MAC_FF_META:case te.META:case te.NUMLOCK:case te.NUM_CENTER:case te.PAGE_DOWN:case te.PAGE_UP:case te.PAUSE:case te.PRINT_SCREEN:case te.RIGHT:case te.SHIFT:case te.UP:case te.WIN_KEY:case te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=te.ZERO&&t<=te.NINE||t>=te.NUM_ZERO&&t<=te.NUM_MULTIPLY||t>=te.A&&t<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case te.SPACE:case te.QUESTION_MARK:case te.NUM_PLUS:case te.NUM_MINUS:case te.NUM_PERIOD:case te.NUM_DIVISION:case te.SEMICOLON:case te.DASH:case te.EQUALS:case te.COMMA:case te.PERIOD:case te.SLASH:case te.APOSTROPHE:case te.SINGLE_QUOTE:case te.OPEN_SQUARE_BRACKET:case te.BACKSLASH:case te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},h0=`accept acceptCharset accessKey action allowFullScreen allowTransparency
33
31
  alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
34
32
  charSet checked classID className colSpan cols content contentEditable contextMenu
35
33
  controls coords crossOrigin data dateTime default defer dir disabled download draggable
@@ -40,32 +38,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
40
38
  optimum pattern placeholder poster preload radioGroup readOnly rel required
41
39
  reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
42
40
  shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
43
- summary tabIndex target title type useMap value width wmode wrap`,S0=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
41
+ summary tabIndex target title type useMap value width wmode wrap`,v0=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
44
42
  onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
45
43
  onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
46
44
  onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
47
45
  onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
48
46
  onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
49
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,L0="".concat(y0," ").concat(S0).split(/[\s\n]+/),_0="aria-",w0="data-";function A9(e,t){return e.indexOf(t)===0}function M0(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=Y2({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||A9(i,_0))||n.data&&A9(i,w0)||n.attr&&L0.includes(i))&&(r[i]=e[i])}),r}var E0=Q.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,C=e.closable,L=e.closeIcon,M=L===void 0?"x":L,E=e.props,w=e.onClick,H=e.onNoticeClose,x=e.times,T=e.hovering,k=Q.useState(!1),O=Ee(k,2),I=O[0],P=O[1],R=Q.useState(0),z=Ee(R,2),W=z[0],q=z[1],K=Q.useState(0),ne=Ee(K,2),oe=ne[0],ve=ne[1],ie=T||I,fe=a>0&&l,be=function(){H(m)},U=function(J){(J.key==="Enter"||J.code==="Enter"||J.keyCode===te.ENTER)&&be()};Q.useEffect(function(){if(!ie&&a>0){var Z=Date.now()-oe,J=setTimeout(function(){be()},a*1e3-oe);return function(){v&&clearTimeout(J),ve(Date.now()-Z)}}},[a,ie,x]),Q.useEffect(function(){if(!ie&&fe&&(v||oe===0)){var Z=performance.now(),J,se=function Ce(){cancelAnimationFrame(J),J=requestAnimationFrame(function(Ne){var we=Ne+oe-Z,Me=Math.min(we/(a*1e3),1);q(Me*100),Me<1&&Ce()})};return se(),function(){v&&cancelAnimationFrame(J)}}},[a,oe,ie,fe,x]);var V=Q.useMemo(function(){return Ge(C)==="object"&&C!==null?C:C?{closeIcon:M}:{}},[C,M]),A=M0(V,!0),G=100-(!W||W<0?0:W>100?100:W),X="".concat(n,"-notice");return Q.createElement("div",b1({},E,{ref:t,className:z1(X,i,He({},"".concat(X,"-closable"),C)),style:r,onMouseEnter:function(J){var se;P(!0),E==null||(se=E.onMouseEnter)===null||se===void 0||se.call(E,J)},onMouseLeave:function(J){var se;P(!1),E==null||(se=E.onMouseLeave)===null||se===void 0||se.call(E,J)},onClick:w}),Q.createElement("div",{className:"".concat(X,"-content")},u),C&&Q.createElement("a",b1({tabIndex:0,className:"".concat(X,"-close"),onKeyDown:U,"aria-label":"Close"},A,{onClick:function(J){J.preventDefault(),J.stopPropagation(),be()}}),V.closeIcon),fe&&Q.createElement("progress",{className:"".concat(X,"-progress"),max:"100",value:G},G+"%"))}),H0=s.createContext({}),P9=8,R9=3,j9=16,O0=function(t){var n={offset:P9,threshold:R9,gap:j9};if(t&&Ge(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:P9,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:R9,n.gap=(o=t.gap)!==null&&o!==void 0?o:j9}return[!!t,n]},I0=["className","style","classNames","styles"],T0=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(H0),C=u.classNames,L=s.useRef({}),M=s.useState(null),E=Ee(M,2),w=E[0],H=E[1],x=s.useState([]),T=Ee(x,2),k=T[0],O=T[1],I=n.map(function(ie){return{config:ie,key:String(ie.key)}}),P=O0(m),R=Ee(P,2),z=R[0],W=R[1],q=W.offset,K=W.threshold,ne=W.gap,oe=z&&(k.length>0||I.length<=K),ve=typeof l=="function"?l(r):l;return s.useEffect(function(){z&&k.length>1&&O(function(ie){return ie.filter(function(fe){return I.some(function(be){var U=be.key;return fe===U})})})},[k,I,z]),s.useEffect(function(){var ie;if(z&&L.current[(ie=I[I.length-1])===null||ie===void 0?void 0:ie.key]){var fe;H(L.current[(fe=I[I.length-1])===null||fe===void 0?void 0:fe.key])}},[I,z]),s.createElement(b0,b1({key:r,className:z1(i,"".concat(i,"-").concat(r),C==null?void 0:C.list,o,He(He({},"".concat(i,"-stack"),!!z),"".concat(i,"-stack-expanded"),oe)),style:a,keys:I,motionAppear:!0},ve,{onAllRemoved:function(){h(r)}}),function(ie,fe){var be=ie.config,U=ie.className,V=ie.style,A=ie.index,G=be,X=G.key,Z=G.times,J=String(X),se=be,Ce=se.className,Ne=se.style,we=se.classNames,Me=se.styles,H1=Ht(se,I0),Xe=I.findIndex(function(Fe){return Fe.key===J}),u1={};if(z){var t1=I.length-1-(Xe>-1?Xe:A-1),Re=r==="top"||r==="bottom"?"-50%":"0";if(t1>0){var je,f1,Ue;u1.height=oe?(je=L.current[J])===null||je===void 0?void 0:je.offsetHeight:w==null?void 0:w.offsetHeight;for(var n1=0,ye=0;ye<t1;ye++){var pe;n1+=((pe=L.current[I[I.length-1-ye].key])===null||pe===void 0?void 0:pe.offsetHeight)+ne}var Ve=(oe?n1:t1*q)*(r.startsWith("top")?1:-1),a1=!oe&&w!==null&&w!==void 0&&w.offsetWidth&&(f1=L.current[J])!==null&&f1!==void 0&&f1.offsetWidth?((w==null?void 0:w.offsetWidth)-q*2*(t1<3?t1:3))/((Ue=L.current[J])===null||Ue===void 0?void 0:Ue.offsetWidth):1;u1.transform="translate3d(".concat(Re,", ").concat(Ve,"px, 0) scaleX(").concat(a1,")")}else u1.transform="translate3d(".concat(Re,", 0, 0)")}return s.createElement("div",{ref:fe,className:z1("".concat(i,"-notice-wrapper"),U,we==null?void 0:we.wrapper),style:ue(ue(ue({},V),u1),Me==null?void 0:Me.wrapper),onMouseEnter:function(){return O(function(r1){return r1.includes(J)?r1:[].concat(F1(r1),[J])})},onMouseLeave:function(){return O(function(r1){return r1.filter(function(Pt){return Pt!==J})})}},s.createElement(E0,b1({},H1,{ref:function(r1){Xe>-1?L.current[J]=r1:delete L.current[J]},prefixCls:i,classNames:we,styles:Me,className:z1(Ce,C==null?void 0:C.notice),style:Ne,times:Z,key:X,eventKey:X,onNoticeClose:v,hovering:z&&k.length>0})))})},D0=Q.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,C=Q.useState([]),L=Ee(C,2),M=L[0],E=L[1],w=function(z){var W,q=M.find(function(K){return K.key===z});q==null||(W=q.onClose)===null||W===void 0||W.call(q),E(function(K){return K.filter(function(ne){return ne.key!==z})})};Q.useImperativeHandle(t,function(){return{open:function(z){E(function(W){var q=F1(W),K=q.findIndex(function(ve){return ve.key===z.key}),ne=ue({},z);if(K>=0){var oe;ne.times=(((oe=W[K])===null||oe===void 0?void 0:oe.times)||0)+1,q[K]=ne}else ne.times=0,q.push(ne);return a>0&&q.length>a&&(q=q.slice(-a)),q})},close:function(z){w(z)},destroy:function(){E([])}}});var H=Q.useState({}),x=Ee(H,2),T=x[0],k=x[1];Q.useEffect(function(){var R={};M.forEach(function(z){var W=z.placement,q=W===void 0?"topRight":W;q&&(R[q]=R[q]||[],R[q].push(z))}),Object.keys(T).forEach(function(z){R[z]=R[z]||[]}),k(R)},[M]);var O=function(z){k(function(W){var q=ue({},W),K=q[z]||[];return K.length||delete q[z],q})},I=Q.useRef(!1);if(Q.useEffect(function(){Object.keys(T).length>0?I.current=!0:I.current&&(v==null||v(),I.current=!1)},[T]),!i)return null;var P=Object.keys(T);return T1.createPortal(Q.createElement(Q.Fragment,null,P.map(function(R){var z=T[R],W=Q.createElement(T0,{key:R,configList:z,placement:R,prefixCls:r,className:l==null?void 0:l(R),style:h==null?void 0:h(R),motion:o,onNoticeClose:w,onAllNoticeRemoved:O,stack:m});return u?u(W,{prefixCls:r,key:R}):W})),i)}),x0=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],N0=function(){return document.body},k9=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 A0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?N0: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=Ht(e,x0),C=Q.useState(),L=Ee(C,2),M=L[0],E=L[1],w=Q.useRef(),H=Q.createElement(D0,{container:M,ref:w,prefixCls:i,motion:r,maxCount:o,className:a,style:l,onAllRemoved:h,stack:v,renderNotifications:m}),x=Q.useState([]),T=Ee(x,2),k=T[0],O=T[1],I=Q.useMemo(function(){return{open:function(R){var z=V0(u,R);(z.key===null||z.key===void 0)&&(z.key="rc-notification-".concat(k9),k9+=1),O(function(W){return[].concat(F1(W),[{type:"open",config:z}])})},close:function(R){O(function(z){return[].concat(F1(z),[{type:"close",key:R}])})},destroy:function(){O(function(R){return[].concat(F1(R),[{type:"destroy"}])})}}},[]);return Q.useEffect(function(){E(n())}),Q.useEffect(function(){w.current&&k.length&&(k.forEach(function(P){switch(P.type){case"open":w.current.open(P.config);break;case"close":w.current.close(P.key);break;case"destroy":w.current.destroy();break}}),O(function(P){return P.filter(function(R){return!k.includes(R)})}))},[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"},P0={success:b.jsx(Ar,{className:qe.notificationIconSuccess}),info:b.jsx(kt,{className:qe.notificationIconInfo}),warning:b.jsx(kt,{className:qe.notificationIconWarning}),error:b.jsx(O3,{className:qe.notificationIconError})},$9=new re.Subject,R0=e=>{const{type:t,content:n,title:r,lines:i=0}=e,o=Te(qe.notificationContent,{[qe.notificationContentEllipsis]:i!==0});return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:qe.notificationIcon,children:P0[t]}),b.jsxs("div",{className:qe.notificationContentContainer,children:[b.jsx("span",{className:qe.notificationTitle,children:r}),b.jsx("span",{className:o,style:{WebkitLineClamp:i},children:n})]})]})};function j0(){const{mountContainer:e}=s.useContext(he.ConfigContext);if(!e)return null;const[t,n]=A0({prefixCls:qe.notification,maxCount:3,closeIcon:b.jsx(G1,{}),getContainer:()=>e,motion:{motionName:qe.notificationFade,motionAppear:!0,motionEnter:!0,motionLeave:!0}}),r=s.useRef($9);return s.useEffect(()=>{const i=r.current.subscribe(o=>{var a,l,h;t.open({content:b.jsx(R0,{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]),b.jsx(b.Fragment,{children:n})}const k0={show:e=>{$9.next(e)}};var $0=Object.defineProperty,B0=Object.getOwnPropertyDescriptor,U0=(e,t,n,r)=>{for(var i=r>1?void 0:r?B0(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},B9=(e,t)=>(n,r)=>t(n,r,e);g.DesktopNotificationService=class extends d.Disposable{constructor(t,n){super(),this._injector=t,this._uiPartsService=n,this._initUIPart()}show(t){return k0.show(t),d.toDisposable(()=>{})}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.GLOBAL,()=>d.connectInjector(j0,this._injector)))}},g.DesktopNotificationService=U0([B9(0,d.Inject(d.Injector)),B9(1,Je)],g.DesktopNotificationService);class An{constructor(){ee(this,"_sidebarOptions",{});ee(this,"sidebarOptions$",new re.Subject);ee(this,"scrollEvent$",new re.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 F0=Object.defineProperty,z0=Object.getOwnPropertyDescriptor,Z0=(e,t,n,r)=>{for(var i=r>1?void 0:r?z0(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&&F0(t,n,i),i},W0=(e,t)=>(n,r)=>t(n,r,e);g.DesktopZenZoneService=class{constructor(t){ee(this,"visible$",new re.BehaviorSubject(!1));ee(this,"componentKey$",new re.ReplaySubject);ee(this,"_temporaryHidden$",new re.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)}},g.DesktopZenZoneService=Z0([W0(0,d.Inject($e))],g.DesktopZenZoneService);var U9=Object.defineProperty,G0=Object.getOwnPropertyDescriptor,Y0=(e,t,n)=>t in e?U9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q0=(e,t,n,r)=>{for(var i=r>1?void 0:r?G0(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&&U9(t,n,i),i},X0=(e,t)=>(n,r)=>t(n,r,e),Q0=(e,t,n)=>Y0(e,t+"",n);const J0="UNIVER_MOBILE_UI_PLUGIN";g.UniverMobileUIPlugin=class extends d.Plugin{constructor(t,n){super(),this._config=t,this._injector=n}onStarting(){d.mergeOverrideWithDependencies([[$e],[D1],[ut],[Je,{useClass:on}],[i1,{useClass:g.DesktopLayoutService}],[L1,{useClass:g.ShortcutService}],[ft,{useClass:tn}],[Qe,{useClass:g.MenuManagerService}],[B1,{useClass:cn}],[Sn,{useClass:g.BrowserClipboardService,lazy:!0}],[U1,{useClass:g.DesktopNotificationService,lazy:!0}],[Mt,{useClass:g.DesktopDialogService,lazy:!0}],[wt,{useClass:g.DesktopConfirmService,lazy:!0}],[S1,{useClass:An,lazy:!0}],[St,{useClass:g.DesktopZenZoneService,lazy:!0}],[Lt,{useClass:g.DesktopGlobalZoneService,lazy:!0}],[y1,{useClass:_n,lazy:!0}],[d.ILocalStorageService,{useClass:Ln,lazy:!0}],[Cn,{useClass:g.DesktopBeforeCloseService}],[yt,{useClass:sn}],[bt],[R1,{useFactory:n=>n.createInstance(pn,this._config),deps:[d.Injector]}],[g.SharedController],[g.ErrorController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(R1),this._injector.get(g.ErrorController)}},Q0(g.UniverMobileUIPlugin,"pluginName",J0),g.UniverMobileUIPlugin=q0([d.DependentOn(I1.UniverRenderEnginePlugin),X0(1,d.Inject(d.Injector))],g.UniverMobileUIPlugin);class F9 extends d.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 z9=d.createIdentifier("univer-ui.local-file.service"),K0=e=>{const n=d.useDependency(S1).getContainer();s.useEffect(()=>{if(n)return n.addEventListener("mousedown",e),()=>{n.removeEventListener("mousedown",e)}},[e,n])};var Z9=Object.defineProperty,e5=Object.getOwnPropertyDescriptor,t5=(e,t,n)=>t in e?Z9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,n5=(e,t,n,r)=>{for(var i=r>1?void 0:r?e5(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&&Z9(t,n,i),i},Pn=(e,t)=>(n,r)=>t(n,r,e),r5=(e,t,n)=>t5(e,t+"",n);const W9="UNIVER_UI_PLUGIN",G9="DISABLE_AUTO_FOCUS";g.UniverUIPlugin=class extends d.Plugin{constructor(t=l4,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(G9,!0),o&&this._configService.setConfig("menu",o,{merge:!0}),this._configService.setConfig(S6,a)}onStarting(){d.mergeOverrideWithDependencies([[$e],[D1],[ut],[Je,{useClass:on}],[i1,{useClass:g.DesktopLayoutService}],[L1,{useClass:g.ShortcutService}],[ft,{useClass:tn}],[Qe,{useClass:g.MenuManagerService}],[B1,{useClass:cn}],[Sn,{useClass:g.BrowserClipboardService,lazy:!0}],[U1,{useClass:g.DesktopNotificationService,lazy:!0}],[Mt,{useClass:g.DesktopDialogService,lazy:!0}],[wt,{useClass:g.DesktopConfirmService,lazy:!0}],[S1,{useClass:An,lazy:!0}],[St,{useClass:g.DesktopZenZoneService,lazy:!0}],[Lt,{useClass:g.DesktopGlobalZoneService,lazy:!0}],[y1,{useClass:_n,lazy:!0}],[d.ILocalStorageService,{useClass:Ln,lazy:!0}],[Cn,{useClass:g.DesktopBeforeCloseService}],[z9,{useClass:F9}],[yt,{useClass:sn}],[bt],[R1,{useFactory:n=>n.createInstance(g.DesktopUIController,this._config),deps:[d.Injector]}],[g.SharedController],[g.ErrorController],[g.ShortcutPanelController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(R1),this._injector.get(g.ErrorController)}onReady(){this._injector.get(g.SharedController)}onSteady(){this._injector.get(g.ShortcutPanelController)}},r5(g.UniverUIPlugin,"pluginName",W9),g.UniverUIPlugin=n5([d.DependentOn(I1.UniverRenderEnginePlugin),Pn(1,d.IContextService),Pn(2,d.Inject(d.Injector)),Pn(3,d.IConfigService)],g.UniverUIPlugin);function Nt(e){return e.length===0?e:e.replace(/^\s+|\s+$/gm,"")}const i5=.75,Y9=78,q9=9,X9="rgba(0,0,0,0)",Q9="rgb(0,0,0)";function Rn(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
50
- `;for(let h=0;h<t.length;h++){let v=t[`${h}`],m;v.nodeName==="#text"?(m=(l=v.textContent)!=null?l:"",v=v.parentElement):m=v.innerText;const u=Vt(v);K9(m).forEach(L=>{const M=L.length;i+=M,r=i-M;const E=d.Tools.generateRandomId(6);n.push({sId:E,st:r,ed:i-1,ts:u})})}return d.Tools.generateRandomId(6),{id:d.Tools.generateRandomId(6),body:{dataStream:o,textRuns:n},documentStyle:{}}}function Vt(e,t=""){var a,l;let n=(l=(a=e==null?void 0:e.style)==null?void 0:a.cssText)!=null?l:"";if(n+=t,n=n.replace(/[\r\n]+/g,""),n.length===0)return{};const r=n.split(";"),i={},o={t:"",r:"",b:"",l:""};return r.forEach(h=>{var C;const v=h.toLowerCase(),m=Nt(v.substr(0,v.indexOf(":"))),u=Nt(v.substr(v.indexOf(":")+1));if(m==="font-weight")u==="bold"||u==="700"?i.bl=1:i.bl=0;else if(m==="font-style")u==="italic"?i.it=1:i.it=0;else if(m==="font-family"){const L=Nt(h),M=h5(L);i.ff=M}else if(m==="font-size"){let L=Number.parseInt(u);n.indexOf("vertical-align")>-1&&(n.indexOf("sub")>-1||n.indexOf("sup")>-1)&&(L*=2),u.indexOf("px")!==-1&&(L=d5(Number.parseInt(u,10))),i.fs=L}else if(m==="color"){const L=new d.ColorKit(u);i.cl={rgb:L.isValid?L.toRgbString():"rgb(0,0,0)"}}else if(m==="background"||m==="background-color"){const L=new d.ColorKit(u);if(L){const M=L.toRgbString();M!==X9&&M!==Q9&&(i.bg={rgb:L.toRgbString()})}}else if(m==="text-decoration-line")u==="underline"?(i.ul||(i.ul={s:1}),i.ul.s=1):u==="line-through"?(i.st||(i.st={s:1}),i.st.s=1):u==="overline"&&(i.ol||(i.ol={s:1}),i.ol.s=1);else if(m==="text-decoration-color")i.hasOwnProperty("ul")&&(i.ul||(i.ul={s:1,cl:{rgb:u}}),i.ul.cl={rgb:u}),i.hasOwnProperty("st")&&(i.st||(i.st={s:1,cl:{rgb:u}}),i.st.cl={rgb:u}),i.hasOwnProperty("ol")&&(i.ol||(i.ol={s:1,cl:{rgb:u}}),i.ol.cl={rgb:u});else if(m==="text-decoration-style")i.hasOwnProperty("ul")&&(i.ul||(i.ul={s:1,t:Number(u)}),i.ul.t=Number(u)),i.hasOwnProperty("st")&&(i.st||(i.st={s:1,t:Number(u)}),i.st.t=Number(u)),i.hasOwnProperty("ol")&&(i.ol||(i.ol={s:1,t:Number(u)}),i.ol.t=Number(u));else if(m==="text-decoration"||m==="univer-strike"){const L=(C=u.split(" "))==null?void 0:C[0];L==="underline"?(i.ul||(i.ul={s:1}),i.ul.s=1):L==="line-through"?(i.st||(i.st={s:1}),i.st.s=1):L==="overline"&&(i.ol||(i.ol={s:1}),i.ol.s=1)}if(m==="univer-underline"&&(i.ul={s:1}),m==="vertical-align"&&(u==="sub"?i.va=d.BaselineOffset.SUBSCRIPT:u==="super"?i.va=d.BaselineOffset.SUPERSCRIPT:u==="top"?i.vt=1:u==="middle"?i.vt=2:u==="bottom"?i.vt=3:i.va=d.BaselineOffset.NORMAL),m==="transform"){const L=u.split(")"),M=L.findIndex(E=>E.includes("rotate"));if(M>-1){const E=L[M].match(/\d+/g);let w=0,H=0;E!=null&&E.length&&(w=+E[0]),e!=null&&e.dataset.vertical&&(H=+e.dataset.vertical),i.tr={a:w,v:H}}}if(m==="text-align"&&(u==="left"?i.ht=1:u==="center"?i.ht=2:u==="right"?i.ht=3:u==="justify"?i.ht=4:i.ht=0),i.tb!==1&&(m==="overflow-wrap"||m==="word-wrap"?u==="break-word"&&(i.tb=3):m==="text-overflow"?u==="clip"&&(i.tb=2):m==="text-break"&&u==="overflow"&&(i.tb=1)),m==="white-space"&&(u==="nowrap"?i.tb=1:u==="normal"?i.tb=3:u==="clip"&&(i.tb=2)),m==="border-color"){const L=J9(u,")");if(i.bd)for(const M in L)i.bd[M].cl.rgb=L[M];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 M in L)i.bd[M].cl.rgb=L[M]}}if(m==="border-width"||m==="border-style"){const L=J9(u," ");for(const M in L)o[M]+=` ${L[M]}`;i.bd?(i.bd.b.s=d.getBorderStyleType(o.b),i.bd.t.s=d.getBorderStyleType(o.t),i.bd.l.s=d.getBorderStyleType(o.l),i.bd.r.s=d.getBorderStyleType(o.r)):i.bd={b:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.b)},t:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.t)},l:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.l)},r:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.r)}}}if(m==="border-bottom"||m==="border-top"||m==="border-left"||m==="border-right"||m==="border"){i.bd||(i.bd={});const L=u.split(" "),M=`${L[0]} ${L[1]}`;L.splice(0,2);const E=L.join("");if(d.getBorderStyleType(M)!==d.BorderStyleTypes.NONE&&E){const H={cl:{rgb:E},s:d.getBorderStyleType(M)};m==="border-bottom"?i.bd.b=u==="none"?null:H:m==="border-top"?i.bd.t=u==="none"?null:H:m==="border-left"?i.bd.l=u==="none"?null:H:m==="border-right"?i.bd.r=u==="none"?null:H:m==="border"&&(i.bd={r:u==="none"?null:H,t:u==="none"?null:H,b:u==="none"?null:H,l:u==="none"?null:H})}}else if(m==="--data-rotate"){const L=/[+-]?\d+/,M=u.match(L);u==="(0deg ,1)"?i.tr={a:0,v:1}:M&&(i.tr={a:Number(M[0])})}}),Object.keys(i).forEach(h=>{typeof i[h]=="object"&&!Object.keys(i[h]).length&&delete i[h]}),i}function J9(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 K9(e){if(e==="")return[e];const t=/(?:(\n+.+)|(.+))/g;return e.match(t).map(i=>i.replace(/\n/g,`\r
51
- `))}function o5(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 o=r[i],a=o.getAttribute("span");if(a&&+a>1)for(let l=0;l<+a;l++){const h=At(o.getAttribute("width"),72);n.push(h)}else{const l=At(o.getAttribute("width"),72);n.push(l)}}return n}function At(e,t){if(!e)return t;let n;return e.includes("pt")?n=I1.ptToPx(Number.parseFloat(e)):e.includes("px")?n=Number.parseFloat(e):n=Number.parseFloat(e)*72/96,n}function a5(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 a=r[i].querySelectorAll("td");let l=At(a[0].style.height,19);for(let h=0;h<a.length;h++){const v=a[h].getAttribute("rowSpan");if(!(v&&+v>1)){l=At(a[h].style.height,19);break}}n.push(l)}return n}function s5(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 h=0;const v=l.getAttribute("colSpan");v!==null?h=+v:h=1,r+=h});for(let l=0;l<t.length;l++)t[l]=new Array(r);let a=0;return i.forEach(l=>{let h=0;l.querySelectorAll("td").forEach(v=>{var L,M;const m={};if(v.querySelectorAll("span").length||v.querySelectorAll("font").length){const E=Rn(v);typeof E!="string"&&(m.p=E)}const u=v.innerText;u.trim().length===0?m.v="":m.v=u;const C=Vt(v);for(d.Tools.isPlainObject(C)&&(m.s=C);h<r&&t[a][h]!=null;)h++;if(h!==r){if(t[a][h]==null){t[a][h]=m;const E=(L=Number(v.getAttribute("rowSpan")))!=null?L:1,w=(M=Number(v.getAttribute("colSpan")))!=null?M:1;if(E>1||w>1){const H={rs:+E-1,cs:+w-1,r:a,c:h};t[a][h].mc=H;for(let x=0;x<E;x++)for(let T=0;T<w;T++)x===0&&T===0||(t[a+x][h+T]={mc:null})}}h++}}),a++}),t}function l5(e){const t=[],n=document.createElement("DIV");n.innerHTML=e;const i=e.replace(/\r/g,"").split(`
52
- `),o=i[0].split(" ").length;for(let a=0;a<i.length;a++)i[a].split(" ").length<o||t.push(i[a].split(" "));for(let a=0;a<t.length;a++)for(let l=0;l<t[a].length;l++)t[a][l].length?t[a][l]={v:t[a][l]||"",m:t[a][l]||""}:t[a][l]=null;return t}function c5(e,t){e.length,e[0].length;let n=0,r=0;t&&(n=t.startRow,r=t.startColumn);const i=[];for(let o=0;o<e.length;o++)for(let a=0;a<e[o].length;a++)if(e[o][a]&&typeof e[o][a]=="object"&&"mc"in e[o][a])if(e[o][a].mc){const l=e[o][a].mc,h=l.r+n,v=h+l.rs,m=l.c+r,u=m+l.cs;i.push({startRow:h,endRow:v,startColumn:m,endColumn:u}),delete e[o][a].mc}else e[o][a]=null;return{data:e,mergeData:i}}function u5(e){var v;let t=[];const n=document.createElement("html");n.innerHTML=e;const r=(v=n.querySelector("style"))==null?void 0:v.innerText;if(!r)return;const i=f5(r);if(t=new Array(n.querySelectorAll("table tr").length),!t.length)return[];let o=0;const a=n.querySelectorAll("table tr");a[0].querySelectorAll("td").forEach(m=>{let u=0;const C=m.getAttribute("colSpan");C!==null?u=+C:u=1,o+=u});for(let m=0;m<t.length;m++)t[m]=new Array(o);let h=0;return a.forEach(m=>{let u=0;m.querySelectorAll("td").forEach(C=>{var H,x;const L={};if(C.querySelectorAll("span").length||C.querySelectorAll("font").length){const T=Rn(C);typeof T!="string"&&(L.p=T)}const M=C.innerText;M.trim().length===0?L.v="":L.v=M;let E="";for(const T in i)C.classList.contains(T)&&(E+=i[T]);const w=Vt(C,E);for(d.Tools.isPlainObject(w)&&(L.s=w);u<o&&t[h][u]!=null;)u++;if(u!==o){if(t[h][u]==null){t[h][u]=L;const T=(H=Number(C.getAttribute("rowSpan")))!=null?H:1,k=(x=Number(C.getAttribute("colSpan")))!=null?x:1;if(T>1||k>1){const O={rs:+T-1,cs:+k-1,r:h,c:u};t[h][u].mc=O;for(let I=0;I<T;I++)for(let P=0;P<k;P++)I===0&&P===0||(t[h+I][u+P]={mc:null})}}u++}}),h++}),t}function f5(e){const t={},n=e.replaceAll("<!--","").replaceAll("-->","").trim(),r=n==null?void 0:n.replaceAll(" ","").replaceAll(`
53
- `,"").split("}");for(let i=0;i<r.length;i++){if(!r[i])continue;let o=r[i].split("{")[0].trim();o.includes(".")&&(o=o.slice(1));const a=r[i].split("{")[1].trim();t[o]=a}return t}function d5(e){const t=Math.round(e*i5);return t<q9?q9:t>Y9?Y9:t}function h5(e){const t=/font-family:\s*(?:"([^"]+)"|'([^']+)'|([^;]+))/i,n=e.match(t);return n?(n[1]||n[2]||n[3]).trim():null}g.BuiltInUIPart=ge,g.CanvasFloatDomService=bt,g.CanvasPopup=ln,g.CanvasPopupService=sn,g.ComponentContainer=xe,g.ComponentManager=$e,g.ContextMenu=Z6,g.ContextMenuGroup=_e,g.ContextMenuPosition=v1,g.ContextMenuService=cn,g.CopyCommand=Jt,g.CopyShortcutItem=O6,g.CustomLabel=Ae,g.CutCommand=Kt,g.CutShortcutItem=I6,g.DEFAULT_BACKGROUND_COLOR_RGB=Q9,g.DEFAULT_BACKGROUND_COLOR_RGBA=X9,g.DISABLE_AUTO_FOCUS_KEY=G9,g.DesktopLocalFileService=F9,g.DesktopLocalStorageService=Ln,g.DesktopMessageService=_n,g.DesktopSidebarService=An,g.FONT_FAMILY_LIST=x2,g.FONT_SIZE_LIST=V2,g.FloatDom=an,g.FontFamily=T2,g.FontFamilyItem=D2,g.FontSize=N2,g.GlobalZone=J6,g.HTML_CLIPBOARD_MIME_TYPE=yn,g.IBeforeCloseService=Cn,g.ICanvasPopupService=yt,g.IClipboardInterfaceService=Sn,g.IConfirmService=wt,g.IContextMenuService=B1,g.IDialogService=Mt,g.IGlobalZoneService=Lt,g.ILayoutService=i1,g.ILeftSidebarService=d4,g.ILocalFileService=z9,g.IMenuManagerService=Qe,g.IMessageService=y1,g.INotificationService=U1,g.IPlatformService=ft,g.IShortcutService=L1,g.ISidebarService=S1,g.IUIController=R1,g.IUIPartsService=Je,g.IZenZoneService=St,g.KeyCode=l1,g.Menu=ct,g.MenuItemType=De,g.MenuManagerPosition=N1,g.MetaKeys=Ie,g.MobileContextMenu=e9,g.PLAIN_TEXT_CLIPBOARD_MIME_TYPE=bn,g.PLUGIN_CONFIG_KEY=S6,g.PasteCommand=en,g.PlatformService=tn,g.ProgressBar=a4,g.RectPopup=lt,g.RedoShortcutItem=D6,g.Ribbon=X6,g.RibbonDataGroup=Yt,g.RibbonFormulasGroup=Gt,g.RibbonInsertGroup=Wt,g.RibbonOthersGroup=Xt,g.RibbonPosition=o1,g.RibbonStartGroup=Ze,g.RibbonViewGroup=qt,g.ShortcutPanelService=ut,g.Sidebar=dn,g.ToggleShortcutPanelOperation=A1,g.ToolbarButton=un,g.ToolbarItem=w1,g.UIPartsService=on,g.UNIVER_UI_PLUGIN_NAME=W9,g.UNI_DISABLE_CHANGING_FOCUS_KEY=s4,g.UndoShortcutItem=T6,g.VueComponentWrapper=Gr,g.ZIndexManager=D1,g.ZenZone=vn,g.builtInGlobalComponents=mn,g.getHeaderFooterMenuHiddenObservable=L2,g.getMenuHiddenObservable=Yr,g.handelExcelToJson=u5,g.handelTableToJson=s5,g.handleDomToJson=Rn,g.handlePlainToJson=l5,g.handleStringToStyle=Vt,g.handleTableColgroup=o5,g.handleTableMergeData=c5,g.handleTableRowGroup=a5,g.menuSchema=Qt,g.mergeMenuConfigs=qr,g.splitSpanText=K9,g.t=P2,g.textTrim=Nt,g.useComponentsOfPart=Pe,g.useEvent=Bt,g.useObservable=Oe,g.useObservableRef=e6,g.useScrollYOverContainer=i6,g.useSidebarClick=K0,g.useToolbarItemStatus=G6,g.useVirtualList=Q2,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
54
-
55
-
56
- // /home/runner/work/univer-presets/univer-presets/packages/preset-docs-core/node_modules/@univerjs/ui/facade
47
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,m0="".concat(h0," ").concat(v0).split(/[\s\n]+/),p0="aria-",C0="data-";function D9(e,t){return e.indexOf(t)===0}function g0(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=le({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||D9(i,p0))||n.data&&D9(i,C0)||n.attr&&m0.includes(i))&&(r[i]=e[i])}),r}var b0=Q.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,c=e.showProgress,h=e.pauseOnHover,v=h===void 0?!0:h,m=e.eventKey,u=e.content,g=e.closable,S=e.closeIcon,w=S===void 0?"x":S,E=e.props,M=e.onClick,I=e.onNoticeClose,x=e.times,T=e.hovering,j=Q.useState(!1),H=Se(j,2),O=H[0],P=H[1],k=Q.useState(0),z=Se(k,2),W=z[0],q=z[1],K=Q.useState(0),ne=Se(K,2),oe=ne[0],ve=ne[1],ie=T||O,fe=a>0&&c,be=function(){I(m)},F=function(J){(J.key==="Enter"||J.code==="Enter"||J.keyCode===te.ENTER)&&be()};Q.useEffect(function(){if(!ie&&a>0){var Z=Date.now()-oe,J=setTimeout(function(){be()},a*1e3-oe);return function(){v&&clearTimeout(J),ve(Date.now()-Z)}}},[a,ie,x]),Q.useEffect(function(){if(!ie&&fe&&(v||oe===0)){var Z=performance.now(),J,se=function Ce(){cancelAnimationFrame(J),J=requestAnimationFrame(function(Ne){var we=Ne+oe-Z,Ee=Math.min(we/(a*1e3),1);q(Ee*100),Ee<1&&Ce()})};return se(),function(){v&&cancelAnimationFrame(J)}}},[a,oe,ie,fe,x]);var V=Q.useMemo(function(){return Re(g)==="object"&&g!==null?g:g?{closeIcon:w}:{}},[g,w]),A=g0(V,!0),G=100-(!W||W<0?0:W>100?100:W),X="".concat(n,"-notice");return Q.createElement("div",g1({},E,{ref:t,className:U1(X,i,He({},"".concat(X,"-closable"),g)),style:r,onMouseEnter:function(J){var se;P(!0),E==null||(se=E.onMouseEnter)===null||se===void 0||se.call(E,J)},onMouseLeave:function(J){var se;P(!1),E==null||(se=E.onMouseLeave)===null||se===void 0||se.call(E,J)},onClick:M}),Q.createElement("div",{className:"".concat(X,"-content")},u),g&&Q.createElement("a",g1({tabIndex:0,className:"".concat(X,"-close"),onKeyDown:F,"aria-label":"Close"},A,{onClick:function(J){J.preventDefault(),J.stopPropagation(),be()}}),V.closeIcon),fe&&Q.createElement("progress",{className:"".concat(X,"-progress"),max:"100",value:G},G+"%"))}),y0=s.createContext({}),x9=8,N9=3,V9=16,L0=function(t){var n={offset:x9,threshold:N9,gap:V9};if(t&&Re(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:x9,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:N9,n.gap=(o=t.gap)!==null&&o!==void 0?o:V9}return[!!t,n]},S0=["className","style","classNames","styles"],_0=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,c=t.motion,h=t.onAllNoticeRemoved,v=t.onNoticeClose,m=t.stack,u=s.useContext(y0),g=u.classNames,S=s.useRef({}),w=s.useState(null),E=Se(w,2),M=E[0],I=E[1],x=s.useState([]),T=Se(x,2),j=T[0],H=T[1],O=n.map(function(ie){return{config:ie,key:String(ie.key)}}),P=L0(m),k=Se(P,2),z=k[0],W=k[1],q=W.offset,K=W.threshold,ne=W.gap,oe=z&&(j.length>0||O.length<=K),ve=typeof c=="function"?c(r):c;return s.useEffect(function(){z&&j.length>1&&H(function(ie){return ie.filter(function(fe){return O.some(function(be){var F=be.key;return fe===F})})})},[j,O,z]),s.useEffect(function(){var ie;if(z&&S.current[(ie=O[O.length-1])===null||ie===void 0?void 0:ie.key]){var fe;I(S.current[(fe=O[O.length-1])===null||fe===void 0?void 0:fe.key])}},[O,z]),s.createElement(d0,g1({key:r,className:U1(i,"".concat(i,"-").concat(r),g==null?void 0:g.list,o,He(He({},"".concat(i,"-stack"),!!z),"".concat(i,"-stack-expanded"),oe)),style:a,keys:O,motionAppear:!0},ve,{onAllRemoved:function(){h(r)}}),function(ie,fe){var be=ie.config,F=ie.className,V=ie.style,A=ie.index,G=be,X=G.key,Z=G.times,J=String(X),se=be,Ce=se.className,Ne=se.style,we=se.classNames,Ee=se.styles,E1=Et(se,S0),Xe=O.findIndex(function(ze){return ze.key===J}),u1={};if(z){var t1=O.length-1-(Xe>-1?Xe:A-1),ke=r==="top"||r==="bottom"?"-50%":"0";if(t1>0){var je,f1,Ue;u1.height=oe?(je=S.current[J])===null||je===void 0?void 0:je.offsetHeight:M==null?void 0:M.offsetHeight;for(var n1=0,ye=0;ye<t1;ye++){var pe;n1+=((pe=S.current[O[O.length-1-ye].key])===null||pe===void 0?void 0:pe.offsetHeight)+ne}var Ve=(oe?n1:t1*q)*(r.startsWith("top")?1:-1),a1=!oe&&M!==null&&M!==void 0&&M.offsetWidth&&(f1=S.current[J])!==null&&f1!==void 0&&f1.offsetWidth?((M==null?void 0:M.offsetWidth)-q*2*(t1<3?t1:3))/((Ue=S.current[J])===null||Ue===void 0?void 0:Ue.offsetWidth):1;u1.transform="translate3d(".concat(ke,", ").concat(Ve,"px, 0) scaleX(").concat(a1,")")}else u1.transform="translate3d(".concat(ke,", 0, 0)")}return s.createElement("div",{ref:fe,className:U1("".concat(i,"-notice-wrapper"),F,we==null?void 0:we.wrapper),style:le(le(le({},V),u1),Ee==null?void 0:Ee.wrapper),onMouseEnter:function(){return H(function(r1){return r1.includes(J)?r1:[].concat(x1(r1),[J])})},onMouseLeave:function(){return H(function(r1){return r1.filter(function(At){return At!==J})})}},s.createElement(b0,g1({},E1,{ref:function(r1){Xe>-1?S.current[J]=r1:delete S.current[J]},prefixCls:i,classNames:we,styles:Ee,className:U1(Ce,g==null?void 0:g.notice),style:Ne,times:Z,key:X,eventKey:X,onNoticeClose:v,hovering:z&&j.length>0})))})},M0=Q.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,c=e.className,h=e.style,v=e.onAllRemoved,m=e.stack,u=e.renderNotifications,g=Q.useState([]),S=Se(g,2),w=S[0],E=S[1],M=function(z){var W,q=w.find(function(K){return K.key===z});q==null||(W=q.onClose)===null||W===void 0||W.call(q),E(function(K){return K.filter(function(ne){return ne.key!==z})})};Q.useImperativeHandle(t,function(){return{open:function(z){E(function(W){var q=x1(W),K=q.findIndex(function(ve){return ve.key===z.key}),ne=le({},z);if(K>=0){var oe;ne.times=(((oe=W[K])===null||oe===void 0?void 0:oe.times)||0)+1,q[K]=ne}else ne.times=0,q.push(ne);return a>0&&q.length>a&&(q=q.slice(-a)),q})},close:function(z){M(z)},destroy:function(){E([])}}});var I=Q.useState({}),x=Se(I,2),T=x[0],j=x[1];Q.useEffect(function(){var k={};w.forEach(function(z){var W=z.placement,q=W===void 0?"topRight":W;q&&(k[q]=k[q]||[],k[q].push(z))}),Object.keys(T).forEach(function(z){k[z]=k[z]||[]}),j(k)},[w]);var H=function(z){j(function(W){var q=le({},W),K=q[z]||[];return K.length||delete q[z],q})},O=Q.useRef(!1);if(Q.useEffect(function(){Object.keys(T).length>0?O.current=!0:O.current&&(v==null||v(),O.current=!1)},[T]),!i)return null;var P=Object.keys(T);return I1.createPortal(Q.createElement(Q.Fragment,null,P.map(function(k){var z=T[k],W=Q.createElement(_0,{key:k,configList:z,placement:k,prefixCls:r,className:c==null?void 0:c(k),style:h==null?void 0:h(k),motion:o,onNoticeClose:M,onAllNoticeRemoved:H,stack:m});return u?u(W,{prefixCls:r,key:k}):W})),i)}),w0=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],E0=function(){return document.body},A9=0;function H0(){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 O0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?E0:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,c=e.style,h=e.onAllRemoved,v=e.stack,m=e.renderNotifications,u=Et(e,w0),g=Q.useState(),S=Se(g,2),w=S[0],E=S[1],M=Q.useRef(),I=Q.createElement(M0,{container:w,ref:M,prefixCls:i,motion:r,maxCount:o,className:a,style:c,onAllRemoved:h,stack:v,renderNotifications:m}),x=Q.useState([]),T=Se(x,2),j=T[0],H=T[1],O=Q.useMemo(function(){return{open:function(k){var z=H0(u,k);(z.key===null||z.key===void 0)&&(z.key="rc-notification-".concat(A9),A9+=1),H(function(W){return[].concat(x1(W),[{type:"open",config:z}])})},close:function(k){H(function(z){return[].concat(x1(z),[{type:"close",key:k}])})},destroy:function(){H(function(k){return[].concat(x1(k),[{type:"destroy"}])})}}},[]);return Q.useEffect(function(){E(n())}),Q.useEffect(function(){M.current&&j.length&&(j.forEach(function(P){switch(P.type){case"open":M.current.open(P.config);break;case"close":M.current.close(P.key);break;case"destroy":M.current.destroy();break}}),H(function(P){return P.filter(function(k){return!j.includes(k)})}))},[j]),[O,I]}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"},I0={success:b.jsx(Vr,{className:qe.notificationIconSuccess}),info:b.jsx(kt,{className:qe.notificationIconInfo}),warning:b.jsx(kt,{className:qe.notificationIconWarning}),error:b.jsx(H3,{className:qe.notificationIconError})},P9=new re.Subject,T0=e=>{const{type:t,content:n,title:r,lines:i=0}=e,o=Te(qe.notificationContent,{[qe.notificationContentEllipsis]:i!==0});return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:qe.notificationIcon,children:I0[t]}),b.jsxs("div",{className:qe.notificationContentContainer,children:[b.jsx("span",{className:qe.notificationTitle,children:r}),b.jsx("span",{className:o,style:{WebkitLineClamp:i},children:n})]})]})};function D0(){const{mountContainer:e}=s.useContext(he.ConfigContext);if(!e)return null;const[t,n]=O0({prefixCls:qe.notification,maxCount:3,closeIcon:b.jsx(W1,{}),getContainer:()=>e,motion:{motionName:qe.notificationFade,motionAppear:!0,motionEnter:!0,motionLeave:!0}}),r=s.useRef(P9);return s.useEffect(()=>{const i=r.current.subscribe(o=>{var a,c,h;t.open({content:b.jsx(T0,{content:o.content,type:o.type,title:o.title,lines:o.lines}),key:o.key,placement:(a=o.placement)!=null?a:"topRight",duration:(c=o.duration)!=null?c:4.5,closable:(h=o.closable)!=null?h:!0})});return()=>{i.unsubscribe()}},[t]),b.jsx(b.Fragment,{children:n})}const x0={show:e=>{P9.next(e)}};var N0=Object.defineProperty,V0=Object.getOwnPropertyDescriptor,A0=(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&&N0(t,n,i),i},R9=(e,t)=>(n,r)=>t(n,r,e);p.DesktopNotificationService=class extends d.Disposable{constructor(t,n){super(),this._injector=t,this._uiPartsService=n,this._initUIPart()}show(t){return x0.show(t),d.toDisposable(()=>{})}_initUIPart(){this.disposeWithMe(this._uiPartsService.registerComponent(ge.GLOBAL,()=>d.connectInjector(D0,this._injector)))}},p.DesktopNotificationService=A0([R9(0,d.Inject(d.Injector)),R9(1,Je)],p.DesktopNotificationService);class Vn{constructor(){ee(this,"_sidebarOptions",{});ee(this,"sidebarOptions$",new re.Subject);ee(this,"scrollEvent$",new re.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 P0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,k0=(e,t,n,r)=>{for(var i=r>1?void 0:r?R0(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&&P0(t,n,i),i},j0=(e,t)=>(n,r)=>t(n,r,e);p.DesktopZenZoneService=class{constructor(t){ee(this,"visible$",new re.BehaviorSubject(!1));ee(this,"componentKey$",new re.ReplaySubject);ee(this,"_temporaryHidden$",new re.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)}},p.DesktopZenZoneService=k0([j0(0,d.Inject(Be))],p.DesktopZenZoneService);var k9=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,B0=(e,t,n)=>t in e?k9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F0=(e,t,n,r)=>{for(var i=r>1?void 0:r?$0(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&&k9(t,n,i),i},U0=(e,t)=>(n,r)=>t(n,r,e),z0=(e,t,n)=>B0(e,t+"",n);const Z0="UNIVER_MOBILE_UI_PLUGIN";p.UniverMobileUIPlugin=class extends d.Plugin{constructor(t,n){super(),this._config=t,this._injector=n}onStarting(){d.mergeOverrideWithDependencies([[Be],[T1],[ct],[Je,{useClass:on}],[i1,{useClass:p.DesktopLayoutService}],[L1,{useClass:p.ShortcutService}],[ut,{useClass:tn}],[Qe,{useClass:p.MenuManagerService}],[B1,{useClass:cn}],[Ln,{useClass:p.BrowserClipboardService,lazy:!0}],[F1,{useClass:p.DesktopNotificationService,lazy:!0}],[Mt,{useClass:p.DesktopDialogService,lazy:!0}],[_t,{useClass:p.DesktopConfirmService,lazy:!0}],[y1,{useClass:Vn,lazy:!0}],[yt,{useClass:p.DesktopZenZoneService,lazy:!0}],[Lt,{useClass:p.DesktopGlobalZoneService,lazy:!0}],[b1,{useClass:_n,lazy:!0}],[d.ILocalStorageService,{useClass:Sn,lazy:!0}],[Cn,{useClass:p.DesktopBeforeCloseService}],[bt,{useClass:sn}],[gt],[R1,{useFactory:n=>n.createInstance(pn,this._config),deps:[d.Injector]}],[p.SharedController],[p.ErrorController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(R1),this._injector.get(p.ErrorController)}},z0(p.UniverMobileUIPlugin,"pluginName",Z0),p.UniverMobileUIPlugin=F0([d.DependentOn(O1.UniverRenderEnginePlugin),U0(1,d.Inject(d.Injector))],p.UniverMobileUIPlugin);class j9 extends d.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 c=a.target.files;c&&n(Array.from(c))},r.click()})}downloadFile(t,n){const r=document.createElement("a");r.download=n,r.href=window.URL.createObjectURL(t),r.click()}}const $9=d.createIdentifier("univer-ui.local-file.service"),W0=e=>{const n=d.useDependency(y1).getContainer();s.useEffect(()=>{if(n)return n.addEventListener("mousedown",e),()=>{n.removeEventListener("mousedown",e)}},[e,n])};var B9=Object.defineProperty,G0=Object.getOwnPropertyDescriptor,Y0=(e,t,n)=>t in e?B9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q0=(e,t,n,r)=>{for(var i=r>1?void 0:r?G0(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&&B9(t,n,i),i},An=(e,t)=>(n,r)=>t(n,r,e),X0=(e,t,n)=>Y0(e,t+"",n);const F9="UNIVER_UI_PLUGIN",U9="DISABLE_AUTO_FOCUS";p.UniverUIPlugin=class extends d.Plugin{constructor(t=r4,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(U9,!0),o&&this._configService.setConfig("menu",o,{merge:!0}),this._configService.setConfig(y6,a)}onStarting(){d.mergeOverrideWithDependencies([[Be],[T1],[ct],[Je,{useClass:on}],[i1,{useClass:p.DesktopLayoutService}],[L1,{useClass:p.ShortcutService}],[ut,{useClass:tn}],[Qe,{useClass:p.MenuManagerService}],[B1,{useClass:cn}],[Ln,{useClass:p.BrowserClipboardService,lazy:!0}],[F1,{useClass:p.DesktopNotificationService,lazy:!0}],[Mt,{useClass:p.DesktopDialogService,lazy:!0}],[_t,{useClass:p.DesktopConfirmService,lazy:!0}],[y1,{useClass:Vn,lazy:!0}],[yt,{useClass:p.DesktopZenZoneService,lazy:!0}],[Lt,{useClass:p.DesktopGlobalZoneService,lazy:!0}],[b1,{useClass:_n,lazy:!0}],[d.ILocalStorageService,{useClass:Sn,lazy:!0}],[Cn,{useClass:p.DesktopBeforeCloseService}],[$9,{useClass:j9}],[bt,{useClass:sn}],[gt],[R1,{useFactory:n=>n.createInstance(p.DesktopUIController,this._config),deps:[d.Injector]}],[p.SharedController],[p.ErrorController],[p.ShortcutPanelController]],this._config.override).forEach(n=>this._injector.add(n)),this._injector.get(R1),this._injector.get(p.ErrorController)}onReady(){this._injector.get(p.SharedController)}onSteady(){this._injector.get(p.ShortcutPanelController)}},X0(p.UniverUIPlugin,"pluginName",F9),p.UniverUIPlugin=q0([d.DependentOn(O1.UniverRenderEnginePlugin),An(1,d.IContextService),An(2,d.Inject(d.Injector)),An(3,d.IConfigService)],p.UniverUIPlugin);function xt(e){return e.length===0?e:e.replace(/^\s+|\s+$/gm,"")}const Q0=.75,z9=78,Z9=9,W9="rgba(0,0,0,0)",G9="rgb(0,0,0)";function Pn(e){var c;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
48
+ `;for(let h=0;h<t.length;h++){let v=t[`${h}`],m;v.nodeName==="#text"?(m=(c=v.textContent)!=null?c:"",v=v.parentElement):m=v.innerText;const u=Nt(v);q9(m).forEach(S=>{const w=S.length;i+=w,r=i-w;const E=d.Tools.generateRandomId(6);n.push({sId:E,st:r,ed:i-1,ts:u})})}return d.Tools.generateRandomId(6),{id:d.Tools.generateRandomId(6),body:{dataStream:o,textRuns:n},documentStyle:{}}}function Nt(e,t=""){var a,c;let n=(c=(a=e==null?void 0:e.style)==null?void 0:a.cssText)!=null?c:"";if(n+=t,n=n.replace(/[\r\n]+/g,""),n.length===0)return{};const r=n.split(";"),i={},o={t:"",r:"",b:"",l:""};return r.forEach(h=>{var g;const v=h.toLowerCase(),m=xt(v.substr(0,v.indexOf(":"))),u=xt(v.substr(v.indexOf(":")+1));if(m==="font-weight")u==="bold"||u==="700"?i.bl=1:i.bl=0;else if(m==="font-style")u==="italic"?i.it=1:i.it=0;else if(m==="font-family"){const S=xt(h),w=a5(S);i.ff=w}else if(m==="font-size"){let S=Number.parseInt(u);n.indexOf("vertical-align")>-1&&(n.indexOf("sub")>-1||n.indexOf("sup")>-1)&&(S*=2),u.indexOf("px")!==-1&&(S=o5(Number.parseInt(u,10))),i.fs=S}else if(m==="color"){const S=new d.ColorKit(u);i.cl={rgb:S.isValid?S.toRgbString():"rgb(0,0,0)"}}else if(m==="background"||m==="background-color"){const S=new d.ColorKit(u);if(S){const w=S.toRgbString();w!==W9&&w!==G9&&(i.bg={rgb:S.toRgbString()})}}else if(m==="text-decoration-line")u==="underline"?(i.ul||(i.ul={s:1}),i.ul.s=1):u==="line-through"?(i.st||(i.st={s:1}),i.st.s=1):u==="overline"&&(i.ol||(i.ol={s:1}),i.ol.s=1);else if(m==="text-decoration-color")i.hasOwnProperty("ul")&&(i.ul||(i.ul={s:1,cl:{rgb:u}}),i.ul.cl={rgb:u}),i.hasOwnProperty("st")&&(i.st||(i.st={s:1,cl:{rgb:u}}),i.st.cl={rgb:u}),i.hasOwnProperty("ol")&&(i.ol||(i.ol={s:1,cl:{rgb:u}}),i.ol.cl={rgb:u});else if(m==="text-decoration-style")i.hasOwnProperty("ul")&&(i.ul||(i.ul={s:1,t:Number(u)}),i.ul.t=Number(u)),i.hasOwnProperty("st")&&(i.st||(i.st={s:1,t:Number(u)}),i.st.t=Number(u)),i.hasOwnProperty("ol")&&(i.ol||(i.ol={s:1,t:Number(u)}),i.ol.t=Number(u));else if(m==="text-decoration"||m==="univer-strike"){const S=(g=u.split(" "))==null?void 0:g[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(m==="univer-underline"&&(i.ul={s:1}),m==="vertical-align"&&(u==="sub"?i.va=d.BaselineOffset.SUBSCRIPT:u==="super"?i.va=d.BaselineOffset.SUPERSCRIPT:u==="top"?i.vt=1:u==="middle"?i.vt=2:u==="bottom"?i.vt=3:i.va=d.BaselineOffset.NORMAL),m==="transform"){const S=u.split(")"),w=S.findIndex(E=>E.includes("rotate"));if(w>-1){const E=S[w].match(/\d+/g);let M=0,I=0;E!=null&&E.length&&(M=+E[0]),e!=null&&e.dataset.vertical&&(I=+e.dataset.vertical),i.tr={a:M,v:I}}}if(m==="text-align"&&(u==="left"?i.ht=1:u==="center"?i.ht=2:u==="right"?i.ht=3:u==="justify"?i.ht=4:i.ht=0),i.tb!==1&&(m==="overflow-wrap"||m==="word-wrap"?u==="break-word"&&(i.tb=3):m==="text-overflow"?u==="clip"&&(i.tb=2):m==="text-break"&&u==="overflow"&&(i.tb=1)),m==="white-space"&&(u==="nowrap"?i.tb=1:u==="normal"?i.tb=3:u==="clip"&&(i.tb=2)),m==="border-color"){const S=Y9(u,")");if(i.bd)for(const w in S)i.bd[w].cl.rgb=S[w];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 w in S)i.bd[w].cl.rgb=S[w]}}if(m==="border-width"||m==="border-style"){const S=Y9(u," ");for(const w in S)o[w]+=` ${S[w]}`;i.bd?(i.bd.b.s=d.getBorderStyleType(o.b),i.bd.t.s=d.getBorderStyleType(o.t),i.bd.l.s=d.getBorderStyleType(o.l),i.bd.r.s=d.getBorderStyleType(o.r)):i.bd={b:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.b)},t:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.t)},l:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.l)},r:{cl:{rgb:"#000"},s:d.getBorderStyleType(o.r)}}}if(m==="border-bottom"||m==="border-top"||m==="border-left"||m==="border-right"||m==="border"){i.bd||(i.bd={});const S=u.split(" "),w=`${S[0]} ${S[1]}`;S.splice(0,2);const E=S.join("");if(d.getBorderStyleType(w)!==d.BorderStyleTypes.NONE&&E){const I={cl:{rgb:E},s:d.getBorderStyleType(w)};m==="border-bottom"?i.bd.b=u==="none"?null:I:m==="border-top"?i.bd.t=u==="none"?null:I:m==="border-left"?i.bd.l=u==="none"?null:I:m==="border-right"?i.bd.r=u==="none"?null:I:m==="border"&&(i.bd={r:u==="none"?null:I,t:u==="none"?null:I,b:u==="none"?null:I,l:u==="none"?null:I})}}else if(m==="--data-rotate"){const S=/[+-]?\d+/,w=u.match(S);u==="(0deg ,1)"?i.tr={a:0,v:1}:w&&(i.tr={a:Number(w[0])})}}),Object.keys(i).forEach(h=>{typeof i[h]=="object"&&!Object.keys(i[h]).length&&delete i[h]}),i}function Y9(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 q9(e){if(e==="")return[e];const t=/(?:(\n+.+)|(.+))/g;return e.match(t).map(i=>i.replace(/\n/g,`\r
49
+ `))}function J0(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 o=r[i],a=o.getAttribute("span");if(a&&+a>1)for(let c=0;c<+a;c++){const h=Vt(o.getAttribute("width"),72);n.push(h)}else{const c=Vt(o.getAttribute("width"),72);n.push(c)}}return n}function Vt(e,t){if(!e)return t;let n;return e.includes("pt")?n=O1.ptToPx(Number.parseFloat(e)):e.includes("px")?n=Number.parseFloat(e):n=Number.parseFloat(e)*72/96,n}function K0(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 a=r[i].querySelectorAll("td");let c=Vt(a[0].style.height,19);for(let h=0;h<a.length;h++){const v=a[h].getAttribute("rowSpan");if(!(v&&+v>1)){c=Vt(a[h].style.height,19);break}}n.push(c)}return n}function e5(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(c=>{let h=0;const v=c.getAttribute("colSpan");v!==null?h=+v:h=1,r+=h});for(let c=0;c<t.length;c++)t[c]=new Array(r);let a=0;return i.forEach(c=>{let h=0;c.querySelectorAll("td").forEach(v=>{var S,w;const m={};if(v.querySelectorAll("span").length||v.querySelectorAll("font").length){const E=Pn(v);typeof E!="string"&&(m.p=E)}const u=v.innerText;u.trim().length===0?m.v="":m.v=u;const g=Nt(v);for(d.Tools.isPlainObject(g)&&(m.s=g);h<r&&t[a][h]!=null;)h++;if(h!==r){if(t[a][h]==null){t[a][h]=m;const E=(S=Number(v.getAttribute("rowSpan")))!=null?S:1,M=(w=Number(v.getAttribute("colSpan")))!=null?w:1;if(E>1||M>1){const I={rs:+E-1,cs:+M-1,r:a,c:h};t[a][h].mc=I;for(let x=0;x<E;x++)for(let T=0;T<M;T++)x===0&&T===0||(t[a+x][h+T]={mc:null})}}h++}}),a++}),t}function t5(e){const t=[],n=document.createElement("DIV");n.innerHTML=e;const i=e.replace(/\r/g,"").split(`
50
+ `),o=i[0].split(" ").length;for(let a=0;a<i.length;a++)i[a].split(" ").length<o||t.push(i[a].split(" "));for(let a=0;a<t.length;a++)for(let c=0;c<t[a].length;c++)t[a][c].length?t[a][c]={v:t[a][c]||"",m:t[a][c]||""}:t[a][c]=null;return t}function n5(e,t){e.length,e[0].length;let n=0,r=0;t&&(n=t.startRow,r=t.startColumn);const i=[];for(let o=0;o<e.length;o++)for(let a=0;a<e[o].length;a++)if(e[o][a]&&typeof e[o][a]=="object"&&"mc"in e[o][a])if(e[o][a].mc){const c=e[o][a].mc,h=c.r+n,v=h+c.rs,m=c.c+r,u=m+c.cs;i.push({startRow:h,endRow:v,startColumn:m,endColumn:u}),delete e[o][a].mc}else e[o][a]=null;return{data:e,mergeData:i}}function r5(e){var v;let t=[];const n=document.createElement("html");n.innerHTML=e;const r=(v=n.querySelector("style"))==null?void 0:v.innerText;if(!r)return;const i=i5(r);if(t=new Array(n.querySelectorAll("table tr").length),!t.length)return[];let o=0;const a=n.querySelectorAll("table tr");a[0].querySelectorAll("td").forEach(m=>{let u=0;const g=m.getAttribute("colSpan");g!==null?u=+g:u=1,o+=u});for(let m=0;m<t.length;m++)t[m]=new Array(o);let h=0;return a.forEach(m=>{let u=0;m.querySelectorAll("td").forEach(g=>{var I,x;const S={};if(g.querySelectorAll("span").length||g.querySelectorAll("font").length){const T=Pn(g);typeof T!="string"&&(S.p=T)}const w=g.innerText;w.trim().length===0?S.v="":S.v=w;let E="";for(const T in i)g.classList.contains(T)&&(E+=i[T]);const M=Nt(g,E);for(d.Tools.isPlainObject(M)&&(S.s=M);u<o&&t[h][u]!=null;)u++;if(u!==o){if(t[h][u]==null){t[h][u]=S;const T=(I=Number(g.getAttribute("rowSpan")))!=null?I:1,j=(x=Number(g.getAttribute("colSpan")))!=null?x:1;if(T>1||j>1){const H={rs:+T-1,cs:+j-1,r:h,c:u};t[h][u].mc=H;for(let O=0;O<T;O++)for(let P=0;P<j;P++)O===0&&P===0||(t[h+O][u+P]={mc:null})}}u++}}),h++}),t}function i5(e){const t={},n=e.replaceAll("<!--","").replaceAll("-->","").trim(),r=n==null?void 0:n.replaceAll(" ","").replaceAll(`
51
+ `,"").split("}");for(let i=0;i<r.length;i++){if(!r[i])continue;let o=r[i].split("{")[0].trim();o.includes(".")&&(o=o.slice(1));const a=r[i].split("{")[1].trim();t[o]=a}return t}function o5(e){const t=Math.round(e*Q0);return t<Z9?Z9:t>z9?z9:t}function a5(e){const t=/font-family:\s*(?:"([^"]+)"|'([^']+)'|([^;]+))/i,n=e.match(t);return n?(n[1]||n[2]||n[3]).trim():null}p.BuiltInUIPart=ge,p.CanvasFloatDomService=gt,p.CanvasPopup=ln,p.CanvasPopupService=sn,p.ComponentContainer=xe,p.ComponentManager=Be,p.ContextMenu=z6,p.ContextMenuGroup=Me,p.ContextMenuPosition=h1,p.ContextMenuService=cn,p.CopyCommand=Jt,p.CopyShortcutItem=H6,p.CustomLabel=Ae,p.CutCommand=Kt,p.CutShortcutItem=O6,p.DEFAULT_BACKGROUND_COLOR_RGB=G9,p.DEFAULT_BACKGROUND_COLOR_RGBA=W9,p.DISABLE_AUTO_FOCUS_KEY=U9,p.DesktopLocalFileService=j9,p.DesktopLocalStorageService=Sn,p.DesktopMessageService=_n,p.DesktopSidebarService=Vn,p.FILE_PNG_CLIPBOARD_MIME_TYPE=ya,p.FILE_SVG_XML_CLIPBOARD_MIME_TYPE=Ma,p.FILE__BMP_CLIPBOARD_MIME_TYPE=Sa,p.FILE__JPEG_CLIPBOARD_MIME_TYPE=La,p.FILE__WEBP_CLIPBOARD_MIME_TYPE=_a,p.FONT_FAMILY_LIST=O2,p.FONT_SIZE_LIST=T2,p.FloatDom=an,p.FontFamily=E2,p.FontFamilyItem=H2,p.FontSize=I2,p.GlobalZone=Q6,p.HTML_CLIPBOARD_MIME_TYPE=yn,p.IBeforeCloseService=Cn,p.ICanvasPopupService=bt,p.IClipboardInterfaceService=Ln,p.IConfirmService=_t,p.IContextMenuService=B1,p.IDialogService=Mt,p.IGlobalZoneService=Lt,p.ILayoutService=i1,p.ILeftSidebarService=s4,p.ILocalFileService=$9,p.IMenuManagerService=Qe,p.IMessageService=b1,p.INotificationService=F1,p.IPlatformService=ut,p.IShortcutService=L1,p.ISidebarService=y1,p.IUIController=R1,p.IUIPartsService=Je,p.IZenZoneService=yt,p.KeyCode=l1,p.Menu=lt,p.MenuItemType=De,p.MenuManagerPosition=N1,p.MetaKeys=Ie,p.MobileContextMenu=K6,p.PLAIN_TEXT_CLIPBOARD_MIME_TYPE=bn,p.PLUGIN_CONFIG_KEY=y6,p.PasteCommand=en,p.PlatformService=tn,p.ProgressBar=t4,p.RectPopup=st,p.RedoShortcutItem=T6,p.Ribbon=q6,p.RibbonDataGroup=Yt,p.RibbonFormulasGroup=Gt,p.RibbonInsertGroup=Wt,p.RibbonOthersGroup=Xt,p.RibbonPosition=o1,p.RibbonStartGroup=We,p.RibbonViewGroup=qt,p.ShortcutPanelService=ct,p.Sidebar=dn,p.ToggleShortcutPanelOperation=A1,p.ToolbarButton=un,p.ToolbarItem=_1,p.UIPartsService=on,p.UNIVER_UI_PLUGIN_NAME=F9,p.UNI_DISABLE_CHANGING_FOCUS_KEY=n4,p.UndoShortcutItem=I6,p.VueComponentWrapper=Wr,p.ZIndexManager=T1,p.ZenZone=vn,p.builtInGlobalComponents=mn,p.getHeaderFooterMenuHiddenObservable=g2,p.getMenuHiddenObservable=Gr,p.handelExcelToJson=r5,p.handelTableToJson=e5,p.handleDomToJson=Pn,p.handlePlainToJson=t5,p.handleStringToStyle=Nt,p.handleTableColgroup=J0,p.handleTableMergeData=n5,p.handleTableRowGroup=K0,p.menuSchema=Qt,p.mergeMenuConfigs=Yr,p.splitSpanText=q9,p.t=x2,p.textTrim=xt,p.useComponentsOfPart=Pe,p.useEvent=$t,p.useObservable=Oe,p.useObservableRef=Kr,p.useScrollYOverContainer=r6,p.useSidebarClick=W0,p.useToolbarItemStatus=W6,p.useVirtualList=W2,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
57
52
 
58
- (function(e,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):(e=typeof globalThis<"u"?globalThis:e||self,n(e.UniverCore,e.UniverUi))})(this,function(e,n){"use strict";class d extends e.FUniver{copy(){return this._commandService.executeCommand(n.CopyCommand.id)}paste(){return this._commandService.executeCommand(n.PasteCommand.id)}openSiderbar(i){return this._injector.get(n.ISidebarService).open(i)}openDialog(i){const o=this._injector.get(n.IDialogService).open({...i,onClose:()=>{o.dispose()}});return o}}e.FUniver.extend(d);class r extends e.FHooks{onBeforeCopy(i){return this._injector.get(e.ICommandService).beforeCommandExecuted(o=>{o.id===n.CopyCommand.id&&i()})}onCopy(i){return this._injector.get(e.ICommandService).onCommandExecuted(o=>{o.id===n.CopyCommand.id&&i()})}onBeforePaste(i){return this._injector.get(e.ICommandService).beforeCommandExecuted(o=>{o.id===n.PasteCommand.id&&i()})}onPaste(i){return this._injector.get(e.ICommandService).onCommandExecuted(o=>{o.id===n.PasteCommand.id&&i()})}}e.FHooks.extend(r)});
59
53
 
54
+ // @univerjs/ui/facade
55
+ (function(e,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):(e=typeof globalThis<"u"?globalThis:e||self,n(e.UniverCore,e.UniverUi))})(this,function(e,n){"use strict";class r extends e.FUniver{copy(){return this._commandService.executeCommand(n.CopyCommand.id)}paste(){return this._commandService.executeCommand(n.PasteCommand.id)}openSiderbar(i){return this._injector.get(n.ISidebarService).open(i)}openDialog(i){const o=this._injector.get(n.IDialogService).open({...i,onClose:()=>{o.dispose()}});return o}getComponentManager(){return this._injector.get(n.ComponentManager)}}e.FUniver.extend(r);class d extends e.FHooks{onBeforeCopy(i){return this._injector.get(e.ICommandService).beforeCommandExecuted(o=>{o.id===n.CopyCommand.id&&i()})}onCopy(i){return this._injector.get(e.ICommandService).onCommandExecuted(o=>{o.id===n.CopyCommand.id&&i()})}onBeforePaste(i){return this._injector.get(e.ICommandService).beforeCommandExecuted(o=>{o.id===n.PasteCommand.id&&i()})}onPaste(i){return this._injector.get(e.ICommandService).onCommandExecuted(o=>{o.id===n.PasteCommand.id&&i()})}}e.FHooks.extend(d)});
60
56
 
61
- // /home/runner/work/univer-presets/univer-presets/packages/preset-docs-core/node_modules/@univerjs/docs
62
57
 
63
- (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,R){"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 E;const T={id:"doc.operation.set-selections",type:r.CommandType.OPERATION,handler:()=>!0};var L=Object.defineProperty,z=Object.getOwnPropertyDescriptor,G=(c,i,e,t)=>{for(var n=t>1?void 0:t?z(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},$=(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 R.Subject);g(this,"textSelection$",this._textSelection$.asObservable());g(this,"_refreshSelection$",new R.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(R.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,S=[...d,..._].filter(f=>f.startOffset!=null&&f.endOffset!=null).sort((f,I)=>f.startOffset>I.startOffset?1:f.startOffset<I.startOffset?-1:0);this._commandService.executeCommand(T.id,{unitId:s,subUnitId:o,segmentId:a,style:u,isEditing:h,ranges:S})}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=G([$(0,r.ICommandService),$(1,r.IUniverInstanceService)],l.DocSelectionManagerService);var k=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&&k(i,e,n),n},B=(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 R.BehaviorSubject(null));g(this,"currentSkeleton$",this._currentSkeleton$.asObservable());g(this,"_currentSkeletonBefore$",new R.BehaviorSubject(null));g(this,"currentSkeletonBefore$",this._currentSkeletonBefore$.asObservable());g(this,"_currentViewModel$",new R.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(R.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([B(1,r.Inject(r.LocaleService)),B(2,r.IUniverInstanceService)],l.DocSkeletonManagerService);class y extends r.RxDisposable{constructor(){super();g(this,"_docStateChangeParams$",new R.BehaviorSubject(null));g(this,"docStateChangeParams$",this._docStateChangeParams$.asObservable())}emitStateChangeInfo(e){this._docStateChangeParams$.next(e)}dispose(){super.dispose(),this._docStateChangeParams$.complete()}}const j="doc.mutation.rich-text-editing",D={id:j,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:S=!0,isSync:f,syncer:I}=i,O=c.get(r.IUniverInstanceService),p=c.get(v.IRenderManagerService),M=c.get(y),m=O.getUniverDocInstance(e),b=(X=p.getRenderById(e))==null?void 0:X.with(l.DocSkeletonManagerService).getViewModel();if(m==null||b==null)throw new Error(`DocumentDataModel or documentViewModel not found for unitId: ${e}`);const C=c.get(l.DocSelectionManagerService),N=(F=C.getDocRanges())!=null?F:[],fe=!!m.getSnapshot().disabled;if(r.JSONX.isNoop(n)||n&&n.length===0||fe)return{unitId:e,actions:[],textRanges:N};const A=r.JSONX.invertWithDoc(n,m.getSnapshot());m.apply(n),b.reset(m),!_&&s&&a!=null&&queueMicrotask(()=>{C.replaceDocRanges(s,{unitId:e,subUnitId:e},S,i.options)});const he={commandId:j,unitId:e,segmentId:t,trigger:a,noHistory:u,debounce:h,redoState:{actions:n,textRanges:s},undoState:{actions:A,textRanges:o!=null?o:N},isCompositionEnd:d,isSync:f,syncer:I};return M.emitStateChangeInfo(he),{unitId:e,actions:A,textRanges:N}}},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},w=(c,i)=>(e,t)=>i(e,t,c);let x=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===T.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)}}))}};x=Z([w(0,r.ICommandService),w(1,r.Inject(l.DocSelectionManagerService)),w(2,r.IUniverInstanceService)],x);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},V=(c,i)=>(e,t)=>i(e,t,c);const ie="DOCS_PLUGIN";l.UniverDocsPlugin=(E=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(){[D,Y,T].forEach(i=>{this._injector.get(r.ICommandService).registerCommand(i)})}_initializeDependencies(){[[l.DocSelectionManagerService],[y],[x]].forEach(i=>this._injector.add(i))}onReady(){this._injector.get(x)}},g(E,"pluginName",ie),E),l.UniverDocsPlugin=ne([V(1,r.Inject(r.Injector)),V(2,r.IConfigService)],l.UniverDocsPlugin);const se=r.createInterceptorKey("CUSTOM_RANGE"),re=r.createInterceptorKey("CUSTOM_DECORATION"),U={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(U.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(U.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(U.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 P(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:D.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 _=P(o,n);return a.params.actions=u.editOp(d.serialize(),_),a}function de(c,i){var C;const{rangeId:e,rangeType:t,wholeEntity:n,properties:s,unitId:o,selection:a}=i,u=c.get(l.DocSelectionManagerService),d=c.get(r.IUniverInstanceService),_=a!=null?a:(C=u.getTextRanges({unitId:o,subUnitId:o}))==null?void 0:C[0],h=_==null?void 0:_.segmentId;if(!_)return!1;const S=d.getUnit(o,r.UniverInstanceType.UNIVER_DOC);if(!S)return!1;const f=S.getSelfOrHeaderFooterModel(_.segmentId).getBody();if(!f)return!1;const{startOffset:I,endOffset:O}=r.BuildTextUtils.selection.normalizeSelection(_),p=r.BuildTextUtils.customRange.add({range:{startOffset:I,endOffset:O,collapsed:I===O},rangeId:e,rangeType:t,segmentId:h,wholeEntity:n,properties:s,body:f});if(!p)return!1;const M=r.JSONX.getInstance(),m={id:D.id,params:{unitId:o,actions:[],textRanges:p.selections},textX:p},b=P(S,h);return m.params.actions=M.editOp(p.serialize(),b),m}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:D.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 _=P(o,t);return a.params.actions=u.editOp(d.serialize(),_),a.params.textRanges=d.selections,a}function _e(c,i){var I,O,p,M;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=(I=i.selection)==null?void 0:I.segmentId,a=(O=s.getSelfOrHeaderFooterModel(o))==null?void 0:O.getBody();if(!a)return!1;const u=c.get(l.DocSelectionManagerService),d=(p=i.selection)!=null?p:u.getActiveTextRange();if(!d||!a)return!1;const _=(M=i.textRanges)!=null?M:[{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 S={id:D.id,params:{unitId:e,actions:[],textRanges:_,debounce:!0,segmentId:o},textX:h},f=r.JSONX.getInstance();return S.params.actions=f.editOp(h.serialize()),S}l.DOC_INTERCEPTOR_POINT=U,l.DocStateEmitService=y,l.RichTextEditingMutation=D,l.SetTextSelectionsOperation=T,l.addCustomRangeBySelectionFactory=de,l.addCustomRangeFactory=ue,l.deleteCustomRangeFactory=ge,l.replaceSelectionFactory=_e,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
58
+ // @univerjs/docs/index
59
+ (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 C={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(C.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),M=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 M.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===C.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,C].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},M=y(I,h);return R.params.actions=D.editOp(S.serialize(),M),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,M;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 _=(M=i.textRanges)!=null?M:[{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=C,l.addCustomRangeBySelectionFactory=de,l.addCustomRangeFactory=ue,l.deleteCustomRangeFactory=ge,l.replaceSelectionFactory=_e,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
64
60
 
65
61
 
66
- // /home/runner/work/univer-presets/univer-presets/packages/preset-docs-core/node_modules/@univerjs/docs-ui
67
-
68
- (function(v,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")):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"],s):(v=typeof globalThis<"u"?globalThis:v||self,s(v.UniverDocsUi={},v.UniverCore,v.UniverDocs,v.UniverEngineRender,v.React,v.UniverEngineFormula,v.rxjs,v.UniverUi,v.rxjs.operators,v.UniverDesign))})(this,function(v,s,_,D,Q,xe,N,y,Tt,se){"use strict";var $A=Object.defineProperty;var ed=(v,s,_)=>s in v?$A(v,s,{enumerable:!0,configurable:!0,writable:!0,value:_}):v[s]=_;var R=(v,s,_)=>ed(v,typeof s!="symbol"?s+"":s,_);function ks(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 Vs=ks(Q);var js=Object.defineProperty,Ws=Object.getOwnPropertyDescriptor,zs=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ws(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&&js(t,e,o),o},qi=(i,t)=>(e,n)=>t(e,n,i);function Gs(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}v.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 c,l,A,d,u,g;const o=(c=this._matches.get(e))!=null?c:[],a=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=this._textSelectionManagerService.getActiveTextRange();if(a&&r){const h=a.getSelfOrHeaderFooterModel(r.segmentId),m={unit:h,selection:r,isBody:!r.segmentId,paragraphs:Gs(r,(A=(l=h.getBody())==null?void 0:l.paragraphs)!=null?A:[]),customRanges:s.BuildTextUtils.customRange.getCustomRangesInterestsWithSelection(r,(u=(d=h.getBody())==null?void 0:d.customRanges)!=null?u:[]),commandId:e,commandParams:n},f=o.find(p=>p.match(m));return(g=f==null?void 0:f.getMutations(m))!=null?g:[]}return[]}},v.DocAutoFormatService=zs([qi(0,s.IUniverInstanceService),qi(1,s.Inject(_.DocSelectionManagerService))],v.DocAutoFormatService);const $i={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},eo={outerLeft:!1,outerRight:!1,header:!0,footer:!0,innerLeft:!1,innerRight:!1,frozenHeaderLT:!1,frozenHeaderRT:!1,frozenHeaderLM:!1,frozenContent:!1,infoBar:!0,toolbar:!0},to="DOC_UI_PLUGIN";var Ee=(i=>(i.MAIN="__Document_Render_Main__",i.BACKGROUND="__Document_Render_Background__",i))(Ee||{}),be=(i=>(i.VIEW_MAIN="viewMain",i.VIEW_TOP="viewTop",i.VIEW_LEFT="viewLeft",i.VIEW_LEFT_TOP="viewLeftTop",i))(be||{});const no=0,Wt=2,io=4,jn=10,Xs="normalTextSelectionPluginName";function De(i){const{mainComponent:t,scene:e,engine:n,components:o}=i,a=t,r=o.get(Ee.BACKGROUND);return{document:a,docBackground:r,scene:e,engine:n}}function oo(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(Ee.BACKGROUND);return{document:A,docBackground:d,scene:r,engine:c}}function Ys(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(Ee.BACKGROUND);return{document:c,docBackground:l,scene:o,engine:a}}function so(i){const{unitId:t,ranges:e,id:n,type:o,segmentId:a}=i,r={id:_.RichTextEditingMutation.id,params:{unitId:t,actions:[],textRanges:void 0,noHistory:!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 Ks(i,t){const{segmentId:e,id:n,type:o}=t,a=i.get(_.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:so({unitId:l,ranges:A,id:n,type:o,segmentId:e})}function Js(i,t){const{unitId:e,id:n,segmentId:o}=t,r=i.get(s.IUniverInstanceService).getUnit(e);if(!r)return!1;const c={id:_.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:void 0,noHistory:!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 Zs(i,t){return t.some(e=>i.startIndex>e.startIndex&&i.startIndex<e.endIndex)}function zt(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 Wn(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 zn(i,t){return i.filter(e=>t>e.startIndex&&t<=e.endIndex)}function qs(i){return{left:i.positionH.posOffset,top:i.positionV.posOffset,width:i.size.width,height:i.size.height}}function $s(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(D.IRenderManagerService).getRenderById(t))==null?void 0:n.with(_.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 ao={exports:{}},Gt={};/**
62
+ // @univerjs/docs-ui/index
63
+ (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,xe,N,y,yt,se,st){"use strict";var od=Object.defineProperty;var sd=(C,s,D)=>s in C?od(C,s,{enumerable:!0,configurable:!0,writable:!0,value:D}):C[s]=D;var O=(C,s,D)=>sd(C,typeof s!="symbol"?s+"":s,D);function Gs(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 Ys=Gs(Q);var Xs=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Js=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ks(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},to=(i,t)=>(e,n)=>t(e,n,i);function Zs(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();O(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 c,l,A,d,u,g;const o=(c=this._matches.get(e))!=null?c:[],a=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),r=this._textSelectionManagerService.getActiveTextRange();if(a&&r){const h=a.getSelfOrHeaderFooterModel(r.segmentId),f={unit:h,selection:r,isBody:!r.segmentId,paragraphs:Zs(r,(A=(l=h.getBody())==null?void 0:l.paragraphs)!=null?A:[]),customRanges:s.BuildTextUtils.customRange.getCustomRangesInterestsWithSelection(r,(u=(d=h.getBody())==null?void 0:d.customRanges)!=null?u:[]),commandId:e,commandParams:n},m=o.find(p=>p.match(f));return(g=m==null?void 0:m.getMutations(f))!=null?g:[]}return[]}},C.DocAutoFormatService=Js([to(0,s.IUniverInstanceService),to(1,s.Inject(D.DocSelectionManagerService))],C.DocAutoFormatService);const no={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},io={outerLeft:!1,outerRight:!1,header:!0,footer:!0,innerLeft:!1,innerRight:!1,frozenHeaderLT:!1,frozenHeaderRT:!1,frozenHeaderLM:!1,frozenContent:!1,infoBar:!0,toolbar:!0},oo="DOC_UI_PLUGIN";var Ee=(i=>(i.MAIN="__Document_Render_Main__",i.BACKGROUND="__Document_Render_Background__",i))(Ee||{}),be=(i=>(i.VIEW_MAIN="viewMain",i.VIEW_TOP="viewTop",i.VIEW_LEFT="viewLeft",i.VIEW_LEFT_TOP="viewLeftTop",i))(be||{});const so=0,Gt=2,ao=4,zn=10,qs="normalTextSelectionPluginName";function Me(i){const{mainComponent:t,scene:e,engine:n,components:o}=i,a=t,r=o.get(Ee.BACKGROUND);return{document:a,docBackground:r,scene:e,engine:n}}function ro(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(Ee.BACKGROUND);return{document:A,docBackground:d,scene:r,engine:c}}function $s(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(Ee.BACKGROUND);return{document:c,docBackground:l,scene:o,engine:a}}function co(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 ea(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:co({unitId:l,ranges:A,id:n,type:o,segmentId:e})}function ta(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 na(i,t){return t.some(e=>i.startIndex>e.startIndex&&i.startIndex<e.endIndex)}function Yt(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 Gn(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 Yn(i,t){return i.filter(e=>t>e.startIndex&&t<=e.endIndex)}function ia(i){return{left:i.positionH.posOffset,top:i.positionV.posOffset,width:i.size.width,height:i.size.height}}function oa(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 fe(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 lo={exports:{}},Xt={};/**
69
64
  * @license React
70
65
  * react-jsx-runtime.production.min.js
71
66
  *
@@ -73,9 +68,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
73
68
  *
74
69
  * This source code is licensed under the MIT license found in the
75
70
  * LICENSE file in the root directory of this source tree.
76
- */var ea=Q,ta=Symbol.for("react.element"),na=Symbol.for("react.fragment"),ia=Object.prototype.hasOwnProperty,oa=ea.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sa={key:!0,ref:!0,__self:!0,__source:!0};function ro(i,t,e){var n,o={},a=null,r=null;e!==void 0&&(a=""+e),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(r=t.ref);for(n in t)ia.call(t,n)&&!sa.hasOwnProperty(n)&&(o[n]=t[n]);if(i&&i.defaultProps)for(n in t=i.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:ta,type:i,key:a,ref:r,props:o,_owner:oa.current}}Gt.Fragment=na,Gt.jsx=ro,Gt.jsxs=ro,ao.exports=Gt;var P=ao.exports;function aa(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 Gn={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(_.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:g,tableSource:h,footers:m,headers:f,lists:p,drawings:S,drawingsOrder:I}=n,{body:C,tableSource:b,footers:x,headers:E,lists:T,drawings:B,drawingsOrder:M}=u;if(g==null||C==null)return!1;if(s.Tools.diffValue(g,C)&&o)return A.replaceDocRanges(o,{unitId:e,subUnitId:e},!1),!0;const U={id:_.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:o}};r&&(U.params.options=r);const O=[],L=s.JSONX.getInstance();if(!s.Tools.diffValue(g,C)){const F=L.replaceOp(["body"],C,g);F!=null&&O.push(F)}if(!s.Tools.diffValue(h,b)){const F=L.replaceOp(["tableSource"],b,h);F!=null&&O.push(F)}if(!s.Tools.diffValue(m,x)){const F=L.replaceOp(["footers"],x,m);F!=null&&O.push(F)}if(!s.Tools.diffValue(f,E)){const F=L.replaceOp(["headers"],E,f);F!=null&&O.push(F)}if(!s.Tools.diffValue(p,T)){const F=L.replaceOp(["lists"],T,p);F!=null&&O.push(F)}if(!s.Tools.diffValue(S,B)){const F=L.replaceOp(["drawings"],B,S);F!=null&&O.push(F)}if(!s.Tools.diffValue(I,M)){const F=L.replaceOp(["drawingsOrder"],M,I);F!=null&&O.push(F)}return U.params.actions=O.reduce((F,k)=>s.JSONX.compose(F,k),null),!!l.syncExecuteCommand(U.id,U.params)}},co={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(_.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 g=lo(e,a,d,u,n);return g.params.textRanges=o,r&&(g.params.options=r),g.params.actions==null&&o?(A.replaceDocRanges(o,{unitId:e,subUnitId:e},!1),!0):!!l.syncExecuteCommand(g.id,g.params)}},Xn={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=lo(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 ra(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 lo(i,t,e,n,o){const a={id:_.RichTextEditingMutation.id,params:{unitId:i,actions:[],textRanges:[]}},r=ra(t,e,n,o);return a.params.actions=r,a}s.CommandType.COMMAND;var Xt=(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))(Xt||{});const st={page:0,section:1,column:2,line:3,divide:4,glyph:5};function Yn(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 Kn(i,t){return Yn(i,t)?{start:i,end:t}:{start:t,end:i}}function Jn(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 ca(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 Zn(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 Me{constructor(t,e){R(this,"_liquid",new D.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(`
71
+ */var sa=Q,aa=Symbol.for("react.element"),ra=Symbol.for("react.fragment"),ca=Object.prototype.hasOwnProperty,la=sa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Aa={key:!0,ref:!0,__self:!0,__source:!0};function Ao(i,t,e){var n,o={},a=null,r=null;e!==void 0&&(a=""+e),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(r=t.ref);for(n in t)ca.call(t,n)&&!Aa.hasOwnProperty(n)&&(o[n]=t[n]);if(i&&i.defaultProps)for(n in t=i.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:aa,type:i,key:a,ref:r,props:o,_owner:la.current}}Xt.Fragment=ra,Xt.jsx=Ao,Xt.jsxs=Ao,lo.exports=Xt;var P=lo.exports;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:g,tableSource:h,footers:f,headers:m,lists:p,drawings:S,drawingsOrder:I}=n,{body:v,tableSource:T,footers:x,headers:E,lists:b,drawings:_,drawingsOrder:B}=u;if(g==null||v==null)return!1;if(s.Tools.diffValue(g,v)&&o)return A.replaceDocRanges(o,{unitId:e,subUnitId:e},!1),!0;const U={id:D.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:o}};r&&(U.params.options=r);const R=[],w=s.JSONX.getInstance();if(!s.Tools.diffValue(g,v)){const F=w.replaceOp(["body"],v,g);F!=null&&R.push(F)}if(!s.Tools.diffValue(h,T)){const F=w.replaceOp(["tableSource"],T,h);F!=null&&R.push(F)}if(!s.Tools.diffValue(f,x)){const F=w.replaceOp(["footers"],x,f);F!=null&&R.push(F)}if(!s.Tools.diffValue(m,E)){const F=w.replaceOp(["headers"],E,m);F!=null&&R.push(F)}if(!s.Tools.diffValue(p,b)){const F=w.replaceOp(["lists"],b,p);F!=null&&R.push(F)}if(!s.Tools.diffValue(S,_)){const F=w.replaceOp(["drawings"],_,S);F!=null&&R.push(F)}if(!s.Tools.diffValue(I,B)){const F=w.replaceOp(["drawingsOrder"],B,I);F!=null&&R.push(F)}return U.params.actions=R.reduce((F,H)=>s.JSONX.compose(F,H),null),!!l.syncExecuteCommand(U.id,U.params)}},uo={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 g=ho(e,a,d,u,n);return g.params.textRanges=o,r&&(g.params.options=r),g.params.actions==null&&o?(A.replaceDocRanges(o,{unitId:e,subUnitId:e},!1),!0):!!l.syncExecuteCommand(g.id,g.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=ho(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 ho(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 at={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 Be{constructor(t,e){O(this,"_liquid",new M.Liquid);O(this,"_currentStartState",{page:0,section:0,column:0,line:0,divide:0,glyph:0});O(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(`
77
72
  Invalid positions in NodePositionConvertToCursor,
78
- they are not in the same segment page when in header or footer.`);const{start:c,end:l}=Kn(t,e);return this._selectionIterator(c,l,(A,d,u,g,h,m)=>{const{lineHeight:f,asc:p,paddingTop:S,marginTop:I,marginBottom:C}=m,{glyphGroup:b,st:x}=h;if(b.length===0)return;const{x:E,y:T}=this._liquid;let B,M;const U=b[A],O=b[d],L=b[A-1],w=(U==null?void 0:U.left)||0,F=(U==null?void 0:U.width)||0,k=(O==null?void 0:O.left)||0,H=(O==null?void 0:O.width)||0,V=(U==null?void 0:U.glyphType)===D.GlyphType.LIST,{startOffset:G,endOffset:X}=ca(b,A,d,x),j=c.glyph===A&&u?c.isBack:!0,Z=l.glyph===d&&g?l.isBack:!1,ee=c===l,W=j&&L!=null?L:U;if(A===0&&d===b.length-1)B={startX:E+w+(V?F:0),startY:T,endX:E+k+(Z?0:H),endY:T+f-I-C},M={startX:E+w+(V?F:0),startY:T+S+p-W.bBox.ba,endX:E+k+(Z?0:H),endY:T+S+p+W.bBox.bd};else{const Y=j&&!V;B={startX:E+w+(Y?0:F),startY:T,endX:E+k+(Z?0:H),endY:T+f-I-C},M={startX:E+w+(Y?0:F),startY:T+S+p-W.bBox.ba,endX:E+k+(Z?0:H),endY:T+S+p+W.bBox.bd}}n.push(Zn(B)),o.push(Zn(M)),a.push({startOffset:j?G:G+U.count,endOffset:Z?X:X+O.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===D.DocumentSkeletonPageType.HEADER||o===D.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=Xt[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=Xt[t],A=Xt[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 g=this._checkPreviousNodePositionState(t),h=this._checkPreviousNodePositionState(t,!1);return g===1&&(r=e[A]),h===2&&(c=n[A]),{start_next:r,end_next:c}}_selectionIterator(t,e,n){var b,x;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:g}=t,{page:h,segmentPage:m}=e;if(this._resetCurrentNodePositionState(),this._documentOffsetConfig==null)return[];const{pageLayoutType:f,pageMarginLeft:p,pageMarginTop:S}=this._documentOffsetConfig,I=a===D.DocumentSkeletonPageType.BODY||a===D.DocumentSkeletonPageType.CELL?u:g;for(let E=0;E<I;E++){const T=l[E];this._liquid.translatePage(T,f,p,S)}const C=a===D.DocumentSkeletonPageType.BODY||a===D.DocumentSkeletonPageType.CELL?h:m;for(let E=I;E<=C;E++){const T=l[E],{headerId:B,footerId:M,pageWidth:U}=T;let O=T;if(a===D.DocumentSkeletonPageType.HEADER?O=(b=A.get(B))==null?void 0:b.get(U):a===D.DocumentSkeletonPageType.FOOTER?O=(x=d.get(M))==null?void 0:x.get(U):a===D.DocumentSkeletonPageType.CELL&&(O=D.getPageFromPath(c,r)),O==null){this._liquid.translatePage(T,f,p,S);continue}const L=O.sections,{start_next:w,end_next:F}=this._getSelectionRuler(st.page,t,e,L.length-1,a===D.DocumentSkeletonPageType.BODY||a===D.DocumentSkeletonPageType.CELL?E:0);switch(this._liquid.translateSave(),a){case D.DocumentSkeletonPageType.HEADER:this._liquid.translatePagePadding({...O,marginLeft:T.marginLeft});break;case D.DocumentSkeletonPageType.FOOTER:{const k=T.pageHeight-O.height-O.marginBottom;this._liquid.translate(T.marginLeft,k);break}case D.DocumentSkeletonPageType.CELL:{this._liquid.translatePagePadding(T);const k=O.parent,H=k.parent,{left:V}=O,{top:G,left:X}=H,{top:j}=k;this._liquid.translate(X+V,G+j),this._liquid.translatePagePadding(O);break}default:this._liquid.translatePagePadding(T);break}for(let k=w;k<=F;k++){const H=L[k],V=H.columns,{start_next:G,end_next:X}=this._getSelectionRuler(st.section,t,e,V.length-1,k);this._liquid.translateSection(H);for(let j=G;j<=X;j++){const Z=V[j],ee=Z.lines,{start_next:W,end_next:Y}=this._getSelectionRuler(st.column,t,e,ee.length-1,j);this._liquid.translateColumn(Z);for(let z=W;z<=Y;z++){const K=ee[z],{divides:ie}=K,{start_next:re,end_next:fe}=this._getSelectionRuler(st.line,t,e,ie.length-1,z);this._liquid.translateSave(),this._liquid.translateLine(K,!0,!1);for(let ce=re;ce<=fe;ce++){const Te=ie[ce];this._liquid.translateSave(),this._liquid.translateDivide(Te);const{glyphGroup:Ae}=Te,{start_next:Ie,end_next:Ue}=this._getSelectionRuler(st.divide,t,e,Ae.length-1,ce);let vt=!1,he=!1;E===I&&k===w&&j===G&&z===W&&ce===re&&(vt=!0),E===C&&k===F&&j===X&&z===Y&&ce===fe&&(he=!0),n&&n(Ie,Ue,vt,he,Te,K,Z,H,O),this._liquid.translateRestore()}this._liquid.translateRestore()}}}this._liquid.translateRestore(),this._liquid.translatePage(T,f,p,S)}}}function Ao(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}=D.getTableIdAndSliceIndex(e[o]),{tableId:A,sliceIndex:d}=D.getTableIdAndSliceIndex(n[o]);if(c!==A)return!1;const u=e[a],g=n[a],h=e[r],m=n[r];return!(u===g&&h===m&&l===d)}function Yt(i,t){const{path:e}=i,{path:n}=t;return e.indexOf("cells")===-1||n.indexOf("cells")===-1?!1:s.Tools.diffValue(e,n)}function Kt(i,t){if(Yt(i,t))return Yn(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 la(i){return i.sections[0].columns[0].lines[0].divides[0].glyphGroup[0]}function Aa(i){const{sections:t}=i,e=t[t.length-1],n=e.columns[e.columns.length-1],o=n.lines[n.lines.length-1],r=o.divides[o.divides.length-1].glyphGroup;return r[r.length-2]}class qn{constructor(t,e){R(this,"_liquid",new D.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,{segmentPage:d,page:u}=e,g=this._getTableRectRangeInfo(t,e);if(g==null)return;const{tableId:h,startRowIndex:m,startColumnIndex:f,endRowIndex:p,endColumnIndex:S}=g;this._liquid.reset();const{pageLayoutType:I,pageMarginLeft:C,pageMarginTop:b}=this._documentOffsetConfig,x=A===D.DocumentSkeletonPageType.BODY||A===D.DocumentSkeletonPageType.CELL?l:c;for(let T=0;T<x;T++){const B=r[T];this._liquid.translatePage(B,I,C,b)}const E=A===D.DocumentSkeletonPageType.BODY||A===D.DocumentSkeletonPageType.CELL?u:d;for(let T=x;T<=E;T++){const B=r[T];this._liquid.translatePagePadding(B);const{skeTables:M}=B;let U=null;for(const[F,k]of M.entries())F.startsWith(h)&&(U=k);if(U==null){this._liquid.restorePagePadding(B),this._liquid.translatePage(B,I,C,b);continue}this._liquid.translateSave(),this._liquid.translate(0,U.top);const{x:O,y:L}=this._liquid,{left:w}=U;for(const F of U.rows)if(F.index>=m&&F.index<=p){const k=F.cells[f],H=F.cells[S],V={startX:O+k.left+w,startY:L+F.top,endX:O+H.left+H.pageWidth+w,endY:L+F.top+F.height};n.push(Zn(V))}this._liquid.translateRestore(),this._liquid.restorePagePadding(B),this._liquid.translatePage(B,I,C,b)}return{pointGroup:n,startRow:m,startColumn:f,endRow:p,endColumn:S,tableId:h}}getNodePositionGroup(t,e){const n=[],o=Kt(t,e),a=o?t:e,r=o?e:t,{segmentPage:c}=a,l=this._getTableRectRangeInfo(a,r);if(l==null)return;const{tableId:A,pages:d,startRowIndex:u,startColumnIndex:g,endRowIndex:h,endColumnIndex:m}=l,f=[];for(const S of d){const{skeTables:I}=S;for(const[C,b]of I.entries())C.startsWith(A)&&f.push(b)}if(f.length===0)return;for(const S of f)this._collectPositionGroup(S,n,u,h,g,m,c,o);const p=f[0].rows[0].cells.length;if(g===0&&m===p-1){const S=n[0],I=n[n.length-1];n.length=0,n.push({anchor:o?S.anchor:I.anchor,focus:o?I.focus:S.focus})}return n}_collectPositionGroup(t,e,n,o,a,r,c,l){for(let A=0;A<t.rows.length;A++){const d=t.rows[A];if(d.index<n)continue;if(d.index>o)break;const u=d.cells[a],g=d.cells[r],h=la(u),m=Aa(g);if(h==null||m==null)continue;const f=this._docSkeleton.findPositionByGlyph(h,c),p=this._docSkeleton.findPositionByGlyph(m,c);if(f==null||p==null)continue;const S=l?f:p,I=l?p:f;e.push({anchor:{...S,isBack:!0},focus:{...I,isBack:!0}})}}_getTableRectRangeInfo(t,e){const o=this._docSkeleton.getSkeletonData();if(o==null)return;const{pages:a}=o,{path:r}=t,{path:c}=e,l=D.getPageFromPath(o,r),A=D.getPageFromPath(o,c);if(l==null||A==null)return;const d=l.segmentId,u=l.parent.index,g=l.parent.cells.indexOf(l),h=(A==null?void 0:A.parent).index,m=(A==null?void 0:A.parent).cells.indexOf(A);return{pages:a,tableId:d,startCell:l,endCell:A,startRowIndex:u,startColumnIndex:g,endRowIndex:h,endColumnIndex:m}}}const da="__TestSelectionRange__",ua="__TestSelectionAnchor__",uo=6,$n=500,ha=500,Jt=3;function bt(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 Ve{constructor(t,e,n,o,a,r=D.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()},$n),this._anchorBlinkTimer=setInterval(()=>{this._anchorShape&&this._anchorShape.visible&&(this.activeStatic(),setTimeout(()=>{this.deactivateStatic()},$n))},ha+$n)}get startOffset(){var o;const{startOffset:t}=(o=Jn(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=Jn(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}=Kn(this.anchorNodePosition,this.focusNodePosition);return t}get endNodePosition(){if(this.anchorNodePosition==null)return this.focusNodePosition;if(this.focusNodePosition==null)return null;const{end:t}=Kn(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:Yn(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 Me(n,this._docSkeleton);if(this._isCollapsed()){const{contentBoxPointGroup:d,cursorList:u}=r.getRangePointData(t,t);if(this._setCursorList(u),d.length===0)return;const g=bt(d);return{...g,left:g.left+o,top:g.top+a}}const{borderBoxPointGroup:c,cursorList:l}=r.getRangePointData(t,e);if(this._setCursorList(l),c.length===0)return;const A=bt(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)||D.getColor(s.COLORS.black,1)})}deactivateStatic(){var t,e;(e=this._anchorShape)==null||e.setProps({stroke:((t=this.style)==null?void 0:t.stroke)||D.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,g;const{_document:t,_docSkeleton:e}=this,n=this.anchorNodePosition,o=this.focusNodePosition;if((u=this._anchorShape)==null||u.hide(),(g=this._rangeShape)==null||g.hide(),this._isEmpty())return;const a=t.getOffsetConfig(),{docsLeft:r,docsTop:c}=a,l=new Me(a,e);if(this._isCollapsed()){const{contentBoxPointGroup:h,cursorList:m}=l.getRangePointData(n,n);if(this._setCursorList(m),h.length>0){const f=e.findGlyphByPosition(n);this._createOrUpdateAnchor(h,r,c,f)}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(st);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 D.RegularPolygon(da+s.Tools.generateRandomId(uo),{pointsGroup:t,fill:((r=this.style)==null?void 0:r.fill)||D.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 f,p,S;const a=bt(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 g=c+n,h=((f=o==null?void 0:o.ts)==null?void 0:f.it)===s.BooleanNumber.TRUE;if(h&&(u+=l*Math.tan(d*Math.PI/180)/2),this._anchorShape){this._anchorShape.transformByState({left:u,top:g,height:l}),this._anchorShape.show(),h?this._anchorShape.skew(-d,0):this._anchorShape.skew(0,0);return}const m=new D.Rect(ua+s.Tools.generateRandomId(uo),{left:u,top:g,height:l,strokeWidth:((p=this.style)==null?void 0:p.strokeWidth)||1.5,stroke:((S=this.style)==null?void 0:S.strokeActive)||D.getColor(s.COLORS.black,1),evented:!1});h&&m.skew(-d,0),this._anchorShape=m,this._scene.addObject(m,Jt)}_setCursorList(t){t.length!==0&&(this._cursorList=t)}}const ga="__DocTableRectRange__",fa=6;function ei(i,t,e,n,o,a=D.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,r="",c=-1){const l=t.getOffsetConfig(),d=new qn(l,e).getNodePositionGroup(n,o);return(d!=null?d:[]).map(u=>new ti(i,t,e,u.anchor,u.focus,a,r,c))}class ti{constructor(t,e,n,o,a,r=D.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 Kt(t,e)?t:e}get endNodePosition(){const{anchorNodePosition:t,focusNodePosition:e}=this;return Kt(t,e)?e:t}get direction(){const{anchorNodePosition:t,focusNodePosition:e}=this;return Kt(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 qn(a,o).getRangePointData(t,e);if(A==null)return;const{pointGroup:d=[],startRow:u,endRow:g,startColumn:h,endColumn:m,tableId:f}=A;(d==null?void 0:d.length)>0&&this._createOrUpdateRange(d,r,c),this._updateTableInfo(u,g,h,m,f)}_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 D.RegularPolygon(ga+s.Tools.generateRandomId(fa),{pointsGroup:t,fill:((r=this.style)==null?void 0:r.fill)||D.getColor(s.COLORS.black,o),left:e,top:n,evented:!1,debounceParentDirty:!1});this._rangeShape=a,this._scene.addObject(a,Jt)}}function ho(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 Ve(e,n,o,d,u,a,r,c)}function ma(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 ti(e,n,o,l,A,a,r,c)}function pa(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 ni(l,A,e,n,o,a,r,c)}function ni(i,t,e,n,o,a,r,c){const l=[],A=[],d=[e,n,o,i,t,a,r,c];if(Yt(i,t))return l.push(new Ve(...d)),{textRanges:l,rectRanges:A};if(Ao(i,t)){const C=ei(...d);return A.push(...C),{textRanges:l,rectRanges:A}}const u=o.getViewModel().getSelfOrHeaderFooterViewModel(r),g=o.findCharIndexByPosition(i),h=o.findCharIndexByPosition(t);if(g==null||h==null)return;const m=g<=h?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD,f=Math.min(g,h),p=Math.max(g,h);let S=f,I=p;for(const C of u.children)for(const b of C.children){const{startIndex:x,endIndex:E,children:T}=b,B=T[0];let M=!1;if(B){const{startIndex:U,endIndex:O,children:L}=B;let w=null,F=null;const k=L.find(V=>V.startIndex<=f&&V.endIndex>=f),H=L.find(V=>V.startIndex<=p&&V.endIndex>=p);if(f>U&&f<O)w=o.findNodePositionByCharIndex(k.startIndex+2,!0,r,c),F=o.findNodePositionByCharIndex(O-4,!0,r,c),S=O+1;else if(p>U&&p<O)w=o.findNodePositionByCharIndex(U+3,!0,r,c),F=o.findNodePositionByCharIndex(H.endIndex-3,!0,r,c),I=U-1,M=!0;else if(U>f&&O<p){if(w=o.findNodePositionByCharIndex(U+3,!0,r,c),F=o.findNodePositionByCharIndex(O-4,!0,r,c),S<=U-1){const V=o.findNodePositionByCharIndex(S,!0,r,c),G=o.findNodePositionByCharIndex(U-1,!1,r,c),X=m===s.RANGE_DIRECTION.FORWARD?V:G,j=m===s.RANGE_DIRECTION.FORWARD?G:V;l.push(new Ve(e,n,o,X,j,a,r,c))}S=O+1}if(w&&F){const V=m===s.RANGE_DIRECTION.FORWARD?w:F,G=m===s.RANGE_DIRECTION.FORWARD?F:w;A.push(...ei(e,n,o,V,G,a,r,c))}}if(I>=x&&I<=E||M){const U=o.findNodePositionByCharIndex(S,!0,r,c),O=o.findNodePositionByCharIndex(I,!M,r,c),L=m===s.RANGE_DIRECTION.FORWARD?U:O,w=m===s.RANGE_DIRECTION.FORWARD?O:U;if(A.length&&s.Tools.diffValue(L,w))continue;l.push(new Ve(e,n,o,L,w,a,r,c))}}return{textRanges:l,rectRanges:A}}function go(i){const t=i==null?void 0:i.getCanvasElement();if(!t)return{left:0,top:0};const{top:e,left:n}=D.getOffsetRectForDom(t);return{left:n,top:e}}function fo(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 ii(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 Sa(i){const t=ii(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 Ia=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,va=(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&&Ia(t,e,o),o},qt=(i,t)=>(e,n)=>t(e,n,i);v.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",D.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=D.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();for(const g of e){const{startOffset:h,endOffset:m,rangeType:f,startNodePosition:p,endNodePosition:S}=g;if(f===s.DOC_RANGE_TYPE.RECT){const I=ma(h,m,l,d,u,c,a,r);I&&this._addRectRanges([I])}else if(f===s.DOC_RANGE_TYPE.TEXT){let I=null;p&&S?I=ho(p.isBack?h:h-1,S.isBack?m:m-1,l,d,u,c,a,r,p.isBack,S.isBack):I=ho(h,m,l,d,u,c,a,r),I&&this._addTextRange(I)}else{const I=pa(h,m,l,d,u,c,a,r);if(I==null)continue;const{textRanges:C,rectRanges:b}=I;for(const x of C)this._addTextRange(x);this._addRectRanges(b)}}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=fo(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 g=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(const{segment:m,index:f,isWordLike:p}of u)if(f<=A&&A<f+m.length&&p){g=f+l,h=f+l+m.length;break}if(Number.isFinite(g)&&Number.isFinite(h)){this.removeAllRanges();const m=[{startOffset:g,endOffset:h}];this.addDocRanges(m,!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=fo(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(C=>C.startOffset<=I&&C.endOffset>I)||typeof I=="number"&&d.rectRanges.some(C=>C.startOffset<=I&&C.endOffset>=I))return}const{segmentId:u,segmentPage:g}=l;u&&this._currentSegmentId&&u!==this._currentSegmentId&&this.setSegment(u),u&&g!==this._currentSegmentPage&&this.setSegmentPage(g),this._anchorNodePosition=A,e.shiftKey&&this._getActiveRangeInstance()?this._updateActiveRangePosition(A):e.ctrlKey?this._removeAllCollapsedTextRanges():this._isEmpty()||this._removeAllRanges(),n.disableObjectsEvent();const h=D.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 m=r,f=c;this._scenePointerMoveSubs.push(n.onPointerMove$.subscribeEvent(I=>{const{offsetX:C,offsetY:b}=I;n.setCursor(D.CURSOR_TYPE.TEXT),!(Math.sqrt((C-m)**2+(b-f)**2)<3)&&(this._moving(C,b),h.scrolling(C,b,()=>{this._moving(C,b)}),m=C,f=b)})),this._scenePointerUpSubs.push(n.onPointerUp$.subscribeEvent(()=>{if([...this._scenePointerMoveSubs,...this._scenePointerUpSubs].forEach(C=>{C.unsubscribe()}),n.enableObjectsEvent(),this._anchorNodePosition&&!this._focusNodePosition){if(e.ctrlKey){this._disposeScrollTimers();return}const C=new Ve(n,o,a,this._anchorNodePosition,void 0,this._selectionStyle,this._currentSegmentId,this._currentSegmentPage);this._addTextRange(C)}else if(this._anchorNodePosition&&this._focusNodePosition){for(const C of this._rangeListCache)e.ctrlKey?C.collapsed?C.dispose():this._addTextRange(C):this._addTextRange(C);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}=D.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(ii)}_getAllRectRanges(){return this._rectRangeList.map(Sa)}_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:ii(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=`
73
+ 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,g,h,f)=>{const{lineHeight:m,asc:p,paddingTop:S,marginTop:I,marginBottom:v}=f,{glyphGroup:T,st:x}=h;if(T.length===0)return;const{x:E,y:b}=this._liquid;let _,B;const U=T[A],R=T[d],w=T[A-1],L=(U==null?void 0:U.left)||0,F=(U==null?void 0:U.width)||0,H=(R==null?void 0:R.left)||0,k=(R==null?void 0:R.width)||0,V=(U==null?void 0:U.glyphType)===M.GlyphType.LIST,{startOffset:G,endOffset:Y}=ha(T,A,d,x),j=c.glyph===A&&u?c.isBack:!0,Z=l.glyph===d&&g?l.isBack:!1,ee=c===l,W=j&&w!=null?w:U;if(A===0&&d===T.length-1)_={startX:E+L+(V?F:0),startY:b,endX:E+H+(Z?0:k),endY:b+m-I-v},B={startX:E+L+(V?F:0),startY:b+S+p-W.bBox.ba,endX:E+H+(Z?0:k),endY:b+S+p+W.bBox.bd};else{const X=j&&!V;_={startX:E+L+(X?0:F),startY:b,endX:E+H+(Z?0:k),endY:b+m-I-v},B={startX:E+L+(X?0:F),startY:b+S+p-W.bBox.ba,endX:E+H+(Z?0:k),endY:b+S+p+W.bBox.bd}}n.push($n(_)),o.push($n(B)),a.push({startOffset:j?G:G+U.count,endOffset:Z?Y:Y+R.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 g=this._checkPreviousNodePositionState(t),h=this._checkPreviousNodePositionState(t,!1);return g===1&&(r=e[A]),h===2&&(c=n[A]),{start_next:r,end_next:c}}_selectionIterator(t,e,n){var T,x;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:g}=t,{page:h,segmentPage:f}=e;if(this._resetCurrentNodePositionState(),this._documentOffsetConfig==null)return[];const{pageLayoutType:m,pageMarginLeft:p,pageMarginTop:S}=this._documentOffsetConfig,I=a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?u:g;for(let E=0;E<I;E++){const b=l[E];this._liquid.translatePage(b,m,p,S)}const v=a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?h:f;for(let E=I;E<=v;E++){const b=l[E],{headerId:_,footerId:B,pageWidth:U}=b;let R=b;if(a===M.DocumentSkeletonPageType.HEADER?R=(T=A.get(_))==null?void 0:T.get(U):a===M.DocumentSkeletonPageType.FOOTER?R=(x=d.get(B))==null?void 0:x.get(U):a===M.DocumentSkeletonPageType.CELL&&(R=M.getPageFromPath(c,r)),R==null){this._liquid.translatePage(b,m,p,S);continue}const w=R.sections,{start_next:L,end_next:F}=this._getSelectionRuler(at.page,t,e,w.length-1,a===M.DocumentSkeletonPageType.BODY||a===M.DocumentSkeletonPageType.CELL?E:0);switch(this._liquid.translateSave(),a){case M.DocumentSkeletonPageType.HEADER:this._liquid.translatePagePadding({...R,marginLeft:b.marginLeft});break;case M.DocumentSkeletonPageType.FOOTER:{const H=b.pageHeight-R.height-R.marginBottom;this._liquid.translate(b.marginLeft,H);break}case M.DocumentSkeletonPageType.CELL:{this._liquid.translatePagePadding(b);const H=R.parent,k=H.parent,{left:V}=R,{top:G,left:Y}=k,{top:j}=H;this._liquid.translate(Y+V,G+j),this._liquid.translatePagePadding(R);break}default:this._liquid.translatePagePadding(b);break}for(let H=L;H<=F;H++){const k=w[H],V=k.columns,{start_next:G,end_next:Y}=this._getSelectionRuler(at.section,t,e,V.length-1,H);this._liquid.translateSection(k);for(let j=G;j<=Y;j++){const Z=V[j],ee=Z.lines,{start_next:W,end_next:X}=this._getSelectionRuler(at.column,t,e,ee.length-1,j);this._liquid.translateColumn(Z);for(let z=W;z<=X;z++){const K=ee[z],{divides:ie}=K,{start_next:re,end_next:me}=this._getSelectionRuler(at.line,t,e,ie.length-1,z);this._liquid.translateSave(),this._liquid.translateLine(K,!0,!1);for(let ce=re;ce<=me;ce++){const Te=ie[ce];this._liquid.translateSave(),this._liquid.translateDivide(Te);const{glyphGroup:Ae}=Te,{start_next:Ie,end_next:Ue}=this._getSelectionRuler(at.divide,t,e,Ae.length-1,ce);let Tt=!1,he=!1;E===I&&H===L&&j===G&&z===W&&ce===re&&(Tt=!0),E===v&&H===F&&j===Y&&z===X&&ce===me&&(he=!0),n&&n(Ie,Ue,Tt,he,Te,K,Z,k,R),this._liquid.translateRestore()}this._liquid.translateRestore()}}}this._liquid.translateRestore(),this._liquid.translatePage(b,m,p,S)}}}function go(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],g=n[a],h=e[r],f=n[r];return!(u===g&&h===f&&l===d)}function Jt(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 ga(i,t,e){var h,f,m,p,S,I,v,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=(m=(f=(h=a==null?void 0:a.parent)==null?void 0:h.parent)==null?void 0:f.parent)==null?void 0:m.parent)==null?void 0:p.parent,l=(T=(v=(I=(S=r==null?void 0:r.parent)==null?void 0:S.parent)==null?void 0:I.parent)==null?void 0:v.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),g=d.cells.indexOf(l);return u===g&&A.index===d.index}function ei(i,t){if(Jt(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 rt(i){return i.sections[0].columns[0].lines.length===0}function ma(i,t,e){let n=t,o=e,a=i[n],r=i[o];for(;n<o&&(rt(a)||rt(r));)rt(a)?(n++,a=i[n]):rt(r)&&(o--,r=i[o]);if(!rt(a)&&!rt(r))return[a,r]}class ti{constructor(t,e){O(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:g,startColumnIndex:h,endRowIndex:f,endColumnIndex:m}=d;this._liquid.reset();const{pageLayoutType:p,pageMarginLeft:S,pageMarginTop:I}=this._documentOffsetConfig,v=A===M.DocumentSkeletonPageType.BODY||A===M.DocumentSkeletonPageType.CELL?l:c;for(let T=0;T<v;T++){const x=r[T];this._liquid.translatePage(x,p,S,I)}for(let T=v;T<r.length;T++){const x=r[T];this._liquid.translatePagePadding(x);const{skeTables:E}=x;let b=null;for(const[R,w]of E.entries())R.startsWith(u)&&(b=w);if(b==null){this._liquid.restorePagePadding(x),this._liquid.translatePage(x,p,S,I);continue}this._liquid.translateSave(),this._liquid.translate(0,b.top);const{x:_,y:B}=this._liquid,{left:U}=b;for(const R of b.rows)if(R.index>=g&&R.index<=f){const w=ma(R.cells,h,m);if(w==null)continue;const[L,F]=w,H={startX:_+L.left+U,startY:B+R.top,endX:_+F.left+F.pageWidth+U,endY:B+R.top+R.height};n.push($n(H))}this._liquid.translateRestore(),this._liquid.restorePagePadding(x),this._liquid.translatePage(x,p,S,I)}return{pointGroup:n,startRow:g,startColumn:h,endRow:f,endColumn:m,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:g}=c,h=this._docSkeleton.getViewModel().findTableNodeById(l);if(h==null)return;const f=h.children[0].children.length;if(d===0&&g===f-1){const p=h.children[A].children[d],S=this._docSkeleton.findNodePositionByCharIndex(p.startIndex+1),I=h.children[u].children[g],v=this._docSkeleton.findNodePositionByCharIndex(I.endIndex-2);if(S==null||v==null)return;n.push({anchor:r?S:v,focus:r?v:S})}else for(let p=A;p<=u;p++){const S=h.children[p],I=S.children[d],v=S.children[g],T=this._docSkeleton.findNodePositionByCharIndex(I.startIndex+1),x=this._docSkeleton.findNodePositionByCharIndex(v.endIndex-2);if(T==null||x==null)return;n.push({anchor:r?T:x,focus:r?x: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,g=l.parent.cells.indexOf(l),h=(A==null?void 0:A.parent).index,f=(A==null?void 0:A.parent).cells.indexOf(A),m=Math.min(u,h),p=Math.max(u,h),S=Math.min(g,f),I=Math.max(g,f);return{pages:a,tableId:d,startRowIndex:m,startColumnIndex:S,endRowIndex:p,endColumnIndex:I}}}const fa="__TestSelectionRange__",pa="__TestSelectionAnchor__",mo=6,ni=500,Sa=500,Zt=3;function Rt(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 qt(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 Ve{constructor(t,e,n,o,a,r=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,c="",l=-1){O(this,"rangeType",s.DOC_RANGE_TYPE.TEXT);O(this,"_current",!1);O(this,"_rangeShape");O(this,"_anchorShape");O(this,"_cursorList",[]);O(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()},ni),this._anchorBlinkTimer=setInterval(()=>{this._anchorShape&&this._anchorShape.visible&&(this.activeStatic(),setTimeout(()=>{this.deactivateStatic()},ni))},Sa+ni)}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 Be(n,this._docSkeleton);if(this._isCollapsed()){const{contentBoxPointGroup:d,cursorList:u}=r.getRangePointData(t,t);if(this._setCursorList(u),d.length===0)return;const g=Rt(d);return{...g,left:g.left+o,top:g.top+a}}const{borderBoxPointGroup:c,cursorList:l}=r.getRangePointData(t,e);if(this._setCursorList(l),c.length===0)return;const A=Rt(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,g;const{_document:t,_docSkeleton:e}=this,n=this.anchorNodePosition,o=this.focusNodePosition;if((u=this._anchorShape)==null||u.hide(),(g=this._rangeShape)==null||g.hide(),this._isEmpty())return;const a=t.getOffsetConfig(),{docsLeft:r,docsTop:c}=a,l=new Be(a,e);if(this._isCollapsed()){const{contentBoxPointGroup:h,cursorList:f}=l.getRangePointData(n,n);if(this._setCursorList(f),h.length>0){const m=e.findGlyphByPosition(n);this._createOrUpdateAnchor(h,r,c,m)}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(at);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(fa+s.Tools.generateRandomId(mo),{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,Zt)}_createOrUpdateAnchor(t,e,n,o){var m,p,S;const a=Rt(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 g=c+n,h=((m=o==null?void 0:o.ts)==null?void 0:m.it)===s.BooleanNumber.TRUE;if(h&&(u+=l*Math.tan(d*Math.PI/180)/2),this._anchorShape){this._anchorShape.transformByState({left:u,top:g,height:l}),this._anchorShape.show(),h?this._anchorShape.skew(-d,0):this._anchorShape.skew(0,0);return}const f=new M.Rect(pa+s.Tools.generateRandomId(mo),{left:u,top:g,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,Zt)}_setCursorList(t){t.length!==0&&(this._cursorList=t)}}const Ia="__DocTableRectRange__",Ea=6;function $t(i,t,e,n,o,a=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,r="",c=-1){const l=t.getOffsetConfig(),d=new ti(l,e).getNodePositionGroup(n,o);return(d!=null?d:[]).map(u=>new ii(i,t,e,u.anchor,u.focus,a,r,c))}class ii{constructor(t,e,n,o,a,r=M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE,c="",l=-1){O(this,"rangeType",s.DOC_RANGE_TYPE.RECT);O(this,"_rangeShape");O(this,"_current",!1);O(this,"_startRow");O(this,"_startCol");O(this,"_endRow");O(this,"_endCol");O(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 ei(t,e)?t:e}get endNodePosition(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ei(t,e)?e:t}get direction(){const{anchorNodePosition:t,focusNodePosition:e}=this;return ei(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 ti(a,o).getRangePointData(t,e);if(A==null)return;const{pointGroup:d=[],startRow:u,endRow:g,startColumn:h,endColumn:f,tableId:m}=A;(d==null?void 0:d.length)>0&&this._createOrUpdateRange(d,r,c),this._updateTableInfo(u,g,h,f,m)}_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(Ia+s.Tools.generateRandomId(Ea),{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,Zt)}}function fo(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 Ve(e,n,o,d,u,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 new ii(e,n,o,l,A,a,r,c)}function Ca(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 oi(l,A,e,n,o,a,r,c)}function oi(i,t,e,n,o,a,r,c){const l=[],A=[],d=[e,n,o,i,t,a,r,c];if(ga(o,i,t)){if(Jt(i,t))return l.push(new Ve(...d)),{textRanges:l,rectRanges:A};{const v=$t(...d);return A.push(...v),{textRanges:l,rectRanges:A}}}if(go(i,t)){const v=$t(...d);return A.push(...v),{textRanges:l,rectRanges:A}}const u=o.getViewModel().getSelfOrHeaderFooterViewModel(r),g=o.findCharIndexByPosition(i),h=o.findCharIndexByPosition(t);if(g==null||h==null)return;const f=g<=h?s.RANGE_DIRECTION.FORWARD:s.RANGE_DIRECTION.BACKWARD,m=Math.min(g,h),p=Math.max(g,h);let S=m,I=p;for(const v of u.getChildren())for(const T of v.children){const{startIndex:x,endIndex:E,children:b}=T,_=b[0];let B=!1;if(_){const{startIndex:U,endIndex:R,children:w}=_;let L=null,F=null;const H=w.find(V=>V.startIndex<=m&&V.endIndex>=m),k=w.find(V=>V.startIndex<=p&&V.endIndex>=p);if(m>U&&m<R)L=o.findNodePositionByCharIndex(H.startIndex+2,!0,r,c),F=o.findNodePositionByCharIndex(R-4,!0,r,c),S=R+1;else if(p>U&&p<R)L=o.findNodePositionByCharIndex(U+3,!0,r,c),F=o.findNodePositionByCharIndex(k.endIndex-3,!0,r,c),I=U-1,B=!0;else if(U>m&&R<p){if(L=o.findNodePositionByCharIndex(U+3,!0,r,c),F=o.findNodePositionByCharIndex(R-4,!0,r,c),S<=U-1){const V=o.findNodePositionByCharIndex(S,!0,r,c),G=o.findNodePositionByCharIndex(U-1,!1,r,c),Y=f===s.RANGE_DIRECTION.FORWARD?V:G,j=f===s.RANGE_DIRECTION.FORWARD?G:V;l.push(new Ve(e,n,o,Y,j,a,r,c))}S=R+1}if(L&&F){const V=f===s.RANGE_DIRECTION.FORWARD?L:F,G=f===s.RANGE_DIRECTION.FORWARD?F:L;A.push(...$t(e,n,o,V,G,a,r,c))}}if(I>=x&&I<=E||B){const U=o.findNodePositionByCharIndex(S,!0,r,c),R=o.findNodePositionByCharIndex(I,!B,r,c),w=f===s.RANGE_DIRECTION.FORWARD?U:R,L=f===s.RANGE_DIRECTION.FORWARD?R:U;if(A.length&&s.Tools.diffValue(w,L))continue;l.push(new Ve(e,n,o,w,L,a,r,c))}}return{textRanges:l,rectRanges:A}}function po(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 So(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 si(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 Ta(i){const t=si(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 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},en=(i,t)=>(e,n)=>t(e,n,i);C.DocSelectionRenderService=class extends s.RxDisposable{constructor(e,n,o,a,r){super();O(this,"_onInputBefore$",new N.Subject);O(this,"onInputBefore$",this._onInputBefore$.asObservable());O(this,"_onKeydown$",new N.Subject);O(this,"onKeydown$",this._onKeydown$.asObservable());O(this,"_onInput$",new N.Subject);O(this,"onInput$",this._onInput$.asObservable());O(this,"_onCompositionstart$",new N.BehaviorSubject(null));O(this,"onCompositionstart$",this._onCompositionstart$.asObservable());O(this,"_onCompositionupdate$",new N.BehaviorSubject(null));O(this,"onCompositionupdate$",this._onCompositionupdate$.asObservable());O(this,"_onCompositionend$",new N.BehaviorSubject(null));O(this,"onCompositionend$",this._onCompositionend$.asObservable());O(this,"_onSelectionStart$",new N.BehaviorSubject(null));O(this,"onSelectionStart$",this._onSelectionStart$.asObservable());O(this,"_onPaste$",new N.Subject);O(this,"onPaste$",this._onPaste$.asObservable());O(this,"_textSelectionInner$",new N.BehaviorSubject(null));O(this,"textSelectionInner$",this._textSelectionInner$.asObservable());O(this,"_onFocus$",new N.Subject);O(this,"onFocus$",this._onFocus$.asObservable());O(this,"_onBlur$",new N.Subject);O(this,"onBlur$",this._onBlur$.asObservable());O(this,"_onPointerDown$",new N.Subject);O(this,"onPointerDown$",this._onPointerDown$.asObservable());O(this,"_container");O(this,"_inputParent");O(this,"_input");O(this,"_scrollTimers",[]);O(this,"_rangeList",[]);O(this,"_rangeListCache",[]);O(this,"_rectRangeList",[]);O(this,"_rectRangeListCache",[]);O(this,"_anchorNodePosition",null);O(this,"_focusNodePosition",null);O(this,"_currentSegmentId","");O(this,"_currentSegmentPage",-1);O(this,"_selectionStyle",M.NORMAL_TEXT_SELECTION_PLUGIN_STYLE);O(this,"_viewPortObserverMap",new Map);O(this,"_isIMEInputApply",!1);O(this,"_scenePointerMoveSubs",[]);O(this,"_scenePointerUpSubs",[]);O(this,"_editorFocusing",!0);O(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(),g=(h,f)=>{const m=Ca(h,f,l,d,u,c,a,r);if(m==null)return;const{textRanges:p,rectRanges:S}=m;for(const I of p)this._addTextRange(I);this._addRectRanges(S)};for(const h of e){const{startOffset:f,endOffset:m,rangeType:p,startNodePosition:S,endNodePosition:I}=h;if(p===s.DOC_RANGE_TYPE.RECT){const v=va(f,m,l,d,u,c,a,r);v&&this._addRectRanges([v])}else if(p===s.DOC_RANGE_TYPE.TEXT)try{let v=null;S&&I?v=fo(S.isBack?f:f-1,I.isBack?m:m-1,l,d,u,c,a,r,S.isBack,I.isBack):v=fo(f,m,l,d,u,c,a,r),v&&this._addTextRange(v)}catch{g(f,m)}else g(f,m)}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=So(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 g=Number.NEGATIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(const{segment:f,index:m,isWordLike:p}of u)if(m<=A&&A<m+f.length&&p){g=m+l,h=m+l+f.length;break}if(Number.isFinite(g)&&Number.isFinite(h)){this.removeAllRanges();const f=[{startOffset:g,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=So(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(v=>v.startOffset<=I&&v.endOffset>I)||typeof I=="number"&&d.rectRanges.some(v=>v.startOffset<=I&&v.endOffset>=I))return}const{segmentId:u,segmentPage:g}=l;u&&this._currentSegmentId&&u!==this._currentSegmentId&&this.setSegment(u),u&&g!==this._currentSegmentPage&&this.setSegmentPage(g),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,m=c;this._scenePointerMoveSubs.push(n.onPointerMove$.subscribeEvent(I=>{const{offsetX:v,offsetY:T}=I;n.setCursor(M.CURSOR_TYPE.TEXT),!(Math.sqrt((v-f)**2+(T-m)**2)<3)&&(this._moving(v,T),h.scrolling(v,T,()=>{this._moving(v,T)}),f=v,m=T)})),this._scenePointerUpSubs.push(n.onPointerUp$.subscribeEvent(()=>{if([...this._scenePointerMoveSubs,...this._scenePointerUpSubs].forEach(v=>{v.unsubscribe()}),n.enableObjectsEvent(),this._anchorNodePosition&&!this._focusNodePosition){if(e.ctrlKey){this._disposeScrollTimers();return}const v=new Ve(n,o,a,this._anchorNodePosition,void 0,this._selectionStyle,this._currentSegmentId,this._currentSegmentPage);this._addTextRange(v)}else if(this._anchorNodePosition&&this._focusNodePosition){for(const v of this._rangeListCache)e.ctrlKey?v.collapsed?v.dispose():this._addTextRange(v):this._addTextRange(v);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(si)}_getAllRectRanges(){return this._rectRangeList.map(Ta)}_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:si(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=`
79
74
  position:absolute;
80
75
  height:1px;
81
76
  width:1px;
@@ -91,22 +86,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
91
86
  caret-color: transparent;
92
87
  white-space: pre-wrap;
93
88
  user-select: text;
94
- `}_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;const A=o<.5;return{...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 Ve(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 g=ni(c,l,o,a,r,A,d,u);if(g==null)return;const{textRanges:h,rectRanges:m}=g;this._addTextRangesToCache(h),this._addRectRangesToCache(m),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 go(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(D.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,C;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:g,mainComponent:h}=this._context,m=this._docSkeletonManagerService.getSkeleton();if(d==null||h==null)return;const f=ni(d,c,g,h,m,u,o,a);if(f==null)return;const{textRanges:p,rectRanges:S}=f;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(),(C=(I=this._context.scene)==null?void 0:I.getEngine())==null||C.setRemainCapture()}__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:g,right:h,bottom:m}=l.viewBound;if(d.left<u||d.left>h||d.top<g||d.top>m){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(D.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=D.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()}},v.DocSelectionRenderService=va([qt(1,y.ILayoutService),qt(2,s.ILogService),qt(3,s.IUniverInstanceService),qt(4,s.Inject(_.DocSkeletonManagerService))],v.DocSelectionRenderService);class mo 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(v.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(Tt.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(v.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(v.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(Gn.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 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},je=(i,t)=>(e,n)=>t(e,n,i);const ya=["univer-editor","univer-range-selector","univer-range-selector-editor","univer-render-canvas","univer-text-editor-container-placeholder"];v.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(ya.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,g;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 mo({...e,render:l,editorDom:n,canvasStyle:a},this._univerInstanceService,this._docSelectionManagerService,this._commandService,this._undoRedoService);this._editors.set(r,h),e.scrollBar||(g=(u=(d=(A=l.mainComponent)==null?void 0:A.getScene())==null?void 0:d.getViewports())==null?void 0:u[0].getScrollBar())==null||g.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)!==xe.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(xe.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}}}},v.EditorService=ba([je(0,s.IUniverInstanceService),je(1,D.IRenderManagerService),je(2,s.Inject(xe.LexerTreeBuilder)),je(3,s.Inject(_.DocSelectionManagerService)),je(4,s.IContextService),je(5,s.ICommandService),je(6,s.IUndoRedoService)],v.EditorService);const pe=s.createIdentifier("univer.editor.service"),at={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 Ra(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]===`
95
- `&&o.push({startIndex:r});return{id:i,body:{dataStream:e,tables:[],textRuns:[],paragraphs:n,sectionBreaks:o},tableSource:{},documentStyle:{documentFlavor:s.DocumentFlavor.UNSPECIFIED}}}const Oa=new Set(["snapshot","resizeCallBack","cancelDefaultResizeListener","isSheetEditor","canvasStyle","isFormulaEditor","isSingle","isReadonly","onlyInputFormula","onlyInputRange","value","onlyInputContent","isSingleChoice","openForSheetUnitId","openForSheetSubUnitId","onChange","onActive","onValid","placeholder"]);function po(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:g=!1,onlyInputContent:h=!1,isSingleChoice:m=!1,openForSheetUnitId:f,openForSheetSubUnitId:p,onChange:S,onActive:I,onValid:C,isValueValid:b=!0,placeholder:x}=i,E=s.useDependency(pe),T=s.useDependency(s.LocaleService),[B,M]=Q.useState(""),[U,O]=Q.useState(""),[L,w]=Q.useState(b),[F,k]=Q.useState([0,0]),H=Q.useRef(null),[V,G]=Q.useState(!1);if(!s.isInternalEditorID(t))throw new Error("Invalid editor ID");Q.useEffect(()=>{const W=H.current;if(!W)return;const Y=new ResizeObserver(()=>{o!==!0&&E.resize(t),n&&n(W)});Y.observe(W);const z=e!=null?e:Ra(t,c);z.id!==t&&(z.id=t);const K=E.register({editorUnitId:t,initialSnapshot:z,cancelDefaultResizeListener:o,isSheetEditor:a,canvasStyle:r,isSingle:l,readonly:A,isSingleChoice:m,onlyInputFormula:u,onlyInputRange:g,onlyInputContent:h,openForSheetUnitId:f,openForSheetSubUnitId:p,isFormulaEditor:d},W);E.setValueNoRefresh(c||"",t),M(x||"");const ie=s.debounce(Ae=>{G(Ae),I&&I(Ae)},30),re=160,fe=s.debounce(Ae=>{const Ie=Ae.getEditorId(),Ue=E.checkValueLegality(Ie);setTimeout(()=>{const he=Ae.getBoundingClientRect();k([he.left,he.top-16]),he.left+he.top>0&&w(Ue),Ae.onlyInputFormula()?O(T.t("textEditor.formulaError")):O(T.t("textEditor.rangeError"))},re),E.getValue(Ie)!==c&&(C&&C(Ue),S&&S(E.getValue(t)))},30),ce=E.focusStyle$.subscribe(Ae=>{let Ie=!1;Ae===t&&(Ie=!0),ie(Ie),setTimeout(()=>{if(!aa(W))w(!0);else{const Ue=E.getEditor(t);Ue&&fe(Ue)}},re)}),Te=E.valueChange$.subscribe(Ae=>{if(Ae.isSheetEditor()||Ae.getEditorId()!==t)return;const Ie=E.getFocusEditor();Ie&&Ie.getEditorId()!==t||fe(Ae)});return()=>{Y.unobserve(W),Y.disconnect(),K.dispose(),ce==null||ce.unsubscribe(),Te==null||Te.unsubscribe()}},[]),Q.useEffect(()=>{const W=E.getEditor(t);W!=null&&W.update({readonly:A,isSingle:l,isSingleChoice:m,onlyInputContent:h,onlyInputFormula:u,onlyInputRange:g,openForSheetSubUnitId:p,openForSheetUnitId:f})},[A,l,m,h,u,g,p,f]),Q.useEffect(()=>{c!=null&&E.setValueNoRefresh(c,t)},[c]),Q.useEffect(()=>{w(b)},[b]);function X(){const W=E.getValue(t);return!(W==null||W==="")}const j=Object.fromEntries(Object.entries(i).filter(([W])=>!Oa.has(W)));let Z=at.textEditorContainer;i.className!=null&&(Z=i.className);let ee="";return i.className==null&&(A?ee=` ${at.textEditorContainerDisabled}`:L?V&&(ee=` ${at.textEditorContainerActive}`):ee=` ${at.textEditorContainerError}`),P.jsx(P.Fragment,{children:P.jsxs("div",{...j,className:Z+ee,ref:H,children:[P.jsx("div",{style:{display:L?"none":"block"},className:at.textEditorValidationError,children:U}),P.jsx("div",{style:{display:X()?"none":"unset"},className:at.textEditorContainerPlaceholder,children:B})]})})}var Se=function(){return Se=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},Se.apply(this,arguments)},xa=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=xa(i,["icon","id","className","extend"]),c="univerjs-icon univerjs-icon-".concat(n," ").concat(o||"").trim(),l=Q.useRef("_".concat(Ba()));return So(e,"".concat(n),{defIds:e.defIds,idSuffix:l.current},Se({ref:t,className:c},r),a)});function So(i,t,e,n,o){return Q.createElement(i.tag,Se(Se({key:t},Da(i,e,o)),n),(Ma(i,e).children||[]).map(function(a,r){return So(a,"".concat(t,"-").concat(i.tag,"-").concat(r),e,void 0,o)}))}function Da(i,t,e){var n=Se({},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 Ma(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)?Se(Se({},i),{children:i.children.map(function(o){return typeof o.attrs.id=="string"&&n&&n.indexOf(o.attrs.id)>-1?Se(Se({},o),{attrs:Se(Se({},o.attrs),{id:o.attrs.id+t.idSuffix})}):o})}):i}function Ba(){return Math.random().toString(36).substring(2,8)}ye.displayName="UniverIcon";var _a={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"}}]},Io=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"align-text-both-single",ref:t,icon:_a}))});Io.displayName="AlignTextBothSingle";var Na={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"}}]},Eo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"close-single",ref:t,icon:Na}))});Eo.displayName="CloseSingle";var Pa={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"}}]},vo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"delete-single",ref:t,icon:Pa}))});vo.displayName="DeleteSingle";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.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"}}]},Co=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"horizontally-single",ref:t,icon:Ua}))});Co.displayName="HorizontallySingle";var wa={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"}}]},To=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"increase-single",ref:t,icon:wa}))});To.displayName="IncreaseSingle";var La={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"}}]},bo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"left-justifying-single",ref:t,icon:La}))});bo.displayName="LeftJustifyingSingle";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.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"}}]},yo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"right-justifying-single",ref:t,icon:Qa}))});yo.displayName="RightJustifyingSingle";var Fa={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"}}]},Ro=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"select-range-single",ref:t,icon:Fa}))});Ro.displayName="SelectRangeSingle";var Ha={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"}}]},Oo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"todo-list",ref:t,icon:Ha}))});Oo.displayName="TodoList";function xo(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=xo(i[t]))&&(n&&(n+=" "),n+=e)}else for(e in i)i[e]&&(n&&(n+=" "),n+=e);return n}function $t(){for(var i,t,e=0,n="",o=arguments.length;e<o;e++)(i=arguments[e])&&(t=xo(i))&&(n&&(n+=" "),n+=t);return n}class Do 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 oi=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"},ka={pointerEvents:"none"};function Va(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:g,isReadonly:h=!1,className:m,textEditorClassName:f,onSelectorVisibleChange:p}=i,S=y.useEvent(p),[I,C]=Q.useState([""]),b=J=>{C($=>[...$,J])},x=J=>{C($=>$.filter((oe,jt)=>jt!==J))},E=(J,$)=>{C(oe=>oe.map((jt,ot)=>ot===J?$:jt))},T=J=>{C($=>{const oe=[...$];return oe.length>0&&(oe[oe.length-1]=J),oe})},B=s.useDependency(pe),M=s.useDependency(oi),U=s.useDependency(s.IUniverInstanceService),[O,L]=Q.useState(!1),w=s.useDependency(s.LocaleService),[F,k]=Q.useState(!1),[H,V]=Q.useState(!0),[G,X]=Q.useState(o),[j,Z]=Q.useState(-1),ee=Q.useRef(null),W=Q.useRef(-1),Y=Q.useRef(u),z=Q.useRef(g),K=Q.useRef(d),ie=Q.useRef(h);Q.useEffect(()=>{const J=ee.current;if(!J)return;const $=new ResizeObserver(()=>{B.resize(n)});$.observe(J);let oe=1;const jt=M.selectionChange$.subscribe(ot=>{if(M.getCurrentSelectorId()!==n)return;if(ot.length===0){oe=0;return}const Hs=ot.length-oe;if(oe=ot.length,Hs<0)return;const we=ot[ot.length-1];let Ct="";we.unitId===Y.current&&we.sheetId===z.current?Ct=xe.serializeRange(we.range):we.unitId===Y.current?Ct=xe.serializeRangeWithSheet(we.sheetName,we.range):Ct=xe.serializeRangeWithSpreadsheet(we.unitId,we.sheetName,we.range),Hs>=1&&!K.current?(b(Ct),Z(-1)):W.current===-1?T(Ct):E(W.current,Ct)});return()=>{jt.unsubscribe(),$.unobserve(J)}},[]),Q.useEffect(()=>{M.triggerModalVisibleChange(O)},[S,M,O]),Q.useEffect(()=>()=>{M.triggerModalVisibleChange(!1)},[M]),Q.useEffect(()=>{Y.current=u,z.current=g,K.current=d,ie.current=h},[u,g,d,h]),Q.useEffect(()=>{W.current=j},[j]);function re(){L(!1),S(!1),M.setCurrentSelectorId(null)}function fe(){ie.current!==!0&&(B.closeRangePrompt(),M.setCurrentSelectorId(n),L(!0),S(!0),G.length>0?C(H?G.split(","):[""]):M.openSelector())}function ce(J){k(J),l&&l(J)}function Te(J){V(J),A&&A(J)}function Ae(){if(ie.current===!0){re();return}let J="";const $=I.filter(oe=>xe.isReferenceStringWithEffectiveColumn(oe.trim()));if($.length===1){const oe=$[0];xe.isReferenceStringWithEffectiveColumn(oe.trim())&&(J=oe.trim())}else J=$.join(",");B.setValue(J,n),vt(J),re()}function Ie(){b(""),Z(-1)}function Ue(J){var $,oe;return((oe=($=U.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET))==null?void 0:$.getSheetBySheetName(J))==null?void 0:oe.getSheetId())||""}function vt(J){if(X(J||""),J==null){e&&e([]);return}const $=xe.getRangeWithRefsString(J,Ue);e&&e($||[])}let he=ae.rangeSelector;h?he=`${ae.rangeSelector} ${ae.rangeSelectorDisabled}`:H?F&&(he=`${ae.rangeSelector} ${ae.rangeSelectorActive}`):he=`${ae.rangeSelector} ${ae.rangeSelectorError}`,f&&(he=`${he} ${f}`);let Vn=28;return c==="mini"?Vn=20:c==="small"?Vn=24:c==="large"&&(Vn=32),P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:$t(he,m),ref:ee,style:{width:a,height:Vn,cursor:t?"pointer":void 0},onClickCapture:J=>{t&&(J.stopPropagation(),J.preventDefault(),fe())},children:[P.jsx(po,{style:t?ka:void 0,placeholder:r,value:o,isReadonly:h,isSingleChoice:d,openForSheetUnitId:u,openForSheetSubUnitId:g,onValid:Te,onActive:ce,onChange:vt,id:n,onlyInputRange:!0,canvasStyle:{fontSize:10},className:ae.rangeSelectorEditor}),P.jsx(se.Tooltip,{title:w.t("rangeSelector.buttonTooltip"),placement:"bottom",children:P.jsx("button",{type:"button",className:ae.rangeSelectorIcon,onClick:fe,children:P.jsx(Ro,{})})})]}),P.jsx(se.Dialog,{width:"328px",visible:O,title:w.t("rangeSelector.title"),draggable:!0,closeIcon:P.jsx(Eo,{}),footer:P.jsxs("footer",{children:[P.jsx(se.Button,{onClick:re,children:w.t("rangeSelector.cancel")}),P.jsx(se.Button,{style:{marginLeft:10},onClick:Ae,type:"primary",children:w.t("rangeSelector.confirm")})]}),onClose:re,children:P.jsxs("div",{className:$t(ae.rangeSelectorModal,m),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:j===$||I.length-1===$&&j===-1?ae.rangeSelectorModalContainerInputActive:"",placeholder:w.t("rangeSelector.placeHolder"),affixWrapperStyle:{width:"100%"},onClick:()=>Z($),value:J,onChange:oe=>E($,oe)},`input${$}`)}),P.jsx("div",{style:{display:I.length===1?"none":"inline-block"},className:ae.rangeSelectorModalContainerButton,children:P.jsx(vo,{className:ae.rangeSelectorModalContainerDeleteButton,onClick:()=>x($)})})]},$)),P.jsx("div",{style:{display:d?"none":"unset"},className:ae.rangeSelectorModalAdd,children:P.jsxs(se.Button,{type:"link",size:"small",onClick:Ie,className:ae.rangeSelectorModalAddButton,children:[P.jsx(To,{}),P.jsx("span",{children:w.t("rangeSelector.addAnotherRange")})]})})]})})]})}function Mo(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 Bo="COMPONENT_DOC_HEADER_FOOTER_PANEL",ge={panel:"univer-panel",optionsSection:"univer-options-section",optionsFormItem:"univer-options-form-item",optionsInput:"univer-options-input",optionsMarginSetting:"univer-options-margin-setting"};function ja(i,t,e){const{useFirstPageHeaderFooter:n,evenAndOddHeaders:o,defaultHeaderId:a,defaultFooterId:r,firstPageHeaderId:c,firstPageFooterId:l,evenPageHeaderId:A,evenPageFooterId:d}=i;return t===D.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 Wa=i=>{const t=s.useDependency(s.LocaleService),e=s.useDependency(s.IUniverInstanceService),n=s.useDependency(D.IRenderManagerService),o=s.useDependency(s.ICommandService),a=s.useDependency(y.ILayoutService),{unitId:r}=i,c=n.getRenderById(r).with(v.DocSelectionRenderService),[l,A]=Q.useState({}),d=(h,m)=>{var T;A(B=>({...B,[m]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}));const f=e.getUniverDocInstance(r),p=f==null?void 0:f.getSnapshot().documentStyle,S=(T=n.getRenderById(r))==null?void 0:T.with(_.DocSkeletonManagerService),I=S==null?void 0:S.getViewModel();if(p==null||I==null)return;const C=I.getEditArea();let b=!1;const x=c.getSegmentPage();let E=!1;if(m==="useFirstPageHeaderFooter"&&h===!0&&((C===D.DocumentEditArea.HEADER&&!p.firstPageHeaderId||C===D.DocumentEditArea.FOOTER&&!p.firstPageFooterId)&&(b=!0),b&&x===0&&(E=!0)),m==="evenAndOddHeaders"&&h===!0&&((C===D.DocumentEditArea.HEADER&&!p.evenPageHeaderId||C===D.DocumentEditArea.FOOTER&&!p.evenPageFooterId)&&(b=!0),b&&x%2===1&&(E=!0)),b){const M=s.Tools.generateRandomId(6);E&&c.setSegment(M),o.executeCommand(tn,{unitId:r,segmentId:M,headerFooterProps:{[m]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}else{const B=c.getSegmentPage(),M=c.getSegment(),U=ja({...p,[m]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE},C,B);U&&U!==M&&c.setSegment(U),o.executeCommand(tn,{unitId:r,headerFooterProps:{[m]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}a.focus()},u=async(h,m)=>{A(f=>({...f,[m]:h})),await o.executeCommand(tn,{unitId:r,headerFooterProps:{[m]:h}}),c.removeAllRanges(),c.blur()},g=()=>{o.executeCommand(Ai.id,{unitId:r})};return Q.useEffect(()=>{const h=e.getUniverDocInstance(r),m=h==null?void 0:h.getSnapshot().documentStyle;if(m){const{marginHeader:f=0,marginFooter:p=0,useFirstPageHeaderFooter:S=s.BooleanNumber.FALSE,evenAndOddHeaders:I=s.BooleanNumber.FALSE}=m;A({marginHeader:f,marginFooter:p,useFirstPageHeaderFooter:S,evenAndOddHeaders:I})}},[r]),P.jsxs("div",{className:ge.options,children:[P.jsxs("div",{className:ge.optionsSection,children:[P.jsx("div",{className:ge.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:ge.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:$t(ge.optionsSection,ge.optionsMarginSetting),children:[P.jsxs("div",{className:ge.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:ge.optionsInput})]}),P.jsxs("div",{className:ge.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:ge.optionsInput})]})]}),P.jsx("div",{className:ge.optionsSection,children:P.jsx(se.Button,{onClick:g,children:t.t("headerFooter.closeHeaderFooter")})})]})},za=()=>{var A;const i=s.useDependency(s.LocaleService),t=s.useDependency(D.IRenderManagerService),o=s.useDependency(s.IUniverInstanceService).getCurrentUniverDocInstance().getUnitId(),r=((A=t.getRenderById(o))==null?void 0:A.with(_.DocSkeletonManagerService)).getViewModel(),[c,l]=Q.useState(!0);return Q.useEffect(()=>{const d=r.getEditArea();l(d!==D.DocumentEditArea.BODY);const u=r.editAreaChange$.subscribe(g=>{g!=null&&l(g!==D.DocumentEditArea.BODY)});return()=>{u.unsubscribe()}},[]),P.jsx("div",{className:ge.panel,children:c?P.jsx(Wa,{unitId:o}):P.jsx("div",{className:ge.panelDisableText,children:i.t("headerFooter.disableText")})})},_o=18,No=200,si=6,Ga=4;function Xa(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 en extends D.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*si,No);Xa(e,{height:_o,width:c,radius:4,fill:a,evented:!1}),e.fillStyle="rgba(58, 96, 247, 1)";const l=si,A=_o-Ga,d=No-2*si;if(r>d){let u="",g=0;for(const h of o){const m=e.measureText(h).width;if(g+m<=d-e.measureText("...").width)u+=h,g+=m;else{u+="...";break}}e.fillText(u,l,A)}else e.fillText(o,l,A);e.restore()}_draw(e){en.drawWith(e,this)}}var Ya=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,Ja=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ka(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},Le=(i,t)=>(e,n)=>t(e,n,i);const Po="rgba(58, 96, 247, 1)",Uo="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 Za(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 D.DocumentEditArea.BODY:return{createType:null,headerFooterId:null};case D.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 D.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 ai=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(_.RichTextEditingMutation.id===t.id){const e=this._context.unit,o=this._docSkeletonManagerService.getViewModel().getEditArea(),a=e.getSnapshot().documentStyle.documentFlavor;o!==D.DocumentEditArea.BODY&&a===s.DocumentFlavor.MODERN&&this._commandService.executeCommand(Ai.id,{unitId:this._context.unitId})}}))}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(Bo,za))}_init(){const{unitId:t}=this._context,e=De(this._context);e==null||e.document==null||this._loadedMap.has(e.document)||(this._initialMain(t),this._loadedMap.add(e.document))}_initialMain(t){const e=De(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=D.PageLayoutType.VERTICAL,pageMarginLeft:l,pageMarginTop:A}=n.getOffsetConfig(),d=this._getTransformCoordForDocumentOffset(a,r);if(d==null)return;const u=this._docSkeletonManagerService.getViewModel(),g=this._docSkeletonManagerService.getSkeleton(),h=u.getEditArea(),{editArea:m,pageNumber:f}=g.findEditAreaByCoord(d,c,l,A);if(h===m)return;u.setEditArea(m);const{createType:p,headerFooterId:S}=Za(u,m,f);if(m===D.DocumentEditArea.BODY)this._docSelectionRenderService.setSegment(""),this._docSelectionRenderService.setSegmentPage(-1),this._docSelectionRenderService.setCursorManually(a,r);else if(p!=null){const C=s.Tools.generateRandomId(6);this._docSelectionRenderService.setSegment(C),this._docSelectionRenderService.setSegmentPage(f),await this._commandService.executeCommand(Lo.id,{unitId:t,createType:p,segmentId:C})}else S!=null&&(this._docSelectionRenderService.setSegment(S),this._docSelectionRenderService.setSegmentPage(f),this._docSelectionRenderService.setCursorManually(a,r))}))}_getTransformCoordForDocumentOffset(t,e){const n=De(this._context),{document:o,scene:a}=n,{documentTransform:r}=o.getOffsetConfig(),c=a.getViewports()[0];if(c==null)return;const l=c.transformVector2SceneCoord(D.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()===D.DocumentEditArea.BODY,{page:d,pageLeft:u,pageTop:g,ctx:h}=r,{pageWidth:m,pageHeight:f,marginTop:p,marginBottom:S}=d;if(h.save(),h.translate(u-.5,g-.5),A?(D.Rect.drawWith(h,{left:0,top:0,width:m,height:p,fill:"rgba(255, 255, 255, 0.5)"}),h.save(),h.translate(0,f-S),D.Rect.drawWith(h,{left:0,top:0,width:m,height:S,fill:"rgba(255, 255, 255, 0.5)"}),h.restore()):(h.save(),h.translate(0,p),D.Rect.drawWith(h,{left:0,top:p,width:m,height:f-p-S,fill:"rgba(255, 255, 255, 0.5)"}),h.restore()),!A){const I={dataArray:[{command:"M",points:[0,p]},{command:"L",points:[m,p]}],strokeWidth:1,stroke:Po},C={dataArray:[{command:"M",points:[0,f-S]},{command:"L",points:[m,f-S]}],strokeWidth:1,stroke:Po};D.Path.drawWith(h,I),D.Path.drawWith(h,C),h.translate(0,p+1),en.drawWith(h,{text:t.t("headerFooter.header"),color:Uo}),h.translate(0,f-p-S),en.drawWith(h,{text:t.t("headerFooter.footer"),color:Uo})}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}};ai=Ja([Le(1,s.ICommandService),Le(2,pe),Le(3,s.IUniverInstanceService),Le(4,D.IRenderManagerService),Le(5,s.Inject(_.DocSkeletonManagerService)),Le(6,s.Inject(v.DocSelectionRenderService)),Le(7,s.Inject(s.LocaleService)),Le(8,s.Inject(y.ComponentManager))],ai);const ri={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:Bo},onClose:()=>{},width:400});break;case"close":default:e.close();break}return!0}};function wo(){return{dataStream:`\r
96
- `,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 ci(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:wo()});n.push(l);const A=s.Tools.generateRandomId(a),d=o.insertOp([c?"footers":"headers",A],{[c?"footerId":"headerId"]:A,body:wo()});n.push(d);let u="defaultHeaderId",g="defaultFooterId";switch(t){case ue.DEFAULT_HEADER:u="defaultHeaderId",g="defaultFooterId";break;case ue.DEFAULT_FOOTER:u="defaultFooterId",g="defaultHeaderId";break;case ue.FIRST_PAGE_HEADER:u="firstPageHeaderId",g="firstPageFooterId";break;case ue.FIRST_PAGE_FOOTER:u="firstPageFooterId",g="firstPageHeaderId";break;case ue.EVEN_PAGE_HEADER:u="evenPageHeaderId",g="evenPageFooterId";break;case ue.EVEN_PAGE_FOOTER:u="evenPageFooterId",g="evenPageHeaderId";break;default:throw new Error(`Unknown header footer type: ${t}`)}for(const[h,m]of[[u,r],[g,A]])if(e[h]!=null){const f=o.replaceOp(["documentStyle",h],e[h],m);n.push(f)}else{const f=o.insertOp(["documentStyle",h],m);n.push(f)}return n}const tn="doc.command.core-header-footer",Lo={id:tn,type:s.CommandType.COMMAND,handler:async(i,t)=>{var b;const e=i.get(s.ICommandService),n=i.get(s.IUniverInstanceService),o=i.get(D.IRenderManagerService),{unitId:a,segmentId:r,createType:c,headerFooterProps:l}=t,A=(b=o.getRenderById(a))==null?void 0:b.with(_.DocSkeletonManagerService),d=n.getUniverDocInstance(a),u=A==null?void 0:A.getViewModel();if(d==null||u==null)return!1;const g=u.getEditArea(),{documentStyle:h}=d.getSnapshot(),m=(l==null?void 0:l.marginFooter)!=null||(l==null?void 0:l.marginHeader)!=null,f=[{startOffset:0,endOffset:0,collapsed:!0}],p={id:_.RichTextEditingMutation.id,params:{unitId:a,actions:[],textRanges:f,debounce:!0}};m&&(p.params.noNeedSetTextRange=!0);const S=s.JSONX.getInstance(),I=[];return c!=null&&ci(r,c,h,I),l!=null&&Object.keys(l).forEach(x=>{const E=l[x],T=h[x];if(E===T)return;let B;if(T===void 0?B=S.insertOp(["documentStyle",x],E):B=S.replaceOp(["documentStyle",x],T,E),I.push(B),x==="useFirstPageHeaderFooter"&&E===s.BooleanNumber.TRUE&&!h.firstPageHeaderId){const M=g===D.DocumentEditArea.HEADER?ue.FIRST_PAGE_HEADER:ue.FIRST_PAGE_FOOTER;ci(r,M,h,I)}else if(x==="evenAndOddHeaders"&&E===s.BooleanNumber.TRUE&&!h.evenPageHeaderId){const M=g===D.DocumentEditArea.HEADER?ue.EVEN_PAGE_HEADER:ue.EVEN_PAGE_FOOTER;ci(r,M,h,I)}}),I.length===0?!1:(p.params.actions=I.reduce((x,E)=>s.JSONX.compose(x,E),null),!!e.syncExecuteCommand(p.id,p.params))}},li={id:"doc.command.open-header-footer-panel",type:s.CommandType.COMMAND,handler:async(i,t)=>i.get(s.ICommandService).executeCommand(ri.id,{value:"open"})},Ai={id:"doc.command.close-header-footer",type:s.CommandType.COMMAND,handler:async(i,t)=>{var m;const e=i.get(s.ICommandService),n=i.get(D.IRenderManagerService),o=i.get(_.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(_.DocSkeletonManagerService),u=c.with(v.DocSelectionRenderService),g=d==null?void 0:d.getSkeleton(),h=d==null?void 0:d.getViewModel();return h==null||g==null?!1:(o.replaceDocRanges([]),A.clearSelectedObjects(),u.setSegment(""),u.setSegmentPage(-1),h.setEditArea(D.DocumentEditArea.BODY),g.calculate(),(m=c.mainComponent)==null||m.makeDirty(!0),queueMicrotask(()=>{const f=a.getUnit(r),p=f==null?void 0:f.getSnapshot();if(p==null)return;const S=Mo(p);o.replaceDocRanges([{startOffset:S,endOffset:S}])}),e.executeCommand(ri.id,{value:"close"}),!0)}},rt="UI_PLUGIN_DOCS",di=`${rt}_COLOR_PICKER_COMPONENT`,Qo=`${rt}_FONT_FAMILY_COMPONENT`,Fo=`${rt}_FONT_FAMILY_ITEM_COMPONENT`,Ho=`${rt}_FONT_SIZE_COMPONENT`,ui={docListTypePicker:"univer-doc-list-type-picker",docListTypePickerItem:"univer-doc-list-type-picker-item",docListTypePickerItemActive:"univer-doc-list-type-picker-item-active"},ko=i=>{const{value:t,onChange:e,options:n}=i;return P.jsx("div",{className:ui.docListTypePicker,children:n.map(o=>P.jsx("img",{className:ui.docListTypePickerItem+(t===o.value?` ${ui.docListTypePickerItemActive}`:""),onClick:()=>{e(o.value)},src:o.img},o.value))})},qa=[{value:s.PresetListType.ORDER_LIST,img:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/CABEIAPQA2AMBEQACEQEDEQH/xAAzAAEAAgMBAQEAAAAAAAAAAAAABwkGCAoFBAMBAQADAQEAAAAAAAAAAAAAAAACAwQBBf/aAAwDAQACEAMQAAAA7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACrPRXpvZDoUx3gAAAAAAAAAAAfgc027P0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fVBg6Os31XD8f74bSyhgVYTB986Q4AQlidIz1ch69oVjSJWIJFTIsAdHInCYsuOVLaxWDtUTUYRPtOpE/U2E1XG3KQoSi1woirihM0Pmp3bqqJGR6jqtZImYO42HuOG09IeShBa1u4ep8DRVZzJQSfdpsHGidHUVvrHD7f73DI7T8ExGLxJgGxRbK6ZrAzAvnZRVCiSgAZe69/aj/9k="}],tr=i=>P.jsx(ko,{...i,options:er}),Vo=`${rt}_ORDER_LIST_TYPE_COMPONENT`,jo=`${rt}_BULLET_LIST_TYPE_COMPONENT`,We={id:"doc.command.tab",type:s.CommandType.COMMAND,async handler(i,t){const n=i.get(v.DocAutoFormatService).onAutoFormat(We.id,t);return(await s.sequenceExecuteAsync(n,i.get(s.ICommandService))).result}},yt={id:"doc.command.after-space",type:s.CommandType.COMMAND,async handler(i){const e=i.get(v.DocAutoFormatService).onAutoFormat(yt.id);return(await s.sequenceExecuteAsync(e,i.get(s.ICommandService))).result}},ct={id:"doc.command.enter",type:s.CommandType.COMMAND,async handler(i){const e=i.get(v.DocAutoFormatService).onAutoFormat(ct.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 nr(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 ir={id:We.id,binding:y.KeyCode.TAB,preconditions:ne},or={id:We.id,binding:y.KeyCode.TAB|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{shift:!0}};var sr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,rr=(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&&sr(t,e,o),o},hi=(i,t)=>(e,n)=>t(e,n,i);const cr=11,lr=9,nn={ff:"Arial",fs:cr};let Be=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{...nn};const e=t==null?void 0:t.getUnitId(),n=(r=this._renderManagerService.getRenderById(e))==null?void 0:r.with(_.DocSkeletonManagerService),o=n==null?void 0:n.getViewModel();return o==null?{...nn}:o.getEditArea()===D.DocumentEditArea.BODY?{...nn}:{...nn,fs:lr}}setStyleCache(t){this._cacheStyle={...this._cacheStyle,...t}}_clearStyleCache(){this._cacheStyle=null}};Be=rr([hi(0,s.Inject(_.DocSelectionManagerService)),hi(1,s.IUniverInstanceService),hi(2,D.IRenderManagerService)],Be);function ve(i,t,e){return e.executeCommand(_e.id,{preCommandId:i,...t!=null?t:{}})}const Wo="doc.command.set-inline-format-bold",ze={id:Wo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Wo,t,e)}},zo="doc.command.set-inline-format-italic",Ge={id:zo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(zo,t,e)}},Go="doc.command.set-inline-format-underline",Xe={id:Go,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Go,t,e)}},Xo="doc.command.set-inline-format-strikethrough",Ye={id:Xo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Xo,t,e)}},Yo="doc.command.set-inline-format-subscript",Qe={id:Yo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Yo,t,e)}},Ko="doc.command.set-inline-format-superscript",Ke={id:Ko,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Ko,t,e)}},Jo="doc.command.set-inline-format-fontsize",Je={id:Jo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Jo,t,e)}},Zo="doc.command.set-inline-format-font-family",Ze={id:Zo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Zo,t,e)}},qo="doc.command.set-inline-format-text-color",qe={id:qo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(qo,t,e)}},$o="doc.command.set-inline-format-text-background-color",$e={id:$o,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve($o,t,e)}},es="doc.command.reset-inline-format-text-background-color",lt={id:es,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(es,t,e)}},gi={[ze.id]:"bl",[Ge.id]:"it",[Xe.id]:"ul",[Ye.id]:"st",[Je.id]:"fs",[Ze.id]:"ff",[qe.id]:"cl",[$e.id]:"bg",[lt.id]:"bg",[Qe.id]:"va",[Ke.id]:"va"},_e={id:"doc.command.set-inline-format",type:s.CommandType.COMMAND,handler:async(i,t)=>{var x;const{value:e,preCommandId:n}=t,o=i.get(s.ICommandService),a=i.get(_.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=i.get(Be),l=a.getDocRanges(),A=(x=l.find(E=>E.isActive))!=null?x: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 g=u.getSelfOrHeaderFooterModel(d).getBody();if(g==null)return!1;const h=u.getUnitId();let m;switch(n){case ze.id:case Ge.id:case Xe.id:case Ye.id:case Qe.id:case Ke.id:{const E=c.getDefaultStyle(),T=ns(g,A,E);m=dr(T,n);break}case Je.id:case Ze.id:{m=e;break}case qe.id:case $e.id:{m={rgb:e};break}case lt.id:{m={rgb:null};break}default:throw new Error(`Unknown command: ${n} in handleInlineFormat`)}const f={id:_.RichTextEditingMutation.id,params:{unitId:h,actions:[],textRanges:l}},p=new s.TextX,S=s.JSONX.getInstance(),I=new s.MemoryCursor;I.reset();for(const E of l){let{startOffset:T,endOffset:B,rangeType:M}=E;if(T==null||B==null)continue;if(M===s.DOC_RANGE_TYPE.RECT&&(T=T-1),T===B){const L=c.getStyleCache(),w=gi[n];c.setStyleCache({[w]:(L==null?void 0:L[w])!==void 0?ts(L,w,n):m});continue}const U={dataStream:"",textRuns:[{st:0,ed:B-T,ts:{[gi[n]]:m}}]},O=T-I.cursor;O!==0&&p.push({t:s.TextXActionType.RETAIN,len:O}),p.push({t:s.TextXActionType.RETAIN,body:U,len:B-T}),I.reset(),I.moveCursor(B)}const C=te(u,d);return f.params.actions=S.editOp(p.serialize(),C),!!o.syncExecuteCommand(f.id,f.params)}};function Ar(i){return i!==null&&typeof i=="object"}function ts(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 Ar(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===Qe.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 ns(i,t,e){var A,d,u,g,h,m,f,p,S,I,C,b,x,E;const{startOffset:n,endOffset:o,collapsed:a}=t;if(a){const T=(A=i.textRuns)!=null?A:[];let B=null;for(let M=T.length-1;M>=0;M--){const U=T[M];if(U.st<n&&n<=U.ed){B=U;break}}return B!=null&&B.ts?{...e,...B.ts}:e}const{textRuns:r=[]}=s.getBodySlice(i,n,o),c=s.Tools.deepClone(e);c.fs=Math.max(c.fs,...r.map(T=>{var B,M;return(M=(B=T==null?void 0:T.ts)==null?void 0:B.fs)!=null?M:c.fs})),c.ff=(g=(u=(d=r.find(T=>{var B;return((B=T.ts)==null?void 0:B.ff)!=null}))==null?void 0:d.ts)==null?void 0:u.ff)!=null?g:c.ff,c.it=r.length&&r.every(T=>{var B;return((B=T.ts)==null?void 0:B.it)===s.BooleanNumber.TRUE})?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE,c.bl=r.length&&r.every(T=>{var B;return((B=T.ts)==null?void 0:B.bl)===s.BooleanNumber.TRUE})?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE,c.ul=r.length&&r.every(T=>{var B,M;return((M=(B=T.ts)==null?void 0:B.ul)==null?void 0:M.s)===s.BooleanNumber.TRUE})?(h=r[0].ts)==null?void 0:h.ul:c.ul,c.st=r.length&&r.every(T=>{var B,M;return((M=(B=T.ts)==null?void 0:B.st)==null?void 0:M.s)===s.BooleanNumber.TRUE})?(m=r[0].ts)==null?void 0:m.st:c.st,c.bg=(S=(p=(f=r.find(T=>{var B;return((B=T.ts)==null?void 0:B.bg)!=null}))==null?void 0:f.ts)==null?void 0:p.bg)!=null?S:c.bg,c.cl=(b=(C=(I=r.find(T=>{var B;return((B=T.ts)==null?void 0:B.cl)!=null}))==null?void 0:I.ts)==null?void 0:C.cl)!=null?b:c.cl;const l=r.filter(T=>{var B;return((B=T==null?void 0:T.ts)==null?void 0:B.va)!=null});if(l.length>0&&l.length===r.length){const T=(x=l[0].ts)==null?void 0:x.va;let B=!0;for(let M=1;M<l.length;M++)if(((E=l[M].ts)==null?void 0:E.va)!==T){B=!1;break}B&&(c.va=T)}return c}function dr(i,t){const e=gi[t];return ts(i,e,t)}const At={id:"doc.command.list-operation",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,C;const e=i.get(_.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=(C=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:C.paragraphs;if(A==null)return!1;const d=dt(c,A),u=r.getUnitId(),g={id:_.RichTextEditingMutation.id,params:{unitId:u,actions:[],textRanges:c,isEditing:!1}};new s.MemoryCursor().reset();const m=s.BuildTextUtils.paragraph.bullet.switch({paragraphs:d,listType:a,document:r,segmentId:l}),f=s.JSONX.getInstance(),p=te(r,l);return g.params.actions=f.editOp(m.serialize(),p),!!o.syncExecuteCommand(g.id,g.params)}},Rt={id:"doc.command.change-list-type",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,C;const e=i.get(_.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=(C=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:C.paragraphs;if(d==null)return!1;const u=dt(A,d),g=r.getUnitId(),h=s.BuildTextUtils.paragraph.bullet.set({paragraphs:u,listType:a,segmentId:l,document:r});if(!h)return!1;const m=s.JSONX.getInstance(),f={id:_.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return f.params.actions=m.editOp(h.serialize(),p),!!o.syncExecuteCommand(f.id,f.params)}};var Ot=(i=>(i[i.increase=1]="increase",i[i.decrease=-1]="decrease",i))(Ot||{});const on={id:"doc.command.change-list-nesting-level",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,C;if(!t)return!1;const{type:e}=t,n=i.get(_.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=(C=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:C.paragraphs;if(d==null)return!1;const u=rn(c,d),g=r.getUnitId(),h=s.JSONX.getInstance(),m=s.BuildTextUtils.paragraph.bullet.changeNestLevel({paragraphs:u,type:e,segmentId:l,document:r}),f={id:_.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return f.params.actions=h.editOp(m.serialize(),p),!!a.syncExecuteCommand(f.id,f.params)}},xt={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(Rt.id,{listType:t.value}):e.syncExecuteCommand(At.id,{listType:s.PresetListType.BULLET_LIST})}},sn={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(Rt.id,{listType:t.value}):e.syncExecuteCommand(At.id,{listType:s.PresetListType.CHECK_LIST})}},an={id:"doc.command.toggle-check-list",type:s.CommandType.COMMAND,handler:(i,t)=>{var f;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||((f=c.getSelfOrHeaderFooterModel(a).getBody())==null?void 0:f.paragraphs)==null)return!1;const A=c.getUnitId(),d={id:_.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 g=s.JSONX.getInstance(),h=te(c,a);return d.params.actions=g.editOp(u.serialize(),h),!!n.syncExecuteCommand(d.id,d.params)}},Dt={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(Rt.id,{listType:t.value}):e.syncExecuteCommand(At.id,{listType:s.PresetListType.ORDER_LIST})}},fi={id:"doc.command.quick-list",type:s.CommandType.COMMAND,handler(i,t){var Z,ee,W,Y,z;if(!t)return!1;const e=i.get(_.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,g=new s.TextX,h=s.JSONX.getInstance(),{defaultTabStop:m=36}=a.getSnapshot().documentStyle,f=(ee=(Z=a.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:Z.sectionBreaks)!=null?ee:[],{startIndex:p,paragraphStyle:S={}}=A,{indentFirstLine:I,snapToGrid:C,indentStart:b}=S,x=s.PRESET_LIST_TYPE[l].nestingLevel[0].paragraphProperties||{},{hanging:E,indentStart:T}=x,B=x.textStyle,{charSpace:M,gridType:U}=ur(p,f)||{charSpace:0,gridType:s.GridType.LINES},O=D.getCharSpaceApply(M,m,U,C);let w=s.Tools.generateRandomId(6);const F=(Y=(W=a.getBody())==null?void 0:W.paragraphs)!=null?Y:[],k=F.findIndex(K=>K.startIndex===A.startIndex),H=F[k-1],V=F[k+1];H&&H.bullet&&H.bullet.listType.indexOf(l)===0?w=H.bullet.listId:V&&V.bullet&&V.bullet.listType.indexOf(l)===0&&(w=V.bullet.listId);const G={id:_.RichTextEditingMutation.id,params:{unitId:a.getUnitId(),actions:[],textRanges:[{startOffset:d,endOffset:d,collapsed:!0}],isEditing:!1}};g.push({t:s.TextXActionType.RETAIN,len:d}),g.push({t:s.TextXActionType.DELETE,len:u-d}),g.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{startIndex:0,paragraphStyle:{...S,textStyle:{...S.textStyle,...B},indentFirstLine:void 0,hanging:E,indentStart:{v:D.getNumberUnitValue(T,O)-D.getNumberUnitValue(E,O)+D.getNumberUnitValue(I,O)+D.getNumberUnitValue(b,O)}},bullet:{...(z=A.bullet)!=null?z:{nestingLevel:0,textStyle:{fs:20}},listType:l,listId:w}}]}});const X=te(a,c);return G.params.actions=h.editOp(g.serialize(),X),!!o.syncExecuteCommand(G.id,G.params)}};function rn(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 dt(i,t){const e=[];for(const n of i){const o=rn(n,t);e.push(...o)}return e}function ur(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 C;const e=i.get(_.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=(C=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:C.paragraphs;if(A==null)return!1;const d=dt(c,A),u=r.getUnitId(),g=d.every(b=>{var x;return((x=b.paragraphStyle)==null?void 0:x.horizontalAlign)===a}),h={id:_.RichTextEditingMutation.id,params:{unitId:u,actions:[],textRanges:c}},m=new s.MemoryCursor;m.reset();const f=new s.TextX,p=s.JSONX.getInstance();for(const b of d){const{startIndex:x}=b;f.push({t:s.TextXActionType.RETAIN,len:x-m.cursor});const E={...b.paragraphStyle,horizontalAlign:g?s.HorizontalAlign.UNSPECIFIED:a};f.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...b,paragraphStyle:E,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),m.moveCursorTo(x+1)}const S=te(r,l);return h.params.actions=p.editOp(f.serialize(),S),!!o.syncExecuteCommand(h.id,h.params)}},Mt={id:"doc.command.align-left",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.LEFT})},Bt={id:"doc.command.align-center",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.CENTER})},_t={id:"doc.command.align-right",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.RIGHT})},Nt={id:"doc.command.align-justify",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.JUSTIFIED})},hr={id:ze.id,binding:y.KeyCode.B|y.MetaKeys.CTRL_COMMAND,preconditions:ne},gr={id:Ge.id,binding:y.KeyCode.I|y.MetaKeys.CTRL_COMMAND,preconditions:ne},fr={id:Xe.id,binding:y.KeyCode.U|y.MetaKeys.CTRL_COMMAND,preconditions:ne},mr={id:Ye.id,binding:y.KeyCode.X|y.MetaKeys.SHIFT|y.MetaKeys.CTRL_COMMAND,preconditions:ne},pr={id:Qe.id,binding:y.KeyCode.COMMA|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Sr={id:Ke.id,binding:y.KeyCode.PERIOD|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Ir={id:Mt.id,binding:y.KeyCode.L|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Er={id:_t.id,binding:y.KeyCode.R|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},vr={id:Bt.id,binding:y.KeyCode.E|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Cr={id:Nt.id,binding:y.KeyCode.J|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Tr={id:Dt.id,binding:y.KeyCode.Digit7|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},br={id:xt.id,binding:y.KeyCode.Digit8|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},yr={docCountBar:"univer-doc-count-bar"},Rr=(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}},Ce={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}},Or=[50,80,100,130,150,170,200,400],xr=[10,400];function Dr(){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===Ce.id){const d=o();r(d)}}).dispose),[i,o]);function c(l){if(r(l),n==null)return;const A=l/100;i.executeCommand(Ce.id,{unitId:n.getUnitId(),zoomRatio:A})}return P.jsx(se.Slider,{min:xr[0],value:a,shortcuts:Or,onChange:c})}function Mr(i){return P.jsx("section",{className:yr.docCountBar,children:P.jsx(Dr,{})})}const Br={docFooterContainer:"univer-doc-footer-container"},_r=()=>P.jsxs("div",{className:Br.docFooterContainer,children:[P.jsx("div",{}),P.jsx(Mr,{})]}),mi="docs-ui.config",Nr={layout:{docContainerConfig:eo,toolbarConfig:$i}};var cn=(i=>(i[i.ABOVE=0]="ABOVE",i[i.BELLOW=1]="BELLOW",i))(cn||{}),pi=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(pi||{});function Pr(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
97
- ${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 ln(){return{margin:{start:{v:10},end:{v:10},top:{v:5},bottom:{v:5}}}}function An(i){const t=ln();return{tableCells:[...new Array(i).fill(null).map(()=>s.Tools.deepClone(t))],trHeight:{val:{v:30},hRule:s.TableRowHeightRule.AUTO}}}function dn(i){return{size:{type:s.TableSizeType.SPECIFIED,width:{v:i}}}}function Si(i,t,e){const n=dn(e/t),o=An(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 Pt(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 Ur(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
98
- ${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 wr(){const i=`${s.DataStreamTreeTokenType.TABLE_CELL_START}\r
99
- ${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 Lr(i,t,e){var u,g,h;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o;let l=null;const A=(h=(g=(u=e.getBody())==null?void 0:u.tables)==null?void 0:g.find(m=>c>=m.startIndex&&c<=m.endIndex))==null?void 0:h.tableId;let d=0;for(const m of r.children){for(const f of m.children){const{children:p}=f,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 Qr(i,t,e){var h,m,f;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o,l=(f=(m=(h=e.getBody())==null?void 0:h.tables)==null?void 0:m.find(p=>c>=p.startIndex&&c<=p.endIndex))==null?void 0:f.tableId,A=[];let d=null,u=-1;for(const p of r.children){for(const S of p.children){const{children:I}=S,C=I[0];if(C){if(c<C.startIndex||c>C.endIndex)continue;d=C;for(const b of C.children){for(const x of b.children){const E=b.children.indexOf(x);if(c>=x.startIndex&&c<=x.endIndex){u=E;break}}if(u!==-1)break}}if(d)break}if(d)break}if(d==null||l==null||u===-1)return null;let g=0;for(const p of d.children){const S=p.children[u],I=t===0?S.startIndex:S.endIndex+1;A.push(I-g),g=I}return{offsets:A,tableId:l,columnIndex:u,rowCount:d.children.length}}function Fr(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 is(i,t){var g,h,m;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(m=(h=(g=t.getBody())==null?void 0:g.tables)==null?void 0:h.find(f=>e>=f.startIndex&&n<=f.endIndex))==null?void 0:m.tableId,c=[];let l=-1,A=0,d=-1,u=!1;for(const f of a.children){for(const p of f.children){const{children:S}=p,I=S[0];if(I){if(e<I.startIndex||n>I.endIndex)continue;d=I.startIndex+3;for(const C of I.children){const b=I.children.indexOf(C),{startIndex:x,endIndex:E}=C;e>=x&&e<=E?(l=x,c.push(b),A+=E-x+1):(x>e&&E<n||n>=x&&n<=E)&&(c.push(b),A+=E-x+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 Hr(i,t){var m,f,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(f=(m=t.getBody())==null?void 0:m.tables)==null?void 0:f.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null;const A=[];let d=-1,u=-1,g=-1;for(const S of a.children){for(const I of S.children){const{children:C}=I,b=C[0];if(b){if(e<b.startIndex||n>b.endIndex)continue;l=b;for(const x of b.children)for(const E of x.children){const T=x.children.indexOf(E);e>=E.startIndex&&e<=E.endIndex&&(u=T),n>=E.startIndex&&n<=E.endIndex&&(g=T)}}if(l)break}if(l)break}if(l==null||r==null)return null;for(let S=u;S<=g;S++)A.push(S);let h=0;for(const S of l.children){const I=S.children[u],C=S.children[g];c.push({retain:I.startIndex-h,delete:C.endIndex-I.startIndex+1}),h=C.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 os(i,t){var d,u,g;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(g=(u=(d=t.getBody())==null?void 0:d.tables)==null?void 0:u.find(h=>e>=h.startIndex&&n<=h.endIndex))==null?void 0:g.tableId;let c=-1,l=0,A=-1;for(const h of a.children){for(const m of h.children){const{children:f}=m,p=f[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 kr(i,t){var m,f,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(f=(m=t.getBody())==null?void 0:m.tables)==null?void 0:f.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null,A=-1,d=-1,u=-1,g=-1;for(const S of a.children){for(const I of S.children){const{children:C}=I,b=C[0];if(b){if(e<b.startIndex||n>b.endIndex)continue;l=b;for(const x of b.children){const E=b.children.indexOf(x);for(const T of x.children){const B=x.children.indexOf(T);e>=T.startIndex&&e<=T.endIndex&&(d=E,u=B),n>=T.startIndex&&n<=T.endIndex&&(g=B)}}}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<=g;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 Ii=(i=>(i[i.NEXT=0]="NEXT",i[i.PREV=1]="PREV",i))(Ii||{});function ss(i,t,e){const{startOffset:n}=t;let o=null;for(const A of i.children){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 as(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 Vr(i){return i.some(t=>{const{startNodePosition:e}=t;return e?(e==null?void 0:e.path.indexOf("cells"))>-1:!1})}const jr=s.SHEET_EDITOR_UNITS,Ei={id:"doc.command.inner-paste",type:s.CommandType.COMMAND,handler:async(i,t)=>{var M,U,O,L,w,F;const{segmentId:e,textRanges:n,doc:o}=t,a=i.get(s.ICommandService),r=i.get(_.DocSelectionManagerService),c=i.get(s.IUniverInstanceService),l=r.getTextRanges(),A=r.getRectRanges(),{body:d,tableSource:u,drawings:g}=o;if(!Array.isArray(l)||l.length===0||d==null)return!1;const h=c.getCurrentUniverDocInstance(),m=h==null?void 0:h.getSelfOrHeaderFooterModel(e).getBody();if(h==null||m==null)return!1;const f=h.getUnitId(),p={id:_.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:n,segmentId:e}},S=new s.MemoryCursor;S.reset();const I=new s.TextX,C=s.JSONX.getInstance(),b=[],x=!!((M=d.tables)!=null&&M.length),E=!!((U=d.customBlocks)!=null&&U.length);if(x&&e||x&&Vr(l)||l.length&&(A!=null&&A.length))return!1;for(let k=0;k<l.length;k++){const H=l[k],{startOffset:V,endOffset:G,collapsed:X}=H,j=V-S.cursor,Z=s.Tools.deepClone(d);if(x)for(const Y of Z.tables){const{tableId:z}=Y,K=s.Tools.generateRandomId(6);Y.tableId=K;const ie=s.Tools.deepClone(u[z]);ie.tableId=K;const re=C.insertOp(["tableSource",K],ie);b.push(re)}if(E&&g){const Y=(L=(O=h.getSnapshot().drawingsOrder)==null?void 0:O.length)!=null?L:0;for(const z of Z.customBlocks){const{blockId:K}=z,ie=s.Tools.generateRandomId(6);z.blockId=ie;const re=s.Tools.deepClone(g[K]);re.drawingId=ie;const fe=C.insertOp(["drawings",ie],re),ce=C.insertOp(["drawingsOrder",Y],ie);b.push(fe),b.push(ce)}}const ee=Wn((w=m.customRanges)!=null?w:[],G,jr.includes(f)),W=zn((F=m.customDecorations)!=null?F:[],G);if(ee&&(Z.customRanges=[{...ee,startIndex:0,endIndex:d.dataStream.length-1}]),W.length&&(Z.customDecorations=W.map(Y=>({...Y,startIndex:0,endIndex:d.dataStream.length-1}))),X)I.push({t:s.TextXActionType.RETAIN,len:j}),I.push({t:s.TextXActionType.INSERT,body:Z,len:d.dataStream.length});else{const Y=s.BuildTextUtils.selection.delete([H],d,S.cursor,Z,l.length===1);I.push(...Y)}S.reset(),S.moveCursor(G)}const T=te(h,e);return b.push(C.editOp(I.serialize(),T)),p.params.actions=b.reduce((k,H)=>s.JSONX.compose(k,H),null),!!a.syncExecuteCommand(p.id,p.params)}};function Wr(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 zr(i,t,e){var m,f;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=Wr(i[p],c),{startOffset:I,endOffset:C,collapsed:b}=S,x=I-l.cursor;b?o.push({t:s.TextXActionType.RETAIN,len:x}):o.push(...s.BuildTextUtils.selection.delete([S],n,l.cursor,null,!1)),l.reset(),l.moveCursor(C)}const A=te(t,e);r.push(a.editOp(o.serialize(),A));const d=as(n,i),u=(m=t.getDrawings())!=null?m:{},g=(f=t.getDrawingsOrder())!=null?f:[],h=d.sort((p,S)=>g.indexOf(p)>g.indexOf(S)?-1:g.indexOf(p)<g.indexOf(S)?1:0);if(h.length>0)for(const p of h){const S=u[p],I=g.indexOf(p);if(S==null||I<0)continue;const C=a.removeOp(["drawings",p],S),b=a.removeOp(["drawingsOrder",I],p);r.push(C),r.push(b)}return r.reduce((p,S)=>s.JSONX.compose(p,S),null)}function Gr(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:g,spanEntireRow:h,spanEntireTable:m}=d;if(!(u==null||g==null))if(m){const f=os({startOffset:u,endOffset:g,segmentId:n},e);if(f==null)continue;const{offset:p,len:S,tableId:I}=f;p-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:p-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:S});const C=c.removeOp(["tableSource",I]);o.push(C),l.moveCursorTo(p+S)}else if(h){const f=is({startOffset:u,endOffset:g,segmentId:n},e);if(f==null)continue;const{offset:p,rowIndexes:S,len:I,tableId:C}=f;p-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:p-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:I});for(const b of S.reverse()){const x=c.removeOp(["tableSource",C,"tableRows",b]);o.push(x)}l.moveCursorTo(p+I)}else{const f=kr({startOffset:u,endOffset:g,segmentId:n},e);if(f==null)continue;const{offsets:p}=f;for(const S of p){const{retain:I,delete:C}=S;I-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:I-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:C}),l.moveCursorTo(I+C)}}}const A=te(t,n);return o.push(c.editOp(r.serialize(),A)),o.reduce((d,u)=>s.JSONX.compose(d,u),null)}function rs(i,t,e,n,o){let a=[];if(Array.isArray(i)&&(i==null?void 0:i.length)!==0&&(a=zr(i,e,o)),Array.isArray(t)&&(t==null?void 0:t.length)!==0){const r=Gr(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 et={id:"doc.command.inner-cut",type:s.CommandType.COMMAND,handler:async(i,t)=>{var f,p;const{segmentId:e,textRanges:n}=t,o=i.get(s.ICommandService),a=i.get(_.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=(f=t.selections)!=null?f: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 g=u.getViewModel(),h={id:_.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:n}};return h.params.actions=rs(c,l,d,g,e),!!o.syncExecuteCommand(h.id,h.params)}};var de=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(de||{});const cs="doc.command.insert-text",un={id:cs,type:s.CommandType.COMMAND,handler:async(i,t)=>{var E;const e=i.get(s.ICommandService),{range:n,segmentId:o,body:a,unitId:r,cursorOffset:c}=t,l=i.get(_.DocSelectionManagerService),d=i.get(s.IUniverInstanceService).getUnit(r,s.UniverInstanceType.UNIVER_DOC);if(d==null)return!1;const u=l.getActiveTextRange(),g=d.getSelfOrHeaderFooterModel((E=u==null?void 0:u.segmentId)!=null?E:"").getBody();if(g==null)return!1;const{startOffset:h,collapsed:m}=n,f=c!=null?c:a.dataStream.length,p=[{startOffset:h+f,endOffset:h+f,style:u==null?void 0:u.style,collapsed:m}],S={id:_.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:p,debounce:!0}},I=new s.TextX,C=s.JSONX.getInstance();if(m)h>0&&I.push({t:s.TextXActionType.RETAIN,len:h}),I.push({t:s.TextXActionType.INSERT,body:a,len:a.dataStream.length});else{const T=s.BuildTextUtils.selection.delete([n],g,0,a);I.push(...T)}S.params.textRanges=[{startOffset:h+f,endOffset:h+f,collapsed:m}];const b=te(d,o);return S.params.actions=C.editOp(I.serialize(),b),!!e.syncExecuteCommand(S.id,S.params)}},ut={id:"doc.command.delete-text",type:s.CommandType.COMMAND,handler:async(i,t)=>{var x;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 g=c===de.LEFT?u-l:u,h=c===de.LEFT?u-1:u+l-1;const m=(x=d.customRanges)==null?void 0:x.find(E=>E.startIndex<=g&&E.endIndex>=h);m!=null&&m.wholeEntity&&(g=m.startIndex,h=Math.max(h,m.endIndex));const f={id:_.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:[{startOffset:g,endOffset:g,collapsed:!0}],debounce:!0}},p=new s.TextX,S=s.JSONX.getInstance();p.push({t:s.TextXActionType.RETAIN,len:g-0}),p.push({t:s.TextXActionType.DELETE,len:h-g+1});const C=te(A,a);return f.params.actions=S.editOp(p.serialize(),C),!!e.syncExecuteCommand(f.id,f.params)}},vi={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:_.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:c}},g=new s.TextX,h=s.JSONX.getInstance(),{startOffset:m,endOffset:f}=e;g.push({t:s.TextXActionType.RETAIN,len:m}),g.push({t:s.TextXActionType.RETAIN,body:o,len:f-m,coverType:a});const p=te(d,n);return u.params.actions=h.editOp(g.serialize(),p),!!l.syncExecuteCommand(u.id,u.params)}},hn={id:"doc.command.delete-custom-block",type:s.CommandType.COMMAND,handler:async(i,t)=>{var O;const e=i.get(_.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:g,style:h}=a,m=c===de.LEFT?u-1:u,f=[{startOffset:m,endOffset:m,style:h}],p={id:_.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:f,prevTextRanges:[l]}},S=new s.TextX,I=s.JSONX.getInstance(),C=[];u>0&&S.push({t:s.TextXActionType.RETAIN,len:c===de.LEFT?u-1:u}),S.push({t:s.TextXActionType.DELETE,len:1});const b=te(r,g);C.push(I.editOp(S.serialize(),b));const x=((O=r.getDrawings())!=null?O:{})[d],T=r.getDrawingsOrder().indexOf(d),B=I.removeOp(["drawings",d],x),M=I.removeOp(["drawingsOrder",T],d);return C.push(B),C.push(M),p.params.actions=C.reduce((L,w)=>s.JSONX.compose(L,w),null),!!o.syncExecuteCommand(p.id,p.params)}},gn={id:"doc.command.merge-two-paragraph",type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(_.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),g=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||g==null)return!1;const h=c,m=u.getUnitId(),{startOffset:f,collapsed:p}=h;if(!p)return!1;const S=a===de.LEFT?f:f+1;let I,C;for(const O of g.paragraphs){if(O.startIndex>=S){C=O;break}I=O}if(I==null||C==null)return!1;const b=a===de.LEFT?f-1:f,x=[{startOffset:b,endOffset:b,style:d}],E={id:_.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:x,prevTextRanges:[r]}},T=new s.TextX,B=s.JSONX.getInstance();I.startIndex>0&&T.push({t:s.TextXActionType.RETAIN,len:I.startIndex}),T.push({t:s.TextXActionType.DELETE,len:1}),C.startIndex>I.startIndex+1&&T.push({t:s.TextXActionType.RETAIN,len:C.startIndex-I.startIndex-1}),T.push({t:s.TextXActionType.RETAIN,len:1,coverType:s.UpdateDocsAttributeType.REPLACE,body:{dataStream:"",paragraphs:[{...s.Tools.deepClone(I),startIndex:0}]}});const M=te(u,A);return E.params.actions=B.editOp(T.serialize(),M),!!o.syncExecuteCommand(E.id,E.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 Ut={id:"doc.command.delete-left",type:s.CommandType.COMMAND,handler:async i=>{var M,U;const t=i.get(_.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 O=fn(d,A),L=A[0].segmentId,w=[{startOffset:O,endOffset:O}];return n.executeCommand(et.id,{segmentId:L,textRanges:w})}if(l==null||d==null)return!1;const{segmentId:g,style:h,segmentPage:m}=l,f=a.getSelfOrHeaderFooterModel(g).getBody();if(f==null)return!1;const p=l,{startOffset:S,collapsed:I}=p,C=u.findNodeByCharIndex(S,g,m),b=D.hasListGlyph(C),x=D.isIndentByGlyph(C,f);let E=S;const T=u.findNodeByCharIndex(S-1,g,m);if(D.isFirstGlyph(C)&&T!==C&&(b===!0||x===!0)&&I){const O=D.getParagraphByGlyph(C,f);if(O==null)return!1;const L=O==null?void 0:O.startIndex,w={startIndex:0},F=O.paragraphStyle;if(b===!0){const H=O.paragraphStyle;if(H){w.paragraphStyle=H;const{hanging:V}=H;V&&(w.paragraphStyle.indentStart=V,w.paragraphStyle.hanging=void 0)}}else if(x===!0){const H=O.bullet;H&&(w.bullet=H),F!=null&&(w.paragraphStyle={...F},delete w.paragraphStyle.hanging,delete w.paragraphStyle.indentStart)}const k=[{startOffset:E,endOffset:E,style:h}];o=await n.executeCommand(vi.id,{unitId:a.getUnitId(),updateBody:{dataStream:"",paragraphs:[{...w}]},range:{startOffset:L,endOffset:L+1},textRanges:k,coverType:s.UpdateDocsAttributeType.REPLACE,segmentId:g})}else if(I===!0){if(T==null)return!0;if(T.content==="\r")o=await n.executeCommand(gn.id,{direction:de.LEFT,range:p});else if(T.streamType==="\b"){const O=(U=a.getSnapshot().drawings)==null?void 0:U[(M=T.drawingId)!=null?M:""];if(O==null)return!0;if(O.layoutType===s.PositionedObjectLayoutType.INLINE){const w=a.getUnitId();o=await n.executeCommand(hn.id,{direction:de.LEFT,range:l,unitId:w,drawingId:T.drawingId})}else{const w=u.findNodeByCharIndex(S-2);if(w==null)return!0;E-=T.count,E-=w.count;const F=[{startOffset:E,endOffset:E,style:h}];o=await n.executeCommand(ut.id,{unitId:a.getUnitId(),range:{...l,startOffset:l.startOffset-1,endOffset:l.endOffset-1},segmentId:g,direction:de.LEFT,len:w.count,textRanges:F})}}else E-=T.count,o=await n.executeCommand(ut.id,{unitId:a.getUnitId(),range:p,segmentId:g,direction:de.LEFT,len:T.count})}else{const O=ls(p,[p]);o=await n.executeCommand(et.id,{segmentId:g,textRanges:O,selections:[p]})}return o}},Ci={id:"doc.command.delete-right",type:s.CommandType.COMMAND,handler:async i=>{var C,b;const t=i.get(_.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 x=fn(l,c),E=c[0].segmentId,T=[{startOffset:x,endOffset:x}];return a.executeCommand(et.id,{segmentId:E,textRanges:T})}if(r==null||A==null||l==null)return!1;const{segmentId:d,style:u,segmentPage:g}=r,h=n==null?void 0:n.getSelfOrHeaderFooterModel(d).getBody();if(!n||!h)return!1;const m=r,{startOffset:f,endOffset:p,collapsed:S}=m;if(f===h.dataStream.length-2&&S)return!0;let I=!1;if(S===!0){const x=A.findNodeByCharIndex(f,d,g),E=A.findNodeByCharIndex(f+1);if(x.streamType===s.DataStreamTreeTokenType.PARAGRAPH&&(E==null?void 0:E.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK)return!1;if(x.content==="\r")I=await a.executeCommand(gn.id,{direction:de.RIGHT,range:r});else if(x.streamType==="\b"){const T=(b=n.getSnapshot().drawings)==null?void 0:b[(C=x.drawingId)!=null?C:""];if(T==null)return!0;if(T.layoutType===s.PositionedObjectLayoutType.INLINE){const M=n.getUnitId();I=await a.executeCommand(hn.id,{direction:de.RIGHT,range:r,unitId:M,drawingId:x.drawingId})}else{if(E==null)return!0;const M=[{startOffset:f+1,endOffset:f+1,style:u}];I=await a.executeCommand(ut.id,{unitId:n.getUnitId(),range:{...r,startOffset:f+1,endOffset:p+1},segmentId:d,direction:de.RIGHT,textRanges:M,len:E.count})}}else{const T=[{startOffset:f,endOffset:f,style:u}];I=await a.executeCommand(ut.id,{unitId:n.getUnitId(),range:m,segmentId:d,direction:de.RIGHT,textRanges:T,len:x.count})}}else{const x=ls(m,[m]);I=await a.executeCommand(et.id,{segmentId:d,textRanges:x,selections:[m]})}return I}};function ls(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 Xr=10,Yr=6;function Kr(){return s.Tools.generateRandomId(Yr)}function Jr(i){const t=i.match(/data-copy-id="([^\s]+)"/);return t&&t[1]?t[1]:null}class Zr{constructor(){R(this,"_cache",new s.LRUMap(Xr))}set(t,e){this._cache.set(t,e)}get(t){return this._cache.get(t)}clear(){this._cache.clear()}}const As=new Zr;function Ti(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=D.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 qr(i){const t=new DOMParser,e=`<x-univer id="univer-root">${i}</x-univer>`;return t.parseFromString(e,"text/html").querySelector("#univer-root")}function ds(i,t){const e=i.tagName.toLowerCase();return typeof t=="string"?e===t:Array.isArray(t)?t.some(n=>n===e):t(i)}const us=600,kn=class kn{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){const e=kn._pluginList.find(r=>r.checkPasteType(t)),n=qr(t),a={body:{dataStream:"",paragraphs:[],sectionBreaks:[],tables:[],textRuns:[]},tableSource:{}};return e&&(this._styleRules=[...e.stylesRules],this._afterProcessRules=[...e.afterProcessRules]),this._tableCache=[],this._styleCache.clear(),this._process(null,n.childNodes,a),this._styleCache.clear(),this._styleRules=[],this._afterProcessRules=[],a}_process(t,e,n){var a,r;const o=n.body;for(const c of e)if(c.nodeType===Node.TEXT_NODE){if(((a=c.nodeValue)==null?void 0:a.trim())==="")continue;const l=(r=c.nodeValue)==null?void 0:r.replace(/[\r\n]/g,"");let A;t&&this._styleCache.has(t)&&(A=this._styleCache.get(t)),o.dataStream+=l,A&&Object.getOwnPropertyNames(A).length&&o.textRuns.push({st:o.dataStream.length-l.length,ed:o.dataStream.length,ts:A})}else{if(s.skipParseTagNames.includes(c.nodeName.toLowerCase()))continue;if(c.nodeType===Node.ELEMENT_NODE){const l=c,A=this._processBeforeLink(l,n),d=t?this._styleCache.get(t):{},u=this._styleRules.find(({filter:f})=>ds(c,f)),g=u?u.getStyle(c):Ti(c);this._styleCache.set(c,{...d,...g});const{childNodes:h}=c;this._processBeforeTable(c,n),this._process(c,h,n),this._processAfterTable(c,n);const m=this._afterProcessRules.find(({filter:f})=>ds(c,f));m&&m.handler(n,c),this._processAfterLink(l,n,A)}}}_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=Si(0,0,us);this._tableCache.push({table:r,startIndex:o.dataStream.length}),o.dataStream+=s.DataStreamTreeTokenType.TABLE_START;break}case"TR":{const r=An(0);this._tableCache[this._tableCache.length-1].table.tableRows.push(r),o.dataStream+=s.DataStreamTreeTokenType.TABLE_ROW_START;break}case"TD":{const r=ln(),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,g=dn(us/u),h=[...new Array(u).fill(null).map(()=>s.Tools.deepClone(g))];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+=`
100
- ${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(kn,"_pluginList",[]);let ht=kn;const hs={name:"univer-doc-paste-plugin-lark",checkPasteType(i){return/lark-record-clipboard/i.test(i)},stylesRules:[{filter:["s"],getStyle(i){const t=Ti(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 gs(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)?D.ptToPixel(r):r};break}case"margin-bottom":{const r=Number.parseInt(a);e.spaceBelow={v:/pt/.test(a)?D.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 fs={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=gs(t);o&&(n.paragraphStyle=o),e.paragraphs.push(n),e.dataStream+="\r"}}]},ms={name:"univer-doc-paste-plugin-word",checkPasteType(i){return/word|mso/i.test(i)},stylesRules:[{filter:["b"],getStyle(i){const t=Ti(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=gs(t);o&&(n.paragraphStyle=o),e.paragraphs.push(n),e.dataStream+="\r"}}]};function ps(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:g,cl:h,va:m}=o;let f=i.slice(e,n);const p=[];return c===s.BooleanNumber.TRUE&&(f=`<i>${f}</i>`),m===s.BaselineOffset.SUPERSCRIPT?f=`<sup>${f}</sup>`:m===s.BaselineOffset.SUBSCRIPT&&(f=`<sub>${f}</sub>`),(A==null?void 0:A.s)===s.BooleanNumber.TRUE&&(f=`<u>${f}</u>`),(d==null?void 0:d.s)===s.BooleanNumber.TRUE&&(f=`<s>${f}</s>`),l===s.BooleanNumber.TRUE&&(f=`<strong>${f}</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"),g&&p.push(`background: ${g.rgb}`),p.length?`<span style="${p.join("; ")};">${f}</span>`:f}function bi(i,t,e){const{dataStream:n,textRuns:o=[]}=i;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(ps(n,{...c,ed:Math.min(A,e)}))):r.push(ps(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 $r(i,t,e){const{customRanges:n=[]}=i,o=n.filter(l=>l.startIndex>=t&&l.endIndex<=e);let a=t,r="";o.forEach(l=>{var f,p;const{startIndex:A,endIndex:d,rangeType:u,rangeId:g}=l,h=bi(i,a,A);r+=h;const m=bi(i,A,d+1);switch(u){case s.CustomRangeType.HYPERLINK:{r+=`<a data-rangeid="${g}" href="${(p=(f=l.properties)==null?void 0:f.url)!=null?p:""}">${m}</a>`;break}default:{r+=m;break}}a=d+1});const c=bi(i,a,e);return r+=c,r}function ec(i){const{paragraphs:t=[],sectionBreaks:e=[]}=i;let{dataStream:n}=i;n.endsWith(`\r
101
- `)||(n+=`\r
102
- `,t.push({startIndex:n.length-2}),e.push({startIndex:n.length-1}),i.dataStream=n,i.paragraphs=t,i.sectionBreaks=e);const o={html:""},a=D.parseDataStreamToTree(n);for(const r of a)gt(r,i,o);return o.html}function gt(i,t,e){var n;switch(i.nodeType){case s.DataStreamTreeNodeType.SECTION_BREAK:{for(const o of i.children)gt(o,t,e);break}case s.DataStreamTreeNodeType.PARAGRAPH:{const{children:o,startIndex:a,endIndex:r}=i,c=(n=t.paragraphs.find(h=>h.startIndex===r))!=null?n:{},{paragraphStyle:l={}}=c,{spaceAbove:A,spaceBelow:d,lineSpacing:u}=l,g=[];if(A!=null&&(typeof A=="number"?g.push(`margin-top: ${A}px`):g.push(`margin-top: ${A.v}px`)),d!=null&&(typeof d=="number"?g.push(`margin-bottom: ${d}px`):g.push(`margin-bottom: ${d.v}px`)),u!=null&&g.push(`line-height: ${u}`),e.html+=`<p class="UniverNormal" ${g.length?`style="${g.join("; ")};"`:""}>`,o.length)for(const h of o)gt(h,t,e);e.html+=`${$r(t,a,r)}</p>`;break}case s.DataStreamTreeNodeType.TABLE:{const{children:o}=i;e.html+='<table class="UniverTable" style="width: 100%; border-collapse: collapse;"><tbody>';for(const a of o)gt(a,t,e);e.html+="</tbody></table>";break}case s.DataStreamTreeNodeType.TABLE_ROW:{const{children:o}=i;e.html+='<tr class="UniverTableRow">';for(const a of o)gt(a,t,e);e.html+="</tr>";break}case s.DataStreamTreeNodeType.TABLE_CELL:{const{children:o}=i;e.html+='<td class="UniverTableCell">';for(const a of o)gt(a,t,e);e.html+="</td>";break}default:throw new Error(`Unknown node type: ${i.nodeType}`)}}class tc{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+=ec(n);return e}}var nc=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,oc=(i,t,e,n)=>{for(var o=n>1?void 0:n?ic(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&&nc(t,e,o),o},wt=(i,t)=>(e,n)=>t(e,n,i);ht.use(ms),ht.use(hs),ht.use(fs);function Ss(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 ft=s.createIdentifier("doc.clipboard-service");let yi=class extends s.Disposable{constructor(t,e,n,o,a){super();R(this,"_clipboardHooks",[]);R(this,"_htmlToUDM",new ht);R(this,"_umdToHtml",new tc);this._univerInstanceService=t,this._logService=e,this._commandService=n,this._clipboardInterfaceService=o,this._docSelectionManagerService=a}async copy(t=s.SliceBodyType.copy){var a;const{bodyList: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,o,!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,e){var o;const n=this._genDocDataFromHtmlAndText(t,e);if(((o=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC))==null?void 0:o.getUnitId())===s.DOCS_NORMAL_EDITOR_UNIT_ID_KEY)if(e){const a=s.BuildTextUtils.transform.fromPlainText(e);return this._paste({body:a})}else n.body.textRuns=[];return this._paste(n)}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:g,endOffset:h}=u;g==null||h==null||h<=e&&(A-=h-g)}}const d=[{startOffset:A,endOffset:A,style:n}];return this._commandService.executeCommand(et.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(g=>{g.onBeforePaste&&(n=g.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 g=c;for(const m of A){const{startOffset:f,endOffset:p}=m;f==null||p==null||p<=c&&(g+=n.dataStream.length-(p-f))}const h=[{startOffset:g,endOffset:g,style:l}];return this._commandService.executeCommand(Ei.id,{doc:{...t,body:n},segmentId:r,textRanges:h})}catch{return this._logService.error("[DocClipboardController]","clipboard is empty."),!1}}async _setClipboardData(t,e,n=!0){var c,l;const o=Kr(),a=(t.length>1?t.map(A=>A.dataStream).join(`
103
- `):t[0].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
104
- `," ");let r=this._umdToHtml.convert(t);if(t.length===1&&n){r=r.replace(/(<[a-z]+)/,(u,g)=>`${g} data-copy-id="${o}"`);const A=t[0],d={body:A};if((c=A.customBlocks)!=null&&c.length){d.drawings={};for(const u of A.customBlocks){const{blockId:g}=u,h=(l=e.drawings)==null?void 0:l[g];if(h){const m=s.Tools.generateRandomId(6);u.blockId=m,d.drawings[m]={...s.Tools.deepClone(h),drawingId:m}}}}As.set(o,d)}return this._clipboardInterfaceService.write(a,r)}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:g,collapsed:h,rangeType:m}=d;if(h||u==null||g==null)continue;if(m===s.DOC_RANGE_TYPE.RECT){a=!1;const{spanEntireRow:S}=d;let I;I=Ss(c,u,g),o.push(I);continue}const f={startOffset:u,endOffset:g,collapsed:h},p=e.getSelfOrHeaderFooterModel(r).sliceBody(f.startOffset,f.endOffset,t);p!=null&&o.push(p)}return{bodyList:o,needCache:a,snapshot:l}}}async _genDocDataFromClipboardItems(t){try{let e="",n="";for(const o of t)for(const a of o.types)a===y.PLAIN_TEXT_CLIPBOARD_MIME_TYPE?n=await o.getType(a).then(r=>r&&r.text()):a===y.HTML_CLIPBOARD_MIME_TYPE&&(e=await o.getType(a).then(r=>r&&r.text()));return this._genDocDataFromHtmlAndText(e,n)}catch(e){return Promise.reject(e)}}_genDocDataFromHtmlAndText(t,e){if(!t){if(e)return{body:s.BuildTextUtils.transform.fromPlainText(e)};throw new Error("[DocClipboardService] html and text cannot be both empty!")}const n=Jr(t);if(n){const a=As.get(n);if(a)return a}return this._htmlToUDM.convert(t)}};yi=oc([wt(0,s.IUniverInstanceService),wt(1,s.ILogService),wt(2,s.ICommandService),wt(3,y.IClipboardInterfaceService),wt(4,s.Inject(_.DocSelectionManagerService))],yi);function mn(i){return i.getContextValue(s.FOCUSING_DOC)||i.getContextValue(s.EDITOR_ACTIVATED)}const Ri=999,Lt={id:y.CopyCommand.id,name:"doc.command.copy",type:s.CommandType.COMMAND,multi:!0,priority:Ri,preconditions:mn,handler:async i=>i.get(ft).copy()},pn={id:y.CutCommand.id,name:"doc.command.cut",type:s.CommandType.COMMAND,multi:!0,priority:Ri,preconditions:mn,handler:async i=>i.get(ft).cut()},Sn={id:y.PasteCommand.id,name:"doc.command.paste",type:s.CommandType.COMMAND,multi:!0,priority:Ri,preconditions:mn,handler:async i=>{const t=i.get(ft),n=await i.get(y.IClipboardInterfaceService).read();return n.length===0?!1:t.paste(n)}},In={id:"doc.command.switch-mode",type:s.CommandType.COMMAND,handler:async i=>{var I,C,b,x,E;const t=i.get(s.ICommandService),e=i.get(D.IRenderManagerService),n=i.get(_.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(_.DocSkeletonManagerService).getSkeleton(),l=(C=e.getRenderById(r))==null?void 0:C.with(v.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,g=n.getDocRanges(),h={id:_.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:u===s.DocumentFlavor.TRADITIONAL&&A?[]:g}},m=s.JSONX.getInstance(),f=[];let p;if(u===void 0?p=m.insertOp(["documentStyle","documentFlavor"],s.DocumentFlavor.MODERN):u===s.DocumentFlavor.MODERN?p=m.replaceOp(["documentStyle","documentFlavor"],u,s.DocumentFlavor.TRADITIONAL):p=m.replaceOp(["documentStyle","documentFlavor"],u,s.DocumentFlavor.MODERN),p)f.push(p);else return!1;if(u!==s.DocumentFlavor.MODERN){const T=a.getSnapshot(),{drawings:B={},body:M}=T,U=(b=M==null?void 0:M.customBlocks)!=null?b:[];for(const O in B){const L=B[O],w=U.find(K=>K.blockId===O);if(w==null)continue;const F=L.docTransform.positionV,{relativeFrom:k,posOffset:H}=F;if(k===s.ObjectRelativeFromV.PARAGRAPH)continue;const{startIndex:V}=w,G=c.findNodeByCharIndex(V,A,d),X=(x=G==null?void 0:G.parent)==null?void 0:x.parent,j=X==null?void 0:X.parent,Z=j==null?void 0:j.lines.find(K=>K.paragraphIndex===(X==null?void 0:X.paragraphIndex)&&K.paragraphStart),ee=(E=j==null?void 0:j.parent)==null?void 0:E.parent;if(G==null||X==null||Z==null||j==null||ee==null)continue;let W=0;k===s.ObjectRelativeFromV.LINE?W-=X.top:k===s.ObjectRelativeFromV.PAGE&&(W+=ee.marginTop),W+=Z.top;const Y={...F,relativeFrom:s.ObjectRelativeFromV.PARAGRAPH,posOffset:(H!=null?H:0)-W},z=m.replaceOp(["drawings",O,"docTransform","positionV"],F,Y);z&&f.push(z)}}return h.params.actions=f.reduce((T,B)=>s.JSONX.compose(T,B),null),!!t.syncExecuteCommand(h.id,h.params)}},En={id:"doc.table.delete-rows",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(_.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Pt(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(),g=l==null?void 0:l.getUnitId(),h=new s.TextX,m=s.JSONX.getInstance(),f=is(r,u);if(f==null)return!1;const{offset:p,rowIndexes:S,len:I,tableId:C,cursor:b,selectWholeTable:x}=f;if(x)return n.executeCommand(mt.id);const E=[],T=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:_.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:T}};p>0&&h.push({t:s.TextXActionType.RETAIN,len:p}),h.push({t:s.TextXActionType.DELETE,len:I});const M=te(l,c);E.push(m.editOp(h.serialize(),M));for(const O of S.reverse()){const L=m.removeOp(["tableSource",C,"tableRows",O]);E.push(L)}return B.params.actions=E.reduce((O,L)=>s.JSONX.compose(O,L),null),!!n.syncExecuteCommand(B.id,B.params)}},vn={id:"doc.table.delete-columns",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(_.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Pt(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(),g=l==null?void 0:l.getUnitId(),h=new s.TextX,m=s.JSONX.getInstance(),f=Hr(r,u);if(f==null)return!1;const{offsets:p,columnIndexes:S,tableId:I,cursor:C,rowCount:b,selectWholeTable:x}=f;if(x)return n.executeCommand(mt.id);const E=[],T=[{startOffset:C,endOffset:C,collapsed:!0}],B={id:_.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:T}};for(const O of p){const{retain:L,delete:w}=O;L>0&&h.push({t:s.TextXActionType.RETAIN,len:L}),h.push({t:s.TextXActionType.DELETE,len:w})}const M=te(l,c);E.push(m.editOp(h.serialize(),M)),S.reverse();for(let O=0;O<b;O++)for(const L of S){const w=m.removeOp(["tableSource",I,"tableRows",O,"tableCells",L]);E.push(w)}for(const O of S){const L=m.removeOp(["tableSource",I,"tableColumns",O]);E.push(L)}return B.params.actions=E.reduce((O,L)=>s.JSONX.compose(O,L),null),!!n.syncExecuteCommand(B.id,B.params)}},mt={id:"doc.table.delete-table",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(_.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=t.getRectRanges(),a=t.getActiveTextRange(),r=Pt(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(),g=l==null?void 0:l.getUnitId(),h=new s.TextX,m=s.JSONX.getInstance(),f=os(r,u);if(f==null)return!1;const{offset:p,len:S,tableId:I,cursor:C}=f,b=[],x=[{startOffset:C,endOffset:C,collapsed:!0}],E={id:_.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:x}};p>0&&h.push({t:s.TextXActionType.RETAIN,len:p}),h.push({t:s.TextXActionType.DELETE,len:S});const T=te(l,c);b.push(m.editOp(h.serialize(),T));const B=m.removeOp(["tableSource",I]);return b.push(B),E.params.actions=b.reduce((U,O)=>s.JSONX.compose(U,O),null),!!n.syncExecuteCommand(E.id,E.params)}},Oi="doc.command.table-insert-row",xi="doc.command.table-insert-column",sc="doc.command.table-insert-row-above",ac="doc.command.table-insert-row-bellow",rc="doc.command.table-insert-column-left",cc="doc.command.table-insert-column-right",Cn={id:sc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Oi,{position:cn.ABOVE})},Tn={id:ac,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Oi,{position:cn.BELLOW})},bn={id:rc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(xi,{position:pi.LEFT})},yn={id:cc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(xi,{position:pi.RIGHT})},Di={id:Oi,type:s.CommandType.COMMAND,handler:async(i,t)=>{const{position:e}=t,n=i.get(_.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=n.getRectRanges(),c=n.getActiveTextRange(),l=Pt(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 g=me(i,d.getUnitId());if(g==null)return!1;const h=g.getViewModel(),m=d==null?void 0:d.getUnitId(),f=new s.TextX,p=s.JSONX.getInstance(),S=Lr(l,e,h);if(S==null)return!1;const{offset:I,colCount:C,tableId:b,insertRowIndex:x}=S,E=[],T=I+2,B=[{startOffset:T,endOffset:T,collapsed:!0}],M={id:_.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:B}};I>0&&f.push({t:s.TextXActionType.RETAIN,len:I});const U=Ur(C);f.push({t:s.TextXActionType.INSERT,body:U,len:U.dataStream.length});const O=te(d,A);E.push(p.editOp(f.serialize(),O));const L=An(C),w=p.insertOp(["tableSource",b,"tableRows",x],L);return E.push(w),M.params.actions=E.reduce((k,H)=>s.JSONX.compose(k,H),null),!!a.syncExecuteCommand(M.id,M.params)}},Is={id:xi,type:s.CommandType.COMMAND,handler:async(i,t)=>{var ee,W,Y;const{position:e}=t,n=i.get(_.DocSelectionManagerService),o=i.get(s.IUniverInstanceService),a=i.get(s.ICommandService),r=n.getRectRanges(),c=n.getActiveTextRange(),l=Pt(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 g=me(i,d.getUnitId());if(g==null)return!1;const h=g.getViewModel(),m=d==null?void 0:d.getUnitId(),f=new s.TextX,p=s.JSONX.getInstance(),S=Qr(l,e,h);if(S==null)return!1;const{offsets:I,columnIndex:C,tableId:b,rowCount:x}=S,E=[],T=I[0]+1,B=[{startOffset:T,endOffset:T,collapsed:!0}],M={id:_.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:B}};for(const z of I){f.push({t:s.TextXActionType.RETAIN,len:z});const K=wr();f.push({t:s.TextXActionType.INSERT,body:K,len:K.dataStream.length})}const U=te(d,A);E.push(p.editOp(f.serialize(),U));for(let z=0;z<x;z++){const K=ln(),ie=p.insertOp(["tableSource",b,"tableRows",z,"tableCells",C],K);E.push(ie)}const O=d.getSnapshot(),L=O.documentStyle,{marginLeft:w=0,marginRight:F=0}=L,k=((W=(ee=L.pageSize)==null?void 0:ee.width)!=null?W:800)-w-F,H=(Y=O==null?void 0:O.tableSource)==null?void 0:Y[b].tableColumns,{newColWidth:V,widths:G}=Fr(k,H,C);for(let z=0;z<G.length;z++){const K=p.replaceOp(["tableSource",b,"tableColumns",z,"size","width","v"],H[z].size.width.v,G[z]);E.push(K)}const X=dn(V),j=p.insertOp(["tableSource",b,"tableColumns",C],X);return E.push(j),M.params.actions=E.reduce((z,K)=>s.JSONX.compose(z,K),null),!!a.syncExecuteCommand(M.id,M.params)}},Es="COMPONENT_DOC_CREATE_TABLE_CONFIRM";function Mi(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 Bi={id:"doc.command.break-line",type:s.CommandType.COMMAND,handler:async i=>{var E,T,B;const t=i.get(_.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=i.get(Be),a=t.getActiveTextRange(),r=t.getRectRanges();if(a==null)return!1;if(r&&r.length){const{startOffset:M}=a;return t.replaceDocRanges([{startOffset:M,endOffset:M}]),!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:g}=a,m=((E=A.paragraphs)!=null?E:[]).find(M=>M.startIndex>=u);if(!m)return!1;const f=m.startIndex,p=o.getDefaultStyle(),S=o.getStyleCache(),I=zt((T=A.textRuns)!=null?T:[],g,p,S),C={dataStream:s.DataStreamTreeTokenType.PARAGRAPH,paragraphs:Mi(s.DataStreamTreeTokenType.PARAGRAPH,m),textRuns:[{st:0,ed:1,ts:{...I.ts}}]},b={startOffset:u,endOffset:g,collapsed:u===g},x=await n.executeCommand(un.id,{unitId:d,body:C,range:b,segmentId:c});if(((B=m.bullet)==null?void 0:B.listType)===s.PresetListType.CHECK_LIST_CHECKED){const M={index:f+1-(g-u),segmentId:c,textRanges:[{startOffset:u+1,endOffset:u+1}]};return!!await n.executeCommand(an.id,M)&&x}return x}},_i={id:"doc.command.create-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{var Y,z,K,ie,re,fe;const{rowCount:e,colCount:n}=t,o=i.get(_.DocSelectionManagerService),a=i.get(s.IUniverInstanceService),r=i.get(s.ICommandService),c=i.get(Be),l=o.getActiveTextRange();if(l==null)return!1;const{segmentId:A,segmentPage:d}=l,u=a.getCurrentUniverDocInstance(),g=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||g==null)return!1;const h=u.getUnitId(),m=me(i,h),f=m==null?void 0:m.getSkeleton();if(f==null)return!1;const{startOffset:p}=l,I=((Y=g.paragraphs)!=null?Y:[]).find(ce=>ce.startIndex>=p),C=f.findNodeByCharIndex(p,A,d);if(C==null)return!1;const b=new s.TextX,x=s.JSONX.getInstance(),E=[],T=p+4,B=[{startOffset:T,endOffset:T,collapsed:!0}],M={id:_.RichTextEditingMutation.id,params:{unitId:h,actions:[],textRanges:B}};p>0&&b.push({t:s.TextXActionType.RETAIN,len:p}),b.push({t:s.TextXActionType.INSERT,body:{dataStream:s.DataStreamTreeTokenType.PARAGRAPH,paragraphs:Mi(s.DataStreamTreeTokenType.PARAGRAPH,I)},len:1});const U=c.getDefaultStyle(),O=c.getStyleCache(),L=zt((z=g.textRuns)!=null?z:[],p,U,O),{dataStream:w,paragraphs:F,sectionBreaks:k}=Pr(e,n),H=(fe=(re=(ie=(K=C.parent)==null?void 0:K.parent)==null?void 0:ie.parent)==null?void 0:re.parent)==null?void 0:fe.parent;if(H==null)return!1;const{pageWidth:V,marginLeft:G,marginRight:X}=H,j=Si(e,n,V-G-X);b.push({t:s.TextXActionType.INSERT,body:{dataStream:w,paragraphs:F,sectionBreaks:k,textRuns:[{...L,st:0,ed:w.length}],tables:[{startIndex:0,endIndex:w.length,tableId:j.tableId}]},len:w.length});const Z=te(u,A);E.push(x.editOp(b.serialize(),Z));const ee=x.insertOp(["tableSource",j.tableId],j);return E.push(ee),M.params.actions=E.reduce((ce,Te)=>s.JSONX.compose(ce,Te),null),!!r.syncExecuteCommand(M.id,M.params)}},Ni="doc.component.create-table-confirm",Rn={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:Ni,children:{label:{name:Es,props:{handleRowColChange:a,tableCreateParams:o}}},width:400,title:{title:t.t("toolbar.table.insert")},onConfirm:()=>{n.executeCommand(_i.id,o),e.close(Ni)},onClose:()=>{e.close(Ni)}}),!0}},Oe={id:"doc-paragraph-setting.command",type:s.CommandType.COMMAND,handler:async(i,t)=>{var S,I,C;const e=i.get(_.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=(C=dt(r,A))!=null?C:[],u={id:_.RichTextEditingMutation.id,params:{unitId:l,actions:[],textRanges:r}},g=new s.MemoryCursor;g.reset();const h=new s.TextX,m=s.JSONX.getInstance();for(const b of d){const{startIndex:x}=b;h.push({t:s.TextXActionType.RETAIN,len:x-g.cursor});const E={...b.paragraphStyle,...t.paragraph};h.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...b,paragraphStyle:E,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),g.moveCursorTo(x+1)}const f=te(a,c);return u.params.actions=m.editOp(h.serialize(),f),!!o.syncExecuteCommand(u.id,u.params)}},lc=()=>{const i=s.useDependency(_.DocSelectionManagerService),t=s.useDependency(pt),e=Q.useMemo(()=>i.getDocRanges(),[]);return Q.useEffect(()=>{e.length||t.closePanel()},[e]),e},Ac=()=>{var r,c,l;const t=s.useDependency(s.IUniverInstanceService).getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),e=lc();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=dt(e,o))!=null?l:[]},dc=(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)}}))]},uc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?D.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentStart,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentStart:{v:a}}}))]},hc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?D.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentEnd,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentEnd:{v:a}}}))]},gc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?D.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.indentFirstLine,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentFirstLine:{v:a}}}))]},fc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?D.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.hanging,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{hanging:{v:a}}}))]},mc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?D.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.spaceAbove,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{spaceAbove:{v:a}}}))]},pc=i=>{const t=s.useDependency(s.ICommandService),[e,n]=Q.useState(()=>{var r;const a=i[0];return a?D.getNumberUnitValue((r=a.paragraphStyle)==null?void 0:r.spaceBelow,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{spaceBelow:{v:a}}}))]},Sc=i=>{const t=s.useDependency(s.ICommandService),e=s.useDependency(D.IRenderManagerService),n=s.useDependency(s.IUniverInstanceService),o=Q.useMemo(()=>{var m;const h=n.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC);if(h)return(m=e.getRenderById(h==null?void 0:h.getUnitId()))==null?void 0:m.with(_.DocSkeletonManagerService).getSkeleton()},[]),a=Q.useMemo(()=>new N.BehaviorSubject({}),[]),[r,c]=Q.useState(()=>{var m,f;const h=i[0];return h&&(f=(m=h.paragraphStyle)==null?void 0:m.lineSpacing)!=null?f:1}),l=Q.useRef(r),[A,d]=Q.useState(()=>{var m,f;const h=i[0];return h&&(f=(m=h.paragraphStyle)==null?void 0:m.spacingRule)!=null?f:s.SpacingRule.AUTO}),u=async h=>{c(h),a.next({lineSpacing:h,spacingRule:A})},g=async h=>{if(h!==A){let m=l.current;if(h===s.SpacingRule.AT_LEAST){const f=o==null?void 0:o.findNodeByCharIndex(i[0].startIndex),p=f==null?void 0:f.parent,S=p==null?void 0:p.parent;(S==null?void 0:S.contentHeight)!==void 0&&(m=Math.max(S.contentHeight,m))}else m>5&&(m=2);l.current=r,u(m),d(h),a.next({spacingRule:h})}};return Q.useEffect(()=>{const h=a.pipe(Tt.filter(m=>!!Object.keys(m).length),Tt.bufferTime(16),Tt.filter(m=>!!m.length),Tt.map(m=>m.reduce((f,p)=>(Object.keys(p).forEach(S=>{f[S]=p[S]}),f),{}))).subscribe(m=>t.executeCommand(Oe.id,{paragraph:{...m}}));return()=>h.unsubscribe()},[]),{lineSpacing:[r,u],spacingRule:[A,g]}},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"},tt=i=>{const{value:t,onChange:e,className:n="",min:o=0,max:a=100,step:r=1}=i,c=Vs.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 Ic(){const i=s.useDependency(s.LocaleService),t=Q.useMemo(()=>[{label:i.t("toolbar.alignLeft"),value:String(s.HorizontalAlign.LEFT),icon:P.jsx(bo,{})},{label:i.t("toolbar.alignCenter"),value:String(s.HorizontalAlign.CENTER),icon:P.jsx(Co,{})},{label:i.t("toolbar.alignRight"),value:String(s.HorizontalAlign.RIGHT),icon:P.jsx(yo,{})},{label:i.t("toolbar.alignJustify"),value:String(s.HorizontalAlign.JUSTIFIED),icon:P.jsx(Io,{})}],[]),e=Ac(),[n,o]=dc(e,t[0].value),[a,r]=uc(e),[c,l]=hc(e),[A,d]=gc(e),[u,g]=fc(e),[h,m]=mc(e),[f,p]=pc(e),{lineSpacing:[S,I],spacingRule:[C,b]}=Sc(e),x=Q.useMemo(()=>C===s.SpacingRule.AUTO?{min:1,max:5,step:S<2?.5:1}:{min:1,max:100},[C,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:`${q.paragraphSettingIconList} ${q.paragraphSettingMtBase}`,children:t.map(E=>P.jsx(se.Tooltip,{title:E.label,placement:"bottom",children:P.jsx("span",{className:$t(q.paragraphSettingIconListItem,{[q.paragraphSettingIconListActive]:n===E.value}),onClick:()=>o(E.value),children:E.icon})},E.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(tt,{className:q.paragraphSettingMtBase,value:a,onChange:E=>r(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.right"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:c,onChange:E=>l(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.firstLine"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:A,onChange:E=>d(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.hanging"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:u,onChange:E=>g(E!=null?E: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(tt,{className:q.paragraphSettingMtBase,value:h,onChange:E=>m(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.after"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:f,onChange:E=>p(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsx("div",{className:q.paragraphSettingLabel,children:i.t("doc.paragraphSetting.lineSpace")}),P.jsxs("div",{className:`${q.paragraphSettingMtBase} ${q.paragraphSettingSpaceLine}`,style:{width:162},children:[P.jsx(se.Select,{value:`${C}`,options:[{label:i.t("doc.paragraphSetting.multiSpace"),value:`${s.SpacingRule.AUTO}`},{label:i.t("doc.paragraphSetting.fixedValue"),value:`${s.SpacingRule.AT_LEAST}`}],onChange:E=>b(Number(E))}),P.jsx(tt,{...x,value:S,onChange:E=>I(E!=null?E:0)})]})]})]})]})}const Ec=(i,t)=>t.length===i.length&&i.some(e=>t.some(n=>n.startOffset===e.startOffset&&n.endOffset===e.endOffset));function vc(){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(_.SetTextSelectionsOperation.id===l.id){const A=l.params.ranges;Ec(A,r.current)||o(s.generateRandomId(4)),r.current=A}_.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(Ic,{},n)}var Cc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,bc=(i,t,e,n)=>{for(var o=n>1?void 0:n?Tc(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&&Cc(t,e,o),o},Pi=(i,t)=>(e,n)=>t(e,n,i);const vs="doc_ui_paragraph-setting-panel";let pt=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(vs,vc))}openPanel(){const t={header:{title:"doc.slider.paragraphSetting"},id:this._id,children:{label:vs},width:300};this._sidebarService.open(t)}closePanel(){this._sidebarService.close(this._id)}};pt=bc([Pi(0,s.ICommandService),Pi(1,s.Inject(y.ComponentManager)),Pi(2,s.Inject(y.ISidebarService))],pt);const Ui={id:"sidebar.operation.doc-paragraph-setting-panel",type:s.CommandType.OPERATION,handler:i=>(i.get(pt).openPanel(),!0)},wi=i=>{const t=i.get(_.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 yc(i){if(i.length<2)return!0;const t=i.map(e=>e.tableId);return t.every(e=>e===t[0])}function Cs(i,t,e){var a;const n=t.getRectRanges(),o=t.getActiveTextRange();if(n&&n.length&&yc(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:g,endIndex:h}=u;return c>g&&c<h||l>g&&l<h})){i.next(!1);return}}i.next(!0)}const Ne=i=>{const t=i.get(_.DocSelectionManagerService),e=i.get(s.IUniverInstanceService);return new N.Observable(n=>{const o=t.textSelection$.subscribe(()=>{Cs(n,t,e)});return Cs(n,t,e),()=>o.unsubscribe()})},Rc=i=>({id:Lt.name,commandId:Lt.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.copy",disabled$:wi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Oc=i=>({id:Ui.id,type:y.MenuItemType.BUTTON,icon:"MenuSingle24",title:"doc.menu.paragraphSetting",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),xc=i=>({id:pn.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.cut",disabled$:wi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Dc=i=>({id:Sn.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.paste",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Mc=i=>({id:Ut.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.delete",disabled$:wi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Ts="doc.menu.table-insert";function Bc(i){return{id:Ts,type:y.MenuItemType.SUBITEMS,title:"table.insert",icon:"Insert",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Ne(i),(t,e)=>t||e)}}function _c(i){return{id:Cn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowAbove",icon:"InsertRowAbove",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Nc(i){return{id:Tn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowBelow",icon:"InsertRowBelow",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Pc(i){return{id:bn.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnLeft",icon:"LeftInsertColumn",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Uc(i){return{id:yn.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnRight",icon:"RightInsertColumn",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}const bs="doc.menu.table-delete";function wc(i){return{id:bs,type:y.MenuItemType.SUBITEMS,title:"table.delete",icon:"Reduce",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Ne(i),(t,e)=>t||e)}}function Lc(i){return{id:En.id,type:y.MenuItemType.BUTTON,title:"table.deleteRows",icon:"DeleteRow",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Qc(i){return{id:vn.id,type:y.MenuItemType.BUTTON,title:"table.deleteColumns",icon:"DeleteColumn",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Fc(i){return{id:mt.id,type:y.MenuItemType.BUTTON,title:"table.deleteTable",icon:"GridSingle",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Hc(i){const t=i.get(s.IUniverInstanceService),e=i.get(D.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(_.DocSkeletonManagerService).getViewModel().editAreaChange$.subscribe(u=>{n.next(u===D.DocumentEditArea.HEADER||u===D.DocumentEditArea.FOOTER)})}),a=e.getCurrentTypeOfRenderer(s.UniverInstanceType.UNIVER_DOC);if(a==null)return n.next(!0);const r=a.with(_.DocSkeletonManagerService).getViewModel();return n.next(r.getEditArea()!==D.DocumentEditArea.BODY),()=>o.unsubscribe()})}function kc(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===_.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 Vc(i){const t=i.get(_.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 g=me(i,u.getUnitId());if(g==null){n.next(!0);return}if(g.getViewModel().getCustomRangeRaw(d)){n.next(!0);return}if(A!=null){const{path:f}=A;if(f.indexOf("cells")!==-1){n.next(!0);return}}n.next(!1)});return()=>o.unsubscribe()})}function le(i){const t=i.get(_.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 jc(i){const t=i.get(s.ICommandService);return{id:ze.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===_.SetTextSelectionsOperation.id||a===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Wc(i){const t=i.get(s.ICommandService);return{id:Ge.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===_.SetTextSelectionsOperation.id||a===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function zc(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===_.SetTextSelectionsOperation.id||a===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Gc(i){const t=i.get(s.ICommandService);return{id:Ye.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===_.SetTextSelectionsOperation.id||a===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Xc(i){const t=i.get(s.ICommandService);return{id:Qe.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===_.SetTextSelectionsOperation.id||a===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Yc(i){const t=i.get(s.ICommandService);return{id:Ke.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===_.SetTextSelectionsOperation.id||a===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Kc(i){const t=i.get(s.ICommandService);return{id:Ze.id,tooltip:"toolbar.font",type:y.MenuItemType.SELECTOR,label:Qo,selections:y.FONT_FAMILY_LIST.map(e=>({label:{name:Fo,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===_.SetTextSelectionsOperation.id||r===Ze.id){const l=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Jc(i){const t=i.get(s.ICommandService);return{id:Je.id,type:y.MenuItemType.SELECTOR,tooltip:"toolbar.fontSize",label:{name:Ho,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===_.SetTextSelectionsOperation.id||r===Je.id){const l=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Zc(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:qe.id,icon:"FontColor",tooltip:"toolbar.textColor.main",type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:di,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().textColor,a=t.onCommandExecuted(r=>{if(r.id===qe.id){const c=r.params.value;n.next(c!=null?c:o)}});return n.next(o),a.dispose}),disabled$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function qc(i){return{id:li.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),kc(i),(t,e)=>t||e)}}const $c="GridSingle",ys="doc.menu.table";function el(i){return{id:ys,type:y.MenuItemType.SUBITEMS,icon:$c,tooltip:"toolbar.table.main",disabled$:Vc(i),hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),Hc(i),(t,e)=>t||e)}}function tl(i){return{id:Rn.id,title:"toolbar.table.insert",type:y.MenuItemType.BUTTON,hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function nl(i){const t=i.get(s.ICommandService);return{id:Mt.id,type:y.MenuItemType.BUTTON,icon:"LeftJustifyingSingle",tooltip:"toolbar.alignLeft",disabled$:le(i),activated$:new N.Observable(e=>{const n=t.onCommandExecuted(o=>{var r;const a=o.id;if(a===_.SetTextSelectionsOperation.id||a===Re.id){const c=On(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 il(i){const t=i.get(s.ICommandService);return{id:Bt.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===_.SetTextSelectionsOperation.id||a===Re.id){const c=On(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function ol(i){const t=i.get(s.ICommandService);return{id:_t.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===_.SetTextSelectionsOperation.id||a===Re.id){const c=On(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function sl(i){const t=i.get(s.ICommandService);return{id:Nt.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===_.SetTextSelectionsOperation.id||a===Re.id){const c=On(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}const Qt=i=>new N.Observable(t=>{const e=i.get(s.IUniverInstanceService),n=i.get(_.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 A,d;const l=n.getActiveTextRange();if(l){const u=c.getSelfOrHeaderFooterModel(l==null?void 0:l.segmentId),g=rn(l,(d=(A=u.getBody())==null?void 0:A.paragraphs)!=null?d:[]);let h;if(g.every(m=>{var f;return h||(h=(f=m.bullet)==null?void 0:f.listType),m.bullet&&m.bullet.listType===h})){t.next(h);return}}t.next(void 0)}))});return()=>{a.unsubscribe(),o==null||o.unsubscribe()}});function al(i){return{id:Dt.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:Vo,hoverable:!1},value$:Qt(i)}],icon:"OrderSingle",tooltip:"toolbar.order",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),disabled$:le(i),activated$:Qt(i).pipe(N.map(t=>t&&t.indexOf("ORDER_LIST")===0))}}function rl(i){return{id:xt.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:jo,hoverable:!1},value$:Qt(i)}],icon:"UnorderSingle",tooltip:"toolbar.unorder",disabled$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:Qt(i).pipe(N.map(t=>t&&t.indexOf("BULLET_LIST")===0))}}function cl(i){return{id:sn.id,type:y.MenuItemType.BUTTON,icon:"TodoList",tooltip:"toolbar.checklist",disabled$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:Qt(i).pipe(N.map(t=>t&&t.indexOf("CHECK_LIST")===0))}}function ll(i){const t=i.get(s.ICommandService),e=i.get(s.IUniverInstanceService);return{id:In.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===_.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 Al(i){return{id:lt.id,type:y.MenuItemType.BUTTON,title:"toolbar.resetColor",icon:"NoColor"}}function dl(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:$e.id,tooltip:"toolbar.fillColor.main",type:y.MenuItemType.BUTTON_SELECTOR,icon:"PaintBucket",selections:[{label:{name:di,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().primaryColor,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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Fe(i){var g,h;const t=i.get(s.IUniverInstanceService),e=i.get(_.DocSelectionManagerService),n=i.get(Be),o=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),a=e.getDocRanges(),r=(g=a.find(m=>m.isActive))!=null?g: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:{...ns(d,r,c),...l}}}function On(i){var A;const t=i.get(s.IUniverInstanceService),e=i.get(_.DocSelectionManagerService),n=t.getCurrentUniverDocInstance(),o=e.getActiveTextRange();if(n==null||o==null)return;const{startOffset:a,segmentId:r}=o,c=(A=n.getSelfOrHeaderFooterModel(r).getBody())==null?void 0:A.paragraphs;if(c==null)return;let l=-1;for(const d of c){const{startIndex:u}=d;if(a>l&&a<=u)return d;l=u}return null}const Rs={[y.RibbonStartGroup.FORMAT]:{[ze.id]:{order:0,menuItemFactory:jc},[Ge.id]:{order:1,menuItemFactory:Wc},[Xe.id]:{order:2,menuItemFactory:zc},[Ye.id]:{order:3,menuItemFactory:Gc},[Qe.id]:{order:4,menuItemFactory:Xc},[Ke.id]:{order:5,menuItemFactory:Yc},[Je.id]:{order:6,menuItemFactory:Jc},[Ze.id]:{order:7,menuItemFactory:Kc},[qe.id]:{order:8,menuItemFactory:Zc},[$e.id]:{order:9,menuItemFactory:dl,[lt.id]:{order:0,menuItemFactory:Al}}},[y.RibbonStartGroup.LAYOUT]:{[ys]:{order:1,menuItemFactory:el,[Rn.id]:{order:0,menuItemFactory:tl}},[Mt.id]:{order:2,menuItemFactory:nl},[Bt.id]:{order:3,menuItemFactory:il},[_t.id]:{order:4,menuItemFactory:ol},[Nt.id]:{order:5,menuItemFactory:sl},[Dt.id]:{order:6,menuItemFactory:al},[xt.id]:{order:7,menuItemFactory:rl},[sn.id]:{order:8,menuItemFactory:cl},[li.id]:{order:9,menuItemFactory:qc},[In.id]:{order:10,menuItemFactory:ll}},[y.ContextMenuPosition.MAIN_AREA]:{[y.ContextMenuGroup.FORMAT]:{[Lt.name]:{order:0,menuItemFactory:Rc},[pn.id]:{order:1,menuItemFactory:xc},[Sn.id]:{order:2,menuItemFactory:Dc},[Ut.id]:{order:3,menuItemFactory:Mc}},[y.ContextMenuGroup.LAYOUT]:{[Ui.id]:{order:0,menuItemFactory:Oc},[Ts]:{order:1,menuItemFactory:Bc,[Cn.id]:{order:1,menuItemFactory:_c},[Tn.id]:{order:2,menuItemFactory:Nc},[bn.id]:{order:3,menuItemFactory:Pc},[yn.id]:{order:4,menuItemFactory:Uc}},[bs]:{order:2,menuItemFactory:wc,[En.id]:{order:1,menuItemFactory:Lc},[vn.id]:{order:2,menuItemFactory:Qc},[mt.id]:{order:3,menuItemFactory:Fc}}}}};var ul=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,gl=(i,t,e,n)=>{for(var o=n>1?void 0:n?hl(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&&ul(t,e,o),o},Pe=(i,t)=>(e,n)=>t(e,n,i);v.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(di,se.ColorPicker)),this.disposeWithMe(t.register(Qo,y.FontFamily)),this.disposeWithMe(t.register(Fo,y.FontFamilyItem)),this.disposeWithMe(t.register(Ho,y.FontSize)),this.disposeWithMe(t.register(jo,tr)),this.disposeWithMe(t.register(Vo,$a)),this.disposeWithMe(t.register("TodoList",Oo))}_initUiParts(){var n,o;const t=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET),e=this._configService.getConfig(mi);(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(_r,this._injector)))}_initMenus(){this._menuManagerService.mergeMenu(Rs)}_initShortCut(){[hr,gr,fr,mr,pr,Sr,vr,Cr,Er,Ir,Tr,br,ir].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_init(){this._initCustomComponents(),this._initMenus(),this._initFocusHandler(),this._initCommands(),this._initUiParts(),this._initShortCut()}_initCommands(){[Lo,li,ri].forEach(t=>this.disposeWithMe(this._commandService.registerCommand(t)))}_initFocusHandler(){this.disposeWithMe(this._layoutService.registerFocusHandler(s.UniverInstanceType.UNIVER_DOC,t=>{this._injector.get(D.IRenderManagerService).getRenderById(t).with(v.DocSelectionRenderService).focus()}))}},v.DocUIController=gl([Pe(0,s.Inject(s.Injector)),Pe(1,s.Inject(y.ComponentManager)),Pe(2,s.ICommandService),Pe(3,y.ILayoutService),Pe(4,y.IMenuManagerService),Pe(5,y.IUIPartsService),Pe(6,s.IUniverInstanceService),Pe(7,y.IShortcutService),Pe(8,s.IConfigService)],v.DocUIController);var fl=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,pl=(i,t,e,n)=>{for(var o=n>1?void 0:n?ml(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},Li=(i,t)=>(e,n)=>t(e,n,i);const Os=1.5;v.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 U;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 Me(r,a),{contentBoxPointGroup:d}=A.getRangePointData(t,t),{left:u,top:g,height:h}=bt(d),m=u+c,f=g+l,p=n.getViewport(be.VIEW_MAIN),S=this._editorService.getEditor(e);if(p==null)return;const{left:I,top:C,right:b,bottom:x}=p.getBounding().viewBound;let E=0,T=0;const B=S?(U=S.params.backScrollOffset)!=null?U:0:100;f<C?E=f-C-B:f>x-h&&(E=f-x+h+B),m<I?T=m-I:m>b-Os&&(T=m-b+Os);const M=p.transViewportScroll2ScrollValue(T,E);p.scrollByBarDeltaValue(M)}_scrollToSelection(){const t=this._textSelectionManagerService.getActiveTextRange();if(t==null)return;const{collapsed:e,startNodePosition:n}=t;e&&this.scrollToNode(n)}},v.DocBackScrollRenderController=pl([Li(1,s.Inject(_.DocSelectionManagerService)),Li(2,pe),Li(3,s.Inject(_.DocSkeletonManagerService))],v.DocBackScrollRenderController);var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,El=(i,t,e,n)=>{for(var o=n>1?void 0:n?Il(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&&Sl(t,e,o),o},St=(i,t)=>(e,n)=>t(e,n,i);v.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(_.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 D.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 D.ScrollBar(n),t.addLayer(new D.Layer(t,[],Wt),new D.Layer(t,[],io)),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 D.Documents(Ee.MAIN,void 0,r);c.zIndex=jn;const l=new D.DocBackground(Ee.BACKGROUND,void 0,r);l.zIndex=jn,this._context.mainComponent=c,n.set(Ee.MAIN,c),n.set(Ee.BACKGROUND,l),t.addObjects([c],Wt),t.addObjects([l],no),this._editorService.getEditor(e.getUnitId())==null&&t.enableLayerCache(Wt)}_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(Ee.BACKGROUND);o.changeSkeleton(t),a.changeSkeleton(t),this._recalculateSizeBySkeleton(t)}_initCommandListener(){const t=[_.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 m;const{mainComponent:e,scene:n,unitId:o,components:a}=this._context,r=e,c=a.get(Ee.BACKGROUND),l=(m=t.getSkeletonData())==null?void 0:m.pages;if(l==null)return;let A=0,d=0;const g=this._context.unit.getSnapshot().documentStyle.documentFlavor;for(let f=0,p=l.length;f<p;f++){const S=l[f];let{pageWidth:I,pageHeight:C,marginLeft:b,marginRight:x,marginTop:E,marginBottom:T}=S;g===s.DocumentFlavor.MODERN&&(I===Number.POSITIVE_INFINITY&&(I=S.width+b+x),C===Number.POSITIVE_INFINITY&&(C=S.height+E+T)),r.pageLayoutType===D.PageLayoutType.VERTICAL?(d+=C,d+=r.pageMarginTop,f===p-1&&(d+=r.pageMarginTop),A=Math.max(A,I)):r.pageLayoutType===D.PageLayoutType.HORIZONTAL&&(A+=I,f!==p-1&&(A+=r.pageMarginLeft),d=Math.max(d,C))}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)}},v.DocRenderController=El([St(1,s.ICommandService),St(2,s.Inject(v.DocSelectionRenderService)),St(3,s.Inject(_.DocSkeletonManagerService)),St(4,pe),St(5,D.IRenderManagerService),St(6,s.IUniverInstanceService)],v.DocRenderController);const Qi={id:"doc.command.select-all",type:s.CommandType.COMMAND,handler:async i=>{const t=i.get(s.IUniverInstanceService),e=i.get(_.DocSelectionManagerService),n=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),o=e.getActiveTextRange();if(n==null||o==null)return!1;const{segmentId:a}=o,r=n.getUnitId(),c=n.getSelfOrHeaderFooterModel(a).getSnapshot().body;if(c==null)return!1;const{tables:l=[]}=c,A=[];let d=0;for(const u of l){const{startIndex:g,endIndex:h}=u;d!==g&&A.push({startOffset:d,endOffset:g-1,rangeType:s.DOC_RANGE_TYPE.TEXT}),A.push({startOffset:g+3,endOffset:h-5,rangeType:s.DOC_RANGE_TYPE.RECT}),d=h}return d!==c.dataStream.length-2&&A.push({startOffset:d,endOffset:c.dataStream.length-2,rangeType:s.DOC_RANGE_TYPE.TEXT}),e.replaceDocRanges(A,{unitId:r,subUnitId:r},!1),!0}};class Ft 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 vl=s.SHEET_EDITOR_UNITS,Fi={id:"doc.command.ime-input",type:s.CommandType.COMMAND,handler:async(i,t)=>{var H,V,G,X;const{unitId:e,newText:n,oldTextLen:o,isCompositionEnd:a,isCompositionStart:r}=t,c=i.get(s.ICommandService),l=i.get(D.IRenderManagerService),A=i.get(s.IUniverInstanceService),d=i.get(Be),u=(H=l.getRenderById(e))==null?void 0:H.with(Ft),g=A.getUnit(e,s.UniverInstanceType.UNIVER_DOC);if(g==null||u==null)return!1;const h=u.getActiveRange();if(h==null)return!1;const{style:m,segmentId:f}=h,p=g.getSelfOrHeaderFooterModel(f).getBody();if(p==null)return!1;Object.assign(h,h);const{startOffset:I,endOffset:C}=h,b=n.length,x=[{startOffset:I+b,endOffset:I+b,collapsed:!0,style:m}],E={id:_.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:x}},T=d.getDefaultStyle(),B=d.getStyleCache(),M=Wn((V=p.customRanges)!=null?V:[],I+o,vl.includes(e)),U=zt((G=p.textRuns)!=null?G:[],r?C:I+o,T,B),O=zn((X=p.customDecorations)!=null?X:[],I+o),L=new s.TextX,w=s.JSONX.getInstance();if(!h.collapsed&&r){const j=s.BuildTextUtils.selection.delete([h],p,0,null,!1);L.push(...j),E.params.textRanges=[{startOffset:I+b,endOffset:I+b,collapsed:!0}]}else L.push({t:s.TextXActionType.RETAIN,len:I});o>0&&L.push({t:s.TextXActionType.DELETE,len:o}),L.push({t:s.TextXActionType.INSERT,body:{dataStream:n,textRuns:U?[{...U,st:0,ed:n.length}]:[],customRanges:M?[{...M,startIndex:0,endIndex:n.length-1}]:[],customDecorations:O.map(j=>({...j,startIndex:0,endIndex:n.length-1}))},len:n.length});const F=te(g,f);E.params.actions=w.editOp(L.serialize(),F),E.params.noHistory=!a,E.params.isCompositionEnd=a;const k=c.syncExecuteCommand(E.id,E.params);return u.pushUndoRedoMutationParams(k,E.params),!!k}},xn={type:s.CommandType.COMMAND,id:"doc.command.set-zoom-ratio",handler:async(i,t)=>{var u,g,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=(g=t.documentId)!=null?g:a,r=(h=t.zoomRatio)!=null?h:r),!o.getUniverDocInstance(a))return!1;const l={zoomRatio:r,unitId:a},A=Rr(i,l);return e.syncExecuteCommand(Ce.id,l)?(n.pushUndoRedo({unitID:a,undoMutations:[{id:Ce.id,params:A}],redoMutations:[{id:Ce.id,params:l}]}),!0):!1}},Hi={id:"doc.table.tab-in-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{const{shift:e}=t,n=i.get(_.DocSelectionManagerService),o=n.getActiveTextRange(),a=i.get(s.ICommandService),c=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(!c)return!1;const l=c.getUnitId(),A=me(i,l),d=A==null?void 0:A.getSkeleton(),u=d==null?void 0:d.getViewModel().getSelfOrHeaderFooterViewModel(o==null?void 0:o.segmentId);if(u==null||o==null)return!1;let g=null;if(e?g=ss(u,o,Ii.PREV):g=ss(u,o,Ii.NEXT),g){const{startOffset:h,endOffset:m}=g,f=[{startOffset:h,endOffset:m}];return n.replaceDocRanges(f),!0}return e===!1?await a.executeCommand(Di.id,{position:cn.BELLOW}):!0}},He={id:"doc.operation.move-cursor",type:s.CommandType.OPERATION,handler:(i,t)=>!!t},ke={id:"doc.operation.move-selection",type:s.CommandType.OPERATION,handler:(i,t)=>!!t};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},ki=(i,t)=>(e,n)=>t(e,n,i);let Vi=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(mi),changeLocale:this.changeLocale,getComponent:this.getComponent}}getContentRef(){return this._docContainer.getContentRef()}UIDidMount(i){if(this._docContainer)return i(this._docContainer)}getDocContainer(){return this._docContainer}};Vi=bl([ki(0,s.Inject(s.LocaleService)),ki(1,s.Inject(s.Injector)),ki(2,s.IConfigService)],Vi);var yl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Ol=(i,t,e,n)=>{for(var o=n>1?void 0:n?Rl(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},xl=(i,t)=>(e,n)=>t(e,n,i);let Dn=class extends s.RxDisposable{constructor(t){super();R(this,"_docContainerController");this._injector=t,this._docContainerController=this._injector.createInstance(Vi)}};Dn=Ol([xl(0,s.Inject(s.Injector))],Dn);var Dl=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,Bl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ml(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&&Dl(t,e,o),o},_l=(i,t)=>(e,n)=>t(e,n,i);let Mn=class extends s.Disposable{constructor(i){super(),this._docAutoFormatService=i,this._initListTabAutoFormat(),this._initListSpaceAutoFormat(),this._initDefaultEnterFormat(),this._initExitListAutoFormat()}_initListTabAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:We.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:on.id,params:{type:t!=null&&t.shift?Ot.decrease:Ot.increase}}]},priority:100})),this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:We.id,match:i=>{const{selection:t}=i,{startNodePosition:e,endNodePosition:n}=t;return!!(e&&n&&Yt(e,n)||e&&!n&&e.path.indexOf("cells")>-1)},getMutations(i){const t=i.commandParams;return[{id:Hi.id,params:{shift:!!(t!=null&&t.shift)}}]},priority:99}))}_initListSpaceAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:yt.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:fi.id,params:{listType:a,paragraph:t[0]}}]}return[]}}))}_initExitListAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:ct.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:on.id,params:{type:Ot.decrease}}]:[{id:At.id,params:{listType:i.paragraphs[0].bullet.listType}}]:[]}}))}_initDefaultEnterFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:ct.id,match:()=>!0,getMutations(){return[{id:Bi.id}]},priority:-9999}))}};Mn=Bl([_l(0,s.Inject(v.DocAutoFormatService))],Mn);function Nl(i){return i.rows[0].cells[0].sections[0].columns[0].lines[0]}function Pl(i){const t=i.rows[i.rows.length-1],e=t.cells[t.cells.length-1];return D.getLastLine(e)}function Ul(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 xs(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===D.DocumentSkeletonPageType.CELL?[t]:t.parent.pages;return D.lineIterator(r,c=>{c.st===a+1?n=c:c.ed===o-1&&(e=c)}),{lineBeforeTable:e,lineAfterTable:n}}function wl(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),a=e.rows[e.rows.indexOf(t)+1];if(a==null){if(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 g of d){const{skeTables:h}=g;if(h.has(u)){const m=h.get(u);if(m!=null&&m.rows.length)return m.rows[0].cells[o]}}}return}return a.cells[o]}function Ll(i){var a,r;const t=i.parent,e=t==null?void 0:t.parent;if(t==null||e==null)return;const n=e.rows[e.rows.indexOf(t)-1],o=t.cells.indexOf(i);if(n==null){if(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:g}=u;if(g.has(d)){const h=g.get(d);if(h!=null&&h.rows.length)return h.rows[h.rows.length-1].cells[o]}}}return}return n.cells[o]}function Ql(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 Fl(i){return i.sections[0].columns[0].lines[0]}function Hl(i){return D.getLastLine(i)}var kl=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,jl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Vl(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&&kl(t,e,o),o},Bn=(i,t)=>(e,n)=>t(e,n,i);let _n=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=[He.id,ke.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(!t.includes(e.id))return;const n=e.params;switch(e.id){case He.id:return this._handleMoveCursor(n.direction);case ke.id:return this._handleShiftMoveSelection(n.direction);default:throw new Error("Unknown command")}}))}_handleShiftMoveSelection(t){var C,b,x;const e=this._textSelectionManagerService.getActiveTextRange(),n=this._textSelectionManagerService.getTextRanges(),o=this._univerInstanceService.getCurrentUniverDocInstance();if(o==null)return;const a=(C=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:C.with(_.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:g,startNodePosition:h,endNodePosition:m,segmentPage:f}=e;if(n.length>1){let E=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY;for(const B of n)E=Math.min(E,B.startOffset),T=Math.max(T,B.endOffset);this._textSelectionManagerService.replaceTextRanges([{startOffset:t===s.Direction.LEFT||t===s.Direction.UP?T:E,endOffset:t===s.Direction.LEFT||t===s.Direction.UP?E:T,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=(b=o.getSelfOrHeaderFooterModel(g).getBody().dataStream.length)!=null?b:Number.POSITIVE_INFINITY;if(t===s.Direction.LEFT||t===s.Direction.RIGHT){const E=a.findNodeByCharIndex(S-1,g,f),T=a.findNodeByCharIndex(S,g,f);S=t===s.Direction.RIGHT?S+T.count:S-((x=E==null?void 0:E.count)!=null?x: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 E=a.findNodeByCharIndex(S,g,f),T=r.document.getOffsetConfig(),B=d?h:u===s.RANGE_DIRECTION.FORWARD?m:h,M=this._getTopOrBottomPosition(a,E,B,t===s.Direction.DOWN,!0);if(M==null){const O=t===s.Direction.UP?0:I-2;if(O===S)return;this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:O,style:A}],!1);return}const U=new Me(T,a).getRangePointData(M,M).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:U.endOffset,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),U.endOffset)}}_handleMoveCursor(t){var I,C,b,x;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(_.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:g,endNodePosition:h,segmentPage:m}=e,f=o.getSelfOrHeaderFooterModel(u).getBody();if(f==null)return;const p=(C=f.dataStream.length)!=null?C:Number.POSITIVE_INFINITY,S=(b=o.getCustomRanges())!=null?b:[];if(t===s.Direction.LEFT||t===s.Direction.RIGHT){let E;if(!e.collapsed||n.length>1){let M=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY;for(const O of n)M=Math.min(M,O.startOffset),U=Math.max(U,O.endOffset);E=t===s.Direction.LEFT?M:U}else{const M=a.findNodeByCharIndex(c-1,u,m),U=a.findNodeByCharIndex(c,u,m),O=a.findNodeByCharIndex(c+1,u,m);t===s.Direction.LEFT?E=Math.max(0,c-((x=M==null?void 0:M.count)!=null?x:1)):E=Math.min(p-2,l+U.count+((O==null?void 0:O.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK?1:0))}const T=[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(;T.includes(f.dataStream[E]);)E--;else for(;T.includes(f.dataStream[E]);)E++;S.filter(M=>M.wholeEntity&&M.startIndex<E&&M.endIndex>=E).forEach(M=>{t===s.Direction.LEFT?E=Math.min(M.startIndex,E):E=Math.max(M.endIndex+1,E)}),this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,E),endOffset:Math.max(0,E),style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),E)}else{const E=a.findNodeByCharIndex(c,u,m),T=a.findNodeByCharIndex(l,u,m),B=r.document.getOffsetConfig(),M=this._getTopOrBottomPosition(a,t===s.Direction.UP||d?E:T,t===s.Direction.UP||d?g:h,t===s.Direction.DOWN);if(M==null){let O;d?O=t===s.Direction.UP?0:p-2:O=t===s.Direction.UP?c:l,this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,O),endOffset:Math.max(0,O),style:A}],!1);return}const U=new Me(B,a).getRangePointData(M,M).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{...U,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),U.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,g=Math.abs(n-u);g<a.distance&&(a.glyph=A,a.distance=g)}}if(a.glyph==null)return;const{segmentPage:r}=o;return t.findPositionByGlyph(a.glyph,r)}_getNextOrPrevLine(t,e,n=!1){var f,p,S,I,C,b,x,E,T,B,M,U;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===D.DocumentSkeletonPageType.CELL&&n){const O=Ds(l,e);if(O)return O}if(e===!0){d=r.lines[A+1];const O=Ul(a,l);if(O){const L=Nl(O);L&&(d=L)}}else{d=r.lines[A-1];const O=Ql(a,l);if(O){const L=Pl(O);L&&(d=L)}}if(d!=null)return d;const u=c.columns.indexOf(r);if(u===-1)return;if(e===!0)d=(f=c.columns[u+1])==null?void 0:f.lines[0];else{const O=(S=(p=c.columns)==null?void 0:p[u-1])==null?void 0:S.lines;d=O==null?void 0:O[O.length-1]}if(d!=null)return d;const g=l.sections.indexOf(c);if(g===-1)return;if(e===!0)d=(C=(I=l.sections[g-1])==null?void 0:I.columns[0])==null?void 0:C.lines[0];else{const O=(x=(b=l.sections)==null?void 0:b[g-1])==null?void 0:x.columns,L=O==null?void 0:O[O.length-1],w=L==null?void 0:L.lines;d=w==null?void 0:w[w.length-1]}if(d!=null)return d;if(l.type===D.DocumentSkeletonPageType.CELL)return Ds(l,e);const h=l.parent;if(h==null)return;const m=h.pages.indexOf(l);if(m!==-1){if(e===!0)d=(B=(T=(E=h.pages[m+1])==null?void 0:E.sections[0])==null?void 0:T.columns[0])==null?void 0:B.lines[0];else{const O=(M=h.pages[m-1])==null?void 0:M.sections;if(O==null)return;const L=(U=O[O.length-1])==null?void 0:U.columns,w=L[L.length-1],F=w==null?void 0:w.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(v.DocBackScrollRenderController);n!=null&&n.scrollToRange({startOffset:e,endOffset:e,collapsed:!0})}_getDocObject(){return oo(this._univerInstanceService,this._renderManagerService)}};_n=jl([Bn(0,s.IUniverInstanceService),Bn(1,D.IRenderManagerService),Bn(2,s.Inject(_.DocSelectionManagerService)),Bn(3,s.ICommandService)],_n);function Ds(i,t){var n,o;let e=null;if(t===!0){const a=wl(i);if(a)e=Fl(a);else{const r=(n=i.parent)==null?void 0:n.parent,{lineAfterTable:c}=xs(r);c&&(e=c)}}else{const a=Ll(i);if(a)e=Hl(a);else{const r=(o=i.parent)==null?void 0:o.parent,{lineBeforeTable:c}=xs(r);c&&(e=c)}}return e!=null,e}const nt={create:"univer-create",createItem:"univer-create-item",createLabel:"univer-create-label",createInput:"univer-create-input"},Wl=({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:nt.create,children:[P.jsxs("div",{className:nt.createItem,children:[P.jsx("span",{className:nt.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:nt.createInput})]}),P.jsxs("div",{className:nt.createItem,children:[P.jsx("span",{className:nt.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:nt.createInput})]})]})};var zl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Xl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Gl(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&&zl(t,e,o),o},Ms=(i,t)=>(e,n)=>t(e,n,i);let Nn=class extends s.Disposable{constructor(i,t){super(),this._commandService=i,this._componentManager=t,this._initialize()}_initialize(){this._init(),this._registerCommands(),this._initCustomComponents()}_registerCommands(){[Rn].forEach(i=>this.disposeWithMe(this._commandService.registerCommand(i)))}_initCustomComponents(){const i=this._componentManager;this.disposeWithMe(i.register(Es,Wl))}_init(){}};Nn=Xl([Ms(0,s.ICommandService),Ms(1,s.Inject(y.ComponentManager))],Nn);const ji=4;var Yl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,Jl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Kl(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},Pn=(i,t)=>(e,n)=>t(e,n,i);function Bs(i,t){const e=_s(i.left,i.top,t),n=_s(i.right,i.bottom,t);return{left:e.x,top:e.y,right:n.x,bottom:n.y}}function _s(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 Ns(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 Un=(i,t)=>{const{scene:e,mainComponent:n,engine:o}=t,a=t.with(_.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,g=o.getCanvasElement(),h=g.getBoundingClientRect(),m=D.pxToNum(g.style.width),{top:f,left:p,width:S}=h,I=S/m,{scaleX:C,scaleY:b}=e.getAncestorScale(),x=new Me(A,a),{borderBoxPointGroup:E}=x.getRangePointData(r,c);return Zt(E).map(M=>Bs(M,e)).map(M=>({left:(M.left+d*C)*I+p,right:(M.right+d*C)*I+p,top:(M.top+u*b)*I+f,bottom:(M.bottom+u*b)*I+f}))};v.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:g,height:h}=t,m={left:d,right:d+g,top:u,bottom:u+h},f=A.getCanvasElement(),p=f.getBoundingClientRect(),S=D.pxToNum(f.style.width),I=Bs(m,l),{top:C,left:b,width:x}=p,E=x/S;return{left:I.left*E+b,right:I.right*E+b,top:I.top*E+C,bottom:I.bottom*E+C}},o=n(),a=new N.BehaviorSubject(o),r=new s.DisposableCollection;r.add(this._commandService.onCommandExecuted(l=>{if(l.id===Ce.id||l.id===_.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=Un(t,e))!=null?c:[],o=new N.BehaviorSubject(n),a=new s.DisposableCollection;a.add(this._commandService.onCommandExecuted(l=>{if((l.id===Ce.id||l.id===_.RichTextEditingMutation.id)&&l.params.unitId===e.unitId){const d=Un(t,e);d&&o.next(d)}}));const r=e.scene.getViewport(be.VIEW_MAIN);return r&&a.add(r.onScrollAfter$.subscribeEvent(()=>{const l=Un(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])),g=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(g),A.complete(),d.dispose()},canDispose:()=>this._globalPopupManagerService.activePopupId!==g}}},v.DocCanvasPopManagerService=Jl([Pn(0,s.Inject(y.ICanvasPopupService)),Pn(1,D.IRenderManagerService),Pn(2,s.IUniverInstanceService),Pn(3,s.ICommandService)],v.DocCanvasPopManagerService);var Zl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,$l=(i,t,e,n)=>{for(var o=n>1?void 0:n?ql(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&&Zl(t,e,o),o},eA=(i,t)=>(e,n)=>t(e,n,i);const tA=(i,t,e,n)=>{var g,h,m,f,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=(g=a==null?void 0:a.skeFooters.get(i.segmentId))==null?void 0:g.values())!=null?h:[])[0])!=null?p:Array.from((f=(m=a==null?void 0:a.skeHeaders.get(i.segmentId))==null?void 0:m.values())!=null?f:[])[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 Me(l,e),{borderBoxPointGroup:d}=A.getRangePointData(o,c);return Zt(d).map(S=>({top:S.top+l.docsTop-ji,bottom:S.bottom+l.docsTop+ji,left:S.left+l.docsLeft,right:S.right+l.docsLeft}))},nA=(i,t,e,n=-1)=>{const o=e.findPositionByGlyph(i,n);if(!o)return;const a=t.getOffsetConfig(),r={...o,isBack:!0},c=new Me(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}};v.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=D.CURSOR_TYPE.TEXT;this.disposeWithMe(this.hoverCustomRanges$.subscribe(n=>{n.length?(e=this._context.scene.getCursor(),this._context.scene.setCursor(D.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===D.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=tA(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}=Ns(n,o,this._context.scene);return this._customRangeBounds.filter(l=>l.rects.some(A=>{const{left:d,right:u,top:g,bottom:h}=A;return a>=d&&a<=u&&r>=g&&r<=h})).map(l=>({segmentId:l.segmentId,range:l.customRange,segmentPageIndex:l.segmentPageIndex,rects:l.rects}))}_buildBulletBoundsBySegment(e,n=-1){var A,d,u,g,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(m=>m.bullet&&m.bullet.listType.indexOf("CHECK_LIST")===0),r=[],c=this._skeleton.getSkeletonData();if(!c)return r;const l=m=>{var f,p,S;for(const I of m){const C=[...I.sections];if(I.skeTables){const b=Array.from(I.skeTables.values());C.push(...b.map(x=>x.rows.map(E=>E.cells.map(T=>T.sections))).flat(4))}for(const b of C)for(const x of b.columns)for(const E of x.lines)if(E.paragraphStart){const T=a.find(B=>B.startIndex===E.paragraphIndex);if(T){const B=E,M=(S=(p=(f=B==null?void 0:B.divides)==null?void 0:f[0])==null?void 0:p.glyphGroup)==null?void 0:S[0];if(!M)continue;const U=nA(M,this._documents,this._skeleton,n);if(!U)continue;r.push({rect:U,segmentId:e,segmentPageIndex:n,paragraph:T})}}}return r};if(e){const m=(h=(u=c.skeFooters.get(e))==null?void 0:u.values())!=null?h:(g=c.skeHeaders.get(e))==null?void 0:g.values();return m?l(Array.from(m)):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}=Ns(n,o,this._context.scene);return this._bulletBounds.find(l=>{const{left:A,right:d,top:u,bottom:g}=l.rect;return a>=A&&a<=d&&r>=u&&r<=g})}},v.DocEventManagerService=$l([eA(1,s.Inject(_.DocSkeletonManagerService))],v.DocEventManagerService);var iA=Object.defineProperty,oA=Object.getOwnPropertyDescriptor,sA=(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&&iA(t,e,o),o},wn=(i,t)=>(e,n)=>t(e,n,i);let Wi=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(an.id,{index:i.paragraph.startIndex,segmentId:i.segmentId,textRanges:t})})}_initHoverCursor(){this.disposeWithMe(this._docEventManagerService.hoverBullet$.subscribe(i=>{i?this._context.mainComponent.setCursor(D.CURSOR_TYPE.POINTER):this._context.mainComponent.setCursor(D.CURSOR_TYPE.TEXT)}))}_getTransformCoordForDocumentOffset(i,t,e,n){const{documentTransform:o}=i.getOffsetConfig(),a=t.transformVector2SceneCoord(D.Vector2.FromArray([e,n]));if(a)return o.clone().invert().applyPoint(a)}};Wi=sA([wn(1,s.Inject(_.DocSkeletonManagerService)),wn(2,s.ICommandService),wn(3,s.Inject(v.DocEventManagerService)),wn(4,s.Inject(_.DocSelectionManagerService))],Wi);var aA=Object.defineProperty,rA=Object.getOwnPropertyDescriptor,cA=(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&&aA(t,e,o),o},Ht=(i,t)=>(e,n)=>t(e,n,i);let Ln=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 r,c;if(!mn(this._contextService))return;t.event.preventDefault();const e=t.event;let n=(r=e.clipboardData)==null?void 0:r.getData("text/html");const o=(c=e.clipboardData)==null?void 0:c.getData("text/plain");this._editorService.getEditor(this._context.unitId)&&(n!=null?n:"").indexOf("</table>")>-1&&(n=""),this._docClipboardService.legacyPaste(n,o)})}};Ln=cA([Ht(1,s.ICommandService),Ht(2,ft),Ht(3,s.Inject(v.DocSelectionRenderService)),Ht(4,s.IContextService),Ht(5,pe)],Ln);var lA=Object.defineProperty,AA=Object.getOwnPropertyDescriptor,dA=(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&&lA(t,e,o),o},Ps=(i,t)=>(e,n)=>t(e,n,i);const uA=[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 zi=class extends s.Disposable{constructor(i,t,e){super(),this._context=i,this._contextMenuService=t,this._commandService=e,uA.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===_.RichTextEditingMutation.id&&this._contextMenuService.visible&&this._contextMenuService.hideContextMenu()}))}};zi=dA([Ps(1,y.IContextMenuService),Ps(2,s.ICommandService)],zi);var hA=Object.defineProperty,gA=Object.getOwnPropertyDescriptor,fA=(i,t,e,n)=>{for(var o=n>1?void 0:n?gA(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&&hA(t,e,o),o},It=(i,t)=>(e,n)=>t(e,n,i);let Qn=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 C,b;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:g}=o.getActualSize();u+=a+r,g+=c+l;const{width:h,height:m}=e.getBoundingClientRect(),f=A.getViewport(be.VIEW_MAIN);let p=f==null?void 0:f.getScrollBar();const S=Math.max(g,h),I=Math.max(u,m);A.transformByState({width:S,height:I}),d==null||d.resize(S,I),e.isSingle()?g>h?p==null?f&&new D.ScrollBar(f,{barSize:8,enableVertical:!1}):f==null||f.resetCanvasSizeAndUpdateScroll():(p=null,f==null||f.scrollToBarPos({x:0,y:0}),(b=f==null?void 0:f.getScrollBar())==null||b.dispose()):u>m?p==null?f&&new D.ScrollBar(f,{enableHorizontal:!1,barSize:8}):f==null||f.resetCanvasSizeAndUpdateScroll():(p=null,f==null||f.scrollToBarPos({x:0,y:0}),(C=f==null?void 0:f.getScrollBar())==null||C.dispose())}_initialSetValue(){this.disposeWithMe(this._editorService.setValue$.subscribe(t=>{t.editorUnitId===this._context.unitId&&this._commandService.executeCommand(Xn.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=[_.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())}}))}};Qn=fA([It(1,s.IUniverInstanceService),It(2,pe),It(3,s.ICommandService),It(4,s.Inject(v.DocSelectionRenderService)),It(5,s.Inject(_.DocSkeletonManagerService)),It(6,D.IRenderManagerService)],Qn);var mA=Object.defineProperty,pA=Object.getOwnPropertyDescriptor,SA=(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&&mA(t,e,o),o},Fn=(i,t)=>(e,n)=>t(e,n,i);let Gi=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(Fi.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)}};Gi=SA([Fn(1,s.Inject(v.DocSelectionRenderService)),Fn(2,s.Inject(Ft)),Fn(3,s.Inject(_.DocSkeletonManagerService)),Fn(4,s.ICommandService)],Gi);var IA=Object.defineProperty,EA=Object.getOwnPropertyDescriptor,vA=(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&&IA(t,e,o),o},Hn=(i,t)=>(e,n)=>t(e,n,i);let Xi=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(),g=this._docMenuStyleService.getStyleCache(),h=Wn((p=d==null?void 0:d.customRanges)!=null?p:[],a.endOffset,s.SHEET_EDITOR_UNITS.includes(e)),m=zt((S=d==null?void 0:d.textRuns)!=null?S:[],a.endOffset,u,g),f=zn((I=d==null?void 0:d.customDecorations)!=null?I:[],a.endOffset);await this._commandService.executeCommand(un.id,{unitId:e,body:{dataStream:o,textRuns:m?[{...m,st:0,ed:o.length}]:[],customRanges:h?[{...h,startIndex:0,endIndex:o.length-1}]:[],customDecorations:f.map(C=>({...C,startIndex:0,endIndex:o.length-1}))},range:a,segmentId:l}),o===" "&&await this._commandService.executeCommand(yt.id)})}};Xi=vA([Hn(1,s.Inject(v.DocSelectionRenderService)),Hn(2,s.Inject(_.DocSkeletonManagerService)),Hn(3,s.ICommandService),Hn(4,s.Inject(Be))],Xi);class Yi extends s.Disposable{constructor(t){super(),this._context=t}calculatePagePosition(){var b,x;const t=De(this._context),n=(x=(b=this._context.unit.getSettings())==null?void 0:b.zoomRatio)!=null?x: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:g,height:h}=c;let m=0,f=u,p=0,S=0,I=Number.POSITIVE_INFINITY;g>(l+d*2)*n?(m=g/2-l*n/2,m/=n,p=(g-d*2)/n,I=0):(m=d,p=l+d*2,I=(p-g/n)/2),h>A?S=(h-u*2)/n:S=A+u*2,a.resize(p,S),g<=1&&(m=-1e4,f=-1e4),o.translate(m,f),r.translate(m,f);const C=a.getViewport(be.VIEW_MAIN);return I!==Number.POSITIVE_INFINITY&&C!=null&&C.scrollToViewportPos({viewportScrollX:I}),this}}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},Us=(i,t)=>(e,n)=>t(e,n,i);let Ki=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===D.TRANSFORM_CHANGE_OBSERVABLE_TYPE.resize),N.throttleTime(0,N.animationFrameScheduler)).subscribe(()=>{this._docPageLayoutService.calculatePagePosition(),this._textSelectionManagerService.refreshSelection()}))}};Ki=bA([Us(1,s.Inject(Yi)),Us(2,s.Inject(_.DocSelectionManagerService))],Ki);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},Et=(i,t)=>(e,n)=>t(e,n,i);let Ji=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=De(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=De(this._context),{document:n,scene:o}=e;this.disposeWithMe(n.onPointerEnter$.subscribeEvent(()=>{this._isEditorReadOnly(t)||(n.cursor=D.CURSOR_TYPE.TEXT)})),this.disposeWithMe(n.onPointerLeave$.subscribeEvent(()=>{n.cursor=D.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:g=D.PageLayoutType.VERTICAL,pageMarginLeft:h,pageMarginTop:m}=n.getOffsetConfig(),{editArea:f}=l.findEditAreaByCoord(u,g,h,m),p=this._docSkeletonManagerService.getViewModel(),S=p.getEditArea();S!==D.DocumentEditArea.BODY&&f!==D.DocumentEditArea.BODY&&f!==S&&p.setEditArea(f)}if(this._docSelectionRenderService.__onPointDown(a),this._editorService.getEditor(t)){this._setEditorFocus(t);const{offsetX:g,offsetY:h}=a;setTimeout(()=>{t!==this._editorService.getFocusId()&&(this._setEditorFocus(t),this._docSelectionRenderService.setCursorManually(g,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=De(this._context),{document:o,scene:a}=n,{documentTransform:r}=o.getOffsetConfig(),c=a.getViewports()[0];if(c==null)return;const l=c.transformVector2SceneCoord(D.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=[Ce.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=Mo(a);this._docSelectionManagerService.replaceDocRanges([{startOffset:r,endOffset:r}],{unitId:e,subUnitId:e},!1)}}))}};Ji=OA([Et(1,s.ICommandService),Et(2,pe),Et(3,s.IUniverInstanceService),Et(4,s.Inject(v.DocSelectionRenderService)),Et(5,s.Inject(_.DocSkeletonManagerService)),Et(6,s.Inject(_.DocSelectionManagerService))],Ji);var xA=Object.defineProperty,DA=Object.getOwnPropertyDescriptor,MA=(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&&xA(t,e,o),o},it=(i,t)=>(e,n)=>t(e,n,i);let Zi=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(xn.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=[Ce.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===In.id&&this._commandService.executeCommand(xn.id,{zoomRatio:1,unitId:this._context.unitId})}))}updateViewZoom(i,t=!0){var n;const e=De(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()}};Zi=MA([it(1,s.IContextService),it(2,s.Inject(_.DocSkeletonManagerService)),it(3,s.IUniverInstanceService),it(4,s.ICommandService),it(5,s.Inject(_.DocSelectionManagerService)),it(6,pe),it(7,s.Inject(Yi))],Zi);var BA=Object.defineProperty,_A=Object.getOwnPropertyDescriptor,NA=(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&&BA(t,e,o),o},kt=(i,t)=>(e,n)=>t(e,n,i);const ws=300;v.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(Ft);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:g}=A;r.redoState.actions=u.actions,r.undoState.actions=d.actions,r.undoState.textRanges=[g]}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,g)=>s.JSONX.compose(u,g.redoState.actions),null),textRanges:l.redoState.textRanges},d={unitId:e,actions:o.reverse().reduce((u,g)=>s.JSONX.compose(u,g.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],g={unitId:e,actions:n.reduce((f,p)=>s.JSONX.compose(f,p.redoState.actions),null),textRanges:u.redoState.textRanges},h={unitId:e,actions:n.reverse().reduce((f,p)=>s.JSONX.compose(f,p.undoState.actions),null),textRanges:d.undoState.textRanges},m={commandId:a,unitId:e,trigger:r,redoState:g,undoState:h,segmentId:c,noHistory:l,debounce:A};n.length=0,this._docStateChange$.next(m)}},v.DocStateChangeManagerService=NA([kt(0,s.Inject(s.IUndoRedoService)),kt(1,s.ICommandService),kt(2,s.IUniverInstanceService),kt(3,s.Inject(_.DocStateEmitService)),kt(4,D.IRenderManagerService)],v.DocStateChangeManagerService);var PA=Object.defineProperty,UA=Object.getOwnPropertyDescriptor,wA=(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&&PA(t,e,o),o},Ls=(i,t)=>(e,n)=>t(e,n,i);const Qs="univer-doc-main-canvas";v.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(Qs),a.engine.getCanvas().getContext().setId(Qs))}),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)}},v.DocsRenderService=wA([Ls(0,s.IUniverInstanceService),Ls(1,D.IRenderManagerService)],v.DocsRenderService);const LA={id:ct.id,preconditions:nr,binding:y.KeyCode.ENTER},QA={id:Ut.id,preconditions:ne,binding:y.KeyCode.BACKSPACE},FA={id:Ci.id,preconditions:ne,binding:y.KeyCode.DELETE},HA={id:He.id,binding:y.KeyCode.ARROW_UP,preconditions:ne,staticParameters:{direction:s.Direction.UP}},kA={id:He.id,binding:y.KeyCode.ARROW_DOWN,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},VA={id:He.id,binding:y.KeyCode.ARROW_LEFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},jA={id:He.id,binding:y.KeyCode.ARROW_RIGHT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},WA={id:ke.id,binding:y.KeyCode.ARROW_UP|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.UP}},zA={id:ke.id,binding:y.KeyCode.ARROW_DOWN|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},GA={id:ke.id,binding:y.KeyCode.ARROW_LEFT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},XA={id:ke.id,binding:y.KeyCode.ARROW_RIGHT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},YA={id:Qi.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 Fs=Object.defineProperty,KA=Object.getOwnPropertyDescriptor,JA=(i,t,e)=>t in i?Fs(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,ZA=(i,t,e,n)=>{for(var o=n>1?void 0:n?KA(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&&Fs(t,e,o),o},Vt=(i,t)=>(e,n)=>t(e,n,i),qA=(i,t,e)=>JA(i,t+"",e);v.UniverDocsUIPlugin=class extends s.Plugin{constructor(t=Nr,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(mi,l),this._initDependencies(e),this._initializeShortcut(),this._initCommand()}onReady(){this._initRenderBasics(),this._markDocAsFocused(),s.touchDependencies(this._injector,[[v.DocStateChangeManagerService],[v.DocsRenderService]])}onRendered(){this._initUI(),this._initRenderModules(),s.touchDependencies(this._injector,[[Mn],[_n],[pt],[Nn],[v.DocUIController]])}_initCommand(){[Ut,Ci,ze,Ge,Xe,Ye,Qe,Ke,Je,Ze,qe,lt,$e,_e,Bi,un,ut,hn,vi,gn,Ce,Dt,xt,At,Mt,Bt,_t,Re,Nt,_i,Di,Cn,Tn,Is,bn,yn,En,vn,mt,Ai,Hi,We,yt,ct,on,Rt,sn,an,fi,Fi,In,Oe,Ei,et,co,Gn,Xn,xn,Qi,Ui,He,ke].forEach(t=>{this._commandService.registerCommand(t)}),[Lt,pn,Sn].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_initializeShortcut(){[HA,kA,jA,VA,WA,zA,GA,XA,YA,QA,FA,LA,or].forEach(t=>{this._injector.get(y.IShortcutService).registerShortcut(t)})}_initDependencies(t){s.mergeOverrideWithDependencies([[Ln],[Qn],[v.DocUIController],[Mn],[Nn],[_n],[Dn],[pt],[pe,{useClass:v.EditorService}],[oi,{useClass:Do}],[ft,{useClass:yi}],[v.DocCanvasPopManagerService],[v.DocsRenderService],[v.DocStateChangeManagerService],[v.DocAutoFormatService],[Be]],this._config.override).forEach(n=>t.add(n))}_markDocAsFocused(){const t=this._injector.get(s.IUniverInstanceService),e=this._injector.get(pe);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(Dn)}_initRenderBasics(){[[_.DocSkeletonManagerService],[v.DocSelectionRenderService],[_.DocInterceptorService],[Yi],[Ft],[v.DocRenderController],[Zi]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}_initRenderModules(){[[v.DocEventManagerService],[v.DocBackScrollRenderController],[Ji],[ai],[Ki],[zi],[Wi],[Ln],[Xi],[Gi],[Qn]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}},qA(v.UniverDocsUIPlugin,"pluginName",to),v.UniverDocsUIPlugin=ZA([s.DependentOn(D.UniverRenderEnginePlugin),Vt(1,s.Inject(s.Injector)),Vt(2,D.IRenderManagerService),Vt(3,s.ICommandService),Vt(4,s.ILogService),Vt(5,s.IConfigService)],v.UniverDocsUIPlugin),v.AfterSpaceCommand=yt,v.AlignCenterCommand=Bt,v.AlignJustifyCommand=Nt,v.AlignLeftCommand=Mt,v.AlignOperationCommand=Re,v.AlignRightCommand=_t,v.BreakLineCommand=Bi,v.BulletListCommand=xt,v.ChangeListNestingLevelCommand=on,v.ChangeListNestingLevelType=Ot,v.ChangeListTypeCommand=Rt,v.CheckListCommand=sn,v.CoverContentCommand=Xn,v.CreateDocTableCommand=_i,v.CutContentCommand=et,v.DOCS_COMPONENT_BACKGROUND_LAYER_INDEX=no,v.DOCS_COMPONENT_DEFAULT_Z_INDEX=jn,v.DOCS_COMPONENT_HEADER_LAYER_INDEX=io,v.DOCS_COMPONENT_MAIN_LAYER_INDEX=Wt,v.DOCS_VIEW_KEY=Ee,v.DOC_UI_PLUGIN_NAME=to,v.DOC_VERTICAL_PADDING=ji,v.DefaultDocContainerConfig=eo,v.DefaultToolbarConfig=$i,v.DeleteCommand=ut,v.DeleteCustomBlockCommand=hn,v.DeleteLeftCommand=Ut,v.DeleteRightCommand=Ci,v.DocCopyCommand=Lt,v.DocCreateTableOperation=Rn,v.DocCutCommand=pn,v.DocIMEInputManagerService=Ft,v.DocPasteCommand=Sn,v.DocSelectAllCommand=Qi,v.DocTableDeleteColumnsCommand=vn,v.DocTableDeleteRowsCommand=En,v.DocTableDeleteTableCommand=mt,v.DocTableInsertColumnCommand=Is,v.DocTableInsertColumnLeftCommand=bn,v.DocTableInsertColumnRightCommand=yn,v.DocTableInsertRowAboveCommand=Cn,v.DocTableInsertRowBellowCommand=Tn,v.DocTableInsertRowCommand=Di,v.DocTableTabCommand=Hi,v.Editor=mo,v.EditorInsertTextCommandId=cs,v.EnterCommand=ct,v.IDocClipboardService=ft,v.IEditorService=pe,v.IMEInputCommand=Fi,v.IRangeSelectorService=oi,v.InnerPasteCommand=Ei,v.InsertCommand=un,v.ListOperationCommand=At,v.MergeTwoParagraphCommand=gn,v.MoveCursorOperation=He,v.MoveSelectionOperation=ke,v.NORMAL_TEXT_SELECTION_PLUGIN_NAME=Xs,v.NodePositionConvertToCursor=Me,v.NodePositionConvertToRectRange=qn,v.OrderListCommand=Dt,v.PastePluginLark=hs,v.PastePluginUniver=fs,v.PastePluginWord=ms,v.QuickListCommand=fi,v.RangeSelector=Va,v.RangeSelectorService=Do,v.RectRange=ti,v.ReplaceContentCommand=co,v.ReplaceSnapshotCommand=Gn,v.ResetInlineFormatTextBackgroundColorCommand=lt,v.SetDocZoomRatioCommand=xn,v.SetDocZoomRatioOperation=Ce,v.SetInlineFormatBoldCommand=ze,v.SetInlineFormatCommand=_e,v.SetInlineFormatFontFamilyCommand=Ze,v.SetInlineFormatFontSizeCommand=Je,v.SetInlineFormatItalicCommand=Ge,v.SetInlineFormatStrikethroughCommand=Ye,v.SetInlineFormatSubscriptCommand=Qe,v.SetInlineFormatSuperscriptCommand=Ke,v.SetInlineFormatTextBackgroundColorCommand=$e,v.SetInlineFormatTextColorCommand=qe,v.SetInlineFormatUnderlineCommand=Xe,v.TEXT_RANGE_LAYER_INDEX=Jt,v.TabCommand=We,v.TextEditor=po,v.TextRange=Ve,v.ToggleCheckListCommand=an,v.UpdateCommand=vi,v.VIEWPORT_KEY=be,v.addCustomDecorationBySelectionFactory=Ks,v.addCustomDecorationFactory=so,v.calcDocRangePositions=Un,v.convertPositionsToRectRanges=ei,v.deleteCustomDecorationFactory=Js,v.docDrawingPositionToTransform=qs,v.genTableSource=Si,v.generateParagraphs=Mi,v.getAnchorBounding=bt,v.getCanvasOffsetByEngine=go,v.getCommandSkeleton=me,v.getCursorWhenDelete=fn,v.getCustomBlockIdsInSelections=as,v.getCutActionsFromDocRanges=rs,v.getDocObject=oo,v.getDocObjectById=Ys,v.getEmptyTableCell=ln,v.getEmptyTableRow=An,v.getLineBounding=Zt,v.getOneTextSelectionRange=Jn,v.getParagraphsInRange=rn,v.getParagraphsInRanges=dt,v.getRichTextEditPath=te,v.getTableColumn=dn,v.hasParagraphInTable=Zs,v.isInSameTableCell=Yt,v.isValidRectRange=Ao,v.menuSchema=Rs,v.neoGetDocObject=De,v.transformToDocDrawingPosition=$s,v.whenDocAndEditorFocused=ne,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
105
-
89
+ `}_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;const A=o<.5;return{...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 Ve(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 g=oi(c,l,o,a,r,A,d,u);if(g==null)return;const{textRanges:h,rectRanges:f}=g;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 po(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,v;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:g,mainComponent:h}=this._context,f=this._docSkeletonManagerService.getSkeleton();if(d==null||h==null)return;const m=oi(d,c,g,h,f,u,o,a);if(m==null)return;const{textRanges:p,rectRanges:S}=m;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(),(v=(I=this._context.scene)==null?void 0:I.getEngine())==null||v.setRemainCapture()}__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:g,right:h,bottom:f}=l.viewBound;if(d.left<u||d.left>h||d.top<g||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=Ra([en(1,y.ILayoutService),en(2,s.ILogService),en(3,s.IUniverInstanceService),en(4,s.Inject(D.DocSkeletonManagerService))],C.DocSelectionRenderService);class Io extends s.Disposable{constructor(e,n,o,a,r){super();O(this,"_change$",new N.Subject);O(this,"change$",this._change$.asObservable());O(this,"_input$",new N.Subject);O(this,"input$",this._input$.asObservable());O(this,"_paste$",new N.Subject);O(this,"paste$",this._paste$.asObservable());O(this,"_focus",!1);O(this,"_focus$",new N.Subject);O(this,"focus$",this._focus$.asObservable());O(this,"_blur$",new N.Subject);O(this,"blur$",this._blur$.asObservable());O(this,"_selectionChange$",new N.Subject);O(this,"selectionChange$",this._selectionChange$.asObservable());O(this,"_valueLegality",!0);O(this,"_openForSheetUnitId");O(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 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},je=(i,t)=>(e,n)=>t(e,n,i);const Ba=["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();O(this,"_editors",new Map);O(this,"_focusEditorUnitId");O(this,"_state$",new N.Subject);O(this,"state$",this._state$.asObservable());O(this,"_currentSheetUnitId");O(this,"_currentSheetSubUnitId");O(this,"_inputFormula$",new N.Subject);O(this,"inputFormula$",this._inputFormula$.asObservable());O(this,"_resize$",new N.Subject);O(this,"resize$",this._resize$.asObservable());O(this,"_closeRangePrompt$",new N.Subject);O(this,"closeRangePrompt$",this._closeRangePrompt$.asObservable());O(this,"_blur$",new N.Subject);O(this,"blur$",this._blur$.asObservable());O(this,"_focus$",new N.Subject);O(this,"focus$",this._focus$.asObservable());O(this,"_setValue$",new N.Subject);O(this,"setValue$",this._setValue$.asObservable());O(this,"_valueChange$",new N.Subject);O(this,"valueChange$",this._valueChange$.asObservable());O(this,"_focusStyle$",new N.Subject);O(this,"focusStyle$",this._focusStyle$.asObservable());O(this,"_singleSelection$",new N.Subject);O(this,"singleSelection$",this._singleSelection$.asObservable());O(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(Ba.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,g;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 Io({...e,render:l,editorDom:n,canvasStyle:a},this._univerInstanceService,this._docSelectionManagerService,this._commandService,this._undoRedoService);this._editors.set(r,h),e.scrollBar||(g=(u=(d=(A=l.mainComponent)==null?void 0:A.getScene())==null?void 0:d.getViewports())==null?void 0:u[0].getScrollBar())==null||g.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)!==xe.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(xe.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=Ma([je(0,s.IUniverInstanceService),je(1,M.IRenderManagerService),je(2,s.Inject(xe.LexerTreeBuilder)),je(3,s.Inject(D.DocSelectionManagerService)),je(4,s.IContextService),je(5,s.ICommandService),je(6,s.IUndoRedoService)],C.EditorService);const pe=s.createIdentifier("univer.editor.service"),ct={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 Da(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]===`
90
+ `&&o.push({startIndex:r});return{id:i,body:{dataStream:e,tables:[],textRuns:[],paragraphs:n,sectionBreaks:o},tableSource:{},documentStyle:{documentFlavor:s.DocumentFlavor.UNSPECIFIED}}}const _a=new Set(["snapshot","resizeCallBack","cancelDefaultResizeListener","isSheetEditor","canvasStyle","isFormulaEditor","isSingle","isReadonly","onlyInputFormula","onlyInputRange","value","onlyInputContent","isSingleChoice","openForSheetUnitId","openForSheetSubUnitId","onChange","onActive","onValid","placeholder"]);function Eo(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:g=!1,onlyInputContent:h=!1,isSingleChoice:f=!1,openForSheetUnitId:m,openForSheetSubUnitId:p,onChange:S,onActive:I,onValid:v,isValueValid:T=!0,placeholder:x}=i,E=s.useDependency(pe),b=s.useDependency(s.LocaleService),[_,B]=Q.useState(""),[U,R]=Q.useState(""),[w,L]=Q.useState(T),[F,H]=Q.useState([0,0]),k=Q.useRef(null),[V,G]=Q.useState(!1);if(!s.isInternalEditorID(t))throw new Error("Invalid editor ID");Q.useEffect(()=>{const W=k.current;if(!W)return;const X=new ResizeObserver(()=>{o!==!0&&E.resize(t),n&&n(W)});X.observe(W);const z=e!=null?e:Da(t,c);z.id!==t&&(z.id=t);const K=E.register({editorUnitId:t,initialSnapshot:z,cancelDefaultResizeListener:o,isSheetEditor:a,canvasStyle:r,isSingle:l,readonly:A,isSingleChoice:f,onlyInputFormula:u,onlyInputRange:g,onlyInputContent:h,openForSheetUnitId:m,openForSheetSubUnitId:p,isFormulaEditor:d},W);E.setValueNoRefresh(c||"",t),B(x||"");const ie=s.debounce(Ae=>{G(Ae),I&&I(Ae)},30),re=160,me=s.debounce(Ae=>{const Ie=Ae.getEditorId(),Ue=E.checkValueLegality(Ie);setTimeout(()=>{const he=Ae.getBoundingClientRect();H([he.left,he.top-16]),he.left+he.top>0&&L(Ue),Ae.onlyInputFormula()?R(b.t("textEditor.formulaError")):R(b.t("textEditor.rangeError"))},re),E.getValue(Ie)!==c&&(v&&v(Ue),S&&S(E.getValue(t)))},30),ce=E.focusStyle$.subscribe(Ae=>{let Ie=!1;Ae===t&&(Ie=!0),ie(Ie),setTimeout(()=>{if(!da(W))L(!0);else{const Ue=E.getEditor(t);Ue&&me(Ue)}},re)}),Te=E.valueChange$.subscribe(Ae=>{if(Ae.isSheetEditor()||Ae.getEditorId()!==t)return;const Ie=E.getFocusEditor();Ie&&Ie.getEditorId()!==t||me(Ae)});return()=>{X.unobserve(W),X.disconnect(),K.dispose(),ce==null||ce.unsubscribe(),Te==null||Te.unsubscribe()}},[]),Q.useEffect(()=>{const W=E.getEditor(t);W!=null&&W.update({readonly:A,isSingle:l,isSingleChoice:f,onlyInputContent:h,onlyInputFormula:u,onlyInputRange:g,openForSheetSubUnitId:p,openForSheetUnitId:m})},[A,l,f,h,u,g,p,m]),Q.useEffect(()=>{c!=null&&E.setValueNoRefresh(c,t)},[c]),Q.useEffect(()=>{L(T)},[T]);function Y(){const W=E.getValue(t);return!(W==null||W==="")}const j=Object.fromEntries(Object.entries(i).filter(([W])=>!_a.has(W)));let Z=ct.textEditorContainer;i.className!=null&&(Z=i.className);let ee="";return i.className==null&&(A?ee=` ${ct.textEditorContainerDisabled}`:w?V&&(ee=` ${ct.textEditorContainerActive}`):ee=` ${ct.textEditorContainerError}`),P.jsx(P.Fragment,{children:P.jsxs("div",{...j,className:Z+ee,ref:k,children:[P.jsx("div",{style:{display:w?"none":"block"},className:ct.textEditorValidationError,children:U}),P.jsx("div",{style:{display:Y()?"none":"unset"},className:ct.textEditorContainerPlaceholder,children:_})]})})}var Se=function(){return Se=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},Se.apply(this,arguments)},Na=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=Na(i,["icon","id","className","extend"]),c="univerjs-icon univerjs-icon-".concat(n," ").concat(o||"").trim(),l=Q.useRef("_".concat(wa()));return vo(e,"".concat(n),{defIds:e.defIds,idSuffix:l.current},Se({ref:t,className:c},r),a)});function vo(i,t,e,n,o){return Q.createElement(i.tag,Se(Se({key:t},Pa(i,e,o)),n),(Ua(i,e).children||[]).map(function(a,r){return vo(a,"".concat(t,"-").concat(i.tag,"-").concat(r),e,void 0,o)}))}function Pa(i,t,e){var n=Se({},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 Ua(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)?Se(Se({},i),{children:i.children.map(function(o){return typeof o.attrs.id=="string"&&n&&n.indexOf(o.attrs.id)>-1?Se(Se({},o),{attrs:Se(Se({},o.attrs),{id:o.attrs.id+t.idSuffix})}):o})}):i}function wa(){return Math.random().toString(36).substring(2,8)}ye.displayName="UniverIcon";var La={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"}}]},Co=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"align-text-both-single",ref:t,icon:La}))});Co.displayName="AlignTextBothSingle";var Qa={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"}}]},To=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"close-single",ref:t,icon:Qa}))});To.displayName="CloseSingle";var Fa={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"}}]},bo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"delete-single",ref:t,icon:Fa}))});bo.displayName="DeleteSingle";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.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"}}]},yo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"horizontally-single",ref:t,icon:Ha}))});yo.displayName="HorizontallySingle";var ka={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"}}]},Ro=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"increase-single",ref:t,icon:ka}))});Ro.displayName="IncreaseSingle";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.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"}}]},Oo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"left-justifying-single",ref:t,icon:Va}))});Oo.displayName="LeftJustifyingSingle";var ja={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"}}]},xo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"right-justifying-single",ref:t,icon:ja}))});xo.displayName="RightJustifyingSingle";var Wa={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"}}]},Mo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"select-range-single",ref:t,icon:Wa}))});Mo.displayName="SelectRangeSingle";var za={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"}}]},Bo=Q.forwardRef(function(i,t){return Q.createElement(ye,Object.assign({},i,{id:"todo-list",ref:t,icon:za}))});Bo.displayName="TodoList";function Do(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=Do(i[t]))&&(n&&(n+=" "),n+=e)}else for(e in i)i[e]&&(n&&(n+=" "),n+=e);return n}function tn(){for(var i,t,e=0,n="",o=arguments.length;e<o;e++)(i=arguments[e])&&(t=Do(i))&&(n&&(n+=" "),n+=t);return n}class _o extends s.Disposable{constructor(){super(...arguments);O(this,"_currentSelectorId");O(this,"_selectionChange$",new N.Subject);O(this,"selectionChange$",this._selectionChange$.asObservable());O(this,"_openSelector$",new N.Subject);O(this,"openSelector$",this._openSelector$.asObservable());O(this,"_selectorModalVisible$",new N.BehaviorSubject(!1));O(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 ai=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"},Ga={pointerEvents:"none"};function Ya(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:g,isReadonly:h=!1,className:f,textEditorClassName:m,onSelectorVisibleChange:p}=i,S=y.useEvent(p),[I,v]=Q.useState([""]),T=J=>{v($=>[...$,J])},x=J=>{v($=>$.filter((oe,zt)=>zt!==J))},E=(J,$)=>{v(oe=>oe.map((zt,ot)=>ot===J?$:zt))},b=J=>{v($=>{const oe=[...$];return oe.length>0&&(oe[oe.length-1]=J),oe})},_=s.useDependency(pe),B=s.useDependency(ai),U=s.useDependency(s.IUniverInstanceService),[R,w]=Q.useState(!1),L=s.useDependency(s.LocaleService),[F,H]=Q.useState(!1),[k,V]=Q.useState(!0),[G,Y]=Q.useState(o),[j,Z]=Q.useState(-1),ee=Q.useRef(null),W=Q.useRef(-1),X=Q.useRef(u),z=Q.useRef(g),K=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 zt=B.selectionChange$.subscribe(ot=>{if(B.getCurrentSelectorId()!==n)return;if(ot.length===0){oe=0;return}const zs=ot.length-oe;if(oe=ot.length,zs<0)return;const we=ot[ot.length-1];let bt="";we.unitId===X.current&&we.sheetId===z.current?bt=xe.serializeRange(we.range):we.unitId===X.current?bt=xe.serializeRangeWithSheet(we.sheetName,we.range):bt=xe.serializeRangeWithSpreadsheet(we.unitId,we.sheetName,we.range),zs>=1&&!K.current?(T(bt),Z(-1)):W.current===-1?b(bt):E(W.current,bt)});return()=>{zt.unsubscribe(),$.unobserve(J)}},[]),Q.useEffect(()=>{B.triggerModalVisibleChange(R)},[S,B,R]),Q.useEffect(()=>()=>{B.triggerModalVisibleChange(!1)},[B]),Q.useEffect(()=>{X.current=u,z.current=g,K.current=d,ie.current=h},[u,g,d,h]),Q.useEffect(()=>{W.current=j},[j]);function re(){w(!1),S(!1),B.setCurrentSelectorId(null)}function me(){ie.current!==!0&&(_.closeRangePrompt(),B.setCurrentSelectorId(n),w(!0),S(!0),G.length>0?v(k?G.split(","):[""]):B.openSelector())}function ce(J){H(J),l&&l(J)}function Te(J){V(J),A&&A(J)}function Ae(){if(ie.current===!0){re();return}let J="";const $=I.filter(oe=>xe.isReferenceStringWithEffectiveColumn(oe.trim()));if($.length===1){const oe=$[0];xe.isReferenceStringWithEffectiveColumn(oe.trim())&&(J=oe.trim())}else J=$.join(",");_.setValue(J,n),Tt(J),re()}function Ie(){T(""),Z(-1)}function Ue(J){var $,oe;return((oe=($=U.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET))==null?void 0:$.getSheetBySheetName(J))==null?void 0:oe.getSheetId())||""}function Tt(J){if(Y(J||""),J==null){e&&e([]);return}const $=xe.getRangeWithRefsString(J,Ue);e&&e($||[])}let he=ae.rangeSelector;h?he=`${ae.rangeSelector} ${ae.rangeSelectorDisabled}`:k?F&&(he=`${ae.rangeSelector} ${ae.rangeSelectorActive}`):he=`${ae.rangeSelector} ${ae.rangeSelectorError}`,m&&(he=`${he} ${m}`);let Wn=28;return c==="mini"?Wn=20:c==="small"?Wn=24:c==="large"&&(Wn=32),P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:tn(he,f),ref:ee,style:{width:a,height:Wn,cursor:t?"pointer":void 0},onClickCapture:J=>{t&&(J.stopPropagation(),J.preventDefault(),me())},children:[P.jsx(Eo,{style:t?Ga:void 0,placeholder:r,value:o,isReadonly:h,isSingleChoice:d,openForSheetUnitId:u,openForSheetSubUnitId:g,onValid:Te,onActive:ce,onChange:Tt,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:me,children:P.jsx(Mo,{})})})]}),P.jsx(se.Dialog,{width:"328px",visible:R,title:L.t("rangeSelector.title"),draggable:!0,closeIcon:P.jsx(To,{}),footer:P.jsxs("footer",{children:[P.jsx(se.Button,{onClick:re,children:L.t("rangeSelector.cancel")}),P.jsx(se.Button,{style:{marginLeft:10},onClick:Ae,type:"primary",children:L.t("rangeSelector.confirm")})]}),onClose:re,children:P.jsxs("div",{className:tn(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:j===$||I.length-1===$&&j===-1?ae.rangeSelectorModalContainerInputActive:"",placeholder:L.t("rangeSelector.placeHolder"),affixWrapperStyle:{width:"100%"},onClick:()=>Z($),value:J,onChange:oe=>E($,oe)},`input${$}`)}),P.jsx("div",{style:{display:I.length===1?"none":"inline-block"},className:ae.rangeSelectorModalContainerButton,children:P.jsx(bo,{className:ae.rangeSelectorModalContainerDeleteButton,onClick:()=>x($)})})]},$)),P.jsx("div",{style:{display:d?"none":"unset"},className:ae.rangeSelectorModalAdd,children:P.jsxs(se.Button,{type:"link",size:"small",onClick:Ie,className:ae.rangeSelectorModalAddButton,children:[P.jsx(Ro,{}),P.jsx("span",{children:L.t("rangeSelector.addAnotherRange")})]})})]})})]})}function No(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 Po="COMPONENT_DOC_HEADER_FOOTER_PANEL",ge={panel:"univer-panel",optionsSection:"univer-options-section",optionsFormItem:"univer-options-form-item",optionsInput:"univer-options-input",optionsMarginSetting:"univer-options-margin-setting"};function Xa(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 Ka=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 m=e.getUniverDocInstance(r),p=m==null?void 0:m.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 v=I.getEditArea();let T=!1;const x=c.getSegmentPage();let E=!1;if(f==="useFirstPageHeaderFooter"&&h===!0&&((v===M.DocumentEditArea.HEADER&&!p.firstPageHeaderId||v===M.DocumentEditArea.FOOTER&&!p.firstPageFooterId)&&(T=!0),T&&x===0&&(E=!0)),f==="evenAndOddHeaders"&&h===!0&&((v===M.DocumentEditArea.HEADER&&!p.evenPageHeaderId||v===M.DocumentEditArea.FOOTER&&!p.evenPageFooterId)&&(T=!0),T&&x%2===1&&(E=!0)),T){const B=s.Tools.generateRandomId(6);E&&c.setSegment(B),o.executeCommand(on,{unitId:r,segmentId:B,headerFooterProps:{[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}else{const _=c.getSegmentPage(),B=c.getSegment(),U=Xa({...p,[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE},v,_);U&&U!==B&&c.setSegment(U),o.executeCommand(on,{unitId:r,headerFooterProps:{[f]:h?s.BooleanNumber.TRUE:s.BooleanNumber.FALSE}})}a.focus()},u=async(h,f)=>{A(m=>({...m,[f]:h})),await o.executeCommand(on,{unitId:r,headerFooterProps:{[f]:h}}),c.removeAllRanges(),c.blur()},g=()=>{o.executeCommand(ui.id,{unitId:r})};return Q.useEffect(()=>{const h=e.getUniverDocInstance(r),f=h==null?void 0:h.getSnapshot().documentStyle;if(f){const{marginHeader:m=0,marginFooter:p=0,useFirstPageHeaderFooter:S=s.BooleanNumber.FALSE,evenAndOddHeaders:I=s.BooleanNumber.FALSE}=f;A({marginHeader:m,marginFooter:p,useFirstPageHeaderFooter:S,evenAndOddHeaders:I})}},[r]),P.jsxs("div",{className:ge.options,children:[P.jsxs("div",{className:ge.optionsSection,children:[P.jsx("div",{className:ge.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:ge.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:tn(ge.optionsSection,ge.optionsMarginSetting),children:[P.jsxs("div",{className:ge.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:ge.optionsInput})]}),P.jsxs("div",{className:ge.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:ge.optionsInput})]})]}),P.jsx("div",{className:ge.optionsSection,children:P.jsx(se.Button,{onClick:g,children:t.t("headerFooter.closeHeaderFooter")})})]})},Ja=()=>{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(g=>{g!=null&&l(g!==M.DocumentEditArea.BODY)});return()=>{u.unsubscribe()}},[]),P.jsx("div",{className:ge.panel,children:c?P.jsx(Ka,{unitId:o}):P.jsx("div",{className:ge.panelDisableText,children:i.t("headerFooter.disableText")})})},Uo=18,wo=200,ri=6,Za=4;function qa(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 nn extends M.Shape{constructor(e,n){super(e,n);O(this,"color");O(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*ri,wo);qa(e,{height:Uo,width:c,radius:4,fill:a,evented:!1}),e.fillStyle="rgba(58, 96, 247, 1)";const l=ri,A=Uo-Za,d=wo-2*ri;if(r>d){let u="",g=0;for(const h of o){const f=e.measureText(h).width;if(g+f<=d-e.measureText("...").width)u+=h,g+=f;else{u+="...";break}}e.fillText(u,l,A)}else e.fillText(o,l,A);e.restore()}_draw(e){nn.drawWith(e,this)}}var $a=Object.defineProperty,er=Object.getOwnPropertyDescriptor,tr=(i,t,e,n)=>{for(var o=n>1?void 0:n?er(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&&$a(t,e,o),o},Le=(i,t)=>(e,n)=>t(e,n,i);const Lo="rgba(58, 96, 247, 1)",Qo="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 nr(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 ci=class extends s.Disposable{constructor(t,e,n,o,a,r,c,l,A){super();O(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(ui.id,{unitId:this._context.unitId})}}))}_initCustomComponents(){const t=this._componentManager;this.disposeWithMe(t.register(Po,Ja))}_init(){const{unitId:t}=this._context,e=Me(this._context);e==null||e.document==null||this._loadedMap.has(e.document)||(this._initialMain(t),this._loadedMap.add(e.document))}_initialMain(t){const e=Me(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(),g=this._docSkeletonManagerService.getSkeleton(),h=u.getEditArea(),{editArea:f,pageNumber:m}=g.findEditAreaByCoord(d,c,l,A);if(h===f)return;u.setEditArea(f);const{createType:p,headerFooterId:S}=nr(u,f,m);if(f===M.DocumentEditArea.BODY)this._docSelectionRenderService.setSegment(""),this._docSelectionRenderService.setSegmentPage(-1),this._docSelectionRenderService.setCursorManually(a,r);else if(p!=null){const v=s.Tools.generateRandomId(6);this._docSelectionRenderService.setSegment(v),this._docSelectionRenderService.setSegmentPage(m),await this._commandService.executeCommand(Ho.id,{unitId:t,createType:p,segmentId:v})}else S!=null&&(this._docSelectionRenderService.setSegment(S),this._docSelectionRenderService.setSegmentPage(m),this._docSelectionRenderService.setCursorManually(a,r))}))}_getTransformCoordForDocumentOffset(t,e){const n=Me(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:g,ctx:h}=r,{pageWidth:f,pageHeight:m,marginTop:p,marginBottom:S}=d;if(h.save(),h.translate(u-.5,g-.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,m-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:m-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:Lo},v={dataArray:[{command:"M",points:[0,m-S]},{command:"L",points:[f,m-S]}],strokeWidth:1,stroke:Lo};M.Path.drawWith(h,I),M.Path.drawWith(h,v),h.translate(0,p+1),nn.drawWith(h,{text:t.t("headerFooter.header"),color:Qo}),h.translate(0,m-p-S),nn.drawWith(h,{text:t.t("headerFooter.footer"),color:Qo})}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}};ci=tr([Le(1,s.ICommandService),Le(2,pe),Le(3,s.IUniverInstanceService),Le(4,M.IRenderManagerService),Le(5,s.Inject(D.DocSkeletonManagerService)),Le(6,s.Inject(C.DocSelectionRenderService)),Le(7,s.Inject(s.LocaleService)),Le(8,s.Inject(y.ComponentManager))],ci);const li={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:Po},onClose:()=>{},width:400});break;case"close":default:e.close();break}return!0}};function Fo(){return{dataStream:`\r
91
+ `,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 Ai(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:Fo()});n.push(l);const A=s.Tools.generateRandomId(a),d=o.insertOp([c?"footers":"headers",A],{[c?"footerId":"headerId"]:A,body:Fo()});n.push(d);let u="defaultHeaderId",g="defaultFooterId";switch(t){case ue.DEFAULT_HEADER:u="defaultHeaderId",g="defaultFooterId";break;case ue.DEFAULT_FOOTER:u="defaultFooterId",g="defaultHeaderId";break;case ue.FIRST_PAGE_HEADER:u="firstPageHeaderId",g="firstPageFooterId";break;case ue.FIRST_PAGE_FOOTER:u="firstPageFooterId",g="firstPageHeaderId";break;case ue.EVEN_PAGE_HEADER:u="evenPageHeaderId",g="evenPageFooterId";break;case ue.EVEN_PAGE_FOOTER:u="evenPageFooterId",g="evenPageHeaderId";break;default:throw new Error(`Unknown header footer type: ${t}`)}for(const[h,f]of[[u,r],[g,A]])if(e[h]!=null){const m=o.replaceOp(["documentStyle",h],e[h],f);n.push(m)}else{const m=o.insertOp(["documentStyle",h],f);n.push(m)}return n}const on="doc.command.core-header-footer",Ho={id:on,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 g=u.getEditArea(),{documentStyle:h}=d.getSnapshot(),f=(l==null?void 0:l.marginFooter)!=null||(l==null?void 0:l.marginHeader)!=null,m=[{startOffset:0,endOffset:0,collapsed:!0}],p={id:D.RichTextEditingMutation.id,params:{unitId:a,actions:[],textRanges:m,debounce:!0}};f&&(p.params.noNeedSetTextRange=!0);const S=s.JSONX.getInstance(),I=[];return c!=null&&Ai(r,c,h,I),l!=null&&Object.keys(l).forEach(x=>{const E=l[x],b=h[x];if(E===b)return;let _;if(b===void 0?_=S.insertOp(["documentStyle",x],E):_=S.replaceOp(["documentStyle",x],b,E),I.push(_),x==="useFirstPageHeaderFooter"&&E===s.BooleanNumber.TRUE&&!h.firstPageHeaderId){const B=g===M.DocumentEditArea.HEADER?ue.FIRST_PAGE_HEADER:ue.FIRST_PAGE_FOOTER;Ai(r,B,h,I)}else if(x==="evenAndOddHeaders"&&E===s.BooleanNumber.TRUE&&!h.evenPageHeaderId){const B=g===M.DocumentEditArea.HEADER?ue.EVEN_PAGE_HEADER:ue.EVEN_PAGE_FOOTER;Ai(r,B,h,I)}}),I.length===0?!1:(p.params.actions=I.reduce((x,E)=>s.JSONX.compose(x,E),null),!!e.syncExecuteCommand(p.id,p.params))}},di={id:"doc.command.open-header-footer-panel",type:s.CommandType.COMMAND,handler:async(i,t)=>i.get(s.ICommandService).executeCommand(li.id,{value:"open"})},ui={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),g=d==null?void 0:d.getSkeleton(),h=d==null?void 0:d.getViewModel();return h==null||g==null?!1:(o.replaceDocRanges([]),A.clearSelectedObjects(),u.setSegment(""),u.setSegmentPage(-1),h.setEditArea(M.DocumentEditArea.BODY),g.calculate(),(f=c.mainComponent)==null||f.makeDirty(!0),queueMicrotask(()=>{const m=a.getUnit(r),p=m==null?void 0:m.getSnapshot();if(p==null)return;const S=No(p);o.replaceDocRanges([{startOffset:S,endOffset:S}])}),e.executeCommand(li.id,{value:"close"}),!0)}},lt="UI_PLUGIN_DOCS",hi=`${lt}_COLOR_PICKER_COMPONENT`,ko=`${lt}_FONT_FAMILY_COMPONENT`,Vo=`${lt}_FONT_FAMILY_ITEM_COMPONENT`,jo=`${lt}_FONT_SIZE_COMPONENT`,gi={docListTypePicker:"univer-doc-list-type-picker",docListTypePickerItem:"univer-doc-list-type-picker-item",docListTypePickerItemActive:"univer-doc-list-type-picker-item-active"},Wo=i=>{const{value:t,onChange:e,options:n}=i;return P.jsx("div",{className:gi.docListTypePicker,children:n.map(o=>P.jsx("img",{className:gi.docListTypePickerItem+(t===o.value?` ${gi.docListTypePickerItemActive}`:""),onClick:()=>{e(o.value)},src:o.img},o.value))})},ir=[{value:s.PresetListType.ORDER_LIST,img:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEA2ADYAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/CABEIAPQA2AMBEQACEQEDEQH/xAAzAAEAAgMBAQEAAAAAAAAAAAAABwkGCAoFBAMBAQADAQEAAAAAAAAAAAAAAAACAwQBBf/aAAwDAQACEAMQAAAA7+AAAAAAAAAAAAAAAAAAAAAAAAA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wo7s7aTcBcBgOqDGsRzkp8j5HaGUMCrCYPvnSJDMM4g2HyOfVBg6Os31XD8f74bSyhgVYTB986Q4AQlidIz1ch69oVjSJWIJFTIsAdHInCYsuOVLaxWDtUTUYRPtOpE/U2E1XG3KQoSi1woirihM0Pmp3bqqJGR6jqtZImYO42HuOG09IeShBa1u4ep8DRVZzJQSfdpsHGidHUVvrHD7f73DI7T8ExGLxJgGxRbK6ZrAzAvnZRVCiSgAZe69/aj/9k="}],ar=i=>P.jsx(Wo,{...i,options:sr}),zo=`${lt}_ORDER_LIST_TYPE_COMPONENT`,Go=`${lt}_BULLET_LIST_TYPE_COMPONENT`,We={id:"doc.command.tab",type:s.CommandType.COMMAND,async handler(i,t){const n=i.get(C.DocAutoFormatService).onAutoFormat(We.id,t);return(await s.sequenceExecuteAsync(n,i.get(s.ICommandService))).result}},Ot={id:"doc.command.after-space",type:s.CommandType.COMMAND,async handler(i){const e=i.get(C.DocAutoFormatService).onAutoFormat(Ot.id);return(await s.sequenceExecuteAsync(e,i.get(s.ICommandService))).result}},At={id:"doc.command.enter",type:s.CommandType.COMMAND,async handler(i){const e=i.get(C.DocAutoFormatService).onAutoFormat(At.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 rr(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 cr={id:We.id,binding:y.KeyCode.TAB,preconditions:ne},lr={id:We.id,binding:y.KeyCode.TAB|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{shift:!0}};var Ar=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,ur=(i,t,e,n)=>{for(var o=n>1?void 0:n?dr(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&&Ar(t,e,o),o},mi=(i,t)=>(e,n)=>t(e,n,i);const hr=11,gr=9,sn={ff:"Arial",fs:hr};let De=class extends s.Disposable{constructor(t,e,n){super();O(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{...sn};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?{...sn}:o.getEditArea()===M.DocumentEditArea.BODY?{...sn}:{...sn,fs:gr}}setStyleCache(t){this._cacheStyle={...this._cacheStyle,...t}}_clearStyleCache(){this._cacheStyle=null}};De=ur([mi(0,s.Inject(D.DocSelectionManagerService)),mi(1,s.IUniverInstanceService),mi(2,M.IRenderManagerService)],De);function ve(i,t,e){return e.executeCommand(_e.id,{preCommandId:i,...t!=null?t:{}})}const Yo="doc.command.set-inline-format-bold",ze={id:Yo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Yo,t,e)}},Xo="doc.command.set-inline-format-italic",Ge={id:Xo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Xo,t,e)}},Ko="doc.command.set-inline-format-underline",Ye={id:Ko,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Ko,t,e)}},Jo="doc.command.set-inline-format-strikethrough",Xe={id:Jo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Jo,t,e)}},Zo="doc.command.set-inline-format-subscript",Qe={id:Zo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(Zo,t,e)}},qo="doc.command.set-inline-format-superscript",Ke={id:qo,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(qo,t,e)}},$o="doc.command.set-inline-format-fontsize",Je={id:$o,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve($o,t,e)}},es="doc.command.set-inline-format-font-family",Ze={id:es,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(es,t,e)}},ts="doc.command.set-inline-format-text-color",qe={id:ts,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(ts,t,e)}},ns="doc.command.set-inline-format-text-background-color",$e={id:ns,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(ns,t,e)}},is="doc.command.reset-inline-format-text-background-color",dt={id:is,type:s.CommandType.COMMAND,handler:async(i,t)=>{const e=i.get(s.ICommandService);return ve(is,t,e)}},fi={[ze.id]:"bl",[Ge.id]:"it",[Ye.id]:"ul",[Xe.id]:"st",[Je.id]:"fs",[Ze.id]:"ff",[qe.id]:"cl",[$e.id]:"bg",[dt.id]:"bg",[Qe.id]:"va",[Ke.id]:"va"},_e={id:"doc.command.set-inline-format",type:s.CommandType.COMMAND,handler:async(i,t)=>{var x;const{value:e,preCommandId:n}=t,o=i.get(s.ICommandService),a=i.get(D.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=i.get(De),l=a.getDocRanges(),A=(x=l.find(E=>E.isActive))!=null?x: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 g=u.getSelfOrHeaderFooterModel(d).getBody();if(g==null)return!1;const h=u.getUnitId();let f;switch(n){case ze.id:case Ge.id:case Ye.id:case Xe.id:case Qe.id:case Ke.id:{const E=c.getDefaultStyle(),b=ss(g,A,E);f=fr(b,n);break}case Je.id:case Ze.id:{f=e;break}case qe.id:case $e.id:{f={rgb:e};break}case dt.id:{f={rgb:null};break}default:throw new Error(`Unknown command: ${n} in handleInlineFormat`)}const m={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 E of l){let{startOffset:b,endOffset:_,rangeType:B}=E;if(b==null||_==null)continue;if(B===s.DOC_RANGE_TYPE.RECT&&(b=b-1),b===_){const w=c.getStyleCache(),L=fi[n];c.setStyleCache({[L]:(w==null?void 0:w[L])!==void 0?os(w,L,n):f});continue}const U={dataStream:"",textRuns:[{st:0,ed:_-b,ts:{[fi[n]]:f}}]},R=b-I.cursor;R!==0&&p.push({t:s.TextXActionType.RETAIN,len:R}),p.push({t:s.TextXActionType.RETAIN,body:U,len:_-b}),I.reset(),I.moveCursor(_)}const v=te(u,d);return m.params.actions=S.editOp(p.serialize(),v),!!o.syncExecuteCommand(m.id,m.params)}};function mr(i){return i!==null&&typeof i=="object"}function os(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 mr(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===Qe.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 ss(i,t,e){var A,d,u,g,h,f,m,p,S,I,v,T,x,E;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 U=b[B];if(U.st<n&&n<=U.ed){_=U;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=(g=(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?g: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=(m=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.bg)!=null}))==null?void 0:m.ts)==null?void 0:p.bg)!=null?S:c.bg,c.cl=(T=(v=(I=r.find(b=>{var _;return((_=b.ts)==null?void 0:_.cl)!=null}))==null?void 0:I.ts)==null?void 0:v.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=(x=l[0].ts)==null?void 0:x.va;let _=!0;for(let B=1;B<l.length;B++)if(((E=l[B].ts)==null?void 0:E.va)!==b){_=!1;break}_&&(c.va=b)}return c}function fr(i,t){const e=fi[t];return os(i,e,t)}const ut={id:"doc.command.list-operation",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,v;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=(v=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:v.paragraphs;if(A==null)return!1;const d=ht(c,A),u=r.getUnitId(),g={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}),m=s.JSONX.getInstance(),p=te(r,l);return g.params.actions=m.editOp(f.serialize(),p),!!o.syncExecuteCommand(g.id,g.params)}},xt={id:"doc.command.change-list-type",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,v;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=(v=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:v.paragraphs;if(d==null)return!1;const u=ht(A,d),g=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(),m={id:D.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return m.params.actions=f.editOp(h.serialize(),p),!!o.syncExecuteCommand(m.id,m.params)}};var Mt=(i=>(i[i.increase=1]="increase",i[i.decrease=-1]="decrease",i))(Mt||{});const an={id:"doc.command.change-list-nesting-level",type:s.CommandType.COMMAND,handler:(i,t)=>{var I,v;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=(v=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:v.paragraphs;if(d==null)return!1;const u=ln(c,d),g=r.getUnitId(),h=s.JSONX.getInstance(),f=s.BuildTextUtils.paragraph.bullet.changeNestLevel({paragraphs:u,type:e,segmentId:l,document:r}),m={id:D.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:A,isEditing:!1}},p=te(r,l);return m.params.actions=h.editOp(f.serialize(),p),!!a.syncExecuteCommand(m.id,m.params)}},Bt={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(xt.id,{listType:t.value}):e.syncExecuteCommand(ut.id,{listType:s.PresetListType.BULLET_LIST})}},rn={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(xt.id,{listType:t.value}):e.syncExecuteCommand(ut.id,{listType:s.PresetListType.CHECK_LIST})}},cn={id:"doc.command.toggle-check-list",type:s.CommandType.COMMAND,handler:(i,t)=>{var m;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||((m=c.getSelfOrHeaderFooterModel(a).getBody())==null?void 0:m.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 g=s.JSONX.getInstance(),h=te(c,a);return d.params.actions=g.editOp(u.serialize(),h),!!n.syncExecuteCommand(d.id,d.params)}},Dt={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(xt.id,{listType:t.value}):e.syncExecuteCommand(ut.id,{listType:s.PresetListType.ORDER_LIST})}},pi={id:"doc.command.quick-list",type:s.CommandType.COMMAND,handler(i,t){var Z,ee,W,X,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,g=new s.TextX,h=s.JSONX.getInstance(),{defaultTabStop:f=36}=a.getSnapshot().documentStyle,m=(ee=(Z=a.getSelfOrHeaderFooterModel(c).getBody())==null?void 0:Z.sectionBreaks)!=null?ee:[],{startIndex:p,paragraphStyle:S={}}=A,{indentFirstLine:I,snapToGrid:v,indentStart:T}=S,x=s.PRESET_LIST_TYPE[l].nestingLevel[0].paragraphProperties||{},{hanging:E,indentStart:b}=x,_=x.textStyle,{charSpace:B,gridType:U}=pr(p,m)||{charSpace:0,gridType:s.GridType.LINES},R=M.getCharSpaceApply(B,f,U,v);let L=s.Tools.generateRandomId(6);const F=(X=(W=a.getBody())==null?void 0:W.paragraphs)!=null?X:[],H=F.findIndex(K=>K.startIndex===A.startIndex),k=F[H-1],V=F[H+1];k&&k.bullet&&k.bullet.listType.indexOf(l)===0?L=k.bullet.listId:V&&V.bullet&&V.bullet.listType.indexOf(l)===0&&(L=V.bullet.listId);const G={id:D.RichTextEditingMutation.id,params:{unitId:a.getUnitId(),actions:[],textRanges:[{startOffset:d,endOffset:d,collapsed:!0}],isEditing:!1}};g.push({t:s.TextXActionType.RETAIN,len:d}),g.push({t:s.TextXActionType.DELETE,len:u-d}),g.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{startIndex:0,paragraphStyle:{...S,textStyle:{...S.textStyle,..._},indentFirstLine:void 0,hanging:E,indentStart:{v:M.getNumberUnitValue(b,R)-M.getNumberUnitValue(E,R)+M.getNumberUnitValue(I,R)+M.getNumberUnitValue(T,R)}},bullet:{...(z=A.bullet)!=null?z:{nestingLevel:0,textStyle:{fs:20}},listType:l,listId:L}}]}});const Y=te(a,c);return G.params.actions=h.editOp(g.serialize(),Y),!!o.syncExecuteCommand(G.id,G.params)}};function ln(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 ht(i,t){const e=[];for(const n of i){const o=ln(n,t);e.push(...o)}return e}function pr(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 v;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=(v=r.getSelfOrHeaderFooterModel(l).getBody())==null?void 0:v.paragraphs;if(A==null)return!1;const d=ht(c,A),u=r.getUnitId(),g=d.every(T=>{var x;return((x=T.paragraphStyle)==null?void 0:x.horizontalAlign)===a}),h={id:D.RichTextEditingMutation.id,params:{unitId:u,actions:[],textRanges:c}},f=new s.MemoryCursor;f.reset();const m=new s.TextX,p=s.JSONX.getInstance();for(const T of d){const{startIndex:x}=T;m.push({t:s.TextXActionType.RETAIN,len:x-f.cursor});const E={...T.paragraphStyle,horizontalAlign:g?s.HorizontalAlign.UNSPECIFIED:a};m.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...T,paragraphStyle:E,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),f.moveCursorTo(x+1)}const S=te(r,l);return h.params.actions=p.editOp(m.serialize(),S),!!o.syncExecuteCommand(h.id,h.params)}},_t={id:"doc.command.align-left",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.LEFT})},Nt={id:"doc.command.align-center",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.CENTER})},Pt={id:"doc.command.align-right",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.RIGHT})},Ut={id:"doc.command.align-justify",type:s.CommandType.COMMAND,handler:i=>i.get(s.ICommandService).syncExecuteCommand(Re.id,{alignType:s.HorizontalAlign.JUSTIFIED})},Sr={id:ze.id,binding:y.KeyCode.B|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Ir={id:Ge.id,binding:y.KeyCode.I|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Er={id:Ye.id,binding:y.KeyCode.U|y.MetaKeys.CTRL_COMMAND,preconditions:ne},vr={id:Xe.id,binding:y.KeyCode.X|y.MetaKeys.SHIFT|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Cr={id:Qe.id,binding:y.KeyCode.COMMA|y.MetaKeys.CTRL_COMMAND,preconditions:ne},Tr={id:Ke.id,binding:y.KeyCode.PERIOD|y.MetaKeys.CTRL_COMMAND,preconditions:ne},br={id:_t.id,binding:y.KeyCode.L|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},yr={id:Pt.id,binding:y.KeyCode.R|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Rr={id:Nt.id,binding:y.KeyCode.E|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Or={id:Ut.id,binding:y.KeyCode.J|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},xr={id:Dt.id,binding:y.KeyCode.Digit7|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Mr={id:Bt.id,binding:y.KeyCode.Digit8|y.MetaKeys.CTRL_COMMAND|y.MetaKeys.SHIFT,preconditions:ne},Br={docCountBar:"univer-doc-count-bar"},Dr=(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}},Ce={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}},_r=[50,80,100,130,150,170,200,400],Nr=[10,400];function Pr(){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===Ce.id){const d=o();r(d)}}).dispose),[i,o]);function c(l){if(r(l),n==null)return;const A=l/100;i.executeCommand(Ce.id,{unitId:n.getUnitId(),zoomRatio:A})}return P.jsx(se.Slider,{min:Nr[0],value:a,shortcuts:_r,onChange:c})}function Ur(i){return P.jsx("section",{className:Br.docCountBar,children:P.jsx(Pr,{})})}const wr={docFooterContainer:"univer-doc-footer-container"},Lr=()=>P.jsxs("div",{className:wr.docFooterContainer,children:[P.jsx("div",{}),P.jsx(Ur,{})]}),Si="docs-ui.config",Qr={layout:{docContainerConfig:io,toolbarConfig:no}};var An=(i=>(i[i.ABOVE=0]="ABOVE",i[i.BELLOW=1]="BELLOW",i))(An||{}),Ii=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(Ii||{});function Fr(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
92
+ ${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 dn(){return{margin:{start:{v:10},end:{v:10},top:{v:5},bottom:{v:5}}}}function un(i){const t=dn();return{tableCells:[...new Array(i).fill(null).map(()=>s.Tools.deepClone(t))],trHeight:{val:{v:30},hRule:s.TableRowHeightRule.AUTO}}}function hn(i){return{size:{type:s.TableSizeType.SPECIFIED,width:{v:i}}}}function Ei(i,t,e){const n=hn(e/t),o=un(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 wt(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 Hr(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
93
+ ${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 kr(){const i=`${s.DataStreamTreeTokenType.TABLE_CELL_START}\r
94
+ ${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 Vr(i,t,e){var u,g,h;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o;let l=null;const A=(h=(g=(u=e.getBody())==null?void 0:u.tables)==null?void 0:g.find(f=>c>=f.startIndex&&c<=f.endIndex))==null?void 0:h.tableId;let d=0;for(const f of r.getChildren()){for(const m of f.children){const{children:p}=m,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 jr(i,t,e){var h,f,m;const{startOffset:n,endOffset:o,segmentId:a}=i,r=e.getSelfOrHeaderFooterViewModel(a),c=t===0?n:o,l=(m=(f=(h=e.getBody())==null?void 0:h.tables)==null?void 0:f.find(p=>c>=p.startIndex&&c<=p.endIndex))==null?void 0:m.tableId,A=[];let d=null,u=-1;for(const p of r.getChildren()){for(const S of p.children){const{children:I}=S,v=I[0];if(v){if(c<v.startIndex||c>v.endIndex)continue;d=v;for(const T of v.children){for(const x of T.children){const E=T.children.indexOf(x);if(c>=x.startIndex&&c<=x.endIndex){u=E;break}}if(u!==-1)break}}if(d)break}if(d)break}if(d==null||l==null||u===-1)return null;let g=0;for(const p of d.children){const S=p.children[u],I=t===0?S.startIndex:S.endIndex+1;A.push(I-g),g=I}return{offsets:A,tableId:l,columnIndex:u,rowCount:d.children.length}}function Wr(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 as(i,t){var g,h,f;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(f=(h=(g=t.getBody())==null?void 0:g.tables)==null?void 0:h.find(m=>e>=m.startIndex&&n<=m.endIndex))==null?void 0:f.tableId,c=[];let l=-1,A=0,d=-1,u=!1;for(const m of a.getChildren()){for(const p of m.children){const{children:S}=p,I=S[0];if(I){if(e<I.startIndex||n>I.endIndex)continue;d=I.startIndex+3;for(const v of I.children){const T=I.children.indexOf(v),{startIndex:x,endIndex:E}=v;e>=x&&e<=E?(l=x,c.push(T),A+=E-x+1):(x>e&&E<n||n>=x&&n<=E)&&(c.push(T),A+=E-x+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 zr(i,t){var f,m,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(m=(f=t.getBody())==null?void 0:f.tables)==null?void 0:m.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null;const A=[];let d=-1,u=-1,g=-1;for(const S of a.getChildren()){for(const I of S.children){const{children:v}=I,T=v[0];if(T){if(e<T.startIndex||n>T.endIndex)continue;l=T;for(const x of T.children)for(const E of x.children){const b=x.children.indexOf(E);e>=E.startIndex&&e<=E.endIndex&&(u=b),n>=E.startIndex&&n<=E.endIndex&&(g=b)}}if(l)break}if(l)break}if(l==null||r==null)return null;for(let S=u;S<=g;S++)A.push(S);let h=0;for(const S of l.children){const I=S.children[u],v=S.children[g];c.push({retain:I.startIndex-h,delete:v.endIndex-I.startIndex+1}),h=v.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 rs(i,t){var d,u,g;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(g=(u=(d=t.getBody())==null?void 0:d.tables)==null?void 0:u.find(h=>e>=h.startIndex&&n<=h.endIndex))==null?void 0:g.tableId;let c=-1,l=0,A=-1;for(const h of a.getChildren()){for(const f of h.children){const{children:m}=f,p=m[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 Gr(i,t){var f,m,p;const{startOffset:e,endOffset:n,segmentId:o}=i,a=t.getSelfOrHeaderFooterViewModel(o),r=(p=(m=(f=t.getBody())==null?void 0:f.tables)==null?void 0:m.find(S=>e>=S.startIndex&&n<=S.endIndex))==null?void 0:p.tableId,c=[];let l=null,A=-1,d=-1,u=-1,g=-1;for(const S of a.getChildren()){for(const I of S.children){const{children:v}=I,T=v[0];if(T){if(e<T.startIndex||n>T.endIndex)continue;l=T;for(const x of T.children){const E=T.children.indexOf(x);for(const b of x.children){const _=x.children.indexOf(b);e>=b.startIndex&&e<=b.endIndex&&(d=E,u=_),n>=b.startIndex&&n<=b.endIndex&&(g=_)}}}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<=g;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 vi=(i=>(i[i.NEXT=0]="NEXT",i[i.PREV=1]="PREV",i))(vi||{});function cs(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 ls(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 Yr(i){return i.some(t=>{const{startNodePosition:e}=t;return e?(e==null?void 0:e.path.indexOf("cells"))>-1:!1})}const Xr=s.SHEET_EDITOR_UNITS,Ci={id:"doc.command.inner-paste",type:s.CommandType.COMMAND,handler:async(i,t)=>{var B,U,R,w,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:g}=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 m=h.getUnitId(),p={id:D.RichTextEditingMutation.id,params:{unitId:m,actions:[],textRanges:n,segmentId:e}},S=new s.MemoryCursor;S.reset();const I=new s.TextX,v=s.JSONX.getInstance(),T=[],x=!!((B=d.tables)!=null&&B.length),E=!!((U=d.customBlocks)!=null&&U.length);if(x&&e||x&&Yr(l)||l.length&&(A!=null&&A.length))return!1;for(let H=0;H<l.length;H++){const k=l[H],{startOffset:V,endOffset:G,collapsed:Y}=k,j=V-S.cursor,Z=s.Tools.deepClone(d);if(x)for(const X of Z.tables){const{tableId:z}=X,K=s.Tools.generateRandomId(6);X.tableId=K;const ie=s.Tools.deepClone(u[z]);ie.tableId=K;const re=v.insertOp(["tableSource",K],ie);T.push(re)}if(E&&g){const X=(w=(R=h.getSnapshot().drawingsOrder)==null?void 0:R.length)!=null?w:0;for(const z of Z.customBlocks){const{blockId:K}=z,ie=s.Tools.generateRandomId(6);z.blockId=ie;const re=s.Tools.deepClone(g[K]);re.drawingId=ie;const me=v.insertOp(["drawings",ie],re),ce=v.insertOp(["drawingsOrder",X],ie);T.push(me),T.push(ce)}}const ee=Gn((L=f.customRanges)!=null?L:[],G,Xr.includes(m)),W=Yn((F=f.customDecorations)!=null?F:[],G);if(ee&&(Z.customRanges=[{...ee,startIndex:0,endIndex:d.dataStream.length-1}]),W.length&&(Z.customDecorations=W.map(X=>({...X,startIndex:0,endIndex:d.dataStream.length-1}))),Y)I.push({t:s.TextXActionType.RETAIN,len:j}),I.push({t:s.TextXActionType.INSERT,body:Z,len:d.dataStream.length});else{const X=s.BuildTextUtils.selection.delete([k],d,S.cursor,Z,l.length===1);I.push(...X)}S.reset(),S.moveCursor(G)}const b=te(h,e);return T.push(v.editOp(I.serialize(),b)),p.params.actions=T.reduce((H,k)=>s.JSONX.compose(H,k),null),!!a.syncExecuteCommand(p.id,p.params)}};function Kr(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 Jr(i,t,e){var f,m;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=Kr(i[p],c),{startOffset:I,endOffset:v,collapsed:T}=S,x=I-l.cursor;T?o.push({t:s.TextXActionType.RETAIN,len:x}):o.push(...s.BuildTextUtils.selection.delete([S],n,l.cursor,null,!1)),l.reset(),l.moveCursor(v)}const A=te(t,e);r.push(a.editOp(o.serialize(),A));const d=ls(n,i),u=(f=t.getDrawings())!=null?f:{},g=(m=t.getDrawingsOrder())!=null?m:[],h=d.sort((p,S)=>g.indexOf(p)>g.indexOf(S)?-1:g.indexOf(p)<g.indexOf(S)?1:0);if(h.length>0)for(const p of h){const S=u[p],I=g.indexOf(p);if(S==null||I<0)continue;const v=a.removeOp(["drawings",p],S),T=a.removeOp(["drawingsOrder",I],p);r.push(v),r.push(T)}return r.reduce((p,S)=>s.JSONX.compose(p,S),null)}function Zr(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:g,spanEntireRow:h,spanEntireTable:f}=d;if(!(u==null||g==null))if(f){const m=rs({startOffset:u,endOffset:g,segmentId:n},e);if(m==null)continue;const{offset:p,len:S,tableId:I}=m;p-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:p-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:S});const v=c.removeOp(["tableSource",I]);o.push(v),l.moveCursorTo(p+S)}else if(h){const m=as({startOffset:u,endOffset:g,segmentId:n},e);if(m==null)continue;const{offset:p,rowIndexes:S,len:I,tableId:v}=m;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 x=c.removeOp(["tableSource",v,"tableRows",T]);o.push(x)}l.moveCursorTo(p+I)}else{const m=Gr({startOffset:u,endOffset:g,segmentId:n},e);if(m==null)continue;const{offsets:p}=m;for(const S of p){const{retain:I,delete:v}=S;I-l.cursor>0&&r.push({t:s.TextXActionType.RETAIN,len:I-l.cursor}),r.push({t:s.TextXActionType.DELETE,len:v}),l.moveCursorTo(I+v)}}}const A=te(t,n);return o.push(c.editOp(r.serialize(),A)),o.reduce((d,u)=>s.JSONX.compose(d,u),null)}function As(i,t,e,n,o){let a=[];if(Array.isArray(i)&&(i==null?void 0:i.length)!==0&&(a=Jr(i,e,o)),Array.isArray(t)&&(t==null?void 0:t.length)!==0){const r=Zr(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 et={id:"doc.command.inner-cut",type:s.CommandType.COMMAND,handler:async(i,t)=>{var m,p;const{segmentId:e,textRanges:n}=t,o=i.get(s.ICommandService),a=i.get(D.DocSelectionManagerService),r=i.get(s.IUniverInstanceService),c=(m=t.selections)!=null?m: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=fe(i,A);if(u==null)return!1;const g=u.getViewModel(),h={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:n}};return h.params.actions=As(c,l,d,g,e),!!o.syncExecuteCommand(h.id,h.params)}};var de=(i=>(i[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i))(de||{});const ds="doc.command.insert-text",gn={id:ds,type:s.CommandType.COMMAND,handler:async(i,t)=>{var E;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(),g=d.getSelfOrHeaderFooterModel((E=u==null?void 0:u.segmentId)!=null?E:"").getBody();if(g==null)return!1;const{startOffset:h,collapsed:f}=n,m=c!=null?c:a.dataStream.length,p=[{startOffset:h+m,endOffset:h+m,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,v=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],g,0,a);I.push(...b)}S.params.textRanges=[{startOffset:h+m,endOffset:h+m,collapsed:f}];const T=te(d,o);return S.params.actions=v.editOp(I.serialize(),T),!!e.syncExecuteCommand(S.id,S.params)}},gt={id:"doc.command.delete-text",type:s.CommandType.COMMAND,handler:async(i,t)=>{var x;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 g=c===de.LEFT?u-l:u,h=c===de.LEFT?u-1:u+l-1;const f=(x=d.customRanges)==null?void 0:x.find(E=>E.startIndex<=g&&E.endIndex>=h);f!=null&&f.wholeEntity&&(g=f.startIndex,h=Math.max(h,f.endIndex));const m={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:[{startOffset:g,endOffset:g,collapsed:!0}],debounce:!0}},p=new s.TextX,S=s.JSONX.getInstance();p.push({t:s.TextXActionType.RETAIN,len:g-0}),p.push({t:s.TextXActionType.DELETE,len:h-g+1});const v=te(A,a);return m.params.actions=S.editOp(p.serialize(),v),!!e.syncExecuteCommand(m.id,m.params)}},Ti={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}},g=new s.TextX,h=s.JSONX.getInstance(),{startOffset:f,endOffset:m}=e;g.push({t:s.TextXActionType.RETAIN,len:f}),g.push({t:s.TextXActionType.RETAIN,body:o,len:m-f,coverType:a});const p=te(d,n);return u.params.actions=h.editOp(g.serialize(),p),!!l.syncExecuteCommand(u.id,u.params)}},mn={id:"doc.command.delete-custom-block",type:s.CommandType.COMMAND,handler:async(i,t)=>{var R;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:g,style:h}=a,f=c===de.LEFT?u-1:u,m=[{startOffset:f,endOffset:f,style:h}],p={id:D.RichTextEditingMutation.id,params:{unitId:A,actions:[],textRanges:m,prevTextRanges:[l]}},S=new s.TextX,I=s.JSONX.getInstance(),v=[];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,g);v.push(I.editOp(S.serialize(),T));const x=((R=r.getDrawings())!=null?R:{})[d],b=r.getDrawingsOrder().indexOf(d),_=I.removeOp(["drawings",d],x),B=I.removeOp(["drawingsOrder",b],d);return v.push(_),v.push(B),p.params.actions=v.reduce((w,L)=>s.JSONX.compose(w,L),null),!!o.syncExecuteCommand(p.id,p.params)}},fn={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),g=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||g==null)return!1;const h=c,f=u.getUnitId(),{startOffset:m,collapsed:p}=h;if(!p)return!1;const S=a===de.LEFT?m:m+1;let I,v;for(const R of g.paragraphs){if(R.startIndex>=S){v=R;break}I=R}if(I==null||v==null)return!1;const T=a===de.LEFT?m-1:m,x=[{startOffset:T,endOffset:T,style:d}],E={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:x,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}),v.startIndex>I.startIndex+1&&b.push({t:s.TextXActionType.RETAIN,len:v.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 E.params.actions=_.editOp(b.serialize(),B),!!o.syncExecuteCommand(E.id,E.params)}};function pn(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 Lt={id:"doc.command.delete-left",type:s.CommandType.COMMAND,handler:async i=>{var B,U;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=fe(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 R=pn(d,A),w=A[0].segmentId,L=[{startOffset:R,endOffset:R}];return n.executeCommand(et.id,{segmentId:w,textRanges:L})}if(l==null||d==null)return!1;const{segmentId:g,style:h,segmentPage:f}=l,m=a.getSelfOrHeaderFooterModel(g).getBody();if(m==null)return!1;const p=l,{startOffset:S,collapsed:I}=p,v=u.findNodeByCharIndex(S,g,f),T=M.hasListGlyph(v),x=M.isIndentByGlyph(v,m);let E=S;const b=u.findNodeByCharIndex(S-1,g,f);if(M.isFirstGlyph(v)&&b!==v&&(T===!0||x===!0)&&I){const R=M.getParagraphByGlyph(v,m);if(R==null)return!1;const w=R==null?void 0:R.startIndex,L={startIndex:0},F=R.paragraphStyle;if(T===!0){const k=R.paragraphStyle;if(k){L.paragraphStyle=k;const{hanging:V}=k;V&&(L.paragraphStyle.indentStart=V,L.paragraphStyle.hanging=void 0)}}else if(x===!0){const k=R.bullet;k&&(L.bullet=k),F!=null&&(L.paragraphStyle={...F},delete L.paragraphStyle.hanging,delete L.paragraphStyle.indentStart)}const H=[{startOffset:E,endOffset:E,style:h}];o=await n.executeCommand(Ti.id,{unitId:a.getUnitId(),updateBody:{dataStream:"",paragraphs:[{...L}]},range:{startOffset:w,endOffset:w+1},textRanges:H,coverType:s.UpdateDocsAttributeType.REPLACE,segmentId:g})}else if(I===!0){if(b==null)return!0;if(b.content==="\r")o=await n.executeCommand(fn.id,{direction:de.LEFT,range:p});else if(b.streamType==="\b"){const R=(U=a.getSnapshot().drawings)==null?void 0:U[(B=b.drawingId)!=null?B:""];if(R==null)return!0;if(R.layoutType===s.PositionedObjectLayoutType.INLINE){const L=a.getUnitId();o=await n.executeCommand(mn.id,{direction:de.LEFT,range:l,unitId:L,drawingId:b.drawingId})}else{const L=u.findNodeByCharIndex(S-2);if(L==null)return!0;E-=b.count,E-=L.count;const F=[{startOffset:E,endOffset:E,style:h}];o=await n.executeCommand(gt.id,{unitId:a.getUnitId(),range:{...l,startOffset:l.startOffset-1,endOffset:l.endOffset-1},segmentId:g,direction:de.LEFT,len:L.count,textRanges:F})}}else E-=b.count,o=await n.executeCommand(gt.id,{unitId:a.getUnitId(),range:p,segmentId:g,direction:de.LEFT,len:b.count})}else{const R=us(p,[p]);o=await n.executeCommand(et.id,{segmentId:g,textRanges:R,selections:[p]})}return o}},bi={id:"doc.command.delete-right",type:s.CommandType.COMMAND,handler:async i=>{var v,T;const t=i.get(D.DocSelectionManagerService),n=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(!n)return!1;const o=fe(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 x=pn(l,c),E=c[0].segmentId,b=[{startOffset:x,endOffset:x}];return a.executeCommand(et.id,{segmentId:E,textRanges:b})}if(r==null||A==null||l==null)return!1;const{segmentId:d,style:u,segmentPage:g}=r,h=n==null?void 0:n.getSelfOrHeaderFooterModel(d).getBody();if(!n||!h)return!1;const f=r,{startOffset:m,endOffset:p,collapsed:S}=f;if(m===h.dataStream.length-2&&S)return!0;let I=!1;if(S===!0){const x=A.findNodeByCharIndex(m,d,g),E=A.findNodeByCharIndex(m+1);if(x.streamType===s.DataStreamTreeTokenType.PARAGRAPH&&(E==null?void 0:E.streamType)===s.DataStreamTreeTokenType.SECTION_BREAK)return!1;if(x.content==="\r")I=await a.executeCommand(fn.id,{direction:de.RIGHT,range:r});else if(x.streamType==="\b"){const b=(T=n.getSnapshot().drawings)==null?void 0:T[(v=x.drawingId)!=null?v:""];if(b==null)return!0;if(b.layoutType===s.PositionedObjectLayoutType.INLINE){const B=n.getUnitId();I=await a.executeCommand(mn.id,{direction:de.RIGHT,range:r,unitId:B,drawingId:x.drawingId})}else{if(E==null)return!0;const B=[{startOffset:m+1,endOffset:m+1,style:u}];I=await a.executeCommand(gt.id,{unitId:n.getUnitId(),range:{...r,startOffset:m+1,endOffset:p+1},segmentId:d,direction:de.RIGHT,textRanges:B,len:E.count})}}else{const b=[{startOffset:m,endOffset:m,style:u}];I=await a.executeCommand(gt.id,{unitId:n.getUnitId(),range:f,segmentId:d,direction:de.RIGHT,textRanges:b,len:x.count})}}else{const x=us(f,[f]);I=await a.executeCommand(et.id,{segmentId:d,textRanges:x,selections:[f]})}return I}};function us(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 qr=10,$r=6;function ec(){return s.Tools.generateRandomId($r)}function tc(i){const t=i.match(/data-copy-id="([^\s]+)"/);return t&&t[1]?t[1]:null}class nc{constructor(){O(this,"_cache",new s.LRUMap(qr))}set(t,e){this._cache.set(t,e)}get(t){return this._cache.get(t)}clear(){this._cache.clear()}}const yi=new nc;function Ri(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 ic(i){const t=new DOMParser,e=`<x-univer id="univer-root">${i}</x-univer>`;return t.parseFromString(e,"text/html").querySelector("#univer-root")}function hs(i,t){const e=i.tagName.toLowerCase();return typeof t=="string"?e===t:Array.isArray(t)?t.some(n=>n===e):t(i)}const gs=600,jn=class jn{constructor(){O(this,"_tableCache",[]);O(this,"_styleCache",new Map);O(this,"_styleRules",[]);O(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=jn._pluginList.find(l=>l.checkPasteType(t)),o=ic(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,g=u===st.ImageSourceType.UUID?d.dataset.source:d.src;if(g&&u){const h=Number(d.dataset.width||100),f=Number(d.dataset.height||100),m=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:g,transform:{width:h,height:f,left:0},docTransform:{size:{width:m,height:p},angle:0,positionH:{relativeFrom:s.ObjectRelativeFromH.PAGE,posOffset:0},positionV:{relativeFrom:s.ObjectRelativeFromV.PARAGRAPH,posOffset:0}},layoutType:s.PositionedObjectLayoutType.INLINE,drawingType:st.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),g=t?this._styleCache.get(t):{},h=this._styleRules.find(({filter:S})=>hs(A,S)),f=h?h.getStyle(A):Ri(A);this._styleCache.set(A,{...g,...f});const{childNodes:m}=A;this._processBeforeTable(A,n),this._process(A,m,n),this._processAfterTable(A,n);const p=this._afterProcessRules.find(({filter:S})=>hs(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=Ei(0,0,gs);this._tableCache.push({table:r,startIndex:o.dataStream.length}),o.dataStream+=s.DataStreamTreeTokenType.TABLE_START;break}case"TR":{const r=un(0);this._tableCache[this._tableCache.length-1].table.tableRows.push(r),o.dataStream+=s.DataStreamTreeTokenType.TABLE_ROW_START;break}case"TD":{const r=dn(),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,g=hn(gs/u),h=[...new Array(u).fill(null).map(()=>s.Tools.deepClone(g))];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+=`
95
+ ${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}}))}};O(jn,"_pluginList",[]);let mt=jn;const ms={name:"univer-doc-paste-plugin-lark",checkPasteType(i){return/lark-record-clipboard/i.test(i)},stylesRules:[{filter:["s"],getStyle(i){const t=Ri(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 fs(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 ps={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=fs(t);o&&(n.paragraphStyle=o),e.paragraphs.push(n),e.dataStream+="\r"}}]},Ss={name:"univer-doc-paste-plugin-word",checkPasteType(i){return/word|mso/i.test(i)},stylesRules:[{filter:["b"],getStyle(i){const t=Ri(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=fs(t);o&&(n.paragraphStyle=o),e.paragraphs.push(n),e.dataStream+="\r"}}]};function oc(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===st.ImageSourceType.UUID?i.source:void 0,src:i.source};return`<img ${t(e)}></img>`}function Is(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:g,cl:h,va:f}=o;let m=i.slice(e,n);const p=[];return c===s.BooleanNumber.TRUE&&(m=`<i>${m}</i>`),f===s.BaselineOffset.SUPERSCRIPT?m=`<sup>${m}</sup>`:f===s.BaselineOffset.SUBSCRIPT&&(m=`<sub>${m}</sub>`),(A==null?void 0:A.s)===s.BooleanNumber.TRUE&&(m=`<u>${m}</u>`),(d==null?void 0:d.s)===s.BooleanNumber.TRUE&&(m=`<s>${m}</s>`),l===s.BooleanNumber.TRUE&&(m=`<strong>${m}</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"),g&&p.push(`background: ${g.rgb}`),p.length?`<span style="${p.join("; ")};">${m}</span>`:m}function Oi(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(Is(n,{...c,ed:Math.min(A,e)}))):r.push(Is(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 sc(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 m="",p=0,S=h,I=c.findIndex(v=>h<=v.startIndex&&f>=v.startIndex);if(I===-1)return m=Oi(n,h,f),{sliceHtml:m,customBlockLength:p};for(;I!==-1;){const v=c[I];c.splice(I,1),m+=Oi(n,S,v.startIndex);const T=o[v.blockId];if(T)switch(T.drawingType){case st.DrawingTypeEnum.DRAWING_IMAGE:{m+=oc(T),p++;break}}S=v.startIndex+1,I=c.findIndex(x=>S<=x.startIndex&&f>=x.startIndex)}return m=m+Oi(n,S,f+1),{sliceHtml:m,customBlockLength:p}};l.forEach(h=>{var T,x;const{startIndex:f,endIndex:m,rangeType:p,rangeId:S}=h,I=u(A,f);d+=I.sliceHtml;const v=u(f,m+1);switch(p){case s.CustomRangeType.HYPERLINK:{d+=`<a data-rangeid="${S}" href="${(x=(T=h.properties)==null?void 0:T.url)!=null?x:""}">${v.sliceHtml}</a>`;break}default:{d+=v.sliceHtml;break}}A=m+1+(I.customBlockLength+v.customBlockLength)});const g=u(A,e);return d+=g.sliceHtml,d}function ac(i){const t=i.body||{},{paragraphs:e=[],sectionBreaks:n=[]}=t;let{dataStream:o=""}=t;o.endsWith(`\r
96
+ `)||(o+=`\r
97
+ `,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)ft(c,i,a);return a.html}function ft(i,t,e){var n,o;switch(i.nodeType){case s.DataStreamTreeNodeType.SECTION_BREAK:{for(const a of i.children)ft(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:g}=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`)),g!=null&&h.push(`line-height: ${g}`),e.html+=`<p class="UniverNormal" ${h.length?`style="${h.join("; ")};"`:""}>`,a.length)for(const f of a)ft(f,t,e);e.html+=`${sc(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)ft(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)ft(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)ft(r,t,e);e.html+="</td>";break}default:throw new Error(`Unknown node type: ${i.nodeType}`)}}class rc{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+=ac(n);return e}}var cc=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,Ac=(i,t,e,n)=>{for(var o=n>1?void 0:n?lc(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&&cc(t,e,o),o},Qt=(i,t)=>(e,n)=>t(e,n,i);mt.use(Ss),mt.use(ms),mt.use(ps);function Es(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 pt=s.createIdentifier("doc.clipboard-service");let xi=class extends s.Disposable{constructor(t,e,n,o,a){super();O(this,"_clipboardHooks",[]);O(this,"_htmlToUDM",new mt);O(this,"_umdToHtml",new rc);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=pn(o,a);else if(e!=null){A=e;for(const u of o){const{startOffset:g,endOffset:h}=u;g==null||h==null||h<=e&&(A-=h-g)}}const d=[{startOffset:A,endOffset:A,style:n}];return this._commandService.executeCommand(et.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(g=>{g.onBeforePaste&&(n=g.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 g=c;for(const f of A){const{startOffset:m,endOffset:p}=f;m==null||p==null||p<=c&&(g+=n.dataStream.length-(p-m))}const h=[{startOffset:g,endOffset:g,style:l}];return this._commandService.executeCommand(Ci.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=ec(),o=(t.length>1?t.map(d=>{var u;return((u=d.body)==null?void 0:u.dataStream)||""}).join(`
98
+ `):((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
99
+ `," ");let a=this._umdToHtml.convert(t);if(t.length===1&&e){a=a.replace(/(<[a-z]+)/,(g,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 g of d.body.customBlocks){const{blockId:h}=g,f=(A=d.drawings)==null?void 0:A[h];if(f){const m=s.Tools.generateRandomId(6);g.blockId=m,u.drawings[m]={...s.Tools.deepClone(f),drawingId:m}}}}yi.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:g,collapsed:h,rangeType:f}=d;if(h||u==null||g==null)continue;if(f===s.DOC_RANGE_TYPE.RECT){a=!1;const{spanEntireRow:S}=d;let I;I=Es(c,u,g),o.push(I);continue}const m={startOffset:u,endOffset:g,collapsed:h},p=e.getSelfOrHeaderFooterModel(r).sliceBody(m.startOffset,m.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=tc(t);if(o){const r=yi.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&&yi.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:st.ImageSourceType.BASE64})},d.readAsDataURL(A)})},o=A=>{const d=new Image,u=500;return new Promise(g=>{d.src=typeof A=="string"?A:URL.createObjectURL(A),d.onload=()=>{const h=Math.min(u,d.naturalWidth),f=d.naturalHeight/d.naturalWidth;g({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:g=100,height:h=100}=await o(A),f=`paste_image_id_${d}`,m=e.body,p=e.drawings;m.dataStream+="\b",(S=m.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:st.DrawingTypeEnum.DRAWING_IMAGE,transform:{width:g,height:h,angle:0},docTransform:{angle:0,size:{width:g,height:h},positionH:{relativeFrom:s.ObjectRelativeFromH.CHARACTER,posOffset:0},positionV:{relativeFrom:s.ObjectRelativeFromV.LINE,posOffset:0}}}})),this._umdToHtml.convert([e])}};xi=Ac([Qt(0,s.IUniverInstanceService),Qt(1,s.ILogService),Qt(2,s.ICommandService),Qt(3,y.IClipboardInterfaceService),Qt(4,s.Inject(D.DocSelectionManagerService))],xi);function Sn(i){return i.getContextValue(s.FOCUSING_DOC)||i.getContextValue(s.EDITOR_ACTIVATED)}const Mi=999,Ft={id:y.CopyCommand.id,name:"doc.command.copy",type:s.CommandType.COMMAND,multi:!0,priority:Mi,preconditions:Sn,handler:async i=>i.get(pt).copy()},In={id:y.CutCommand.id,name:"doc.command.cut",type:s.CommandType.COMMAND,multi:!0,priority:Mi,preconditions:Sn,handler:async i=>i.get(pt).cut()},En={id:y.PasteCommand.id,name:"doc.command.paste",type:s.CommandType.COMMAND,multi:!0,priority:Mi,preconditions:Sn,handler:async i=>{const t=i.get(pt),n=await i.get(y.IClipboardInterfaceService).read();return n.length===0?!1:t.paste(n)}},vn={id:"doc.command.switch-mode",type:s.CommandType.COMMAND,handler:async i=>{var I,v,T,x,E;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=(v=e.getRenderById(r))==null?void 0:v.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,g=n.getDocRanges(),h={id:D.RichTextEditingMutation.id,params:{unitId:r,actions:[],textRanges:u===s.DocumentFlavor.TRADITIONAL&&A?[]:g}},f=s.JSONX.getInstance(),m=[];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)m.push(p);else return!1;if(u!==s.DocumentFlavor.MODERN){const b=a.getSnapshot(),{drawings:_={},body:B}=b,U=(T=B==null?void 0:B.customBlocks)!=null?T:[];for(const R in _){const w=_[R],L=U.find(K=>K.blockId===R);if(L==null)continue;const F=w.docTransform.positionV,{relativeFrom:H,posOffset:k}=F;if(H===s.ObjectRelativeFromV.PARAGRAPH)continue;const{startIndex:V}=L,G=c.findNodeByCharIndex(V,A,d),Y=(x=G==null?void 0:G.parent)==null?void 0:x.parent,j=Y==null?void 0:Y.parent,Z=j==null?void 0:j.lines.find(K=>K.paragraphIndex===(Y==null?void 0:Y.paragraphIndex)&&K.paragraphStart),ee=(E=j==null?void 0:j.parent)==null?void 0:E.parent;if(G==null||Y==null||Z==null||j==null||ee==null)continue;let W=0;H===s.ObjectRelativeFromV.LINE?W-=Y.top:H===s.ObjectRelativeFromV.PAGE&&(W+=ee.marginTop),W+=Z.top;const X={...F,relativeFrom:s.ObjectRelativeFromV.PARAGRAPH,posOffset:(k!=null?k:0)-W},z=f.replaceOp(["drawings",R,"docTransform","positionV"],F,X);z&&m.push(z)}}return h.params.actions=m.reduce((b,_)=>s.JSONX.compose(b,_),null),!!t.syncExecuteCommand(h.id,h.params)}},Cn={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=wt(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=fe(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),g=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),m=as(r,u);if(m==null)return!1;const{offset:p,rowIndexes:S,len:I,tableId:v,cursor:T,selectWholeTable:x}=m;if(x)return n.executeCommand(St.id);const E=[],b=[{startOffset:T,endOffset:T,collapsed:!0}],_={id:D.RichTextEditingMutation.id,params:{unitId:g,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);E.push(f.editOp(h.serialize(),B));for(const R of S.reverse()){const w=f.removeOp(["tableSource",v,"tableRows",R]);E.push(w)}return _.params.actions=E.reduce((R,w)=>s.JSONX.compose(R,w),null),!!n.syncExecuteCommand(_.id,_.params)}},Tn={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=wt(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=fe(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),g=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),m=zr(r,u);if(m==null)return!1;const{offsets:p,columnIndexes:S,tableId:I,cursor:v,rowCount:T,selectWholeTable:x}=m;if(x)return n.executeCommand(St.id);const E=[],b=[{startOffset:v,endOffset:v,collapsed:!0}],_={id:D.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:b}};for(const R of p){const{retain:w,delete:L}=R;w>0&&h.push({t:s.TextXActionType.RETAIN,len:w}),h.push({t:s.TextXActionType.DELETE,len:L})}const B=te(l,c);E.push(f.editOp(h.serialize(),B)),S.reverse();for(let R=0;R<T;R++)for(const w of S){const L=f.removeOp(["tableSource",I,"tableRows",R,"tableCells",w]);E.push(L)}for(const R of S){const w=f.removeOp(["tableSource",I,"tableColumns",R]);E.push(w)}return _.params.actions=E.reduce((R,w)=>s.JSONX.compose(R,w),null),!!n.syncExecuteCommand(_.id,_.params)}},St={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=wt(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=fe(i,l.getUnitId());if(d==null)return!1;const u=d.getViewModel(),g=l==null?void 0:l.getUnitId(),h=new s.TextX,f=s.JSONX.getInstance(),m=rs(r,u);if(m==null)return!1;const{offset:p,len:S,tableId:I,cursor:v}=m,T=[],x=[{startOffset:v,endOffset:v,collapsed:!0}],E={id:D.RichTextEditingMutation.id,params:{unitId:g,actions:[],textRanges:x}};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(_),E.params.actions=T.reduce((U,R)=>s.JSONX.compose(U,R),null),!!n.syncExecuteCommand(E.id,E.params)}},Bi="doc.command.table-insert-row",Di="doc.command.table-insert-column",dc="doc.command.table-insert-row-above",uc="doc.command.table-insert-row-bellow",hc="doc.command.table-insert-column-left",gc="doc.command.table-insert-column-right",bn={id:dc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Bi,{position:An.ABOVE})},yn={id:uc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Bi,{position:An.BELLOW})},Rn={id:hc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Di,{position:Ii.LEFT})},On={id:gc,type:s.CommandType.COMMAND,handler:async i=>i.get(s.ICommandService).executeCommand(Di,{position:Ii.RIGHT})},_i={id:Bi,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=wt(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 g=fe(i,d.getUnitId());if(g==null)return!1;const h=g.getViewModel(),f=d==null?void 0:d.getUnitId(),m=new s.TextX,p=s.JSONX.getInstance(),S=Vr(l,e,h);if(S==null)return!1;const{offset:I,colCount:v,tableId:T,insertRowIndex:x}=S,E=[],b=I+2,_=[{startOffset:b,endOffset:b,collapsed:!0}],B={id:D.RichTextEditingMutation.id,params:{unitId:f,actions:[],textRanges:_}};I>0&&m.push({t:s.TextXActionType.RETAIN,len:I});const U=Hr(v);m.push({t:s.TextXActionType.INSERT,body:U,len:U.dataStream.length});const R=te(d,A);E.push(p.editOp(m.serialize(),R));const w=un(v),L=p.insertOp(["tableSource",T,"tableRows",x],w);return E.push(L),B.params.actions=E.reduce((H,k)=>s.JSONX.compose(H,k),null),!!a.syncExecuteCommand(B.id,B.params)}},vs={id:Di,type:s.CommandType.COMMAND,handler:async(i,t)=>{var ee,W,X;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=wt(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 g=fe(i,d.getUnitId());if(g==null)return!1;const h=g.getViewModel(),f=d==null?void 0:d.getUnitId(),m=new s.TextX,p=s.JSONX.getInstance(),S=jr(l,e,h);if(S==null)return!1;const{offsets:I,columnIndex:v,tableId:T,rowCount:x}=S,E=[],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){m.push({t:s.TextXActionType.RETAIN,len:z});const K=kr();m.push({t:s.TextXActionType.INSERT,body:K,len:K.dataStream.length})}const U=te(d,A);E.push(p.editOp(m.serialize(),U));for(let z=0;z<x;z++){const K=dn(),ie=p.insertOp(["tableSource",T,"tableRows",z,"tableCells",v],K);E.push(ie)}const R=d.getSnapshot(),w=R.documentStyle,{marginLeft:L=0,marginRight:F=0}=w,H=((W=(ee=w.pageSize)==null?void 0:ee.width)!=null?W:800)-L-F,k=(X=R==null?void 0:R.tableSource)==null?void 0:X[T].tableColumns,{newColWidth:V,widths:G}=Wr(H,k,v);for(let z=0;z<G.length;z++){const K=p.replaceOp(["tableSource",T,"tableColumns",z,"size","width","v"],k[z].size.width.v,G[z]);E.push(K)}const Y=hn(V),j=p.insertOp(["tableSource",T,"tableColumns",v],Y);return E.push(j),B.params.actions=E.reduce((z,K)=>s.JSONX.compose(z,K),null),!!a.syncExecuteCommand(B.id,B.params)}},Cs="COMPONENT_DOC_CREATE_TABLE_CONFIRM";function Ni(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 Pi={id:"doc.command.break-line",type:s.CommandType.COMMAND,handler:async i=>{var E,b,_;const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService),n=i.get(s.ICommandService),o=i.get(De),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:g}=a,f=((E=A.paragraphs)!=null?E:[]).find(B=>B.startIndex>=u);if(!f)return!1;const m=f.startIndex,p=o.getDefaultStyle(),S=o.getStyleCache(),I=Yt((b=A.textRuns)!=null?b:[],g,p,S),v={dataStream:s.DataStreamTreeTokenType.PARAGRAPH,paragraphs:Ni(s.DataStreamTreeTokenType.PARAGRAPH,f),textRuns:[{st:0,ed:1,ts:{...I.ts}}]},T={startOffset:u,endOffset:g,collapsed:u===g},x=await n.executeCommand(gn.id,{unitId:d,body:v,range:T,segmentId:c});if(((_=f.bullet)==null?void 0:_.listType)===s.PresetListType.CHECK_LIST_CHECKED){const B={index:m+1-(g-u),segmentId:c,textRanges:[{startOffset:u+1,endOffset:u+1}]};return!!await n.executeCommand(cn.id,B)&&x}return x}},Ui={id:"doc.command.create-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{var X,z,K,ie,re,me;const{rowCount:e,colCount:n}=t,o=i.get(D.DocSelectionManagerService),a=i.get(s.IUniverInstanceService),r=i.get(s.ICommandService),c=i.get(De),l=o.getActiveTextRange();if(l==null)return!1;const{segmentId:A,segmentPage:d}=l,u=a.getCurrentUniverDocInstance(),g=u==null?void 0:u.getSelfOrHeaderFooterModel(A).getBody();if(u==null||g==null)return!1;const h=u.getUnitId(),f=fe(i,h),m=f==null?void 0:f.getSkeleton();if(m==null)return!1;const{startOffset:p}=l,I=((X=g.paragraphs)!=null?X:[]).find(ce=>ce.startIndex>=p),v=m.findNodeByCharIndex(p,A,d);if(v==null)return!1;const T=new s.TextX,x=s.JSONX.getInstance(),E=[],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:Ni(s.DataStreamTreeTokenType.PARAGRAPH,I)},len:1});const U=c.getDefaultStyle(),R=c.getStyleCache(),w=Yt((z=g.textRuns)!=null?z:[],p,U,R),{dataStream:L,paragraphs:F,sectionBreaks:H}=Fr(e,n),k=(me=(re=(ie=(K=v.parent)==null?void 0:K.parent)==null?void 0:ie.parent)==null?void 0:re.parent)==null?void 0:me.parent;if(k==null)return!1;const{pageWidth:V,marginLeft:G,marginRight:Y}=k,j=Ei(e,n,V-G-Y);T.push({t:s.TextXActionType.INSERT,body:{dataStream:L,paragraphs:F,sectionBreaks:H,textRuns:[{...w,st:0,ed:L.length}],tables:[{startIndex:0,endIndex:L.length,tableId:j.tableId}]},len:L.length});const Z=te(u,A);E.push(x.editOp(T.serialize(),Z));const ee=x.insertOp(["tableSource",j.tableId],j);return E.push(ee),B.params.actions=E.reduce((ce,Te)=>s.JSONX.compose(ce,Te),null),!!r.syncExecuteCommand(B.id,B.params)}},wi="doc.component.create-table-confirm",xn={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:wi,children:{label:{name:Cs,props:{handleRowColChange:a,tableCreateParams:o}}},width:400,title:{title:t.t("toolbar.table.insert")},onConfirm:()=>{n.executeCommand(Ui.id,o),e.close(wi)},onClose:()=>{e.close(wi)}}),!0}},Oe={id:"doc-paragraph-setting.command",type:s.CommandType.COMMAND,handler:async(i,t)=>{var S,I,v;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=(v=ht(r,A))!=null?v:[],u={id:D.RichTextEditingMutation.id,params:{unitId:l,actions:[],textRanges:r}},g=new s.MemoryCursor;g.reset();const h=new s.TextX,f=s.JSONX.getInstance();for(const T of d){const{startIndex:x}=T;h.push({t:s.TextXActionType.RETAIN,len:x-g.cursor});const E={...T.paragraphStyle,...t.paragraph};h.push({t:s.TextXActionType.RETAIN,len:1,body:{dataStream:"",paragraphs:[{...T,paragraphStyle:E,startIndex:0}]},coverType:s.UpdateDocsAttributeType.REPLACE}),g.moveCursorTo(x+1)}const m=te(a,c);return u.params.actions=f.editOp(h.serialize(),m),!!o.syncExecuteCommand(u.id,u.params)}},mc=()=>{const i=s.useDependency(D.DocSelectionManagerService),t=s.useDependency(It),e=Q.useMemo(()=>i.getDocRanges(),[]);return Q.useEffect(()=>{e.length||t.closePanel()},[e]),e},fc=()=>{var r,c,l;const t=s.useDependency(s.IUniverInstanceService).getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),e=mc();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=ht(e,o))!=null?l:[]},pc=(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)}}))]},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.indentStart,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentStart:{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.indentEnd,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentEnd:{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.indentFirstLine,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{indentFirstLine:{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.hanging,0):0});return[e,a=>(n(a),t.executeCommand(Oe.id,{paragraph:{hanging:{v:a}}}))]},Cc=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}}}))]},Tc=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}}}))]},bc=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,m;const h=i[0];return h&&(m=(f=h.paragraphStyle)==null?void 0:f.lineSpacing)!=null?m:1}),l=Q.useRef(r),[A,d]=Q.useState(()=>{var f,m;const h=i[0];return h&&(m=(f=h.paragraphStyle)==null?void 0:f.spacingRule)!=null?m:s.SpacingRule.AUTO}),u=async h=>{c(h),a.next({lineSpacing:h,spacingRule:A})},g=async h=>{if(h!==A){let f=l.current;if(h===s.SpacingRule.AT_LEAST){const m=o==null?void 0:o.findNodeByCharIndex(i[0].startIndex),p=m==null?void 0:m.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((m,p)=>(Object.keys(p).forEach(S=>{m[S]=p[S]}),m),{}))).subscribe(f=>t.executeCommand(Oe.id,{paragraph:{...f}}));return()=>h.unsubscribe()},[]),{lineSpacing:[r,u],spacingRule:[A,g]}},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"},tt=i=>{const{value:t,onChange:e,className:n="",min:o=0,max:a=100,step:r=1}=i,c=Ys.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 yc(){const i=s.useDependency(s.LocaleService),t=Q.useMemo(()=>[{label:i.t("toolbar.alignLeft"),value:String(s.HorizontalAlign.LEFT),icon:P.jsx(Oo,{})},{label:i.t("toolbar.alignCenter"),value:String(s.HorizontalAlign.CENTER),icon:P.jsx(yo,{})},{label:i.t("toolbar.alignRight"),value:String(s.HorizontalAlign.RIGHT),icon:P.jsx(xo,{})},{label:i.t("toolbar.alignJustify"),value:String(s.HorizontalAlign.JUSTIFIED),icon:P.jsx(Co,{})}],[]),e=fc(),[n,o]=pc(e,t[0].value),[a,r]=Sc(e),[c,l]=Ic(e),[A,d]=Ec(e),[u,g]=vc(e),[h,f]=Cc(e),[m,p]=Tc(e),{lineSpacing:[S,I],spacingRule:[v,T]}=bc(e),x=Q.useMemo(()=>v===s.SpacingRule.AUTO?{min:1,max:5,step:S<2?.5:1}:{min:1,max:100},[v,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:`${q.paragraphSettingIconList} ${q.paragraphSettingMtBase}`,children:t.map(E=>P.jsx(se.Tooltip,{title:E.label,placement:"bottom",children:P.jsx("span",{className:tn(q.paragraphSettingIconListItem,{[q.paragraphSettingIconListActive]:n===E.value}),onClick:()=>o(E.value),children:E.icon})},E.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(tt,{className:q.paragraphSettingMtBase,value:a,onChange:E=>r(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.right"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:c,onChange:E=>l(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.firstLine"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:A,onChange:E=>d(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.hanging"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:u,onChange:E=>g(E!=null?E: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(tt,{className:q.paragraphSettingMtBase,value:h,onChange:E=>f(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsxs("div",{className:q.paragraphSettingLabel,children:[i.t("doc.paragraphSetting.after"),"(px)"]}),P.jsx(tt,{className:q.paragraphSettingMtBase,value:m,onChange:E=>p(E!=null?E:0)})]}),P.jsxs("div",{className:q.paragraphSettingFlexCol,children:[P.jsx("div",{className:q.paragraphSettingLabel,children:i.t("doc.paragraphSetting.lineSpace")}),P.jsxs("div",{className:`${q.paragraphSettingMtBase} ${q.paragraphSettingSpaceLine}`,style:{width:162},children:[P.jsx(se.Select,{value:`${v}`,options:[{label:i.t("doc.paragraphSetting.multiSpace"),value:`${s.SpacingRule.AUTO}`},{label:i.t("doc.paragraphSetting.fixedValue"),value:`${s.SpacingRule.AT_LEAST}`}],onChange:E=>T(Number(E))}),P.jsx(tt,{...x,value:S,onChange:E=>I(E!=null?E:0)})]})]})]})]})}const Rc=(i,t)=>t.length===i.length&&i.some(e=>t.some(n=>n.startOffset===e.startOffset&&n.endOffset===e.endOffset));function Oc(){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;Rc(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(yc,{},n)}var xc=Object.defineProperty,Mc=Object.getOwnPropertyDescriptor,Bc=(i,t,e,n)=>{for(var o=n>1?void 0:n?Mc(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&&xc(t,e,o),o},Li=(i,t)=>(e,n)=>t(e,n,i);const Ts="doc_ui_paragraph-setting-panel";let It=class extends s.Disposable{constructor(t,e,n){super();O(this,"_id");this._commandService=t,this._componentManager=e,this._sidebarService=n,this._init()}_init(){this.disposeWithMe(this._componentManager.register(Ts,Oc))}openPanel(){const t={header:{title:"doc.slider.paragraphSetting"},id:this._id,children:{label:Ts},width:300};this._sidebarService.open(t)}closePanel(){this._sidebarService.close(this._id)}};It=Bc([Li(0,s.ICommandService),Li(1,s.Inject(y.ComponentManager)),Li(2,s.Inject(y.ISidebarService))],It);const Qi={id:"sidebar.operation.doc-paragraph-setting-panel",type:s.CommandType.OPERATION,handler:i=>(i.get(It).openPanel(),!0)},Fi=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 Dc(i){if(i.length<2)return!0;const t=i.map(e=>e.tableId);return t.every(e=>e===t[0])}function bs(i,t,e){var a;const n=t.getRectRanges(),o=t.getActiveTextRange();if(n&&n.length&&Dc(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:g,endIndex:h}=u;return c>g&&c<h||l>g&&l<h})){i.next(!1);return}}i.next(!0)}const Ne=i=>{const t=i.get(D.DocSelectionManagerService),e=i.get(s.IUniverInstanceService);return new N.Observable(n=>{const o=t.textSelection$.subscribe(()=>{bs(n,t,e)});return bs(n,t,e),()=>o.unsubscribe()})},_c=i=>({id:Ft.name,commandId:Ft.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.copy",disabled$:Fi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Nc=i=>({id:Qi.id,type:y.MenuItemType.BUTTON,icon:"MenuSingle24",title:"doc.menu.paragraphSetting",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Pc=i=>({id:In.id,type:y.MenuItemType.BUTTON,icon:"Copy",title:"rightClick.cut",disabled$:Fi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),Uc=i=>({id:En.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.paste",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),wc=i=>({id:Lt.id,type:y.MenuItemType.BUTTON,icon:"PasteSpecial",title:"rightClick.delete",disabled$:Fi(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}),ys="doc.menu.table-insert";function Lc(i){return{id:ys,type:y.MenuItemType.SUBITEMS,title:"table.insert",icon:"Insert",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Ne(i),(t,e)=>t||e)}}function Qc(i){return{id:bn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowAbove",icon:"InsertRowAbove",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Fc(i){return{id:yn.id,type:y.MenuItemType.BUTTON,title:"table.insertRowBelow",icon:"InsertRowBelow",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Hc(i){return{id:Rn.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnLeft",icon:"LeftInsertColumn",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function kc(i){return{id:On.id,type:y.MenuItemType.BUTTON,title:"table.insertColumnRight",icon:"RightInsertColumn",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}const Rs="doc.menu.table-delete";function Vc(i){return{id:Rs,type:y.MenuItemType.SUBITEMS,title:"table.delete",icon:"Reduce",hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),Ne(i),(t,e)=>t||e)}}function jc(i){return{id:Cn.id,type:y.MenuItemType.BUTTON,title:"table.deleteRows",icon:"DeleteRow",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Wc(i){return{id:Tn.id,type:y.MenuItemType.BUTTON,title:"table.deleteColumns",icon:"DeleteColumn",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function zc(i){return{id:St.id,type:y.MenuItemType.BUTTON,title:"table.deleteTable",icon:"GridSingle",disabled$:Ne(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Gc(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 Yc(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 Xc(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 g=fe(i,u.getUnitId());if(g==null){n.next(!0);return}if(g.getViewModel().getCustomRangeRaw(d)){n.next(!0);return}if(A!=null){const{path:m}=A;if(m.indexOf("cells")!==-1){n.next(!0);return}}n.next(!1)});return()=>o.unsubscribe()})}function le(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 Kc(i){const t=i.get(s.ICommandService);return{id:ze.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===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Jc(i){const t=i.get(s.ICommandService);return{id:Ge.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===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Zc(i){const t=i.get(s.ICommandService);return{id:Ye.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===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function qc(i){const t=i.get(s.ICommandService);return{id:Xe.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===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function $c(i){const t=i.get(s.ICommandService);return{id:Qe.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===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function el(i){const t=i.get(s.ICommandService);return{id:Ke.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===_e.id){const c=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function tl(i){const t=i.get(s.ICommandService);return{id:Ze.id,tooltip:"toolbar.font",type:y.MenuItemType.SELECTOR,label:ko,selections:y.FONT_FAMILY_LIST.map(e=>({label:{name:Vo,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===Ze.id){const l=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function nl(i){const t=i.get(s.ICommandService);return{id:Je.id,type:y.MenuItemType.SELECTOR,tooltip:"toolbar.fontSize",label:{name:jo,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===Je.id){const l=Fe(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function il(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:qe.id,icon:"FontColor",tooltip:"toolbar.textColor.main",type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:hi,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().textColor,a=t.onCommandExecuted(r=>{if(r.id===qe.id){const c=r.params.value;n.next(c!=null?c:o)}});return n.next(o),a.dispose}),disabled$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function ol(i){return{id:di.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),Yc(i),(t,e)=>t||e)}}const sl="GridSingle",Os="doc.menu.table";function al(i){return{id:Os,type:y.MenuItemType.SUBITEMS,icon:sl,tooltip:"toolbar.table.main",disabled$:Xc(i),hidden$:N.combineLatest(y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY),Gc(i),(t,e)=>t||e)}}function rl(i){return{id:xn.id,title:"toolbar.table.insert",type:y.MenuItemType.BUTTON,hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function cl(i){const t=i.get(s.ICommandService);return{id:_t.id,type:y.MenuItemType.BUTTON,icon:"LeftJustifyingSingle",tooltip:"toolbar.alignLeft",disabled$:le(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=Mn(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 ll(i){const t=i.get(s.ICommandService);return{id:Nt.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=Mn(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function Al(i){const t=i.get(s.ICommandService);return{id:Pt.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=Mn(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}function dl(i){const t=i.get(s.ICommandService);return{id:Ut.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=Mn(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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC,void 0,s.DOCS_ZEN_EDITOR_UNIT_ID_KEY)}}const Ht=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,g;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=ln(A,(g=(u=h.getBody())==null?void 0:u.paragraphs)!=null?g:[]);let m;if(f.every(p=>{var S;return m||(m=(S=p.bullet)==null?void 0:S.listType),p.bullet&&p.bullet.listType===m})){t.next(m);return}}t.next(void 0)}))});return()=>{a.unsubscribe(),o==null||o.unsubscribe()}});function ul(i){return{id:Dt.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:zo,hoverable:!1},value$:Ht(i)}],icon:"OrderSingle",tooltip:"toolbar.order",hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),disabled$:le(i),activated$:Ht(i).pipe(N.map(t=>t&&t.indexOf("ORDER_LIST")===0))}}function hl(i){return{id:Bt.id,type:y.MenuItemType.BUTTON_SELECTOR,selections:[{label:{name:Go,hoverable:!1},value$:Ht(i)}],icon:"UnorderSingle",tooltip:"toolbar.unorder",disabled$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:Ht(i).pipe(N.map(t=>t&&t.indexOf("BULLET_LIST")===0))}}function gl(i){return{id:rn.id,type:y.MenuItemType.BUTTON,icon:"TodoList",tooltip:"toolbar.checklist",disabled$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC),activated$:Ht(i).pipe(N.map(t=>t&&t.indexOf("CHECK_LIST")===0))}}function ml(i){const t=i.get(s.ICommandService),e=i.get(s.IUniverInstanceService);return{id:vn.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 fl(i){return{id:dt.id,type:y.MenuItemType.BUTTON,title:"toolbar.resetColor",icon:"NoColor"}}function pl(i){const t=i.get(s.ICommandService),e=i.get(s.ThemeService);return{id:$e.id,tooltip:"toolbar.fillColor.main",type:y.MenuItemType.BUTTON_SELECTOR,icon:"PaintBucket",selections:[{label:{name:hi,hoverable:!1}}],value$:new N.Observable(n=>{const o=e.getCurrentTheme().primaryColor,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$:le(i),hidden$:y.getMenuHiddenObservable(i,s.UniverInstanceType.UNIVER_DOC)}}function Fe(i){var g,h;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=i.get(De),o=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),a=e.getDocRanges(),r=(g=a.find(f=>f.isActive))!=null?g: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:{...ss(d,r,c),...l}}}function Mn(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(g=>g.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 g of l){const{startIndex:h}=g;if(r>A&&r<=h)return g;A=h}return null}const xs={[y.RibbonStartGroup.FORMAT]:{[ze.id]:{order:0,menuItemFactory:Kc},[Ge.id]:{order:1,menuItemFactory:Jc},[Ye.id]:{order:2,menuItemFactory:Zc},[Xe.id]:{order:3,menuItemFactory:qc},[Qe.id]:{order:4,menuItemFactory:$c},[Ke.id]:{order:5,menuItemFactory:el},[Je.id]:{order:6,menuItemFactory:nl},[Ze.id]:{order:7,menuItemFactory:tl},[qe.id]:{order:8,menuItemFactory:il},[$e.id]:{order:9,menuItemFactory:pl,[dt.id]:{order:0,menuItemFactory:fl}}},[y.RibbonStartGroup.LAYOUT]:{[Os]:{order:1,menuItemFactory:al,[xn.id]:{order:0,menuItemFactory:rl}},[_t.id]:{order:2,menuItemFactory:cl},[Nt.id]:{order:3,menuItemFactory:ll},[Pt.id]:{order:4,menuItemFactory:Al},[Ut.id]:{order:5,menuItemFactory:dl},[Dt.id]:{order:6,menuItemFactory:ul},[Bt.id]:{order:7,menuItemFactory:hl},[rn.id]:{order:8,menuItemFactory:gl},[di.id]:{order:9,menuItemFactory:ol},[vn.id]:{order:10,menuItemFactory:ml}},[y.ContextMenuPosition.MAIN_AREA]:{[y.ContextMenuGroup.FORMAT]:{[Ft.name]:{order:0,menuItemFactory:_c},[In.id]:{order:1,menuItemFactory:Pc},[En.id]:{order:2,menuItemFactory:Uc},[Lt.id]:{order:3,menuItemFactory:wc}},[y.ContextMenuGroup.LAYOUT]:{[Qi.id]:{order:0,menuItemFactory:Nc},[ys]:{order:1,menuItemFactory:Lc,[bn.id]:{order:1,menuItemFactory:Qc},[yn.id]:{order:2,menuItemFactory:Fc},[Rn.id]:{order:3,menuItemFactory:Hc},[On.id]:{order:4,menuItemFactory:kc}},[Rs]:{order:2,menuItemFactory:Vc,[Cn.id]:{order:1,menuItemFactory:jc},[Tn.id]:{order:2,menuItemFactory:Wc},[St.id]:{order:3,menuItemFactory:zc}}}}};var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,El=(i,t,e,n)=>{for(var o=n>1?void 0:n?Il(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&&Sl(t,e,o),o},Pe=(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(hi,se.ColorPicker)),this.disposeWithMe(t.register(ko,y.FontFamily)),this.disposeWithMe(t.register(Vo,y.FontFamilyItem)),this.disposeWithMe(t.register(jo,y.FontSize)),this.disposeWithMe(t.register(Go,ar)),this.disposeWithMe(t.register(zo,or)),this.disposeWithMe(t.register("TodoList",Bo))}_initUiParts(){var n,o;const t=this._univerInstanceService.getCurrentUnitForType(s.UniverInstanceType.UNIVER_SHEET),e=this._configService.getConfig(Si);(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(Lr,this._injector)))}_initMenus(){this._menuManagerService.mergeMenu(xs)}_initShortCut(){[Sr,Ir,Er,vr,Cr,Tr,Rr,Or,yr,br,xr,Mr,cr].forEach(t=>{this.disposeWithMe(this._shortcutService.registerShortcut(t))})}_init(){this._initCustomComponents(),this._initMenus(),this._initFocusHandler(),this._initCommands(),this._initUiParts(),this._initShortCut()}_initCommands(){[Ho,di,li].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=El([Pe(0,s.Inject(s.Injector)),Pe(1,s.Inject(y.ComponentManager)),Pe(2,s.ICommandService),Pe(3,y.ILayoutService),Pe(4,y.IMenuManagerService),Pe(5,y.IUIPartsService),Pe(6,s.IUniverInstanceService),Pe(7,y.IShortcutService),Pe(8,s.IConfigService)],C.DocUIController);var vl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,Tl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Cl(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&&vl(t,e,o),o},Hi=(i,t)=>(e,n)=>t(e,n,i);const Ms=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 U;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 Be(r,a),{contentBoxPointGroup:d}=A.getRangePointData(t,t),{left:u,top:g,height:h}=Rt(d),f=u+c,m=g+l,p=n.getViewport(be.VIEW_MAIN),S=this._editorService.getEditor(e);if(p==null)return;const{left:I,top:v,right:T,bottom:x}=p.getBounding().viewBound;let E=0,b=0;const _=S?(U=S.params.backScrollOffset)!=null?U:0:100;m<v?E=m-v-_:m>x-h&&(E=m-x+h+_),f<I?b=f-I:f>T-Ms&&(b=f-T+Ms);const B=p.transViewportScroll2ScrollValue(b,E);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=Tl([Hi(1,s.Inject(D.DocSelectionManagerService)),Hi(2,pe),Hi(3,s.Inject(D.DocSkeletonManagerService))],C.DocBackScrollRenderController);var bl=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,Rl=(i,t,e,n)=>{for(var o=n>1?void 0:n?yl(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},Et=(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,[],Gt),new M.Layer(t,[],ao)),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(Ee.MAIN,void 0,r);c.zIndex=zn;const l=new M.DocBackground(Ee.BACKGROUND,void 0,r);l.zIndex=zn,this._context.mainComponent=c,n.set(Ee.MAIN,c),n.set(Ee.BACKGROUND,l),t.addObjects([c],Gt),t.addObjects([l],so),this._editorService.getEditor(e.getUnitId())==null&&t.enableLayerCache(Gt)}_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(Ee.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(Ee.BACKGROUND),l=(f=t.getSkeletonData())==null?void 0:f.pages;if(l==null)return;let A=0,d=0;const g=this._context.unit.getSnapshot().documentStyle.documentFlavor;for(let m=0,p=l.length;m<p;m++){const S=l[m];let{pageWidth:I,pageHeight:v}=S;if(g===s.DocumentFlavor.MODERN){const T=Ol(S);I=T.pageWidth,v=T.pageHeight}r.pageLayoutType===M.PageLayoutType.VERTICAL?(d+=v,d+=r.pageMarginTop,m===p-1&&(d+=r.pageMarginTop),A=Math.max(A,I)):r.pageLayoutType===M.PageLayoutType.HORIZONTAL&&(A+=I,m!==p-1&&(A+=r.pageMarginLeft),d=Math.max(d,v))}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=Rl([Et(1,s.ICommandService),Et(2,s.Inject(C.DocSelectionRenderService)),Et(3,s.Inject(D.DocSkeletonManagerService)),Et(4,pe),Et(5,M.IRenderManagerService),Et(6,s.IUniverInstanceService)],C.DocRenderController);function Ol(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 ki={id:"doc.command.select-all",type:s.CommandType.COMMAND,handler:async i=>{var g;const t=i.get(s.IUniverInstanceService),e=i.get(D.DocSelectionManagerService),n=t.getCurrentUnitForType(s.UniverInstanceType.UNIVER_DOC),o=e.getDocRanges(),a=(g=o.find(h=>h.isActive))!=null?g: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:m}=h;u!==f&&d.push({startOffset:u,endOffset:f-1,rangeType:s.DOC_RANGE_TYPE.TEXT}),d.push({startOffset:f+3,endOffset:m-5,rangeType:s.DOC_RANGE_TYPE.RECT}),u=m}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 kt extends s.RxDisposable{constructor(e){super();O(this,"_previousActiveRange",null);O(this,"_undoMutationParamsCache",[]);O(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 xl=s.SHEET_EDITOR_UNITS,Vi={id:"doc.command.ime-input",type:s.CommandType.COMMAND,handler:async(i,t)=>{var k,V,G,Y;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(De),u=(k=l.getRenderById(e))==null?void 0:k.with(kt),g=A.getUnit(e,s.UniverInstanceType.UNIVER_DOC);if(g==null||u==null)return!1;const h=u.getActiveRange();if(h==null)return!1;const{style:f,segmentId:m}=h,p=g.getSelfOrHeaderFooterModel(m).getBody();if(p==null)return!1;Object.assign(h,h);const{startOffset:I,endOffset:v}=h,T=n.length,x=[{startOffset:I+T,endOffset:I+T,collapsed:!0,style:f}],E={id:D.RichTextEditingMutation.id,params:{unitId:e,actions:[],textRanges:x}},b=d.getDefaultStyle(),_=d.getStyleCache(),B=Gn((V=p.customRanges)!=null?V:[],I+o,xl.includes(e)),U=Yt((G=p.textRuns)!=null?G:[],r?v:I+o,b,_),R=Yn((Y=p.customDecorations)!=null?Y:[],I+o),w=new s.TextX,L=s.JSONX.getInstance();if(!h.collapsed&&r){const j=s.BuildTextUtils.selection.delete([h],p,0,null,!1);w.push(...j),E.params.textRanges=[{startOffset:I+T,endOffset:I+T,collapsed:!0}]}else w.push({t:s.TextXActionType.RETAIN,len:I});o>0&&w.push({t:s.TextXActionType.DELETE,len:o}),w.push({t:s.TextXActionType.INSERT,body:{dataStream:n,textRuns:U?[{...U,st:0,ed:n.length}]:[],customRanges:B?[{...B,startIndex:0,endIndex:n.length-1}]:[],customDecorations:R.map(j=>({...j,startIndex:0,endIndex:n.length-1}))},len:n.length});const F=te(g,m);E.params.actions=L.editOp(w.serialize(),F),E.params.noHistory=!a,E.params.isCompositionEnd=a;const H=c.syncExecuteCommand(E.id,E.params);return u.pushUndoRedoMutationParams(H,E.params),!!H}},Bn={type:s.CommandType.COMMAND,id:"doc.command.set-zoom-ratio",handler:async(i,t)=>{var u,g,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=(g=t.documentId)!=null?g:a,r=(h=t.zoomRatio)!=null?h:r),!o.getUniverDocInstance(a))return!1;const l={zoomRatio:r,unitId:a},A=Dr(i,l);return e.syncExecuteCommand(Ce.id,l)?(n.pushUndoRedo({unitID:a,undoMutations:[{id:Ce.id,params:A}],redoMutations:[{id:Ce.id,params:l}]}),!0):!1}},ji={id:"doc.table.tab-in-table",type:s.CommandType.COMMAND,handler:async(i,t)=>{const{shift:e}=t,n=i.get(D.DocSelectionManagerService),o=n.getActiveTextRange(),a=i.get(s.ICommandService),c=i.get(s.IUniverInstanceService).getCurrentUniverDocInstance();if(!c)return!1;const l=c.getUnitId(),A=fe(i,l),d=A==null?void 0:A.getSkeleton(),u=d==null?void 0:d.getViewModel().getSelfOrHeaderFooterViewModel(o==null?void 0:o.segmentId);if(u==null||o==null)return!1;let g=null;if(e?g=cs(u,o,vi.PREV):g=cs(u,o,vi.NEXT),g){const{startOffset:h,endOffset:f}=g,m=[{startOffset:h,endOffset:f}];return n.replaceDocRanges(m),!0}return e===!1?await a.executeCommand(_i.id,{position:An.BELLOW}):!0}},He={id:"doc.operation.move-cursor",type:s.CommandType.OPERATION,handler:(i,t)=>!!t},ke={id:"doc.operation.move-selection",type:s.CommandType.OPERATION,handler:(i,t)=>!!t};var Ml=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,Dl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Bl(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&&Ml(t,e,o),o},Wi=(i,t)=>(e,n)=>t(e,n,i);let zi=class{constructor(i,t,e){O(this,"_docContainer");O(this,"getComponent",i=>{if(this._docContainer=i,!i.getContentRef().current)throw new Error("container is not ready")});O(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(Si),changeLocale:this.changeLocale,getComponent:this.getComponent}}getContentRef(){return this._docContainer.getContentRef()}UIDidMount(i){if(this._docContainer)return i(this._docContainer)}getDocContainer(){return this._docContainer}};zi=Dl([Wi(0,s.Inject(s.LocaleService)),Wi(1,s.Inject(s.Injector)),Wi(2,s.IConfigService)],zi);var _l=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Pl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Nl(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},Ul=(i,t)=>(e,n)=>t(e,n,i);let Dn=class extends s.RxDisposable{constructor(t){super();O(this,"_docContainerController");this._injector=t,this._docContainerController=this._injector.createInstance(zi)}};Dn=Pl([Ul(0,s.Inject(s.Injector))],Dn);var wl=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Ql=(i,t,e,n)=>{for(var o=n>1?void 0:n?Ll(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&&wl(t,e,o),o},Fl=(i,t)=>(e,n)=>t(e,n,i);let _n=class extends s.Disposable{constructor(i){super(),this._docAutoFormatService=i,this._initListTabAutoFormat(),this._initListSpaceAutoFormat(),this._initDefaultEnterFormat(),this._initExitListAutoFormat()}_initListTabAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:We.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:an.id,params:{type:t!=null&&t.shift?Mt.decrease:Mt.increase}}]},priority:100})),this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:We.id,match:i=>{const{selection:t}=i,{startNodePosition:e,endNodePosition:n}=t;return!!(e&&n&&Jt(e,n)||e&&!n&&e.path.indexOf("cells")>-1)},getMutations(i){const t=i.commandParams;return[{id:ji.id,params:{shift:!!(t!=null&&t.shift)}}]},priority:99}))}_initListSpaceAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:Ot.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:pi.id,params:{listType:a,paragraph:t[0]}}]}return[]}}))}_initExitListAutoFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:At.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:an.id,params:{type:Mt.decrease}}]:[{id:ut.id,params:{listType:i.paragraphs[0].bullet.listType}}]:[]}}))}_initDefaultEnterFormat(){this.disposeWithMe(this._docAutoFormatService.registerAutoFormat({id:At.id,match:()=>!0,getMutations(){return[{id:Pi.id}]},priority:-9999}))}};_n=Ql([Fl(0,s.Inject(C.DocAutoFormatService))],_n);function Hl(i){return i.rows[0].cells[0].sections[0].columns[0].lines[0]}function kl(i){const t=i.rows[i.rows.length-1],e=t.cells[t.cells.length-1];return M.getLastLine(e)}function Vl(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 Bs(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 Ds(i){return i.sections[0].columns[0].lines.length===0}function _s(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 g of d){const{skeTables:h}=g;if(h.has(u)){const f=h.get(u);if(f!=null&&f.rows.length){a=f.rows[0];break}}}}if(a!=null){const l=a.cells[o];return Ds(l)?_s(l):l}}function Ns(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&&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:g}=u;if(g.has(d)){const h=g.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 Ds(c)?Ns(c):c}}function jl(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 Wl(i){return i.sections[0].columns[0].lines[0]}function zl(i){const t=M.getLastColumn(i);return t.lines[t.lines.length-1]}var Gl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,Xl=(i,t,e,n)=>{for(var o=n>1?void 0:n?Yl(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&&Gl(t,e,o),o},Nn=(i,t)=>(e,n)=>t(e,n,i);let Pn=class extends s.Disposable{constructor(t,e,n,o){super();O(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=[He.id,ke.id];this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(!t.includes(e.id))return;const n=e.params;switch(e.id){case He.id:return this._handleMoveCursor(n.direction);case ke.id:return this._handleShiftMoveSelection(n.direction);default:throw new Error("Unknown command")}}))}_handleShiftMoveSelection(t){var v,T,x;const e=this._textSelectionManagerService.getActiveTextRange(),n=this._textSelectionManagerService.getTextRanges(),o=this._univerInstanceService.getCurrentUniverDocInstance();if(o==null)return;const a=(v=this._renderManagerService.getRenderById(o.getUnitId()))==null?void 0:v.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:g,startNodePosition:h,endNodePosition:f,segmentPage:m}=e;if(n.length>1){let E=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY;for(const _ of n)E=Math.min(E,_.startOffset),b=Math.max(b,_.endOffset);this._textSelectionManagerService.replaceTextRanges([{startOffset:t===s.Direction.LEFT||t===s.Direction.UP?b:E,endOffset:t===s.Direction.LEFT||t===s.Direction.UP?E: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(g).getBody().dataStream.length)!=null?T:Number.POSITIVE_INFINITY;if(t===s.Direction.LEFT||t===s.Direction.RIGHT){const E=a.findNodeByCharIndex(S-1,g,m),b=a.findNodeByCharIndex(S,g,m);S=t===s.Direction.RIGHT?S+b.count:S-((x=E==null?void 0:E.count)!=null?x: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 E=a.findNodeByCharIndex(S,g,m),b=r.document.getOffsetConfig(),_=d?h:u===s.RANGE_DIRECTION.FORWARD?f:h,B=this._getTopOrBottomPosition(a,E,_,t===s.Direction.DOWN,!0);if(B==null){const R=t===s.Direction.UP?0:I-2;if(R===S)return;this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:R,style:A}],!1);return}const U=new Be(b,a).getRangePointData(B,B).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{startOffset:p,endOffset:U.endOffset,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),U.endOffset)}}_handleMoveCursor(t){var I,v,T,x;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:g,endNodePosition:h,segmentPage:f}=e,m=o.getSelfOrHeaderFooterModel(u).getBody();if(m==null)return;const p=(v=m.dataStream.length)!=null?v:Number.POSITIVE_INFINITY,S=(T=o.getCustomRanges())!=null?T:[];if(t===s.Direction.LEFT||t===s.Direction.RIGHT){let E;if(!e.collapsed||n.length>1){let B=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY;for(const R of n)B=Math.min(B,R.startOffset),U=Math.max(U,R.endOffset);E=t===s.Direction.LEFT?B:U}else{const B=a.findNodeByCharIndex(c-1,u,f),U=a.findNodeByCharIndex(c,u,f),R=a.findNodeByCharIndex(c+1,u,f);t===s.Direction.LEFT?E=Math.max(0,c-((x=B==null?void 0:B.count)!=null?x:1)):E=Math.min(p-2,l+U.count+((R==null?void 0:R.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(m.dataStream[E]);)E--;else for(;b.includes(m.dataStream[E]);)E++;S.filter(B=>B.wholeEntity&&B.startIndex<E&&B.endIndex>=E).forEach(B=>{t===s.Direction.LEFT?E=Math.min(B.startIndex,E):E=Math.max(B.endIndex+1,E)}),this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,E),endOffset:Math.max(0,E),style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),E)}else{const E=a.findNodeByCharIndex(c,u,f),b=a.findNodeByCharIndex(l,u,f),_=r.document.getOffsetConfig(),B=this._getTopOrBottomPosition(a,t===s.Direction.UP||d?E:b,t===s.Direction.UP||d?g:h,t===s.Direction.DOWN);if(B==null){let R;d?R=t===s.Direction.UP?0:p-2:R=t===s.Direction.UP?c:l,this._textSelectionManagerService.replaceTextRanges([{startOffset:Math.max(0,R),endOffset:Math.max(0,R),style:A}],!1);return}const U=new Be(_,a).getRangePointData(B,B).cursorList[0];this._textSelectionManagerService.replaceTextRanges([{...U,style:A}],!1),this._scrollToFocusNodePosition(o.getUnitId(),U.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,g=Math.abs(n-u);g<a.distance&&(a.glyph=A,a.distance=g)}}if(a.glyph==null)return;const{segmentPage:r}=o;return t.findPositionByGlyph(a.glyph,r)}_getNextOrPrevLine(t,e,n=!1){var m,p,S,I,v,T,x,E,b,_,B,U;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 R=Ps(l,e);if(R)return R}if(e===!0){d=r.lines[A+1];const R=Vl(a,l);if(R){const w=Hl(R);w&&(d=w)}}else{d=r.lines[A-1];const R=jl(a,l);if(R){const w=kl(R);w&&(d=w)}}if(d!=null)return d;const u=c.columns.indexOf(r);if(u===-1)return;if(e===!0)d=(m=c.columns[u+1])==null?void 0:m.lines[0];else{const R=(S=(p=c.columns)==null?void 0:p[u-1])==null?void 0:S.lines;d=R==null?void 0:R[R.length-1]}if(d!=null)return d;const g=l.sections.indexOf(c);if(g===-1)return;if(e===!0)d=(v=(I=l.sections[g-1])==null?void 0:I.columns[0])==null?void 0:v.lines[0];else{const R=(x=(T=l.sections)==null?void 0:T[g-1])==null?void 0:x.columns,w=R==null?void 0:R[R.length-1],L=w==null?void 0:w.lines;d=L==null?void 0:L[L.length-1]}if(d!=null)return d;if(l.type===M.DocumentSkeletonPageType.CELL)return Ps(l,e);const h=l.parent;if(h==null)return;const f=h.pages.indexOf(l);if(f!==-1){if(e===!0)d=(_=(b=(E=h.pages[f+1])==null?void 0:E.sections[0])==null?void 0:b.columns[0])==null?void 0:_.lines[0];else{const R=(B=h.pages[f-1])==null?void 0:B.sections;if(R==null)return;const w=(U=R[R.length-1])==null?void 0:U.columns,L=w[w.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 ro(this._univerInstanceService,this._renderManagerService)}};Pn=Xl([Nn(0,s.IUniverInstanceService),Nn(1,M.IRenderManagerService),Nn(2,s.Inject(D.DocSelectionManagerService)),Nn(3,s.ICommandService)],Pn);function Ps(i,t){var n,o;let e=null;if(t===!0){const a=_s(i);if(a)e=Wl(a);else{const r=(n=i.parent)==null?void 0:n.parent,{lineAfterTable:c}=Bs(r);c&&(e=c)}}else{const a=Ns(i);if(a)e=zl(a);else{const r=(o=i.parent)==null?void 0:o.parent,{lineBeforeTable:c}=Bs(r);c&&(e=c)}}return e}const nt={create:"univer-create",createItem:"univer-create-item",createLabel:"univer-create-label",createInput:"univer-create-input"},Kl=({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:nt.create,children:[P.jsxs("div",{className:nt.createItem,children:[P.jsx("span",{className:nt.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:nt.createInput})]}),P.jsxs("div",{className:nt.createItem,children:[P.jsx("span",{className:nt.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:nt.createInput})]})]})};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},Us=(i,t)=>(e,n)=>t(e,n,i);let Un=class extends s.Disposable{constructor(i,t){super(),this._commandService=i,this._componentManager=t,this._initialize()}_initialize(){this._init(),this._registerCommands(),this._initCustomComponents()}_registerCommands(){[xn].forEach(i=>this.disposeWithMe(this._commandService.registerCommand(i)))}_initCustomComponents(){const i=this._componentManager;this.disposeWithMe(i.register(Cs,Kl))}_init(){}};Un=ql([Us(0,s.ICommandService),Us(1,s.Inject(y.ComponentManager))],Un);const Gi=4;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},wn=(i,t)=>(e,n)=>t(e,n,i);function ws(i,t){const e=Ls(i.left,i.top,t),n=Ls(i.right,i.bottom,t);return{left:e.x,top:e.y,right:n.x,bottom:n.y}}function Ls(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 Qs(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 Ln=(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,g=o.getCanvasElement(),h=g.getBoundingClientRect(),f=M.pxToNum(g.style.width),{top:m,left:p,width:S}=h,I=S/f,{scaleX:v,scaleY:T}=e.getAncestorScale(),x=new Be(A,a),{borderBoxPointGroup:E}=x.getRangePointData(r,c);return qt(E).map(B=>ws(B,e)).map(B=>({left:(B.left+d*v)*I+p,right:(B.right+d*v)*I+p,top:(B.top+u*T)*I+m,bottom:(B.bottom+u*T)*I+m}))};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:g,height:h}=t,f={left:d,right:d+g,top:u,bottom:u+h},m=A.getCanvasElement(),p=m.getBoundingClientRect(),S=M.pxToNum(m.style.width),I=ws(f,l),{top:v,left:T,width:x}=p,E=x/S;return{left:I.left*E+T,right:I.right*E+T,top:I.top*E+v,bottom:I.bottom*E+v}},o=n(),a=new N.BehaviorSubject(o),r=new s.DisposableCollection;r.add(this._commandService.onCommandExecuted(l=>{if(l.id===Ce.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=Ln(t,e))!=null?c:[],o=new N.BehaviorSubject(n),a=new s.DisposableCollection;a.add(this._commandService.onCommandExecuted(l=>{if((l.id===Ce.id||l.id===D.RichTextEditingMutation.id)&&l.params.unitId===e.unitId){const d=Ln(t,e);d&&o.next(d)}}));const r=e.scene.getViewport(be.VIEW_MAIN);return r&&a.add(r.onScrollAfter$.subscribeEvent(()=>{const l=Ln(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])),g=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(g),A.complete(),d.dispose()},canDispose:()=>this._globalPopupManagerService.activePopupId!==g}}},C.DocCanvasPopManagerService=tA([wn(0,s.Inject(y.ICanvasPopupService)),wn(1,M.IRenderManagerService),wn(2,s.IUniverInstanceService),wn(3,s.ICommandService)],C.DocCanvasPopManagerService);var nA=Object.defineProperty,iA=Object.getOwnPropertyDescriptor,oA=(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&&nA(t,e,o),o},sA=(i,t)=>(e,n)=>t(e,n,i);const aA=(i,t,e,n)=>{var g,h,f,m,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=(g=a==null?void 0:a.skeFooters.get(i.segmentId))==null?void 0:g.values())!=null?h:[])[0])!=null?p:Array.from((m=(f=a==null?void 0:a.skeHeaders.get(i.segmentId))==null?void 0:f.values())!=null?m:[])[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 Be(l,e),{borderBoxPointGroup:d}=A.getRangePointData(o,c);return qt(d).map(S=>({top:S.top+l.docsTop-Gi,bottom:S.bottom+l.docsTop+Gi,left:S.left+l.docsLeft,right:S.right+l.docsLeft}))},rA=(i,t,e,n=-1)=>{const o=e.findPositionByGlyph(i,n);if(!o)return;const a=t.getOffsetConfig(),r={...o,isBack:!0},c=new Be(a,e),{borderBoxPointGroup:l}=c.getRangePointData(r,r),d=qt(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();O(this,"_hoverCustomRanges$",new N.BehaviorSubject([]));O(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))));O(this,"_clickCustomRanges$",new N.Subject);O(this,"clickCustomRanges$",this._clickCustomRanges$.asObservable());O(this,"_hoverBullet$",new N.Subject);O(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))));O(this,"_clickBullet$",new N.Subject);O(this,"clickBullets$",this._clickBullet$.asObservable());O(this,"_customRangeDirty",!0);O(this,"_bulletDirty",!0);O(this,"_customRangeBounds",[]);O(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=aA(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}=Qs(n,o,this._context.scene);return this._customRangeBounds.filter(l=>l.rects.some(A=>{const{left:d,right:u,top:g,bottom:h}=A;return a>=d&&a<=u&&r>=g&&r<=h})).map(l=>({segmentId:l.segmentId,range:l.customRange,segmentPageIndex:l.segmentPageIndex,rects:l.rects}))}_buildBulletBoundsBySegment(e,n=-1){var A,d,u,g,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 m,p,S;for(const I of f){const v=[...I.sections];if(I.skeTables){const T=Array.from(I.skeTables.values());v.push(...T.map(x=>x.rows.map(E=>E.cells.map(b=>b.sections))).flat(4))}for(const T of v)for(const x of T.columns)for(const E of x.lines)if(E.paragraphStart){const b=a.find(_=>_.startIndex===E.paragraphIndex);if(b){const _=E,B=(S=(p=(m=_==null?void 0:_.divides)==null?void 0:m[0])==null?void 0:p.glyphGroup)==null?void 0:S[0];if(!B)continue;const U=rA(B,this._documents,this._skeleton,n);if(!U)continue;r.push({rect:U,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:(g=c.skeHeaders.get(e))==null?void 0:g.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}=Qs(n,o,this._context.scene);return this._bulletBounds.find(l=>{const{left:A,right:d,top:u,bottom:g}=l.rect;return a>=A&&a<=d&&r>=u&&r<=g})}},C.DocEventManagerService=oA([sA(1,s.Inject(D.DocSkeletonManagerService))],C.DocEventManagerService);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},Qn=(i,t)=>(e,n)=>t(e,n,i);let Yi=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(cn.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)}};Yi=AA([Qn(1,s.Inject(D.DocSkeletonManagerService)),Qn(2,s.ICommandService),Qn(3,s.Inject(C.DocEventManagerService)),Qn(4,s.Inject(D.DocSelectionManagerService))],Yi);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},Vt=(i,t)=>(e,n)=>t(e,n,i);let Fn=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(!Sn(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})})}};Fn=hA([Vt(1,s.ICommandService),Vt(2,pt),Vt(3,s.Inject(C.DocSelectionRenderService)),Vt(4,s.IContextService),Vt(5,pe)],Fn);var gA=Object.defineProperty,mA=Object.getOwnPropertyDescriptor,fA=(i,t,e,n)=>{for(var o=n>1?void 0:n?mA(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&&gA(t,e,o),o},Fs=(i,t)=>(e,n)=>t(e,n,i);const pA=[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 Xi=class extends s.Disposable{constructor(i,t,e){super(),this._context=i,this._contextMenuService=t,this._commandService=e,pA.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()}))}};Xi=fA([Fs(1,y.IContextMenuService),Fs(2,s.ICommandService)],Xi);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},vt=(i,t)=>(e,n)=>t(e,n,i);let Hn=class extends s.Disposable{constructor(t,e,n,o,a,r,c){super();O(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 v,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:g}=o.getActualSize();u+=a+r,g+=c+l;const{width:h,height:f}=e.getBoundingClientRect(),m=A.getViewport(be.VIEW_MAIN);let p=m==null?void 0:m.getScrollBar();const S=Math.max(g,h),I=Math.max(u,f);A.transformByState({width:S,height:I}),d==null||d.resize(S,I),e.isSingle()?g>h?p==null?m&&new M.ScrollBar(m,{barSize:8,enableVertical:!1}):m==null||m.resetCanvasSizeAndUpdateScroll():(p=null,m==null||m.scrollToBarPos({x:0,y:0}),(T=m==null?void 0:m.getScrollBar())==null||T.dispose()):u>f?p==null?m&&new M.ScrollBar(m,{enableHorizontal:!1,barSize:8}):m==null||m.resetCanvasSizeAndUpdateScroll():(p=null,m==null||m.scrollToBarPos({x:0,y:0}),(v=m==null?void 0:m.getScrollBar())==null||v.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())}}))}};Hn=EA([vt(1,s.IUniverInstanceService),vt(2,pe),vt(3,s.ICommandService),vt(4,s.Inject(C.DocSelectionRenderService)),vt(5,s.Inject(D.DocSkeletonManagerService)),vt(6,M.IRenderManagerService)],Hn);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 Ki=class extends s.Disposable{constructor(t,e,n,o,a){super();O(this,"_previousIMEContent","");O(this,"_isCompositionStart",!0);O(this,"_onStartSubscription");O(this,"_onUpdateSubscription");O(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(Vi.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)}};Ki=TA([kn(1,s.Inject(C.DocSelectionRenderService)),kn(2,s.Inject(kt)),kn(3,s.Inject(D.DocSkeletonManagerService)),kn(4,s.ICommandService)],Ki);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},Vn=(i,t)=>(e,n)=>t(e,n,i);let Ji=class extends s.Disposable{constructor(t,e,n,o,a){super();O(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(),g=this._docMenuStyleService.getStyleCache(),h=Gn((p=d==null?void 0:d.customRanges)!=null?p:[],a.endOffset,s.SHEET_EDITOR_UNITS.includes(e)),f=Yt((S=d==null?void 0:d.textRuns)!=null?S:[],a.endOffset,u,g),m=Yn((I=d==null?void 0:d.customDecorations)!=null?I:[],a.endOffset);await this._commandService.executeCommand(gn.id,{unitId:e,body:{dataStream:o,textRuns:f?[{...f,st:0,ed:o.length}]:[],customRanges:h?[{...h,startIndex:0,endIndex:o.length-1}]:[],customDecorations:m.map(v=>({...v,startIndex:0,endIndex:o.length-1}))},range:a,segmentId:l}),o===" "&&await this._commandService.executeCommand(Ot.id)})}};Ji=RA([Vn(1,s.Inject(C.DocSelectionRenderService)),Vn(2,s.Inject(D.DocSkeletonManagerService)),Vn(3,s.ICommandService),Vn(4,s.Inject(De))],Ji);class Zi extends s.Disposable{constructor(t){super(),this._context=t}calculatePagePosition(){var T,x;const t=Me(this._context),n=(x=(T=this._context.unit.getSettings())==null?void 0:T.zoomRatio)!=null?x: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:g,height:h}=c;let f=0,m=u,p=0,S=0,I=Number.POSITIVE_INFINITY;g>(l+d*2)*n?(f=g/2-l*n/2,f/=n,p=(g-d*2)/n,I=0):(f=d,p=l+d*2,I=(p-g/n)/2),h>A?S=(h-u*2)/n:S=A+u*2,a.resize(p,S),g<=1&&(f=-1e4,m=-1e4),o.translate(f,m),r.translate(f,m);const v=a.getViewport(be.VIEW_MAIN);return I!==Number.POSITIVE_INFINITY&&v!=null&&v.scrollToViewportPos({viewportScrollX:I}),this}}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},Hs=(i,t)=>(e,n)=>t(e,n,i);let qi=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()}))}};qi=MA([Hs(1,s.Inject(Zi)),Hs(2,s.Inject(D.DocSelectionManagerService))],qi);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},Ct=(i,t)=>(e,n)=>t(e,n,i);let $i=class extends s.Disposable{constructor(t,e,n,o,a,r,c){super();O(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=Me(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=Me(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:g=M.PageLayoutType.VERTICAL,pageMarginLeft:h,pageMarginTop:f}=n.getOffsetConfig(),{editArea:m}=l.findEditAreaByCoord(u,g,h,f),p=this._docSkeletonManagerService.getViewModel(),S=p.getEditArea();S!==M.DocumentEditArea.BODY&&m!==M.DocumentEditArea.BODY&&m!==S&&p.setEditArea(m)}if(this._docSelectionRenderService.__onPointDown(a),this._editorService.getEditor(t)){this._setEditorFocus(t);const{offsetX:g,offsetY:h}=a;setTimeout(()=>{t!==this._editorService.getFocusId()&&(this._setEditorFocus(t),this._docSelectionRenderService.setCursorManually(g,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=Me(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=[Ce.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=No(a);this._docSelectionManagerService.replaceDocRanges([{startOffset:r,endOffset:r}],{unitId:e,subUnitId:e},!1)}}))}};$i=_A([Ct(1,s.ICommandService),Ct(2,pe),Ct(3,s.IUniverInstanceService),Ct(4,s.Inject(C.DocSelectionRenderService)),Ct(5,s.Inject(D.DocSkeletonManagerService)),Ct(6,s.Inject(D.DocSelectionManagerService))],$i);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},it=(i,t)=>(e,n)=>t(e,n,i);let eo=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(Bn.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=[Ce.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===vn.id&&this._commandService.executeCommand(Bn.id,{zoomRatio:1,unitId:this._context.unitId})}))}updateViewZoom(i,t=!0){var n;const e=Me(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()}};eo=UA([it(1,s.IContextService),it(2,s.Inject(D.DocSkeletonManagerService)),it(3,s.IUniverInstanceService),it(4,s.ICommandService),it(5,s.Inject(D.DocSelectionManagerService)),it(6,pe),it(7,s.Inject(Zi))],eo);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},jt=(i,t)=>(e,n)=>t(e,n,i);const ks=300;C.DocStateChangeManagerService=class extends s.RxDisposable{constructor(e,n,o,a,r){super();O(this,"_docStateChange$",new N.BehaviorSubject(null));O(this,"docStateChange$",this._docStateChange$.asObservable());O(this,"_historyStateCache",new Map);O(this,"_changeStateCache",new Map);O(this,"_historyTimer",null);O(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(kt);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:g}=A;r.redoState.actions=u.actions,r.undoState.actions=d.actions,r.undoState.textRanges=[g]}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)},ks)):(this._changeStateCacheTimer&&clearTimeout(this._changeStateCacheTimer),this._changeStateCacheTimer=setTimeout(()=>{A(a)},ks)):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,g)=>s.JSONX.compose(u,g.redoState.actions),null),textRanges:l.redoState.textRanges},d={unitId:e,actions:o.reverse().reduce((u,g)=>s.JSONX.compose(u,g.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],g={unitId:e,actions:n.reduce((m,p)=>s.JSONX.compose(m,p.redoState.actions),null),textRanges:u.redoState.textRanges},h={unitId:e,actions:n.reverse().reduce((m,p)=>s.JSONX.compose(m,p.undoState.actions),null),textRanges:d.undoState.textRanges},f={commandId:a,unitId:e,trigger:r,redoState:g,undoState:h,segmentId:c,noHistory:l,debounce:A};n.length=0,this._docStateChange$.next(f)}},C.DocStateChangeManagerService=QA([jt(0,s.Inject(s.IUndoRedoService)),jt(1,s.ICommandService),jt(2,s.IUniverInstanceService),jt(3,s.Inject(D.DocStateEmitService)),jt(4,M.IRenderManagerService)],C.DocStateChangeManagerService);var FA=Object.defineProperty,HA=Object.getOwnPropertyDescriptor,kA=(i,t,e,n)=>{for(var o=n>1?void 0:n?HA(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&&FA(t,e,o),o},Vs=(i,t)=>(e,n)=>t(e,n,i);const js="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(js),a.engine.getCanvas().getContext().setId(js))}),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=kA([Vs(0,s.IUniverInstanceService),Vs(1,M.IRenderManagerService)],C.DocsRenderService);const VA={id:At.id,preconditions:rr,binding:y.KeyCode.ENTER},jA={id:Lt.id,preconditions:ne,binding:y.KeyCode.BACKSPACE},WA={id:bi.id,preconditions:ne,binding:y.KeyCode.DELETE},zA={id:He.id,binding:y.KeyCode.ARROW_UP,preconditions:ne,staticParameters:{direction:s.Direction.UP}},GA={id:He.id,binding:y.KeyCode.ARROW_DOWN,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},YA={id:He.id,binding:y.KeyCode.ARROW_LEFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},XA={id:He.id,binding:y.KeyCode.ARROW_RIGHT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},KA={id:ke.id,binding:y.KeyCode.ARROW_UP|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.UP}},JA={id:ke.id,binding:y.KeyCode.ARROW_DOWN|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.DOWN}},ZA={id:ke.id,binding:y.KeyCode.ARROW_LEFT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.LEFT}},qA={id:ke.id,binding:y.KeyCode.ARROW_RIGHT|y.MetaKeys.SHIFT,preconditions:ne,staticParameters:{direction:s.Direction.RIGHT}},$A={id:ki.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 Ws=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,td=(i,t,e)=>t in i?Ws(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,nd=(i,t,e,n)=>{for(var o=n>1?void 0:n?ed(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&&Ws(t,e,o),o},Wt=(i,t)=>(e,n)=>t(e,n,i),id=(i,t,e)=>td(i,t+"",e);C.UniverDocsUIPlugin=class extends s.Plugin{constructor(t=Qr,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(Si,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,[[_n],[Pn],[It],[Un],[C.DocUIController]])}_initCommand(){[Lt,bi,ze,Ge,Ye,Xe,Qe,Ke,Je,Ze,qe,dt,$e,_e,Pi,gn,gt,mn,Ti,fn,Ce,Dt,Bt,ut,_t,Nt,Pt,Re,Ut,Ui,_i,bn,yn,vs,Rn,On,Cn,Tn,St,ui,ji,We,Ot,At,an,xt,rn,cn,pi,Vi,vn,Oe,Ci,et,uo,Xn,Kn,Bn,ki,Qi,He,ke].forEach(t=>{this._commandService.registerCommand(t)}),[Ft,In,En].forEach(t=>this.disposeWithMe(this._commandService.registerMultipleCommand(t)))}_initializeShortcut(){[zA,GA,XA,YA,KA,JA,ZA,qA,$A,jA,WA,VA,lr].forEach(t=>{this._injector.get(y.IShortcutService).registerShortcut(t)})}_initDependencies(t){s.mergeOverrideWithDependencies([[Fn],[Hn],[C.DocUIController],[_n],[Un],[Pn],[Dn],[It],[pe,{useClass:C.EditorService}],[ai,{useClass:_o}],[pt,{useClass:xi}],[C.DocCanvasPopManagerService],[C.DocsRenderService],[C.DocStateChangeManagerService],[C.DocAutoFormatService],[De]],this._config.override).forEach(n=>t.add(n))}_markDocAsFocused(){const t=this._injector.get(s.IUniverInstanceService),e=this._injector.get(pe);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(Dn)}_initRenderBasics(){[[D.DocSkeletonManagerService],[C.DocSelectionRenderService],[D.DocInterceptorService],[Zi],[kt],[C.DocRenderController],[eo]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}_initRenderModules(){[[C.DocEventManagerService],[C.DocBackScrollRenderController],[$i],[ci],[qi],[Xi],[Yi],[Fn],[Ji],[Ki],[Hn]].forEach(t=>{this._renderManagerSrv.registerRenderModule(s.UniverInstanceType.UNIVER_DOC,t)})}},id(C.UniverDocsUIPlugin,"pluginName",oo),C.UniverDocsUIPlugin=nd([s.DependentOn(M.UniverRenderEnginePlugin),Wt(1,s.Inject(s.Injector)),Wt(2,M.IRenderManagerService),Wt(3,s.ICommandService),Wt(4,s.ILogService),Wt(5,s.IConfigService)],C.UniverDocsUIPlugin),C.AfterSpaceCommand=Ot,C.AlignCenterCommand=Nt,C.AlignJustifyCommand=Ut,C.AlignLeftCommand=_t,C.AlignOperationCommand=Re,C.AlignRightCommand=Pt,C.BreakLineCommand=Pi,C.BulletListCommand=Bt,C.ChangeListNestingLevelCommand=an,C.ChangeListNestingLevelType=Mt,C.ChangeListTypeCommand=xt,C.CheckListCommand=rn,C.CoverContentCommand=Kn,C.CreateDocTableCommand=Ui,C.CutContentCommand=et,C.DOCS_COMPONENT_BACKGROUND_LAYER_INDEX=so,C.DOCS_COMPONENT_DEFAULT_Z_INDEX=zn,C.DOCS_COMPONENT_HEADER_LAYER_INDEX=ao,C.DOCS_COMPONENT_MAIN_LAYER_INDEX=Gt,C.DOCS_VIEW_KEY=Ee,C.DOC_UI_PLUGIN_NAME=oo,C.DOC_VERTICAL_PADDING=Gi,C.DefaultDocContainerConfig=io,C.DefaultToolbarConfig=no,C.DeleteCommand=gt,C.DeleteCustomBlockCommand=mn,C.DeleteLeftCommand=Lt,C.DeleteRightCommand=bi,C.DocCopyCommand=Ft,C.DocCreateTableOperation=xn,C.DocCutCommand=In,C.DocIMEInputManagerService=kt,C.DocPasteCommand=En,C.DocSelectAllCommand=ki,C.DocTableDeleteColumnsCommand=Tn,C.DocTableDeleteRowsCommand=Cn,C.DocTableDeleteTableCommand=St,C.DocTableInsertColumnCommand=vs,C.DocTableInsertColumnLeftCommand=Rn,C.DocTableInsertColumnRightCommand=On,C.DocTableInsertRowAboveCommand=bn,C.DocTableInsertRowBellowCommand=yn,C.DocTableInsertRowCommand=_i,C.DocTableTabCommand=ji,C.Editor=Io,C.EditorInsertTextCommandId=ds,C.EnterCommand=At,C.IDocClipboardService=pt,C.IEditorService=pe,C.IMEInputCommand=Vi,C.IRangeSelectorService=ai,C.InnerPasteCommand=Ci,C.InsertCommand=gn,C.ListOperationCommand=ut,C.MergeTwoParagraphCommand=fn,C.MoveCursorOperation=He,C.MoveSelectionOperation=ke,C.NORMAL_TEXT_SELECTION_PLUGIN_NAME=qs,C.NodePositionConvertToCursor=Be,C.NodePositionConvertToRectRange=ti,C.OrderListCommand=Dt,C.PastePluginLark=ms,C.PastePluginUniver=ps,C.PastePluginWord=Ss,C.QuickListCommand=pi,C.RangeSelector=Ya,C.RangeSelectorService=_o,C.RectRange=ii,C.ReplaceContentCommand=uo,C.ReplaceSnapshotCommand=Xn,C.ResetInlineFormatTextBackgroundColorCommand=dt,C.SetDocZoomRatioCommand=Bn,C.SetDocZoomRatioOperation=Ce,C.SetInlineFormatBoldCommand=ze,C.SetInlineFormatCommand=_e,C.SetInlineFormatFontFamilyCommand=Ze,C.SetInlineFormatFontSizeCommand=Je,C.SetInlineFormatItalicCommand=Ge,C.SetInlineFormatStrikethroughCommand=Xe,C.SetInlineFormatSubscriptCommand=Qe,C.SetInlineFormatSuperscriptCommand=Ke,C.SetInlineFormatTextBackgroundColorCommand=$e,C.SetInlineFormatTextColorCommand=qe,C.SetInlineFormatUnderlineCommand=Ye,C.TEXT_RANGE_LAYER_INDEX=Zt,C.TabCommand=We,C.TextEditor=Eo,C.TextRange=Ve,C.ToggleCheckListCommand=cn,C.UpdateCommand=Ti,C.VIEWPORT_KEY=be,C.addCustomDecorationBySelectionFactory=ea,C.addCustomDecorationFactory=co,C.calcDocRangePositions=Ln,C.convertPositionsToRectRanges=$t,C.deleteCustomDecorationFactory=ta,C.docDrawingPositionToTransform=ia,C.genTableSource=Ei,C.generateParagraphs=Ni,C.getAnchorBounding=Rt,C.getCanvasOffsetByEngine=po,C.getCommandSkeleton=fe,C.getCursorWhenDelete=pn,C.getCustomBlockIdsInSelections=ls,C.getCutActionsFromDocRanges=As,C.getDocObject=ro,C.getDocObjectById=$s,C.getEmptyTableCell=dn,C.getEmptyTableRow=un,C.getLineBounding=qt,C.getOneTextSelectionRange=qn,C.getParagraphsInRange=ln,C.getParagraphsInRanges=ht,C.getRichTextEditPath=te,C.getTableColumn=hn,C.hasParagraphInTable=na,C.isInSameTableCell=Jt,C.isValidRectRange=go,C.menuSchema=xs,C.neoGetDocObject=Me,C.transformToDocDrawingPosition=oa,C.whenDocAndEditorFocused=ne,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
106
100
 
107
- // /home/runner/work/univer-presets/univer-presets/packages/preset-docs-core/node_modules/@univerjs/docs-ui/facade
108
101
 
102
+ // @univerjs/docs-ui/facade
109
103
  (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("@univerjs/core"),require("@univerjs/docs-ui"),require("@univerjs/engine-render")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/docs-ui","@univerjs/engine-render"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.UniverDocsUiFacade={},t.UniverCore,t.UniverDocsUi,t.UniverEngineRender))})(this,function(t,e,a,m){"use strict";var f=Object.defineProperty;var D=(t,e,a)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var v=(t,e,a)=>D(t,typeof e!="symbol"?e+"":e,a);var h=Object.defineProperty,_=Object.getOwnPropertyDescriptor,I=(u,n,i,r)=>{for(var s=r>1?void 0:r?_(n,i):n,c=u.length-1,o;c>=0;c--)(o=u[c])&&(s=(r?o(n,i,s):o(s))||s);return r&&s&&h(n,i,s),s},d=(u,n)=>(i,r)=>n(i,r,u);t.FDocument=class{constructor(n,i,r,s,c,o){v(this,"id");this._documentDataModel=n,this._injector=i,this._univerInstanceService=r,this._commandService=s,this._resourceManagerService=c,this._renderManagerService=o,this.id=this._documentDataModel.getUnitId()}getId(){return this._documentDataModel.getUnitId()}getName(){return this.getSnapshot().title||""}getSnapshot(){const n=this._resourceManagerService.getResourcesByType(this.id,e.UniverInstanceType.UNIVER_DOC),i=this._documentDataModel.getSnapshot();return i.resources=n,i}undo(){return this._univerInstanceService.focusUnit(this.id),this._commandService.executeCommand(e.UndoCommand.id)}redo(){return this._univerInstanceService.focusUnit(this.id),this._commandService.executeCommand(e.RedoCommand.id)}appendText(n){const i=this.id,{body:r}=this.getSnapshot();if(!r)throw new Error("The document body is empty");const s=r.dataStream.length-2,c={startOffset:s,endOffset:s,collapsed:!0,segmentId:""},{segmentId:o}=c;return this._commandService.executeCommand(a.InsertCommand.id,{unitId:i,body:{dataStream:n},range:c,segmentId:o})}setSelection(n,i){var s;const r=(s=this._renderManagerService.getRenderById(this.getId()))==null?void 0:s.with(a.DocSelectionRenderService);r==null||r.removeAllRanges(),r==null||r.addDocRanges([{startOffset:n,endOffset:i,rangeType:e.DOC_RANGE_TYPE.TEXT}],!0)}},t.FDocument=I([d(1,e.Inject(e.Injector)),d(2,e.IUniverInstanceService),d(3,e.ICommandService),d(4,e.IResourceManagerService),d(5,m.IRenderManagerService)],t.FDocument);class g extends e.FUniver{createUniverDoc(n){const i=this._univerInstanceService.createUnit(e.UniverInstanceType.UNIVER_DOC,n);return this._injector.createInstance(t.FDocument,i)}getActiveDocument(){const n=this._univerInstanceService.getCurrentUnitForType(e.UniverInstanceType.UNIVER_DOC);return n?this._injector.createInstance(t.FDocument,n):null}getUniverDoc(n){const i=this._univerInstanceService.getUniverDocInstance(n);return i?this._injector.createInstance(t.FDocument,i):null}}e.FUniver.extend(g),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
110
104
 
111
105
 
106
+ // index
112
107
  (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(v={}){const{container:d="app"}=v;return{plugins:[n.UniverDocsPlugin,u.UniverRenderEnginePlugin,r.UniverFormulaEnginePlugin,[s.UniverUIPlugin,{container:d}],i.UniverDocsUIPlugin]}}e.UniverDocsCorePreset=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});